fsusage: check for GNU/Linux statvfs problem dynamically
[gnulib.git] / ChangeLog
1 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2
3         fsusage: check for GNU/Linux statvfs problem dynamically
4         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
5         Define STAT_STATFS2_BSIZE too, since in this case the code now
6         checks dynamically whether statvfs is reliable, falling back on
7         Linux-style statfs otherwise.
8         (statvfs_works): New function, for dynamically testing statvfs.
9         (get_fs_usage) [STAT_STATVFS]: Use it.
10         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
11         statvfs on GNU/Linux hosts, since it's now done dynamically.
12
13 2012-05-10  Bruno Haible  <bruno@clisp.org>
14
15         system-quote, execute, spawn-pipe: Escape '?' on Windows.
16         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
17         '?' character.
18         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
19         * tests/test-system-quote-main.c (check_all): Check also strings like
20         "??????????".
21         Reported by Eli Zaretskii <eliz@gnu.org>.
22
23 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
24
25         _Noreturn: port config.h to gcc -Wundef
26         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
27         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
28         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
29
30 2012-05-10  Bruno Haible  <bruno@clisp.org>
31
32         system-quote: Refactor.
33         * lib/system-quote.h (system_quote_copy): Fix comment.
34         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
35         New functions, extracted from system_quote_copy.
36         (system_quote_length, system_quote_copy): Use these functions.
37         Reported by Paul Eggert.
38
39 2012-05-08  Bruno Haible  <bruno@clisp.org>
40
41         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
42         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
43
44 2012-05-08  Bruno Haible  <bruno@clisp.org>
45
46         Tests for module 'system-quote'.
47         * modules/system-quote-tests: New file.
48         * tests/test-system-quote.sh: New file.
49         * tests/test-system-quote-main.c: New file.
50         * tests/test-system-quote-child.c: New file.
51
52         New module 'system-quote'.
53         * lib/system-quote.h: New file.
54         * lib/system-quote.c: New file.
55         * modules/system-quote: New file.
56
57 2012-05-08  Bruno Haible  <bruno@clisp.org>
58
59         sh-quote: Make C++ safe and allow multiple inclusion.
60         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
61         declarations in extern "C".
62
63 2012-05-08  Bruno Haible  <bruno@clisp.org>
64
65         sh-quote tests: Make tests stricter.
66         * tests/test-sh-quote.c (check_one): Check the return value of
67         shell_quote_copy.
68         (main): Check a string with a CR character. Check a string that
69         contains UCHAR_MAX.
70
71 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
72
73         warnings.m4: provide a means to specify the program to compile.
74         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
75         (gl_WARN_ADD): here.
76         Use gl_AS_VAR_APPEND.
77         Support an argument to specify the program to compile.
78         (gl_WARN_ADD): Accept an argument to specify the program to compile.
79         AC_SUBST the WARN_CFLAGS when they are used.
80         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
81         leave this to gl_WARN_ADD.
82
83 2012-05-08  Eric Blake  <eblake@redhat.com>
84
85         doc: recommendations on gettext version
86         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
87         choice between versions.
88         * DEPENDENCIES (gettext): Cover both approaches.
89
90 2012-05-08  Jim Meyering  <meyering@redhat.com>
91
92         init.sh: explain why EXEEXT support uses aliases rather than functions
93         * tests/init.sh: Add a comment.
94
95         init.sh: don't let bash aliases interfere with tests
96         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
97         is bash.  This avoids problems for those who alias standard commands to
98         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
99         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
100
101 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
102
103         stdint: be more consistent with glibc, SunOS libc
104         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
105         (gl_int_fast16_t, gl_uint_fast16_t)
106         (gl_int_fast32_t, gl_uint_fast32_t)
107         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
108         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
109         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
110         Be consistent with glibc by default, and with SunOS 5.10 and later
111         if __sun is defined.  This lessens the likelihood of clashes if
112         code compiled for older hosts is combined with code compiled for
113         newer ones.  Problem reported by Niels Möller in
114         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
115
116 2012-05-07  Eric Blake  <eblake@redhat.com>
117
118         isatty: relax license to LGPLv2+
119         * modules/isatty (License): Relax license.
120
121 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122
123         stat-size: comment fix
124         * lib/stat-size.h: Remove obsolete comment about indenting.
125
126 2012-05-06  Bruno Haible  <bruno@clisp.org>
127
128         Tests for module 'sh-quote'.
129         * modules/sh-quote-tests: New file.
130         * tests/test-sh-quote.c: New file.
131
132 2012-05-06  Bruno Haible  <bruno@clisp.org>
133
134         sh-quote: Improve shell_quote_argv's signature.
135         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
136         * lib/sh-quote.c (shell_quote_argv): Likewise.
137
138 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
139
140         stdint: document issues with int_fast8_t etc.
141         * doc/posix-headers/stdint.texi (stdint.h): Say that other
142         stdint.h substitutes may define these types differently.  See
143         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
144
145 2012-05-05  Bruno Haible  <bruno@clisp.org>
146
147         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
149         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
150         or 'guessing no (mishandles large arguments)'.
151
152 2012-05-05  Bruno Haible  <bruno@clisp.org>
153
154         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
155         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
156         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
157         set gl_cv_func_link_follows_symlink to "guessing no".
158
159 2012-05-05  Bruno Haible  <bruno@clisp.org>
160
161         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
162         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
163         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
164         "guessing no".
165         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
166
167 2012-05-05  Bruno Haible  <bruno@clisp.org>
168
169         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
170         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
171         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
172         set gl_cv_struct_dirent_d_ino to "guessing yes".
173
174 2012-05-05  Bruno Haible  <bruno@clisp.org>
175
176         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
177         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
178         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
179         "guessing yes".
180
181 2012-05-05  Bruno Haible  <bruno@clisp.org>
182
183         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
184         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
185         compiling to a glibc system, set gl_cv_func_signbit and
186         gl_cv_func_signbit_gcc to "guessing yes".
187
188 2012-05-05  Bruno Haible  <bruno@clisp.org>
189
190         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
191         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
192         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
193         to "guessing yes".
194         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
195         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
196
197 2012-05-05  Bruno Haible  <bruno@clisp.org>
198
199         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
200         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
201         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
202         gl_cv_func_realpath_works to "guessing yes".
203
204 2012-05-05  Bruno Haible  <bruno@clisp.org>
205
206         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
208         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
209
210 2012-05-04  Bruno Haible  <bruno@clisp.org>
211
212         Tweak last commit.
213         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
214         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
215
216 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
217
218         unistd_h: make it easier to avoid sys_types_h
219         This is useful for Emacs, which has its own method of porting to
220         Windows, and which therefore does not need the sys_types_h module.
221         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
222         code moved here from gl_SYS_TYPES_H.
223         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
224         using the code directly.
225         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
226         gl_SYS_TYPES_H.
227         * modules/sys_types (Files):
228         * modules/unistd (Files): Add m4/off_t.m4.
229
230 2012-05-03  Bruno Haible  <bruno@clisp.org>
231
232         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
233         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
234         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
235         "guessing yes" or "guessing no".
236         (gl_FUNC_LSTAT): Update.
237         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
238         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
239         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
240
241 2012-05-03  Bruno Haible  <bruno@clisp.org>
242
243         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
244         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
245         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
246         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
247         cross-compiling, choose the first alternative on glibc systems.
248         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
249
250 2012-05-03  Bruno Haible  <bruno@clisp.org>
251
252         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
253         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
254         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
255
256 2012-05-03  Bruno Haible  <bruno@clisp.org>
257
258         chown: Avoid "guessing no" when cross-compiling to glibc systems.
259         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
260
261 2012-05-03  Bruno Haible  <bruno@clisp.org>
262
263         Avoid "guessing no" guesses when cross-compiling to glibc systems.
264         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
265         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
266         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
267         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
268         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
269         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
270         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
271         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
272         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
273         compiling to glibc systems, set gl_cv_func_chown_slash_works,
274         gl_cv_func_chown_ctime_works to "guessing yes".
275         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
276         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
277         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
278         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
279         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
281         compiling to glibc systems, set gl_cv_func_open_directory_works to
282         "guessing yes".
283         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
284         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
285         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
286         "guessing yes".
287         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
288         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
289         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
290         compiling to glibc systems, set gl_cv_func_floorf_ieee to
291         "guessing yes".
292         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
293         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
294         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
295         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
296         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
297         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
298         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
299         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
300         "guessing yes".
301         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
302         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
303         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
304         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
305         "guessing yes".
306         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
307         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
308         "guessing yes".
309         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
310         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
311         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
312         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
313         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
314         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
315         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
316         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
317         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
318         compiling to glibc systems, set gl_cv_func_log10f_ieee to
319         "guessing yes".
320         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
321         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
322         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
323         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
324         "guessing yes".
325         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
326         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
327         "guessing yes".
328         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
329         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
330         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
331         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
332         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
333         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
334         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
335         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
336         compiling to glibc systems, set gl_cv_func_mkfifo_works to
337         "guessing yes".
338         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
339         compiling to glibc systems, set gl_cv_func_mknod_works to
340         "guessing yes".
341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
342         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
343         "guessing yes".
344         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
345         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
346         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
347         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
348         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
349         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
350         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
351         compiling to glibc systems, set gl_cv_func_svid_putenv to
352         "guessing yes".
353         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
354         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
355         "guessing yes".
356         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
357         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
358         "guessing yes".
359         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
360         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
361         to "guessing yes".
362         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
363         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
364         to "guessing yes".
365         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
366         compiling to glibc systems, set gl_cv_func_rmdir_works to
367         "guessing yes".
368         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
369         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
370         gl_cv_func_unlink_parent_fails to "guessing yes".
371         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
372         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
373         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
374         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
375         gl_cv_func_rename_dest_works to "guessing yes".
376         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
377         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
378         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
379         compiling to glibc systems, set gl_cv_func_roundf_ieee to
380         "guessing yes".
381         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
382         compiling to glibc systems, set gl_cv_func_roundl_ieee to
383         "guessing yes".
384         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
385         compiling to glibc systems, set gl_cv_func_setenv_works to
386         "guessing yes".
387         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
388         compiling to glibc systems, set gl_cv_func_unsetenv_works to
389         "guessing yes".
390         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
391         compiling to glibc systems, set gl_cv_func_sleep_works to
392         "guessing yes".
393         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
394         compiling to glibc systems, set gl_cv_func_stat_file_slash to
395         "guessing yes".
396         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
397         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
398         "guessing yes".
399         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
400         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
401         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
402         compiling to glibc systems, set gl_cv_func_truncf_ieee to
403         "guessing yes".
404         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
405         compiling to glibc systems, set gl_cv_func_truncl_ieee to
406         "guessing yes".
407         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
408         compiling to glibc systems, set gl_cv_func_usleep_works to
409         "guessing yes".
410         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
411         compiling to glibc systems, set gl_cv_func_futimesat_works to
412         "guessing yes".
413
414 2012-05-03  Bruno Haible  <bruno@clisp.org>
415
416         Say "guessing yes" or "guessing no" when cross-compiling.
417         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
418         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
419         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
420         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
421         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
422         am_cv_func_working_getline to "guessing yes" or "guessing no".
423         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
424         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
425         (gl_FUNC_MEMMEM): When cross-compiling, set
426         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
428         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
429         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
430         set gl_cv_func_strcasestr_works_always to "guessing yes" or
431         "guessing no".
432         (gl_FUNC_STRCASESTR): When cross-compiling, set
433         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
434         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
435         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
436         (gl_FUNC_STRSTR): When cross-compiling, set
437         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
438         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
439         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
440         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
441         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
442
443 2012-05-01  Bruno Haible  <bruno@clisp.org>
444
445         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
446         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
447         * build-aux/reloc-ldflags: Likewise.
448         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
449
450 2012-05-01  Bruno Haible  <bruno@clisp.org>
451
452         gnulib-tool: Remove transitional code.
453         * gnulib-tool: Don't warn about --import with 0 arguments any more.
454         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
455
456 2012-05-01  Bruno Haible  <bruno@clisp.org>
457
458         getcwd: Fix misindentation.
459         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
460
461 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
462
463         exclude: process exclude and include directives in order
464         This restores the pre-2009 behavior, and is part of a fix of a
465         grep bug reported by Quentin Arce in
466         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
467         * lib/exclude.c (struct exclude): Remove 'tail' member.
468         (new_exclude_segment): Prepend the new segment instead of appending.
469         Return void, since that's now more convenient.
470         (file_pattern_matches): Renamed from excluded_file_pattern_p.
471         (file_name_matches): Renamed from excluded_file_name_p.
472         (file_pattern_matches, file_name_matches):
473         Return true if the pattern matches, not if it excludes.
474         All callers changed.
475         (excluded_file_name): Process the list in reverse order;
476         since the list is now reversed this restores the pre-2009 behavior.
477         (add_exclude): Adjust to new reversed-order list.  Use local var
478         rather than macro, for clarity.
479         * tests/test-exclude7.sh: Adjust to corrected behavior.
480
481         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
482         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
483         it's not possible here.  Handle the case of \ at end of pattern
484         without dumping core.
485         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
486
487         _Noreturn: future-proof non-GNU and non-MSVC compilers
488         * build-aux/snippet/_Noreturn.h (_Noreturn):
489         * m4/gnulib-common.m4 (gl_COMMON_BODY):
490         Do not define _Noreturn if __STDC_VERSION__ indicates this is
491         C11 or later.  This is more likely to work with random future C
492         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
493         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
494
495         exclude: handle wildcards with FNM_EXTMATCH
496         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
497         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
498         comment that "has wildcards" really means "has or may have
499         wildcards".  Simplify by avoiding the need to call strcspn.
500
501 2012-04-29  Bruno Haible  <bruno@clisp.org>
502
503         gnulib-tool: Fix list of authors.
504         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
505
506 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
507
508         bootstrap: support Automake-NG in $buildreq
509         * bootstrap (check_versions): Handle automake and aclocal from
510         Automake-NG specially.  They can be specified as respectively
511         the "automake-ng" and "aclocal-ng" requirements.
512
513 2012-04-25  Eric Blake  <eblake@redhat.com>
514
515         bootstrap: only force latest Makefile.in.in for gettext module
516         * build-aux/bootstrap (with_gettext): Only install latest
517         Makefile.in.in for projects requesting bleeding edge gettext.
518
519 2012-04-22  Bruno Haible  <bruno@clisp.org>
520
521         doc: Mention reason for replacement on glibc/Linux systems.
522         * doc/posix-functions/dprintf.texi: Mention the problem with special
523         'long double' values.
524         * doc/posix-functions/fprintf.texi: Likewise.
525         * doc/posix-functions/printf.texi: Likewise.
526         * doc/posix-functions/snprintf.texi: Likewise.
527         * doc/posix-functions/sprintf.texi: Likewise.
528         * doc/posix-functions/vdprintf.texi: Likewise.
529         * doc/posix-functions/vfprintf.texi: Likewise.
530         * doc/posix-functions/vprintf.texi: Likewise.
531         * doc/posix-functions/vsnprintf.texi: Likewise.
532         * doc/posix-functions/vsprintf.texi: Likewise.
533         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
534         platforms with F_DUPFD_CLOEXEC problems.
535         * doc/posix-functions/glob.texi: Mention which platforms are affected
536         by the problem with symbolic links.
537         * doc/posix-functions/linkat.texi: Mention the problem with
538         AT_SYMLINK_FOLLOW on Linux.
539
540 2012-04-22  Bruno Haible  <bruno@clisp.org>
541
542         pwrite: Don't replace on all platforms.
543         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
544
545 2012-04-22  Bruno Haible  <bruno@clisp.org>
546
547         rint* tests: Avoid gcc warnings.
548         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
549         * tests/test-rintf.c (INFINITY, NAN): Likewise.
550         * tests/test-rintl.c (INFINITY, NAN): Likewise.
551
552 2012-04-21  Bruno Haible  <bruno@clisp.org>
553
554         users.txt: Update.
555         * users.txt: Add freedink, wdiff. Update URLs for projects that have
556         switched from CVS to git, bzr, or svn.
557
558 2012-04-21  Bruno Haible  <bruno@clisp.org>
559
560         Large File Support for native Windows platforms.
561
562         * m4/largefile.m4 (gl_LARGEFILE): New macro.
563         * modules/largefile (configure.ac): Require gl_LARGEFILE.
564
565         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
566         type.
567         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
568         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
569         * doc/posix-headers/sys_types.texi: Mention the effect of the
570         'largefile' module.
571
572         * lib/fcntl.in.h: Add comments about off_t.
573         * modules/fcntl-h (Depends-on): Add sys_types.
574
575         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
576         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
577         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
578         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
579         * modules/unistd (Depends-on): Add sys_types.
580         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
581
582         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
583         instead of lseek.
584         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
585         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
586         * modules/lseek (Depends-on): Add sys_types.
587
588         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
589         msvc-nothrow.h.
590         (SetFileSize): New function.
591         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
592         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
593         if Large File Support is requested.
594         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
595         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
596
597         * lib/stdio.in.h: Add comments about off_t.
598         * modules/stdio (Depends-on): Add sys_types.
599
600         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
601         instead of ftello.
602         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
603         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
604         (gl_PREREQ_FTELLO): New macro.
605         * modules/ftello (Depends-on): Add sys_types.
606         (configure.ac): Incoke gl_PREREQ_FTELLO.
607
608         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
609         instead of fseeko.
610         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
611         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
612         (gl_PREREQ_FSEEKO): New macro.
613         * modules/fseeko (Depends-on): Add sys_types.
614         (configure.ac): Invoke gl_PREREQ_FSEEKO.
615
616         * lib/sys_stat.in.h: Add comments about off_t.
617         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
618         64-bit integer for st_size in 'struct stat'.
619         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
620         Define _GL_WINDOWS_64_BIT_ST_SIZE.
621         * modules/sys_stat (Depends-on): Add sys_types.
622         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
623
624         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
625         instead of stat or _stat.
626
627         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
628         'struct _stati64' instead of fstat and 'struct stat'.
629         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
630         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
631
632         Reported by Ray Satiro <raysatiro@yahoo.com>.
633
634 2012-04-19  Eric Blake  <eblake@redhat.com>
635
636         bootstrap: accommodate older libtool
637         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
638         Reported by Daniel P. Berrange.
639
640 2012-04-19  Jim Meyering  <meyering@redhat.com>
641
642         announce-gen: avoid failure due to lack of Digest::SHA1
643         Even with the preferred Digest::SHA available, this script
644         would fail when the backup module, Digest::SHA1, was not installed.
645         * build-aux/announce-gen: Quote the conditional use of "use".
646         Reported by Reuben Thomas in:
647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
648
649         bootstrap: don't let a user's CDPATH setting affect this script
650         When CDPATH is set, cd will sometimes generate output.
651         When "cd" is run in a subshell whose output matters, that
652         surprising-to-some output can cause malfunction.
653         Unsetting CDPATH turns off this shell "feature."
654         * build-aux/bootstrap (CDPATH): Unset.
655         Reported by Reuben Thomas in:
656         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
657         and inspired by his patch here:
658         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
659
660 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
661         and Jim Meyering  <meyering@redhat.com>
662
663         maint.mk: catch "see @xref{}" and similar
664         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
665         prohibit "See also @xref{", "Also see @pxref{", and similar.
666
667 2012-04-16  Jim Meyering  <meyering@redhat.com>
668
669         bootstrap: really use gnulib's po/Makefile.in.in
670         * build-aux/bootstrap: Correct the source file name in previous change.
671         Reported by Akim Demaille.
672
673         configmake: correct minor inconsistency in Makefile rule
674         * modules/configmake (Makefile.am): All other rules like this one
675         run the final "mv -f ..." in the same backslash-continued command
676         as the one that does everything else.  This one put the mv -f ...
677         command on a separate, non-backslash-continued line.
678         Make it like the others.
679
680         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
681         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
682         the one from gettext.  Reported by Akim Demaille.
683
684 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
685
686         Fix recursion of install-* into po directories.
687         Bison's install-pdf bug reported by Hans Aberg at
688         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
689         * build-aux/po/Makefile.in.in (install-dvi, install-html)
690         (install-info, install-pdf, install-ps): New targets.
691
692 2012-04-16  Jim Meyering  <meyering@redhat.com>
693
694         maint: avoid spurious "make sc_maint" failure
695         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
696         exempt all *.class file names, for lib/javaversion.class.
697
698 2012-04-15  Bruno Haible  <bruno@clisp.org>
699
700         lseek: Make configure test independent of environment.
701         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
702         Windows, we know that lseek() on pipes is broken; skip the runtime
703         test.
704
705 2012-04-14  Bruno Haible  <bruno@clisp.org>
706
707         stat: Bypass buggy override in mingw64.
708         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
709         * lib/stat.c (stat) [mingw64]: Define to _stat.
710         * doc/posix-functions/stat.texi: Mention mingw64 bug.
711
712 2012-04-14  Bruno Haible  <bruno@clisp.org>
713
714         pathmax: Fix compilation error on MSVC 9.
715         * modules/pathmax (Depends-on): Add unistd.
716
717 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
718
719         README: document pointer comparison assumption
720         * README (Portability guidelines): Document assumption about
721         pointer comparisons, in response to a recent bug-gnulib comment by
722         Jeffrey Kegler.
723
724 2012-04-12  Bruno Haible  <bruno@clisp.org>
725
726         Tests for module 'getrusage'.
727         * modules/getrusage-tests: New file.
728         * tests/test-getrusage.c: New file.
729
730         New module 'getrusage'.
731         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
732         warn-on-use.h.
733         (getrusage): New declaration.
734         * lib/getrusage.c: New file.
735         * m4/getrusage.m4: New file.
736         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
737         is declared.
738         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
739         HAVE_GETRUSAGE.
740         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
741         snippet/c++defs, snippet/warn-on-use.
742         (Makefile.am): Update generation of sys/resource.h. Substitute
743         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
744         * modules/getrusage: New file.
745         * doc/posix-functions/getrusage.texi: Mention the new module.
746
747 2012-04-12  Bruno Haible  <bruno@clisp.org>
748
749         Tests for module 'sys_resource'.
750         * modules/sys_resource-tests: New file.
751         * tests/test-sys_resource.c: New file.
752
753         New module 'sys_resource'.
754         * lib/sys_resource.in.h: New file.
755         * m4/sys_resource_h.m4: New file.
756         * modules/sys_resource: New file.
757         * doc/posix-headers/sys_resource.texi: Mention the new module.
758
759 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
760
761         ioctl: Fix compilation error on mingw.
762         * lib/ioctl.c: Include <windows.h>.
763         Also reported by Ray Satiro <raysatiro@yahoo.com>.
764
765 2012-04-04  Jim Meyering  <meyering@redhat.com>
766
767         regex: correct #pragma guard expression
768         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
769         not 4.3.  Correct its cpp guard expression.
770
771 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
772
773         regex: remove unnecessary type punning
774         Problem reported by Vladimir Serbinenko in
775         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
776         * lib/regex.h (struct re_pattern_buffer): Change the type of
777         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
778         Fix comment to match code.
779         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
780         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
781         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
782         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
783         (set_regs):
784         Omit no-longer-necessary casts.
785
786 2012-04-03  Bruno Haible  <bruno@clisp.org>
787
788         Tests for module 'ilogbl'.
789         * modules/ilogbl-tests: New file.
790         * tests/test-ilogbl.c: New file.
791
792         New module 'ilogbl'.
793         * lib/math.in.h (ilogbl): New declaration.
794         * lib/ilogbl.c: New file.
795         * m4/ilogbl.m4: New file.
796         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
798         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
799         Split sed invocation, to avoid the limit of 100 substitutions of
800         HP-UX 'sed'.
801         * modules/ilogbl: New file.
802         * tests/test-math-c++.cc: Check the declaration of ilogbl.
803         * doc/posix-functions/ilogbl.texi: Mention the new module.
804
805 2012-04-03  Bruno Haible  <bruno@clisp.org>
806
807         Tests for module 'ilogbf'.
808         * modules/ilogbf-tests: New file.
809         * tests/test-ilogbf.c: New file.
810
811         New module 'ilogbf'.
812         * lib/math.in.h (ilogbf): New declaration.
813         * lib/ilogbf.c: New file.
814         * m4/ilogbf.m4: New file.
815         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
817         REPLACE_ILOGBF.
818         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
819         REPLACE_ILOGBF.
820         * modules/ilogbf: New file.
821         * tests/test-math-c++.cc: Check the declaration of ilogbf.
822         * doc/posix-functions/ilogbf.texi: Mention the new module.
823
824 2012-04-03  Bruno Haible  <bruno@clisp.org>
825
826         Tests for module 'ilogb'.
827         * modules/ilogb-tests: New file.
828         * tests/test-ilogb.c: New file.
829         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
830         tests/test-logb-ieee.h.
831
832         New module 'ilogb'.
833         * lib/math.in.h (ilogb): New declaration.
834         * lib/ilogb.c: New file.
835         * m4/ilogb.m4: New file.
836         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
837         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
838         REPLACE_ILOGB.
839         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
840         REPLACE_ILOGB.
841         * modules/ilogb: New file.
842         * tests/test-math-c++.cc: Check the declaration of ilogb.
843         * doc/posix-functions/ilogb.texi: Mention the new module.
844
845 2012-04-03  Bruno Haible  <bruno@clisp.org>
846
847         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
848         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
849         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
850         (main): Check their values.
851         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
852         problem.
853
854 2012-04-03  Bruno Haible  <bruno@clisp.org>
855
856         Tests for module 'logbl-ieee'.
857         * modules/logbl-ieee-tests: New file.
858         * tests/test-logbl-ieee.c: New file.
859
860         New module 'logbl-ieee'.
861         * modules/logbl-ieee: New file.
862
863         Tests for module 'logb-ieee'.
864         * modules/logb-ieee-tests: New file.
865         * tests/test-logb-ieee.c: New file.
866
867         New module 'logb-ieee'.
868         * modules/logb-ieee: New file.
869
870         Tests for module 'logbf-ieee'.
871         * modules/logbf-ieee-tests: New file.
872         * tests/test-logbf-ieee.c: New file.
873         * tests/test-logb-ieee.h: New file.
874
875         New module 'logbf-ieee'.
876         * modules/logbf-ieee: New file.
877
878 2012-04-03  Bruno Haible  <bruno@clisp.org>
879
880         Tests for module 'logbl'.
881         * modules/logbl-tests: New file.
882         * tests/test-logbl.c: New file.
883
884         New module 'logbl'.
885         * lib/math.in.h (logbl): New declaration.
886         * lib/logbl.c: New file.
887         * m4/logbl.m4: New file.
888         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
889         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
890         REPLACE_LOGBL.
891         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
892         REPLACE_LOGBL.
893         * modules/logbl: New file.
894         * tests/test-math-c++.cc: Check the declaration of logbl.
895         * doc/posix-functions/logbl.texi: Mention the new module.
896
897 2012-04-02  Bruno Haible  <bruno@clisp.org>
898
899         Tests for module 'logbf'.
900         * modules/logbf-tests: New file.
901         * tests/test-logbf.c: New file.
902
903         New module 'logbf'.
904         * lib/math.in.h (logbf): New declaration.
905         * lib/logbf.c: New file.
906         * m4/logbf.m4: New file.
907         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
909         REPLACE_LOGBF.
910         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
911         REPLACE_LOGBF.
912         * modules/logbf: New file.
913         * tests/test-math-c++.cc: Check the declaration of logbf.
914         * doc/posix-functions/logbf.texi: Mention the new module.
915
916 2012-04-02  Bruno Haible  <bruno@clisp.org>
917
918         logb tests: More tests.
919         * tests/test-logb.h: New file, based on tests/test-logb.c and
920         tests/test-frexp.h.
921         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
922         (main): Just invoke test_function.
923         * modules/logb-tests (Files): Add tests/test-logb.h,
924         tests/minus-zero.h, tests/randomd.c.
925         (Makefile.am): Add randomd.c to test_logb_SOURCES.
926
927         logb: Provide replacement and workarounds.
928         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
929         is 1.
930         * lib/logb.c: New file.
931         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
932         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
933         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
934         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
935         * modules/logb (Files): Add lib/logb.c.
936         (Depends-on): Add isfinite, frexp, isnand.
937         (configure.ac): Compile the replacement code logb.c if needed.
938         * tests/test-math-c++.cc: Check the declaration of logb.
939         * doc/posix-functions/logb.texi: Mention the replacement and the bug
940         with subnormal numbers.
941
942 2012-04-02  Bruno Haible  <bruno@clisp.org>
943
944         log10* tests: Speed up.
945         * tests/test-log10.h (test_function): Reduce amount of random numbers
946         to test.
947
948 2012-04-01  Bruno Haible  <bruno@clisp.org>
949
950         logf-ieee: Fix test whether logf works.
951         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
952
953 2012-04-01  Bruno Haible  <bruno@clisp.org>
954
955         log10l: Work around log10l-ieee test failure on IRIX 6.5.
956         * lib/log10l.c: Include <float.h>
957         (log10l): On IRIX, normalize the +Infinity value.
958         * modules/log10l (Depends-on): Add 'float'.
959         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
960         +Infinity.
961
962         log10f-ieee: Work around test failure on NetBSD 5.1.
963         * m4/log10f-ieee.m4: New file.
964         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
965         test whether log10f works with a negative argument. Replace it if not.
966         * lib/log10f.c (log10f): For negative arguments, return NaN.
967         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
968         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
969         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
970
971         log10f-ieee: Work around test failure on Solaris 9.
972         * modules/log10f-ieee (Depends-on): Add log10-ieee.
973         (configure.ac): Require gl_FUNC_LOG10F.
974
975         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
976         * m4/log10-ieee.m4: New file.
977         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
978         whether log10 works with a negative argument. Replace it if not.
979         * lib/log10.c (log10): For negative arguments, return NaN.
980         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
981         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
982         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
983
984         Tests for module 'log10l-ieee'.
985         * modules/log10l-ieee-tests: New file.
986         * tests/test-log10l-ieee.c: New file.
987
988         New module 'log10l-ieee'.
989         * modules/log10l-ieee: New file.
990
991         Tests for module 'log10-ieee'.
992         * modules/log10-ieee-tests: New file.
993         * tests/test-log10-ieee.c: New file.
994
995         New module 'log10-ieee'.
996         * modules/log10-ieee: New file.
997
998         Tests for module 'log10f-ieee'.
999         * modules/log10f-ieee-tests: New file.
1000         * tests/test-log10f-ieee.c: New file.
1001         * tests/test-log10-ieee.h: New file.
1002
1003         New module 'log10f-ieee'.
1004         * modules/log10f-ieee: New file.
1005
1006 2012-04-01  Bruno Haible  <bruno@clisp.org>
1007
1008         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
1009         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
1010         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
1011         workaround.
1012         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
1013         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
1014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
1015         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
1016         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
1017         (Depends-on): Update conditions.
1018         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
1019         IRIX 6.5, OSF/1 5.1 problems.
1020
1021 2012-04-01  Bruno Haible  <bruno@clisp.org>
1022
1023         log10f: Work around OSF/1 5.1 bug.
1024         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
1025         * lib/log10f.c (log10f): If logf exists, use it and provide just the
1026         workaround.
1027         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
1028         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
1029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
1030         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
1031         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
1032         (Depends-on): Update conditions.
1033         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
1034
1035 2012-04-01  Bruno Haible  <bruno@clisp.org>
1036
1037         log10: Work around OSF/1 5.1 bug.
1038         * lib/math.in.h (log10): New declaration.
1039         * lib/log10.c: New file.
1040         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
1041         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
1042         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
1043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
1044         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
1045         * modules/log10 (Files): Add lib/log10.c.
1046         (Depends-on): Add math.
1047         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
1048         * tests/test-math-c++.cc: Check the declaration of log10.
1049         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
1050
1051 2012-03-31  Bruno Haible  <bruno@clisp.org>
1052
1053         log10l tests: More tests.
1054         * modules/log10l-tests (Files): Add tests/test-log10l.h,
1055         tests/minus-zero.h, tests/randoml.c.
1056         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
1057         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
1058         (main): Invoke test_function.
1059
1060         log10f tests: More tests.
1061         * modules/log10f-tests (Files): Add tests/test-log10.h,
1062         tests/minus-zero.h, tests/randomf.c.
1063         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
1064         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
1065         (main): Invoke test_function.
1066
1067         log10 tests: More tests.
1068         * tests/test-log10.h: New file.
1069         * modules/log10-tests (Files): Add tests/test-log10.h,
1070         tests/minus-zero.h, tests/randomd.c.
1071         (Makefile.am): Add randomd.c to test_log10_SOURCES.
1072         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
1073         (main): Invoke test_function.
1074
1075 2012-03-31  Simon Josefsson  <simon@josefsson.org>
1076
1077         fflush: Fix syntax error.
1078         * lib/fflush.c: Include unused-parameter.h, needed for
1079         _GL_UNUSED_PARAMETER.
1080         * modules/fflush (Depends-on): Add snippet/unused-parameter.
1081
1082 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         regex: pacify GCC when compiling GRUB
1085         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
1086         a diagnostic.  Reported by Vladimir Serbinenko in
1087         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
1088
1089 2012-03-29  Eric Blake  <eblake@redhat.com>
1090
1091         stdio: don't assume gets any more
1092         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
1093         support.
1094         * modules/stdio (Makefile.am): Likewise.
1095         * lib/stdio-read.c (gets): Likewise.
1096         * tests/test-stdio-c++.cc: Likewise.
1097         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
1098         * lib/stdio.in.h (gets): Make warning occur in more places.
1099         * doc/posix-functions/gets.texi (gets): Update documentation.
1100         Reported by Christer Solskogen.
1101
1102         maint.mk: fix syntax checks without exclusions
1103         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
1104         Reported by Daniel P. Berrange.
1105
1106         strerror_r: avoid compiler warning
1107         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
1108         level.
1109
1110         fflush: avoid compiler warning
1111         * lib/fflush.c (update_fpos_cache): Mark variables that are
1112         potentially unused.
1113
1114 2012-03-25  Bruno Haible  <bruno@clisp.org>
1115
1116         Tests for module 'localeconv'.
1117         * modules/localeconv-tests: New file.
1118         * tests/test-localeconv.c: New file.
1119
1120         New module 'localeconv'.
1121         * lib/locale.in.h (localeconv): New declaration.
1122         * lib/localeconv.c: New file.
1123         * m4/localeconv.m4: New file.
1124         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
1125         REPLACE_LOCALECONV.
1126         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
1127         REPLACE_LOCALECONV.
1128         * modules/localeconv: New file.
1129         * modules/nl_langinfo (Depends-on): Add localeconv.
1130         * modules/human (Depends-on): Likewise.
1131         * doc/posix-functions/localeconv.texi: Mention the new module.
1132
1133 2012-03-25  Bruno Haible  <bruno@clisp.org>
1134
1135         locale: Provide a complete 'struct lconv'.
1136         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1137         'struct lconv' does not contain int_p_cs_precedes.
1138         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1139         * doc/posix-headers/locale.texi: Update.
1140
1141         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
1142         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
1143         * doc/posix-headers/locale.texi: Update.
1144
1145         locale: Provide a working 'struct lconv'.
1146         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
1147         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
1148         'struct lconv' does not even contain decimal_point.
1149         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
1150         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
1151         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
1152         * doc/posix-headers/locale.texi: Mention the problems with
1153         'struct lconv'.
1154         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1155
1156 2012-03-24  Bruno Haible  <bruno@clisp.org>
1157
1158         Enable common subexpression optimization in GCC.
1159         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
1160         macros.
1161         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
1162         GCC attribute 'const'.
1163         (uc_locale_language): Declare with GCC attribute 'pure'.
1164         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
1165         with GCC attribute 'const'.
1166         * lib/unictype.in.h (uc_is_general_category_withtable,
1167         uc_combining_class, uc_combining_class_name,
1168         uc_combining_class_long_name, uc_bidi_class_name,
1169         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
1170         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
1171         uc_decimal_value, uc_digit_value, uc_numeric_value,
1172         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
1173         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
1174         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
1175         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
1176         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
1177         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
1178         Declare with GCC attribute 'const'.
1179         (uc_general_category_name, uc_general_category_long_name,
1180         uc_general_category_byname, uc_general_category,
1181         uc_is_general_category, uc_combining_class_byname,
1182         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
1183         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
1184         Declare with GCC attribute 'pure'.
1185         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
1186         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
1187         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
1188         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
1189         with GCC attribute 'pure'.
1190         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
1191         'const'.
1192         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
1193         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
1194         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
1195         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
1196         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
1197         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
1198         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
1199         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
1200         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
1201         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
1202         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
1203         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
1204         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
1205         GCC attribute 'pure'.
1206         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
1207         'const'.
1208         * lib/uniwidth.in.h (uc_width): Simplify declaration.
1209         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
1210         u32_strwidth): Declare with GCC attribute 'pure'.
1211
1212         Enable common subexpression optimization in GCC.
1213         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1214         (alphasort): Declare with GCC attribute 'pure'.
1215         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1216         (atoll): Declare with GCC attribute 'pure'.
1217         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1218         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1219         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
1220         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
1221         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
1222         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
1223         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
1224
1225 2012-03-24  Bruno Haible  <bruno@clisp.org>
1226
1227         gnulib-tool: Avoid unintended error output from 'cmp'.
1228         * gnulib-tool (func_add_file, func_update_file, func_import): Use
1229         "cmp -s", not "cmp > /dev/null".
1230
1231 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
1232
1233         gnulib-tool: fix imprecise comments w.r.t. an automake bug
1234
1235         It's not just Automake versions < 1.9b that creates an empty
1236         pkgdatadir at installation time if pkgdata_DATA is specified
1237         to empty; modern automake versions do this as well, at least
1238         until automake 1.11.4 (not yet released at the moment of writing,
1239         but soon to appear).  That behaviour was generally considered a
1240         feature rather than a bug, at least until this discussion:
1241         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
1242
1243         See also automake bugs #10997 and #11030.
1244
1245         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
1246         reference to relevant automake bug numbers.
1247         (func_emit_tests_Makefile_am): Likewise.
1248
1249 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1250
1251         announce-gen: use Digest::SHA when possible
1252         * build-aux/announce-gen: Use Digest::SHA when possible, falling
1253         back to Digest::SHA1 if necessary.
1254
1255 2012-03-20  Jim Meyering  <meyering@redhat.com>
1256
1257         tests: avoid gcc warnings about argv vs. const initializers
1258         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
1259         warnings about discarding 'const' qualifier from pointer target type.
1260         * tests/test-posix_spawn2.c (main): Likewise.
1261
1262 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
1263
1264         README-release: simplify slightly
1265         * top/README-release: Run "git checkout master" only once.
1266
1267 2012-03-15  Mark Wielaard  <mark@klomp.org>
1268
1269         git-merge-changelog: add specific example on how to use with hg.
1270         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
1271
1272 2012-03-18  Mark Wielaard  <mark@klomp.org>
1273
1274         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
1275
1276 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
1277
1278         git-version-gen: don't let "prefix" envvar cause trouble
1279         * build-aux/git-version-gen (prefix): Initialize properly,
1280         so as not to use a value specified via the environment.
1281         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
1282
1283 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1284
1285         regex: diagnose too-large repeat counts in EREs
1286         Previously, the code did not diagnose the too-large repeat count
1287         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
1288         as if it were 'b\{1000000000}', which is unexpected.
1289         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
1290         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
1291         is a reasonable one for this problem.  Another option would be to
1292         create a new REG_OVERFLOW error for repeat counts that are too large.
1293         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
1294         count is too large, so that the caller can distinguish the two cases.
1295         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
1296         "Too large" return code, and that repeat counts are one example of this.
1297
1298 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
1299
1300         doc: some glibc x32 integer width issues
1301         * doc/posix-headers/sys_types.texi (sys/types.h):
1302         * doc/posix-headers/time.texi (time.h):
1303         Mention that glibc x32 does not conform to POSIX in a couple of
1304         areas related to integer widths.
1305
1306 2012-03-15  Bruno Haible  <bruno@clisp.org>
1307
1308         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
1309         * lib/fma.c (VOLATILE): New macro.
1310         (FUNC): Use it to work around a GCC compiler bug.
1311
1312 2012-03-13  Bruno Haible  <bruno@clisp.org>
1313
1314         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1315         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
1316         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
1317         REPLACE_HYPOTL to 1.
1318         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
1319
1320 2012-03-13  Bruno Haible  <bruno@clisp.org>
1321
1322         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1323         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
1324         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
1325         REPLACE_REMAINDERL to 1.
1326         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
1327         bug.
1328
1329 2012-03-13  Bruno Haible  <bruno@clisp.org>
1330
1331         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1332         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
1333         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
1334         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
1335         too big rounding errors.
1336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
1337         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
1338         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
1339         (Depends-on): Update conditions.
1340         * tests/test-sqrtl.c (my_ldexpl): New function.
1341         (main): Add test of a particular value.
1342         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1343
1344 2012-03-13  Pádraig Brady  <P@draigBrady.com>
1345
1346         doc: Update timer_* platform portability notes.
1347         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
1348         that always return ENOSYS.
1349         * doc/posix-functions/timer_delete.texi: Likewise.
1350         * doc/posix-functions/timer_gettime.texi: Likewise.
1351         * doc/posix-functions/timer_settime.texi: Likewise.
1352
1353 2012-03-13  Bruno Haible  <bruno@clisp.org>
1354
1355         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
1356         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
1357         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
1358         REPLACE_CBRTL to 1.
1359         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
1360
1361 2012-03-13  Bruno Haible  <bruno@clisp.org>
1362
1363         remainderl: Avoid compilation error on AIX >= 5.2.
1364         * lib/math.in.h (remainderl): Undefine macro from the system header.
1365
1366 2012-03-13  Bruno Haible  <bruno@clisp.org>
1367
1368         Avoid compilation errors with MSVC option -fp:strict.
1369         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
1370         * lib/cbrtf.c: Likewise.
1371         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1372
1373 2012-03-12  Bruno Haible  <bruno@clisp.org>
1374
1375         uninorm: Don't crash in out-of-memory conditions.
1376         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
1377         gracefully.
1378         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
1379         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
1380
1381 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
1382
1383         quote: fix syntax-check
1384         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
1385         also exports quote_quoting_options.
1386
1387 2012-03-12  Simon Josefsson  <simon@josefsson.org>
1388
1389         Collapse list of copyright years to ranges.  See
1390         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
1391         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
1392         build-aux/csharpexec.sh.in, build-aux/gnupload,
1393         build-aux/install-reloc, build-aux/javacomp.sh.in,
1394         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
1395         build-aux/move-if-change, build-aux/reloc-ldflags,
1396         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
1397
1398 2012-03-11  Bruno Haible  <bruno@clisp.org>
1399
1400         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1401         * m4/log2f-ieee.m4: New file.
1402         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
1403         whether log2f works with a minus zero argument. Replace it if not.
1404         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
1405         (Depends-on): Add log2-ieee.
1406         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
1407         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
1408
1409         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
1410         * m4/log2-ieee.m4: New file.
1411         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
1412         whether log2 works with a minus zero argument. Replace it if not.
1413         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
1414         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
1415         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
1416
1417         Tests for module 'log2l-ieee'.
1418         * modules/log2l-ieee-tests: New file.
1419         * tests/test-log2l-ieee.c: New file.
1420
1421         New module 'log2l-ieee'.
1422         * modules/log2l-ieee: New file.
1423
1424         Tests for module 'log2-ieee'.
1425         * modules/log2-ieee-tests: New file.
1426         * tests/test-log2-ieee.c: New file.
1427
1428         New module 'log2-ieee'.
1429         * modules/log2-ieee: New file.
1430
1431         Tests for module 'log2f-ieee'.
1432         * modules/log2f-ieee-tests: New file.
1433         * tests/test-log2f-ieee.c: New file.
1434         * tests/test-log2-ieee.h: New file.
1435
1436         New module 'log2f-ieee'.
1437         * modules/log2f-ieee: New file.
1438
1439 2012-03-11  Bruno Haible  <bruno@clisp.org>
1440
1441         Tests for module 'log2l'.
1442         * modules/log2l-tests: New file.
1443         * tests/test-log2l.c: New file.
1444
1445         New module 'log2l'.
1446         * lib/math.in.h (log2l): New declaration.
1447         * lib/log2l.c: New file.
1448         * m4/log2l.m4: New file.
1449         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
1450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
1451         REPLACE_LOG2L.
1452         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
1453         REPLACE_LOG2L.
1454         * modules/log2l: New file.
1455         * tests/test-math-c++.cc: Check the declaration of log2l.
1456         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
1457         and OSF/1 problems.
1458
1459 2012-03-11  Bruno Haible  <bruno@clisp.org>
1460
1461         Tests for module 'log2f'.
1462         * modules/log2f-tests: New file.
1463         * tests/test-log2f.c: New file.
1464
1465         New module 'log2f'.
1466         * lib/math.in.h (log2f): New declaration.
1467         * lib/log2f.c: New file.
1468         * m4/log2f.m4: New file.
1469         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
1470         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
1471         REPLACE_LOG2F.
1472         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
1473         REPLACE_LOG2F.
1474         * modules/log2f: New file.
1475         * tests/test-math-c++.cc: Check the declaration of log2f.
1476         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
1477         and OSF/1 and Cygwin problems.
1478
1479 2012-03-11  Bruno Haible  <bruno@clisp.org>
1480
1481         Tests for module 'log2'.
1482         * modules/log2-tests: New file.
1483         * tests/test-log2.c: New file.
1484         * tests/test-log2.h: New file.
1485
1486         New module 'log2'.
1487         * lib/math.in.h (log2): New declaration.
1488         * lib/log2.c: New file.
1489         * m4/log2.m4: New file.
1490         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
1491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
1492         REPLACE_LOG2.
1493         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
1494         REPLACE_LOG2.
1495         * modules/log2: New file.
1496         * tests/test-math-c++.cc: Check the declaration of log2.
1497         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
1498         and OSF/1 and Cygwin problems.
1499
1500 2012-03-11  Bruno Haible  <bruno@clisp.org>
1501
1502         exp2* tests: More tests.
1503         * tests/test-exp2.h (test_function): Test all integral arguments that
1504         don't need to overflow or denormalized numbers.
1505         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
1506         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
1507         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
1508
1509 2012-03-10  Bruno Haible  <bruno@clisp.org>
1510
1511         log1pl-ieee: Work around test failure on AIX 7.1.
1512         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
1513
1514         log1pl-ieee: Work around test failure on IRIX 6.5.
1515         * m4/log1pl-ieee.m4: New file.
1516         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
1517         test whether log1pl works with a minus zero argument. Replace it if
1518         not.
1519         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
1520         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
1521         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
1522         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
1523         (Depends-on): Update conditions.
1524         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1525         m4/signbit.m4.
1526         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
1527         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
1528
1529         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
1530         * m4/log1pf-ieee.m4: New file.
1531         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
1532         test whether log1pf works with a minus zero argument. Replace it if
1533         not.
1534         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
1535         m4/signbit.m4.
1536         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
1537         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
1538
1539         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
1540         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
1541         (configure.ac): Require gl_FUNC_LOG1PF.
1542
1543         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
1544         * m4/log1p-ieee.m4: New file.
1545         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
1546         whether log1p works with a minus zero argument. Replace it if not.
1547         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
1548         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
1549         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
1550         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
1551         (Depends-on): Update conditions.
1552         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
1553         m4/signbit.m4.
1554         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
1555         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
1556
1557         Tests for module 'log1pl-ieee'.
1558         * modules/log1pl-ieee-tests: New file.
1559         * tests/test-log1pl-ieee.c: New file.
1560
1561         New module 'log1pl-ieee'.
1562         * modules/log1pl-ieee: New file.
1563
1564         Tests for module 'log1p-ieee'.
1565         * modules/log1p-ieee-tests: New file.
1566         * tests/test-log1p-ieee.c: New file.
1567
1568         New module 'log1p-ieee'.
1569         * modules/log1p-ieee: New file.
1570
1571         Tests for module 'log1pf-ieee'.
1572         * modules/log1pf-ieee-tests: New file.
1573         * tests/test-log1pf-ieee.c: New file.
1574         * tests/test-log1p-ieee.h: New file.
1575
1576         New module 'log1pf-ieee'.
1577         * modules/log1pf-ieee: New file.
1578
1579 2012-03-10  Bruno Haible  <bruno@clisp.org>
1580
1581         Tests for module 'log1pl'.
1582         * modules/log1pl-tests: New file.
1583         * tests/test-log1pl.c: New file.
1584
1585         New module 'log1pl'.
1586         * lib/math.in.h (log1pl): New declaration.
1587         * lib/log1pl.c: New file.
1588         * m4/log1pl.m4: New file.
1589         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
1590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
1591         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
1592         * modules/log1pl: New file.
1593         * tests/test-math-c++.cc: Check the declaration of log1pl.
1594         * doc/posix-functions/log1pl.texi: Mention the new module.
1595
1596 2012-03-10  Bruno Haible  <bruno@clisp.org>
1597
1598         Tests for module 'log1pf'.
1599         * modules/log1pf-tests: New file.
1600         * tests/test-log1pf.c: New file.
1601
1602         New module 'log1pf'.
1603         * lib/math.in.h (log1pf): New declaration.
1604         * lib/log1pf.c: New file.
1605         * m4/log1pf.m4: New file.
1606         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
1607         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
1608         REPLACE_LOG1PF.
1609         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
1610         REPLACE_LOG1PF.
1611         * modules/log1pf: New file.
1612         * tests/test-math-c++.cc: Check the declaration of log1pf.
1613         * doc/posix-functions/log1pf.texi: Mention the new module.
1614
1615 2012-03-10  Bruno Haible  <bruno@clisp.org>
1616
1617         log1p tests: More tests.
1618         * tests/test-log1p.h: New file.
1619         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
1620         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
1621         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
1622         (main): Invoke test_function.
1623
1624         log1p: Provide replacement for Minix and MSVC.
1625         * lib/math.in.h (log1p): New declaration.
1626         * lib/log1p.c: New file.
1627         * m4/log1p.m4: New file.
1628         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
1629         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
1630         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
1631         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
1632         (Depends-on): Add math, isnand, log, round.
1633         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
1634         HAVE_LOG1P is 0.
1635         * tests/test-math-c++.cc: Check the declaration of log1p.
1636         * doc/posix-functions/log1p.texi: Mention the replacement.
1637
1638 2012-03-10  Bruno Haible  <bruno@clisp.org>
1639
1640         math tests: Small simplification.
1641         * tests/test-exp.h (test_function): Use the same err_bound for
1642         'double' on platforms with sizeof (long double) == sizeof (double)
1643         than on platforms with sizeof (long double) > sizeof (double).
1644         * tests/test-exp2.h (test_function): Likewise.
1645         * tests/test-expm1.h (test_function): Likewise.
1646         * tests/test-log.h (test_function): Likewise.
1647
1648 2012-03-10  Bruno Haible  <bruno@clisp.org>
1649
1650         Fix some comments.
1651         * lib/expl.c: Fix an ambiguous comment.
1652         * lib/expm1.c: Likewise.
1653         * lib/expm1l.c: Likewise.
1654         * lib/exp2.c: Likewise.
1655         * lib/exp2l.c: Likewise.
1656
1657 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
1658
1659         regex: allow inclusion of <regex.h> before <limits.h>
1660         Without this patch, portable programs had to include <limits.h> before
1661         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
1662         I ran into this problem with a test version of GNU grep on Solaris 8.
1663         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
1664         This is done conditionally so that this change can be merged
1665         back to glibc.
1666         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
1667         using the included regex.
1668
1669         fts: depend on fdopendir
1670         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
1671         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
1672         problem was introduced when fdopendir was split out.
1673
1674 2012-03-10  Bruno Haible  <bruno@clisp.org>
1675
1676         Remove unused variables.
1677         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
1678         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1679
1680 2012-03-10  Bruno Haible  <bruno@clisp.org>
1681
1682         isnanf-nolibm: Fix last commit.
1683         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
1684
1685         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
1686         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
1687
1688 2012-03-10  Bruno Haible  <bruno@clisp.org>
1689
1690         logf-ieee: Work around test failure on NetBSD 5.1.
1691         * m4/logf-ieee.m4: New file.
1692         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
1693         whether logf works with a negative argument. Replace it if not.
1694         * lib/logf.c (logf): For negative arguments, return NaN.
1695         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
1696         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
1697         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
1698
1699         logf-ieee: Work around test failure on Solaris 9.
1700         * modules/logf-ieee (Depends-on): Add log-ieee.
1701         (configure.ac): Require gl_FUNC_LOGF.
1702
1703         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
1704         * m4/log-ieee.m4: New file.
1705         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
1706         log works with a negative argument. Replace it if not.
1707         * lib/log.c (log): For negative arguments, return NaN.
1708         * modules/log-ieee (Files): Add m4/log-ieee.m4.
1709         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
1710         * doc/posix-functions/log.texi: Mention the log-ieee module.
1711
1712         Tests for module 'logl-ieee'.
1713         * modules/logl-ieee-tests: New file.
1714         * tests/test-logl-ieee.c: New file.
1715
1716         New module 'logl-ieee'.
1717         * modules/logl-ieee: New file.
1718
1719         Tests for module 'log-ieee'.
1720         * modules/log-ieee-tests: New file.
1721         * tests/test-log-ieee.c: New file.
1722
1723         New module 'log-ieee'.
1724         * modules/log-ieee: New file.
1725
1726         Tests for module 'logf-ieee'.
1727         * modules/logf-ieee-tests: New file.
1728         * tests/test-logf-ieee.c: New file.
1729         * tests/test-log-ieee.h: New file.
1730
1731         New module 'logf-ieee'.
1732         * modules/logf-ieee: New file.
1733
1734 2012-03-10  Bruno Haible  <bruno@clisp.org>
1735
1736         log: Fix bug introduced on 2012-03-09.
1737         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
1738
1739 2012-03-10  Pádraig Brady  <P@draigBrady.com>
1740
1741         timer-time: link explicitly with pthreads on glibc
1742         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1743         to support static linking, when newer glibc is
1744         detected, as that contains pthread emulation of
1745         POSIX timer functions where required.
1746         * modules/timer-time: Depend on threadlib to
1747         pull in the appropriate library to link.
1748
1749 2012-03-10  Bruno Haible  <bruno@clisp.org>
1750
1751         log* tests: More tests.
1752         * tests/test-log.h: New file.
1753         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
1754         (main): Invoke test_function.
1755         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
1756         (main): Invoke test_function.
1757         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
1758         (main): Invoke test_function.
1759         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1760         tests/randomd.c.
1761         (Makefile.am): Add randomd.c to test_log_SOURCES.
1762         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1763         tests/randomf.c.
1764         (Makefile.am): Add randomf.c to test_logf_SOURCES.
1765         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
1766         tests/randoml.c.
1767         (Depends-on): Add 'float'.
1768         (Makefile.am): Add randoml.c to test_logl_SOURCES.
1769
1770 2012-03-09  Bruno Haible  <bruno@clisp.org>
1771
1772         logl: Work around OSF/1 5.1 bug.
1773         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
1774         * lib/logl.c (logl): If logl exists, use it and provide just the
1775         workaround.
1776         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
1777         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
1778         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
1779         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
1780         * modules/logl (configure.ac): Consider REPLACE_LOGL.
1781         (Depends-on): Update conditions.
1782         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
1783
1784 2012-03-09  Bruno Haible  <bruno@clisp.org>
1785
1786         logf: Work around OSF/1 5.1 bug.
1787         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
1788         * lib/logf.c (logf): If logf exists, use it and provide just the
1789         workaround.
1790         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
1791         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
1792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
1793         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
1794         * modules/logf (configure.ac): Consider REPLACE_LOGF.
1795         (Depends-on): Update conditions.
1796         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
1797
1798 2012-03-09  Bruno Haible  <bruno@clisp.org>
1799
1800         log: Work around OSF/1 5.1 bug.
1801         * lib/math.in.h (log): New declaration.
1802         * lib/log.c: New file.
1803         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
1804         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
1805         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
1806         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
1807         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1808         * modules/log (Files): Add lib/log.c.
1809         (Depends-on): Add math.
1810         (configure.ac): If REPLACE_LOG is 1, compile an override.
1811         * tests/test-math-c++.cc: Check the declaration of log.
1812         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1813
1814 2012-03-09  Jim Meyering  <meyering@redhat.com>
1815
1816         readtokens.c: adjust wording in a comment
1817         * lib/readtokens.c: Insert omitted "that" in a comment.
1818
1819 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1820
1821         modechange: add notations +40, 00440, etc.
1822         * lib/modechange.c (mode_compile): Support new notations
1823         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1824
1825 2012-03-08  Bruno Haible  <bruno@clisp.org>
1826
1827         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1828         * m4/exp2l-ieee.m4: New file.
1829         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1830         test whether exp2l works with a NaN argument and with a negative
1831         infinity argument. Replace it if not.
1832         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1833         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1834         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1835         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1836         (Depends-on): Update conditions.
1837         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1838         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1839         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1840
1841         Tests for module 'exp2l-ieee'.
1842         * modules/exp2l-ieee-tests: New file.
1843         * tests/test-exp2l-ieee.c: New file.
1844
1845         New module 'exp2l-ieee'.
1846         * modules/exp2l-ieee: New file.
1847
1848         Tests for module 'exp2-ieee'.
1849         * modules/exp2-ieee-tests: New file.
1850         * tests/test-exp2-ieee.c: New file.
1851
1852         New module 'exp2-ieee'.
1853         * modules/exp2-ieee: New file.
1854
1855         Tests for module 'exp2f-ieee'.
1856         * modules/exp2f-ieee-tests: New file.
1857         * tests/test-exp2f-ieee.c: New file.
1858         * tests/test-exp2-ieee.h: New file.
1859
1860         New module 'exp2f-ieee'.
1861         * modules/exp2f-ieee: New file.
1862
1863 2012-03-08  Bruno Haible  <bruno@clisp.org>
1864
1865         Tests for module 'exp2l'.
1866         * modules/exp2l-tests: New file.
1867         * tests/test-exp2l.c: New file.
1868
1869         New module 'exp2l'.
1870         * lib/math.in.h (exp2l): New declaration.
1871         * lib/exp2l.c: New file.
1872         * lib/expl-table.c: New file, extracted from lib/expl.c.
1873         * lib/expl.c (gl_expl_table): New declaration.
1874         (expl): Remove expl_table. Update reference.
1875         * m4/exp2l.m4: New file.
1876         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1878         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1879         * modules/exp2l: New file.
1880         * modules/expl (Files): Add lib/expl-table.c.
1881         (configure.ac): Compile also expl-table.c.
1882         * tests/test-math-c++.cc: Check the declaration of exp2l.
1883         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1884         problem.
1885
1886 2012-03-08  Bruno Haible  <bruno@clisp.org>
1887
1888         Tests for module 'exp2f'.
1889         * modules/exp2f-tests: New file.
1890         * tests/test-exp2f.c: New file.
1891
1892         New module 'exp2f'.
1893         * lib/math.in.h (exp2f): New declaration.
1894         * lib/exp2f.c: New file.
1895         * m4/exp2f.m4: New file.
1896         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1898         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1899         * modules/exp2f: New file.
1900         * tests/test-math-c++.cc: Check the declaration of exp2f.
1901         * doc/posix-functions/exp2f.texi: Mention the new module and the
1902         IRIX problem.
1903
1904 2012-03-08  Bruno Haible  <bruno@clisp.org>
1905
1906         Tests for module 'exp2'.
1907         * modules/exp2-tests: New file.
1908         * tests/test-exp2.c: New file.
1909         * tests/test-exp2.h: New file.
1910
1911         New module 'exp2'.
1912         * lib/math.in.h (exp2): New declaration.
1913         * lib/exp2.c: New file.
1914         * m4/exp2.m4: New file.
1915         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1916         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1917         REPLACE_EXP2.
1918         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1919         REPLACE_EXP2.
1920         * modules/exp2: New file.
1921         * tests/test-math-c++.cc: Check the declaration of exp2.
1922         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1923         and OpenBSD problems.
1924
1925 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1926
1927         savedir: fix comment typo
1928         * lib/savedir.c (savedirstream): Fix typo in comment.
1929
1930 2012-03-08  Bruno Haible  <bruno@clisp.org>
1931
1932         test-readtokens.c: use const; remove unwarranted cast
1933         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1934
1935 2012-03-08  Bruno Haible  <bruno@clisp.org>
1936
1937         fmal: Avoid compilation error on AIX.
1938         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1939         AIX 5.2..7.1.
1940
1941 2012-03-08  Bruno Haible  <bruno@clisp.org>
1942
1943         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1944         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1945         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1946         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1947         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1948         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1949         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1950
1951 2012-03-08  Bruno Haible  <bruno@clisp.org>
1952
1953         remainderf: Override buggy system function on IRIX 6.5.
1954         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1955         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1956         when it exists.
1957         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1958
1959 2012-03-08  Jim Meyering  <meyering@redhat.com>
1960
1961         test-readtokens.c: avoid const-related compilation warnings
1962         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1963
1964 2012-03-07  Jim Meyering  <meyering@redhat.com>
1965             Bruno Haible  <bruno@clisp.org>
1966
1967         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1968         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1969         tests/randomd.c.
1970         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1971         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1972         tests/randoml.c.
1973         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1974
1975 2012-03-07  Bruno Haible  <bruno@clisp.org>
1976
1977         expm1l: Avoid compilation error on AIX.
1978         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1979         AIX 5.2..7.1.
1980
1981 2012-03-07  Bruno Haible  <bruno@clisp.org>
1982
1983         expm1l: Don't override undeclared system function on IRIX 6.5.
1984         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1985         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1986         it exists. Set HAVE_DECL_EXPM1L.
1987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1988         HAVE_EXPM1L.
1989         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1990         HAVE_EXPM1L.
1991         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1992
1993 2012-03-07  Bruno Haible  <bruno@clisp.org>
1994
1995         remainderl: Don't override undeclared system function on IRIX 6.5.
1996         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1997         HAVE_REMAINDERL.
1998         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1999         declared when it exists. Set HAVE_DECL_REMAINDERL.
2000         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
2001         not HAVE_REMAINDERL.
2002         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
2003         HAVE_REMAINDERL.
2004         * doc/posix-functions/remainderl.texi: Mention missing declaration
2005         problem.
2006
2007 2012-03-07  Bruno Haible  <bruno@clisp.org>
2008
2009         rintf: Don't override undeclared system function on IRIX 6.5.
2010         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
2011         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
2012         exists. Set HAVE_DECL_RINTF.
2013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
2014         HAVE_RINTF.
2015         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
2016         HAVE_RINTF.
2017         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
2018
2019 2012-03-07  Bruno Haible  <bruno@clisp.org>
2020
2021         roundl: Avoid compilation error on AIX.
2022         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
2023         AIX 5.2..7.1.
2024
2025 2012-03-07  Bruno Haible  <bruno@clisp.org>
2026
2027         roundl: Don't override undeclared system function on IRIX 6.5.
2028         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
2029         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
2030         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2031         * modules/roundl (configure.ac): For replacement code, test
2032         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
2033         (Depends-on): Update conditions.
2034         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
2035
2036 2012-03-07  Bruno Haible  <bruno@clisp.org>
2037
2038         roundf: Don't override undeclared system function on IRIX 6.5.
2039         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
2040         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
2041         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2042         * modules/roundf (configure.ac): For replacement code, test
2043         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
2044         (Depends-on): Update conditions.
2045         * modules/roundf-ieee (Depends-on): Update conditions.
2046         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
2047
2048 2012-03-07  Bruno Haible  <bruno@clisp.org>
2049
2050         round: Don't override undeclared system function on IRIX 6.5.
2051         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
2052         argument.
2053         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
2054         also when it is not declared. Set HAVE_ROUND. For replacement code,
2055         test HAVE_ROUND, not HAVE_DECL_ROUND.
2056         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
2057         not HAVE_DECL_ROUND.
2058         (Depends-on): Update conditions.
2059         * modules/round-ieee (Depends-on): Update conditions.
2060         * doc/posix-functions/round.texi: Mention the IRIX problem.
2061
2062 2012-03-07  Bruno Haible  <bruno@clisp.org>
2063
2064         copysignf: Don't override undeclared system function on IRIX 6.5.
2065         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
2066         HAVE_COPYSIGNF.
2067         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
2068         declared when it exists. Set HAVE_DECL_COPYSIGNF.
2069         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
2070         not HAVE_COPYSIGNF.
2071         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
2072         HAVE_COPYSIGNF.
2073         * doc/posix-functions/copysignf.texi: Mention missing declaration
2074         problem.
2075
2076 2012-03-07  Jim Meyering  <meyering@redhat.com>
2077
2078         readtokens: add tests
2079         * modules/readtokens-tests: New file.
2080         * tests/test-readtokens.c: New file.
2081
2082 2012-03-07  Jim Meyering  <meyering@redhat.com>
2083
2084         quotearg: the module must now include quote.h
2085         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
2086         So must the module.
2087         * modules/quotearg (Files): Add quote.h.
2088
2089 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         readtokens: avoid core dumps with unusual calling patterns
2092         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
2093         * lib/readtokens.c: Include limits.h.
2094         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
2095         (readtoken): Don't cache the delimiters; the cache code was buggy
2096         if !delim && saved_delim, or if the new n_delim differs from the old.
2097         Also, it wasn't thread-safe.
2098
2099 2012-03-07  Bruno Haible  <bruno@clisp.org>
2100
2101         quote: Adhere to common module description layout.
2102         * modules/quote (Makefile.am): Add back empty section.
2103
2104 2012-03-06  Akim Demaille  <demaille@gostai.com>
2105
2106         quote: fuse into quotearg
2107         This patch is made for the benefit of Bison.
2108         quote does not leave the choice of the quoting style to the user.
2109         quoting_style provides poor customizability, yet quoting_options,
2110         which is very rich, is hidden inside quotearg.c.  So in order to
2111         allow quote customization, move its implementation to quotearg.c.
2112         * lib/quote.c: Remove.
2113         * modules/quote: Adjust.
2114         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
2115         warning: provide all the members of literal structs.
2116         (quote_quoting_options): New.
2117         (quote, quote_n): Import implementation from quote.c.
2118         * lib/quote.h: Import the comments from quote.c.
2119         (quote_quoting_options): New.
2120
2121 2012-03-06  Bruno Haible  <bruno@clisp.org>
2122
2123         Tests for module 'expm1l-ieee'.
2124         * modules/expm1l-ieee-tests: New file.
2125         * tests/test-expm1l-ieee.c: New file.
2126
2127         New module 'expm1l-ieee'.
2128         * modules/expm1l-ieee: New file.
2129
2130         Tests for module 'expm1f-ieee'.
2131         * modules/expm1f-ieee-tests: New file.
2132         * tests/test-expm1f-ieee.c: New file.
2133
2134         New module 'expm1f-ieee'.
2135         * modules/expm1f-ieee: New file.
2136
2137         Tests for module 'expm1-ieee'.
2138         * modules/expm1-ieee-tests: New file.
2139         * tests/test-expm1-ieee.c: New file.
2140         * tests/test-expm1-ieee.h: New file.
2141
2142         New module 'expm1-ieee'.
2143         * modules/expm1-ieee: New file.
2144         * m4/expm1-ieee.m4: New file.
2145         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
2146         whether expm1 works with a minus zero argument. Replace it if not.
2147         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
2148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
2149         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
2150         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
2151         (Depends-on): Update conditions.
2152         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
2153         AIX problem.
2154
2155 2012-03-06  Bruno Haible  <bruno@clisp.org>
2156
2157         Work around expm1f bug on IRIX 6.5.
2158         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
2159         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
2160         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
2161         not work.
2162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
2163         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
2164         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
2165         (Depends-on): Update conditions.
2166         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
2167
2168 2012-03-06  Bruno Haible  <bruno@clisp.org>
2169
2170         Tests for module 'expm1l'.
2171         * modules/expm1l-tests: New file.
2172         * tests/test-expm1l.c: New file.
2173
2174         New module 'expm1l'.
2175         * lib/math.in.h (expm1l): New declaration.
2176         * lib/expm1l.c: New file.
2177         * m4/expm1l.m4: New file.
2178         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
2179         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
2180         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
2181         * modules/expm1l: New file.
2182         * tests/test-math-c++.cc: Check the declaration of expm1l.
2183         * doc/posix-functions/expm1l.texi: Mention the new module.
2184
2185 2012-03-06  Bruno Haible  <bruno@clisp.org>
2186
2187         Tests for module 'expm1f'.
2188         * modules/expm1f-tests: New file.
2189         * tests/test-expm1f.c: New file.
2190
2191         New module 'expm1f'.
2192         * lib/math.in.h (expm1f): New declaration.
2193         * lib/expm1f.c: New file.
2194         * m4/expm1f.m4: New file.
2195         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
2196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
2197         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
2198         * modules/expm1f: New file.
2199         * tests/test-math-c++.cc: Check the declaration of expm1f.
2200         * doc/posix-functions/expm1f.texi: Mention the new module.
2201
2202 2012-03-06  Bruno Haible  <bruno@clisp.org>
2203
2204         Tests for module 'expm1'.
2205         * modules/expm1-tests: New file.
2206         * tests/test-expm1.c: New file.
2207         * tests/test-expm1.h: New file.
2208
2209         New module 'expm1'.
2210         * lib/math.in.h (expm1): New declaration.
2211         * lib/expm1.c: New file.
2212         * m4/expm1.m4: New file.
2213         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
2214         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
2215         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
2216         * modules/expm1: New file.
2217         * tests/test-math-c++.cc: Check the declaration of expm1.
2218         * doc/posix-functions/expm1.texi: Mention the new module.
2219
2220 2012-03-06  Bruno Haible  <bruno@clisp.org>
2221
2222         math: Ensure declarations of math functions.
2223         * modules/acosf (Depends-on): Add 'extensions'.
2224         * modules/asinf (Depends-on): Likewise.
2225         * modules/atan2f (Depends-on): Likewise.
2226         * modules/atanf (Depends-on): Likewise.
2227         * modules/cbrt (Depends-on): Likewise.
2228         * modules/cbrtf (Depends-on): Likewise.
2229         * modules/cbrtl (Depends-on): Likewise.
2230         * modules/copysignf (Depends-on): Likewise.
2231         * modules/copysignl (Depends-on): Likewise.
2232         * modules/cosf (Depends-on): Likewise.
2233         * modules/coshf (Depends-on): Likewise.
2234         * modules/expf (Depends-on): Likewise.
2235         * modules/fabsf (Depends-on): Likewise.
2236         * modules/fabsl (Depends-on): Likewise.
2237         * modules/fmaf (Depends-on): Likewise.
2238         * modules/fmal (Depends-on): Likewise.
2239         * modules/fmodf (Depends-on): Likewise.
2240         * modules/fmodl (Depends-on): Likewise.
2241         * modules/frexpf (Depends-on): Likewise.
2242         * modules/frexpl (Depends-on): Likewise.
2243         * modules/hypot (Depends-on): Likewise.
2244         * modules/hypotf (Depends-on): Likewise.
2245         * modules/hypotl (Depends-on): Likewise.
2246         * modules/ldexpf (Depends-on): Likewise.
2247         * modules/ldexpl (Depends-on): Likewise.
2248         * modules/log10f (Depends-on): Likewise.
2249         * modules/log10l (Depends-on): Likewise.
2250         * modules/log1p (Depends-on): Likewise.
2251         * modules/logb (Depends-on): Likewise.
2252         * modules/logf (Depends-on): Likewise.
2253         * modules/modff (Depends-on): Likewise.
2254         * modules/modfl (Depends-on): Likewise.
2255         * modules/powf (Depends-on): Likewise.
2256         * modules/remainderf (Depends-on): Likewise.
2257         * modules/remainderl (Depends-on): Likewise.
2258         * modules/rintf (Depends-on): Likewise.
2259         * modules/rintl (Depends-on): Likewise.
2260         * modules/sinf (Depends-on): Likewise.
2261         * modules/sinhf (Depends-on): Likewise.
2262         * modules/sqrtf (Depends-on): Likewise.
2263         * modules/tanf (Depends-on): Likewise.
2264         * modules/tanhf (Depends-on): Likewise.
2265         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
2266         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
2267         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
2268         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
2269         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
2270         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
2271         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
2272         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
2273         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
2274         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
2275         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
2276         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
2277         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
2278         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
2279         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
2280         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
2281         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
2282         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2283         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
2284         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
2285         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
2286         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
2287         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
2288         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
2289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
2290         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
2291         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
2292         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
2293         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
2294         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
2295         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2296         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
2297         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
2298         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2299         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2300         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2301         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
2302         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
2303         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
2304         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
2305         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
2306
2307 2012-03-06  Bruno Haible  <bruno@clisp.org>
2308
2309         math: Update module names in warnings.
2310         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
2311         tanl): Use specific module name in warn-on-use warning.
2312
2313 2012-03-06  Bruno Haible  <bruno@clisp.org>
2314
2315         expl: Simplify computation.
2316         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
2317
2318 2012-03-05  Bruno Haible  <bruno@clisp.org>
2319
2320         exp* tests: More tests.
2321         * tests/test-exp.h: New file.
2322         * tests/test-exp.c: Include <float.h> and test-exp.h.
2323         (main): Invoke test_function.
2324         * tests/test-expf.c: Include <float.h> and test-exp.h.
2325         (main): Invoke test_function.
2326         * tests/test-expl.c: Include <float.h> and test-exp.h.
2327         (main): Invoke test_function.
2328         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
2329         (Makefile.am): Add randomd.c to test_exp_SOURCES.
2330         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
2331         (Makefile.am): Add randomf.c to test_expf_SOURCES.
2332         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
2333         (Depends-on): Add 'float'.
2334         (Makefile.am): Add randoml.c to test_expl_SOURCES.
2335
2336         expl: Fix precision of computed result.
2337         * lib/expl.c: Completely rewritten.
2338         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
2339         (Maintainer): Add me.
2340         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
2341
2342 2012-03-05  Bruno Haible  <bruno@clisp.org>
2343
2344         cbrt* tests: More tests.
2345         * tests/test-cbrt.h: New file.
2346         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
2347         (main): Invoke test_function.
2348         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
2349         (main): Invoke test_function.
2350         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
2351         (main): Invoke test_function.
2352         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
2353         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
2354         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
2355         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
2356         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
2357         (Depends-on): Add 'float'.
2358         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
2359
2360 2012-03-05  Bruno Haible  <bruno@clisp.org>
2361
2362         hypot* tests: More tests.
2363         * tests/test-hypot.h: New file, partially extracted from
2364         tests/test-hypotl.c.
2365         * tests/test-hypot.c: Include test-hypot.h.
2366         (main): Invoke test_function.
2367         * tests/test-hypotf.c: Include test-hypot.h.
2368         (main): Invoke test_function.
2369         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
2370         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
2371         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
2372         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
2373         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
2374         tests/randomf.c.
2375         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
2376         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
2377         tests/randoml.c.
2378         (Depends-on): Add 'fpucw', 'float'.
2379         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
2380
2381 2012-03-05  Bruno Haible  <bruno@clisp.org>
2382
2383         fpucw: Doc about FreeBSD.
2384         * lib/fpucw.h: Mention FreeBSD in comments.
2385
2386 2012-03-04  Bruno Haible  <bruno@clisp.org>
2387
2388         sqrt* tests: More tests.
2389         * tests/test-sqrt.h: New file.
2390         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
2391         (main): Invoke test_function.
2392         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
2393         (main): Invoke test_function.
2394         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
2395         (main): Invoke test_function.
2396         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
2397         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
2398         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
2399         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
2400         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
2401         (Depends-on): Add 'float'.
2402         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
2403
2404 2012-03-04  Bruno Haible  <bruno@clisp.org>
2405
2406         remainder* tests: More tests.
2407         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
2408         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
2409         (main): Invoke test_function.
2410         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
2411         (main): Invoke test_function.
2412         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
2413         (main): Invoke test_function.
2414         * modules/remainder-tests (Files): Add tests/test-remainder.h,
2415         tests/randomd.c.
2416         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
2417         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
2418         tests/randomf.c.
2419         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
2420         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
2421         tests/randoml.c.
2422         (Depends-on): Add 'float'.
2423         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
2424
2425 2012-03-04  Bruno Haible  <bruno@clisp.org>
2426
2427         remainder, remainderf, remainderl: Fix computation for large quotients.
2428         * lib/remainder.c: Completely rewritten.
2429         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
2430         USE_FLOAT.
2431         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
2432         USE_LONG_DOUBLE.
2433         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
2434         isnand, isinf. Remove round, fma.
2435         * modules/remainderf (Files): Add lib/remainder.c.
2436         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
2437         Remove roundf, fmaf.
2438         * modules/remainderl (Files): Add lib/remainder.c.
2439         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
2440         isinf. Remove roundl, fmal.
2441         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
2442         REMAINDER_LIBM.
2443         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
2444         REMAINDERF_LIBM.
2445         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
2446         REMAINDERL_LIBM.
2447
2448 2012-03-04  Bruno Haible  <bruno@clisp.org>
2449
2450         fmod* tests: More tests.
2451         * tests/test-fmod.h (my_ldexp): New function.
2452         (test_function): Reduce amount of random numbers to test. Add tests
2453         of very large quotients x / y.
2454         * tests/test-fmod.c (MAX_EXP): New macro.
2455         * tests/test-fmodf.c (MAX_EXP): Likewise.
2456         * tests/test-fmodl.c (MAX_EXP): Likewise.
2457
2458 2012-03-04  Bruno Haible  <bruno@clisp.org>
2459
2460         fmod, fmodl: Fix computation for large quotients x / y.
2461         * lib/fmod.c: Completely rewritten.
2462         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
2463         USE_LONG_DOUBLE.
2464         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
2465         isnand. Remove fma.
2466         * modules/fmodl (Files): Add lib/fmod.c.
2467         (Depends-on): Add float, isfinite, signbit, fabsl,
2468         frexpl, ldexpl, isnanl. Remove fma.
2469         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
2470         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
2471
2472 2012-03-03  Bruno Haible  <bruno@clisp.org>
2473
2474         fmod* tests: More tests.
2475         * tests/test-fmod.h: New file.
2476         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
2477         (main): Invoke test_function.
2478         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
2479         (main): Invoke test_function.
2480         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
2481         (main): Invoke test_function.
2482         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
2483         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
2484         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
2485         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
2486         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
2487         (Depends-on): Add 'float'.
2488         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
2489
2490 2012-03-03  Bruno Haible  <bruno@clisp.org>
2491
2492         rint* tests: More tests.
2493         * tests/test-rint.h: New file, partially extracted from
2494         tests/test-rintl.c.
2495         * tests/test-rint.c: Include test-rint.h.
2496         (main): Invoke test_function.
2497         * tests/test-rintf.c: Include test-rint.h.
2498         (main): Invoke test_function.
2499         * tests/test-rintl.c: Include test-rint.h.
2500         (main): Invoke test_function.
2501         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
2502         (Makefile.am): Add randomd.c to test_rint_SOURCES.
2503         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
2504         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
2505         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
2506         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
2507
2508 2012-03-03  Bruno Haible  <bruno@clisp.org>
2509
2510         modf* tests: More tests.
2511         * tests/test-modf.h: New file.
2512         * tests/test-modf.c: Include <float.h> and test-modf.h.
2513         (main): Invoke test_function.
2514         * tests/test-modff.c: Include <float.h> and test-modf.h.
2515         (main): Invoke test_function.
2516         * tests/test-modfl.c: Include <float.h> and test-modf.h.
2517         (main): Invoke test_function.
2518         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
2519         (Makefile.am): Add randomd.c to test_modf_SOURCES.
2520         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
2521         (Makefile.am): Add randomf.c to test_modff_SOURCES.
2522         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
2523         (Depends-on): Add 'float'.
2524         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
2525
2526 2012-03-03  Bruno Haible  <bruno@clisp.org>
2527
2528         fabs* tests: More tests.
2529         * tests/test-fabs.h: New file, partially extracted from
2530         tests/test-fabsl.c.
2531         * tests/test-fabs.c (RANDOM): New macro.
2532         * tests/test-fabsf.c (RANDOM): New macro.
2533         * tests/test-fabsl.c (RANDOM): New macro.
2534         * modules/fabs-tests (Files): Add tests/randomd.c.
2535         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
2536         * modules/fabsf-tests (Files): Add tests/randomf.c.
2537         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
2538         * modules/fabsl-tests (Files): Add tests/randoml.c.
2539         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
2540
2541 2012-03-03  Bruno Haible  <bruno@clisp.org>
2542
2543         ldexp* tests: More tests.
2544         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
2545         * tests/test-ldexp.c (RANDOM): New macro.
2546         * tests/test-ldexpf.c (RANDOM): New macro.
2547         * tests/test-ldexpl.c (RANDOM): New macro.
2548         * modules/ldexp-tests (Files): Add tests/randomd.c.
2549         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
2550         * modules/ldexpf-tests (Files): Add tests/randomf.c.
2551         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
2552         * modules/ldexpl-tests (Files): Add tests/randoml.c.
2553         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
2554
2555 2012-03-03  Bruno Haible  <bruno@clisp.org>
2556
2557         frexp* tests: More tests.
2558         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
2559         * tests/test-frexp.c (RANDOM): New macro.
2560         * tests/test-frexpf.c (RANDOM): New macro.
2561         * tests/test-frexpl.c (RANDOM): New macro.
2562         * modules/frexp-tests (Files): Add tests/randomd.c.
2563         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
2564         * modules/frexpf-tests (Files): Add tests/randomf.c.
2565         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
2566         * modules/frexpl-tests (Files): Add tests/randoml.c.
2567         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
2568
2569 2012-03-03  Bruno Haible  <bruno@clisp.org>
2570
2571         Support for pseudo-random numbers in tests.
2572         * tests/randomf.c: New file.
2573         * tests/randomd.c: New file.
2574         * tests/randoml.c: New file.
2575         * tests/macros.h (randomf, randomd, randoml): New declarations.
2576
2577 2012-03-03  Bruno Haible  <bruno@clisp.org>
2578
2579         frexp* tests: Refactor.
2580         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
2581         * tests/test-frexp.c: Include and use it.
2582         * tests/test-frexpf.c: Likewise.
2583         * tests/test-frexpl.c: Likewise.
2584         * modules/frexp-tests (Files): Add tests/test-frexp.h.
2585         * modules/frexpf-tests (Files): Likewise.
2586         * modules/frexpl-tests (Files): Likewise.
2587
2588 2012-03-02  Jim Meyering  <meyering@redhat.com>
2589
2590         maint: don't specify XZ_OPT=-9ev in dist-related rule
2591         Using xz's -9 option is warranted only if you have a very large
2592         tarball (see xz's documentation for the sizes vs. presets), and
2593         requires 64MiB of memory at decompression time.
2594         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
2595         Automake's default of just "-e" is fine.  Override on a
2596         per-package basis by setting XZ_OPT e.g., in cfg.mk.
2597
2598 2012-03-01  Eric Blake  <eblake@redhat.com>
2599
2600         maint.mk: allow announcement for non-gnulib project
2601         * maint.mk (announcement): Skip gnulib version if not used.
2602
2603 2012-03-01  Jim Meyering  <meyering@redhat.com>
2604
2605         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
2606         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
2607         envvar settings cannot interfere.  Otherwise, setting envvars like
2608         prohibit=foo require=bar, etc. would cause spurious test failures.
2609
2610 2012-03-01  Eric Blake  <eblake@redhat.com>
2611
2612         maint.mk: add per-line exclusions to prohibitions
2613         * maint.mk (_sc_search_regexp): Add $exclude parameter.
2614         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2615         (sc_const_long_option): Use it.
2616
2617 2012-03-01  Bruno Haible  <bruno@clisp.org>
2618
2619         Tests for module 'expl-ieee'.
2620         * modules/expl-ieee-tests: New file.
2621         * tests/test-expl-ieee.c: New file.
2622
2623         New module 'expl-ieee'.
2624         * modules/expl-ieee: New file.
2625
2626         Tests for module 'exp-ieee'.
2627         * modules/exp-ieee-tests: New file.
2628         * tests/test-exp-ieee.c: New file.
2629
2630         New module 'exp-ieee'.
2631         * modules/exp-ieee: New file.
2632
2633         Tests for module 'expf-ieee'.
2634         * modules/expf-ieee-tests: New file.
2635         * tests/test-expf-ieee.c: New file.
2636         * tests/test-exp-ieee.h: New file.
2637
2638         New module 'expf-ieee'.
2639         * modules/expf-ieee: New file.
2640
2641 2012-02-29  Bruno Haible  <bruno@clisp.org>
2642
2643         cbrtl-ieee: Work around test failure on IRIX 6.5.
2644         * m4/cbrtl-ieee.m4: New file.
2645         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
2646         test whether cbrtl works with a minus zero argument. Replace it if not.
2647         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
2648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
2649         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
2650         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
2651         (Depends-on): Update conditions.
2652         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
2653         m4/signbit.m4.
2654         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
2655         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
2656         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
2657
2658         Tests for module 'cbrtl-ieee'.
2659         * modules/cbrtl-ieee-tests: New file.
2660         * tests/test-cbrtl-ieee.c: New file.
2661
2662         New module 'cbrtl-ieee'.
2663         * modules/cbrtl-ieee: New file.
2664
2665         Tests for module 'cbrt-ieee'.
2666         * modules/cbrt-ieee-tests: New file.
2667         * tests/test-cbrt-ieee.c: New file.
2668
2669         New module 'cbrt-ieee'.
2670         * modules/cbrt-ieee: New file.
2671
2672         Tests for module 'cbrtf-ieee'.
2673         * modules/cbrtf-ieee-tests: New file.
2674         * tests/test-cbrtf-ieee.c: New file.
2675         * tests/test-cbrt-ieee.h: New file.
2676
2677         New module 'cbrtf-ieee'.
2678         * modules/cbrtf-ieee: New file.
2679
2680 2012-02-29  Bruno Haible  <bruno@clisp.org>
2681
2682         cbrtf: Work around bug in IRIX 6.5 system function.
2683         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
2684         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
2685         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
2686         work.
2687         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
2688         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
2689         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
2690         (Depends-on): Update conditions.
2691         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
2692
2693 2012-02-29  Bruno Haible  <bruno@clisp.org>
2694
2695         Tests for module 'cbrtl'.
2696         * modules/cbrtl-tests: New file.
2697         * tests/test-cbrtl.c: New file.
2698
2699         New module 'cbrtl'.
2700         * lib/math.in.h (cbrtl): New declaration.
2701         * lib/cbrtl.c: New file.
2702         * m4/cbrtl.m4: New file.
2703         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
2704         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
2705         HAVE_DECL_CBRTL.
2706         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
2707         HAVE_DECL_CBRTL.
2708         * modules/cbrtl: New file.
2709         * tests/test-math-c++.cc: Check the declaration of cbrtl.
2710         * doc/posix-functions/cbrtl.texi: Mention the new module.
2711
2712 2012-02-29  Bruno Haible  <bruno@clisp.org>
2713
2714         Tests for module 'cbrtf'.
2715         * modules/cbrtf-tests: New file.
2716         * tests/test-cbrtf.c: New file.
2717
2718         New module 'cbrtf'.
2719         * lib/math.in.h (cbrtf): New declaration.
2720         * lib/cbrtf.c: New file.
2721         * m4/cbrtf.m4: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
2724         HAVE_DECL_CBRTF.
2725         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
2726         HAVE_DECL_CBRTF.
2727         * modules/cbrtf: New file.
2728         * tests/test-math-c++.cc: Check the declaration of cbrtf.
2729         * doc/posix-functions/cbrtf.texi: Mention the new module.
2730
2731 2012-02-29  Bruno Haible  <bruno@clisp.org>
2732
2733         cbrt: Provide replacement on MSVC and Minix.
2734         * lib/math.in.h (cbrt): New declaration.
2735         * lib/cbrt.c: New file.
2736         * m4/cbrt.m4: New file.
2737         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
2738         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
2739         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
2740         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
2741         (Depends-on): Add dependencies.
2742         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
2743         * tests/test-math-c++.cc: Check the declaration of cbrt.
2744         * doc/posix-functions/cbrt.texi: Mention that the module provides a
2745         replacement.
2746
2747 2012-02-29  Bruno Haible  <bruno@clisp.org>
2748
2749         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
2750         * m4/hypotl-ieee.m4: New file.
2751         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
2752         test whether hypotl works with mixed NaN and Infinity arguments.
2753         Replace it if not.
2754         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
2755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
2756         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
2757         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
2758         (Depends-on): Update conditions.
2759         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
2760         (Depends-on): Add hypot-ieee.
2761         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
2762         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
2763
2764         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
2765         * m4/hypotf-ieee.m4: New file.
2766         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
2767         test whether hypotf works with mixed NaN and Infinity arguments.
2768         Replace it if not.
2769         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
2770         (Depends-on): Add hypot-ieee.
2771         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
2772         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
2773
2774         hypot-ieee: Work around test failure on OSF/1 and native Windows.
2775         * lib/math.in.h (hypot): New declaration.
2776         * lib/hypot.c: New file.
2777         * m4/hypot-ieee.m4: New file.
2778         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
2779         whether hypot works with mixed NaN and Infinity arguments. Replace it
2780         if not.
2781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
2782         REPLACE_HYPOT.
2783         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
2784         * modules/hypot (Files): Add lib/hypot.c.
2785         (Depends-on): Add dependencies.
2786         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
2787         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
2788         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
2789         * tests/test-math-c++.cc: Check the declaration of hypot.
2790         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
2791
2792         Tests for module 'hypotl-ieee'.
2793         * modules/hypotl-ieee-tests: New file.
2794         * tests/test-hypotl-ieee.c: New file.
2795
2796         New module 'hypotl-ieee'.
2797         * modules/hypotl-ieee: New file.
2798
2799         Tests for module 'hypot-ieee'.
2800         * modules/hypot-ieee-tests: New file.
2801         * tests/test-hypot-ieee.c: New file.
2802
2803         New module 'hypot-ieee'.
2804         * modules/hypot-ieee: New file.
2805
2806         Tests for module 'hypotf-ieee'.
2807         * modules/hypotf-ieee-tests: New file.
2808         * tests/test-hypotf-ieee.c: New file.
2809         * tests/test-hypot-ieee.h: New file.
2810
2811         New module 'hypotf-ieee'.
2812         * modules/hypotf-ieee: New file.
2813
2814 2012-02-29  Bruno Haible  <bruno@clisp.org>
2815
2816         Remove unused variables.
2817         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2818         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2819         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2820         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2821
2822 2012-02-29  Eric Blake  <eblake@redhat.com>
2823
2824         termios: fix pid_t always, not just for tcgetsid
2825         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2826         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2827         just when building tcgetsid.
2828
2829 2012-02-29  Bruno Haible  <bruno@clisp.org>
2830
2831         Tests for module 'hypotl'.
2832         * modules/hypotl-tests: New file.
2833         * tests/test-hypotl.c: New file.
2834
2835         New module 'hypotl'.
2836         * lib/math.in.h (hypotl): New declaration.
2837         * lib/hypotl.c: New file.
2838         * m4/hypotl.m4: New file.
2839         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2840         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2841         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2842         * modules/hypotl: New file.
2843         * tests/test-math-c++.cc: Check the hypotl declaration.
2844         * doc/posix-functions/hypotl.texi: Mention the new module.
2845
2846 2012-02-29  Eric Blake  <eblake@redhat.com>
2847
2848         tcgetsid: fix cygwin header bug
2849         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2850
2851         docs: update cygwin progress
2852         * doc/posix-functions/llround.texi (llround): Added in cygwin
2853         1.7.8.
2854         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2855         * doc/glibc-functions/program_invocation_name.texi
2856         (program_invocation_name): Likewise.
2857         * doc/glibc-functions/program_invocation_short_name.texi
2858         (program_invocation_short_name): Likewise.
2859         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2860         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2861         Likewise.
2862         * doc/posix-functions/pthread_spin_destroy.texi
2863         (pthread_spin_destroy): Added in cygwin 1.7.10.
2864         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2865         Likewise.
2866         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2867         Likewise.
2868         * doc/posix-functions/pthread_spin_trylock.texi
2869         (pthread_spin_trylock): Likewise.
2870         * doc/posix-functions/pthread_spin_unlock.texi
2871         (pthread_spin_unlock): Likewise.
2872         * doc/posix-functions/pthread_setschedprio.texi
2873         (pthread_setschedprio): Likewise.
2874         * doc/posix-functions/pthread_attr_getstack.texi
2875         (pthread_attr_getstack): Likewise.
2876         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2877         (pthread_attr_getstackaddr): Likewise.
2878         * doc/glibc-functions/pthread_getattr_np.texi
2879         (pthread_getattr_np): Likewise.
2880         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2881         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2882         * doc/posix-functions/clock_settime.texi (clock_settime):
2883         Likewise.
2884         * doc/posix-functions/pthread_attr_getguardsize.texi
2885         (pthread_attr_getguardsize): Likewise.
2886         * doc/posix-functions/pthread_attr_setguardsize.texi
2887         (pthread_attr_setguardsize): Likewise.
2888         * doc/posix-functions/pthread_attr_setstack.texi
2889         (pthread_attr_setstack): Likewise.
2890         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2891         (pthread_attr_setstackaddr): Likewise.
2892         * doc/posix-functions/clock_getcpuclockid.texi
2893         (clock_getcpuclockid): Likewise.
2894         * doc/posix-functions/pthread_getcpuclockid.texi
2895         (pthread_getcpuclockid): Likewise.
2896         * doc/glibc-functions/error.texi (error): Likewise.
2897         * doc/glibc-functions/error_at_line.texi (error_at_line):
2898         Likewise.
2899         * doc/glibc-functions/error_message_count.texi
2900         (error_message_count): Likewise.
2901         * doc/glibc-functions/error_one_per_line.texi
2902         (error_one_per_line): Likewise.
2903         * doc/glibc-functions/error_print_progname.texi
2904         (error_print_progname): Likewise.
2905         * doc/posix-functions/pthread_condattr_getclock.texi
2906         (pthread_condattr_getclock): Likewise.
2907         * doc/posix-functions/pthread_condattr_setclock.texi
2908         (pthread_condattr_setclock): Likewise.
2909         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2910         Likewise.
2911         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2912         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2913         * doc/glibc-functions/get_current_dir_name.texi
2914         (get_current_dir_name): Likewise.
2915         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2916         Likewise.
2917         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2918         wrong return type.
2919         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2920         1.7.11.
2921
2922 2012-02-29  Bruno Haible  <bruno@clisp.org>
2923
2924         Tests for module 'hypotf'.
2925         * modules/hypotf-tests: New file.
2926         * tests/test-hypotf.c: New file.
2927
2928         New module 'hypotf'.
2929         * lib/math.in.h (hypotf): New declaration.
2930         * lib/hypotf.c: New file.
2931         * m4/hypotf.m4: New file.
2932         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2933         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2934         REPLACE_HYPOTF.
2935         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2936         REPLACE_HYPOTF.
2937         * modules/hypotf: New file.
2938         * tests/test-math-c++.cc: Check the hypotf declaration.
2939         * doc/posix-functions/hypotf.texi: Mention the new module.
2940
2941         hypot: Prepare for hypotf module.
2942         * m4/hypot.m4: New file.
2943         * modules/hypot (Files): Add m4/hypot.m4.
2944         (configure.ac): Invoke gl_FUNC_HYPOT.
2945
2946 2012-02-29  Bruno Haible  <bruno@clisp.org>
2947
2948         hypot tests: More tests.
2949         * tests/test-hypot.c: Include <float.h>.
2950         (main): Add tests about overflow and underflow.
2951
2952 2012-02-29  Bruno Haible  <bruno@clisp.org>
2953
2954         math code: Add comments.
2955         * lib/acosl.c: Add comment about related glibc source files.
2956         * lib/asinl.c: Likewise.
2957         * lib/atanl.c: Likewise.
2958         * lib/expl.c: Likewise.
2959         * lib/logl.c: Likewise.
2960         * lib/sincosl.c: Likewise.
2961         * lib/sinl.c: Likewise.
2962         * lib/tanl.c: Likewise.
2963         * lib/trigl.c: Likewise.
2964         * lib/cosl.c: Likewise. Fix comments.
2965
2966 2012-02-28  Bruno Haible  <bruno@clisp.org>
2967
2968         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2969         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2970         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2971         HUGE_VALL are defined.
2972         (numeric_equald): Renamed from numeric_equal.
2973         (numeric_equalf, numeric_equall): New functions.
2974         (main): Check also HUGE_VALF, HUGE_VALL.
2975         * modules/math-tests (Files): Add tests/macros.h.
2976         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2977         HUGE_VALL.
2978
2979 2012-02-28  Bruno Haible  <bruno@clisp.org>
2980
2981         doc: Move ISO C11 feature notes into POSIX chapters.
2982         * doc/posix-functions/aligned_alloc.texi: Renamed from
2983         doc/glibc-functions/aligned_alloc.texi.
2984         * doc/posix-functions/quick_exit.texi: Renamed from
2985         doc/glibc-functions/quick_exit.texi.
2986         * doc/posix-headers/uchar.texi: Renamed from
2987         doc/glibc-headers/uchar.texi.
2988         * doc/posix-functions/c16rtomb.texi: Renamed from
2989         doc/glibc-functions/c16rtomb.texi.
2990         * doc/posix-functions/c32rtomb.texi: Renamed from
2991         doc/glibc-functions/c32rtomb.texi.
2992         * doc/posix-functions/mbrtoc16.texi: Renamed from
2993         doc/glibc-functions/mbrtoc16.texi.
2994         * doc/posix-functions/mbrtoc32.texi: Renamed from
2995         doc/glibc-functions/mbrtoc32.texi.
2996         * doc/gnulib.texi: Update.
2997         (Glibc uchar.h): Remove section.
2998         Suggested by Eric Blake.
2999
3000 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
3001
3002         stdnoreturn: port to MSVC better
3003         MSVC standard headers use __declspec(noreturn), so #define noreturn
3004         to empty on that platform.  Reported by Bruno Haible in
3005         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
3006         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
3007         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
3008
3009 2012-02-28  Bruno Haible  <bruno@clisp.org>
3010
3011         doc: Mention new glibc headers and functions.
3012         * doc/glibc-headers/uchar.texi: New file.
3013         * doc/glibc-functions/aligned_alloc.texi: New file.
3014         * doc/glibc-functions/c16rtomb.texi: New file.
3015         * doc/glibc-functions/c32rtomb.texi: New file.
3016         * doc/glibc-functions/clock_adjtime.texi: New file.
3017         * doc/glibc-functions/fanotify_init.texi: New file.
3018         * doc/glibc-functions/fanotify_mark.texi: New file.
3019         * doc/glibc-functions/inet6_opt_append.texi: New file.
3020         * doc/glibc-functions/inet6_opt_find.texi: New file.
3021         * doc/glibc-functions/inet6_opt_finish.texi: New file.
3022         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
3023         * doc/glibc-functions/inet6_opt_init.texi: New file.
3024         * doc/glibc-functions/inet6_opt_next.texi: New file.
3025         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
3026         * doc/glibc-functions/inet6_rth_add.texi: New file.
3027         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
3028         * doc/glibc-functions/inet6_rth_init.texi: New file.
3029         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
3030         * doc/glibc-functions/inet6_rth_segments.texi: New file.
3031         * doc/glibc-functions/inet6_rth_space.texi: New file.
3032         * doc/glibc-functions/login.texi: New file.
3033         * doc/glibc-functions/mbrtoc16.texi: New file.
3034         * doc/glibc-functions/mbrtoc32.texi: New file.
3035         * doc/glibc-functions/name_to_handle_at.texi: New file.
3036         * doc/glibc-functions/ntp_gettimex.texi: New file.
3037         * doc/glibc-functions/open_by_handle_at.texi: New file.
3038         * doc/glibc-functions/prlimit.texi: New file.
3039         * doc/glibc-functions/process_vm_readv.texi: New file.
3040         * doc/glibc-functions/process_vm_writev.texi: New file.
3041         * doc/glibc-functions/recvmmsg.texi: New file.
3042         * doc/glibc-functions/scandirat.texi: New file.
3043         * doc/glibc-functions/sendmmsg.texi: New file.
3044         * doc/glibc-functions/setns.texi: New file.
3045         * doc/glibc-functions/timespec_get.texi: New file.
3046         * doc/gnulib.texi: Include them.
3047         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
3048         sections.
3049         Reported by Eric Blake.
3050
3051 2012-02-28  Bruno Haible  <bruno@clisp.org>
3052
3053         Avoid compilation errors with MSVC option -fp:strict.
3054         * lib/floor.c: Use MSVC specific pragma fenv_access.
3055         * lib/ceil.c: Likewise.
3056         * lib/trunc.c: Likewise.
3057         * lib/round.c: Likewise.
3058         * lib/rint.c: Likewise.
3059         * lib/fma.c: Likewise.
3060         * lib/integer_length.c: Likewise.
3061         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3063         * tests/test-floor2.c: Likewise.
3064         * tests/test-floorf2.c: Likewise.
3065         * tests/test-ceil2.c: Likewise.
3066         * tests/test-ceilf2.c: Likewise.
3067         * tests/test-trunc2.c: Likewise.
3068         * tests/test-truncf2.c: Likewise.
3069         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3070
3071 2012-02-27  Bruno Haible  <bruno@clisp.org>
3072
3073         Tests for module 'sqrtl-ieee'.
3074         * modules/sqrtl-ieee-tests: New file.
3075         * tests/test-sqrtl-ieee.c: New file.
3076
3077         New module 'sqrtl-ieee'.
3078         * modules/sqrtl-ieee: New file.
3079
3080         Tests for module 'sqrt-ieee'.
3081         * modules/sqrt-ieee-tests: New file.
3082         * tests/test-sqrt-ieee.c: New file.
3083
3084         New module 'sqrt-ieee'.
3085         * modules/sqrt-ieee: New file.
3086
3087         Tests for module 'sqrtf-ieee'.
3088         * modules/sqrtf-ieee-tests: New file.
3089         * tests/test-sqrtf-ieee.c: New file.
3090         * tests/test-sqrt-ieee.h: New file.
3091
3092         New module 'sqrtf-ieee'.
3093         * modules/sqrtf-ieee: New file.
3094
3095 2012-02-27  Bruno Haible  <bruno@clisp.org>
3096
3097         remainderl-ieee: Work around test failure on OSF/1.
3098         * m4/remainderl-ieee.m4: New file.
3099         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
3100         present, test whether remainderl works with a zero second argument.
3101         Replace it if not.
3102         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
3103         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
3104         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
3105         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
3106         (Depends-on): Update conditions.
3107         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
3108         (Depends-on): Add remainder-ieee.
3109         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
3110         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
3111         module.
3112
3113         remainderf-ieee: Work around test failure on OSF/1.
3114         * m4/remainderf-ieee.m4: New file.
3115         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
3116         present, test whether remainderf works with a zero second argument.
3117         Replace it if not.
3118         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
3119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
3120         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
3121         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
3122         (Depends-on): Update conditions.
3123         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
3124         (Depends-on): Add remainder-ieee.
3125         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
3126         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
3127         module.
3128
3129         remainder-ieee: Work around test failure on OSF/1.
3130         * m4/remainder-ieee.m4: New file.
3131         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
3132         present, test whether remainder works with a zero second argument.
3133         Replace it if not.
3134         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
3135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
3136         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
3137         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
3138         (Depends-on): Update dependencies.
3139         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
3140         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
3141         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
3142
3143         Tests for module 'remainderl-ieee'.
3144         * modules/remainderl-ieee-tests: New file.
3145         * tests/test-remainderl-ieee.c: New file.
3146
3147         New module 'remainderl-ieee'.
3148         * modules/remainderl-ieee: New file.
3149
3150         Tests for module 'remainder-ieee'.
3151         * modules/remainder-ieee-tests: New file.
3152         * tests/test-remainder-ieee.c: New file.
3153
3154         New module 'remainder-ieee'.
3155         * modules/remainder-ieee: New file.
3156
3157         Tests for module 'remainderf-ieee'.
3158         * modules/remainderf-ieee-tests: New file.
3159         * tests/test-remainderf-ieee.c: New file.
3160         * tests/test-remainder-ieee.h: New file.
3161
3162         New module 'remainderf-ieee'.
3163         * modules/remainderf-ieee: New file.
3164
3165 2012-02-27  Bruno Haible  <bruno@clisp.org>
3166
3167         modff, modfl: Fix configure syntax error.
3168         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
3169         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3170
3171 2012-02-27  Bruno Haible  <bruno@clisp.org>
3172
3173         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
3174         * m4/fmodl-ieee.m4: New file.
3175         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
3176         whether fmodl works with zero arguments. Replace it if not.
3177         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
3178         (Depends-on): Add fmod-ieee.
3179         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
3180         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
3181
3182         fmodf-ieee: Work around test failure on OSF/1.
3183         * m4/fmodf-ieee.m4: New file.
3184         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
3185         whether fmodf works with zero arguments. Replace it if not.
3186         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
3187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
3188         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
3189         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
3190         (Depends-on): Update dependencies.
3191         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
3192         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
3193         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
3194
3195         fmodf-ieee: Work around test failure on MSVC 9.
3196         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
3197         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
3198
3199         fmod-ieee: Work around test failures on OSF/1, mingw.
3200         * m4/fmod-ieee.m4: New file.
3201         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
3202         whether fmod works with zero arguments. Replace it if not.
3203         * lib/math.in.h (fmod): New declaration.
3204         * lib/fmod.c: New file.
3205         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
3206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
3207         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
3208         * modules/fmod (Files): Add lib/fmod.c.
3209         (Depends-on): Add math, isinf, trunc, fma.
3210         (configure.ac): Arrange to compile lib/fmod.c if needed.
3211         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
3212         m4/signbit.m4.
3213         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
3214         * tests/test-math-c++.cc: Check the declaration of fmod.
3215         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
3216
3217         fmodl-ieee: Fix test failures.
3218         * lib/fmodl.c (fmodl): Treat Inf specially.
3219         * modules/fmodl (Depends-on): Add isinf.
3220
3221         Tests for module 'fmodl-ieee'.
3222         * modules/fmodl-ieee-tests: New file.
3223         * tests/test-fmodl-ieee.c: New file.
3224
3225         New module 'fmodl-ieee'.
3226         * modules/fmodl-ieee: New file.
3227
3228         Tests for module 'fmod-ieee'.
3229         * modules/fmod-ieee-tests: New file.
3230         * tests/test-fmod-ieee.c: New file.
3231
3232         New module 'fmod-ieee'.
3233         * modules/fmod-ieee: New file.
3234
3235         Tests for module 'fmodf-ieee'.
3236         * modules/fmodf-ieee-tests: New file.
3237         * tests/test-fmodf-ieee.c: New file.
3238         * tests/test-fmod-ieee.h: New file.
3239
3240         New module 'fmodf-ieee'.
3241         * modules/fmodf-ieee: New file.
3242
3243 2012-02-27  Bruno Haible  <bruno@clisp.org>
3244
3245         Tests for module 'rintl-ieee'.
3246         * modules/rintl-ieee-tests: New file.
3247         * tests/test-rintl-ieee.c: New file.
3248
3249         New module 'rintl-ieee'.
3250         * modules/rintl-ieee: New file.
3251
3252         Tests for module 'rint-ieee'.
3253         * modules/rint-ieee-tests: New file.
3254         * tests/test-rint-ieee.c: New file.
3255
3256         New module 'rint-ieee'.
3257         * modules/rint-ieee: New file.
3258
3259         Tests for module 'rintf-ieee'.
3260         * modules/rintf-ieee-tests: New file.
3261         * tests/test-rintf-ieee.c: New file.
3262         * tests/test-rint-ieee.h: New file.
3263
3264         New module 'rintf-ieee'.
3265         * modules/rintf-ieee: New file.
3266
3267 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
3268
3269         regex: re_search etc. should return -2 when memory exhausted
3270         This bug was uncovered when testing 'grep'.  Without the fix,
3271         re_search and friends return -1 when memory is exhausted, but -1
3272         means no match, and this causes grep to falsely report no-match
3273         instead of memory-exhaustion.  See
3274         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
3275         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
3276         trouble; this can occur if re_search_internal ran out of memory.
3277
3278 2012-02-26  Bruno Haible  <bruno@clisp.org>
3279
3280         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
3281         * m4/modfl-ieee.m4: New file.
3282         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
3283         whether modfl works with Inf. Replace it if not.
3284         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
3285         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
3286         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
3287         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
3288         (Depends-on): Update dependencies.
3289         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
3290         m4/signbit.m4.
3291         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
3292         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
3293
3294         modfl-ieee: Fix dependencies.
3295         * modules/modfl-ieee (Depends-on): Add modf-ieee.
3296
3297         modfl-ieee: Fix test failures.
3298         * lib/modfl.c (modfl): Treat NaN and Inf specially.
3299         * modules/modfl (Depends-on): Add isfinite, isinf.
3300
3301         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
3302         * m4/modff-ieee.m4: New file.
3303         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
3304         whether modff works with NaN and Inf. Replace it if not.
3305         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
3306         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
3307         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
3308         * modules/modff (configure.ac): Consider REPLACE_MODFF.
3309         (Depends-on): Update dependencies.
3310         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
3311         m4/signbit.m4.
3312         (Depends-on): Add modf-ieee.
3313         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
3314         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
3315
3316         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
3317         * m4/modf-ieee.m4: New file.
3318         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
3319         whether modf works with NaN and Inf. Replace it if not.
3320         * lib/math.in.h (modf): New declaration.
3321         * lib/modf.c: New file.
3322         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
3323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
3324         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
3325         * modules/modf (Files): Add lib/modf.c.
3326         (Depends-on): Add math, isfinite, trunc, isinf.
3327         (configure.ac): Addrange to compile lib/modf.c if needed.
3328         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
3329         m4/signbit.m4.
3330         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
3331         * tests/test-math-c++.cc: Check the declaration of modf.
3332         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
3333
3334         Tests for module 'modfl-ieee'.
3335         * modules/modfl-ieee-tests: New file.
3336         * tests/test-modfl-ieee.c: New file.
3337
3338         New module 'modfl-ieee'.
3339         * modules/modfl-ieee: New file.
3340
3341         Tests for module 'modf-ieee'.
3342         * modules/modf-ieee-tests: New file.
3343         * tests/test-modf-ieee.c: New file.
3344
3345         New module 'modf-ieee'.
3346         * modules/modf-ieee: New file.
3347
3348         Tests for module 'modff-ieee'.
3349         * modules/modff-ieee-tests: New file.
3350         * tests/test-modff-ieee.c: New file.
3351         * tests/test-modf-ieee.h: New file.
3352
3353         New module 'modff-ieee'.
3354         * modules/modff-ieee: New file.
3355
3356 2012-02-26  Bruno Haible  <bruno@clisp.org>
3357
3358         Tests for module 'fabsl-ieee'.
3359         * modules/fabsl-ieee-tests: New file.
3360         * tests/test-fabsl-ieee.c: New file.
3361
3362         New module 'fabsl-ieee'.
3363         * modules/fabsl-ieee: New file.
3364
3365         Tests for module 'fabs-ieee'.
3366         * modules/fabs-ieee-tests: New file.
3367         * tests/test-fabs-ieee.c: New file.
3368
3369         New module 'fabs-ieee'.
3370         * modules/fabs-ieee: New file.
3371
3372         Tests for module 'fabsf-ieee'.
3373         * modules/fabsf-ieee-tests: New file.
3374         * tests/test-fabsf-ieee.c: New file.
3375         * tests/test-fabs-ieee.h: New file.
3376
3377         New module 'fabsf-ieee'.
3378         * modules/fabsf-ieee: New file.
3379
3380 2012-02-26  Bruno Haible  <bruno@clisp.org>
3381
3382         Tests for module 'fmal-ieee'.
3383         * modules/fmal-ieee-tests: New file.
3384         * tests/test-fmal-ieee.c: New file.
3385
3386         New module 'fmal-ieee'.
3387         * modules/fmal-ieee: New file.
3388
3389         Tests for module 'fma-ieee'.
3390         * modules/fma-ieee-tests: New file.
3391         * tests/test-fma-ieee.c: New file.
3392
3393         New module 'fma-ieee'.
3394         * modules/fma-ieee: New file.
3395
3396         Tests for module 'fmaf-ieee'.
3397         * modules/fmaf-ieee-tests: New file.
3398         * tests/test-fmaf-ieee.c: New file.
3399         * tests/test-fma-ieee.h: New file.
3400
3401         New module 'fmaf-ieee'.
3402         * modules/fmaf-ieee: New file.
3403
3404 2012-02-26  Bruno Haible  <bruno@clisp.org>
3405
3406         Tests for module 'ldexpl-ieee'.
3407         * modules/ldexpl-ieee-tests: New file.
3408         * tests/test-ldexpl-ieee.c: New file.
3409
3410         New module 'ldexpl-ieee'.
3411         * modules/ldexpl-ieee: New file.
3412
3413         Tests for module 'ldexp-ieee'.
3414         * modules/ldexp-ieee-tests: New file.
3415         * tests/test-ldexp-ieee.c: New file.
3416
3417         New module 'ldexp-ieee'.
3418         * modules/ldexp-ieee: New file.
3419
3420         Tests for module 'ldexpf-ieee'.
3421         * modules/ldexpf-ieee-tests: New file.
3422         * tests/test-ldexpf-ieee.c: New file.
3423         * tests/test-ldexp-ieee.h: New file.
3424
3425         New module 'ldexpf-ieee'.
3426         * modules/ldexpf-ieee: New file.
3427
3428 2012-02-26  Bruno Haible  <bruno@clisp.org>
3429
3430         Refactor frexp*-ieee tests.
3431         * tests/test-frexp-ieee.h: New file.
3432         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
3433         (main): Just call test_function.
3434         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
3435         (main): Just call test_function.
3436         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
3437         (main): Just call test_function.
3438         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
3439         * modules/frexp-ieee-tests (Files): Likewise.
3440         * modules/frexpl-ieee-tests (Files): Likewise.
3441
3442         Tests for module 'frexpl-ieee'.
3443         * modules/frexpl-ieee-tests: New file.
3444         * tests/test-frexpl-ieee.c: New file.
3445
3446         New module 'frexpl-ieee'.
3447         * modules/frexpl-ieee: New file.
3448
3449         Tests for module 'frexp-ieee'.
3450         * modules/frexp-ieee-tests: New file.
3451         * tests/test-frexp-ieee.c: New file.
3452
3453         New module 'frexp-ieee'.
3454         * modules/frexp-ieee: New file.
3455
3456         Tests for module 'frexpf-ieee'.
3457         * modules/frexpf-ieee-tests: New file.
3458         * tests/test-frexpf-ieee.c: New file.
3459
3460         New module 'frexpf-ieee'.
3461         * modules/frexpf-ieee: New file.
3462
3463 2012-02-26  Bruno Haible  <bruno@clisp.org>
3464
3465         roundl-ieee tests: More tests.
3466         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3467         (main): Add tests for [MX] shaded specification in POSIX.
3468         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3469         (Depends-on): Add isnanl-nolibm.
3470
3471         round-ieee tests: More tests.
3472         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3473         (main): Add tests for [MX] shaded specification in POSIX.
3474         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3475         (Depends-on): Add isnand-nolibm.
3476
3477         roundf-ieee tests: More tests.
3478         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3479         (main): Add tests for [MX] shaded specification in POSIX.
3480         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3481         (Depends-on): Add isnanf-nolibm.
3482
3483         truncl-ieee tests: More tests.
3484         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3485         (main): Add tests for [MX] shaded specification in POSIX.
3486         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3487         (Depends-on): Add isnanl-nolibm.
3488
3489         trunc-ieee tests: More tests.
3490         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3491         (main): Add tests for [MX] shaded specification in POSIX.
3492         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3493         (Depends-on): Add isnand-nolibm.
3494
3495         truncf-ieee tests: More tests.
3496         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3497         (main): Add tests for [MX] shaded specification in POSIX.
3498         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3499         (Depends-on): Add isnanf-nolibm.
3500
3501         ceill-ieee tests: More tests.
3502         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3503         (main): Add tests for [MX] shaded specification in POSIX.
3504         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3505         (Depends-on): Add isnanl-nolibm.
3506
3507         ceil-ieee tests: More tests.
3508         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3509         (main): Add tests for [MX] shaded specification in POSIX.
3510         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3511         (Depends-on): Add isnand-nolibm.
3512
3513         ceilf-ieee tests: More tests.
3514         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3515         (main): Add tests for [MX] shaded specification in POSIX.
3516         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3517         (Depends-on): Add isnanf-nolibm.
3518
3519         floorl-ieee tests: More tests.
3520         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
3521         (main): Add tests for [MX] shaded specification in POSIX.
3522         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3523         (Depends-on): Add isnanl-nolibm.
3524
3525         floor-ieee tests: More tests.
3526         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
3527         (main): Add tests for [MX] shaded specification in POSIX.
3528         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3529         (Depends-on): Add isnand-nolibm.
3530
3531         floorf-ieee tests: More tests.
3532         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
3533         (main): Add tests for [MX] shaded specification in POSIX.
3534         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
3535         (Depends-on): Add isnanf-nolibm.
3536
3537 2012-02-26  Bruno Haible  <bruno@clisp.org>
3538
3539         fpieee: More comments.
3540         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
3541
3542 2012-02-25  Bruno Haible  <bruno@clisp.org>
3543
3544         Tests for module 'log10l'.
3545         * modules/log10l-tests: New file.
3546         * tests/test-log10l.c: New file.
3547         * tests/test-math-c++.cc: Check the declaration of log10l.
3548
3549         New module 'log10l'.
3550         * lib/math.in.h (log10l): New declaration.
3551         * lib/log10l.c: New file.
3552         * m4/log10l.m4: New file.
3553         * modules/log10l: New file.
3554         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
3555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
3556         HAVE_DECL_LOG10L.
3557         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
3558         HAVE_DECL_LOG10L.
3559         * doc/posix-functions/log10l.texi: Mention the new module.
3560
3561 2012-02-25  Bruno Haible  <bruno@clisp.org>
3562
3563         fmodl, remainder*: Avoid wrong results due to rounding errors.
3564         * lib/fmodl.c (fmodl): Correct the result if it is not within the
3565         expected bounds.
3566         * lib/remainderf.c (remainderf): Likewise.
3567         * lib/remainder.c (remainder): Likewise.
3568         * lib/remainderl.c (remainderl): Likewise.
3569
3570 2012-02-25  Bruno Haible  <bruno@clisp.org>
3571
3572         Tests for module 'remainderl'.
3573         * modules/remainderl-tests: New file.
3574         * tests/test-remainderl.c: New file.
3575         * tests/test-math-c++.cc: Check the declaration of remainderl.
3576
3577         New module 'remainderl'.
3578         * lib/math.in.h (remainderl): New declaration.
3579         * lib/remainderl.c: New file.
3580         * m4/remainderl.m4: New file.
3581         * modules/remainderl: New file.
3582         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
3583         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
3584         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
3585         HAVE_REMAINDERL.
3586         * doc/posix-functions/remainderl.texi: Mention the new module.
3587
3588 2012-02-25  Bruno Haible  <bruno@clisp.org>
3589
3590         Tests for module 'remainderf'.
3591         * modules/remainderf-tests: New file.
3592         * tests/test-remainderf.c: New file.
3593         * tests/test-math-c++.cc: Check the declaration of remainderf.
3594
3595         New module 'remainderf'.
3596         * lib/math.in.h (remainderf): New declaration.
3597         * lib/remainderf.c: New file.
3598         * m4/remainderf.m4: New file.
3599         * modules/remainderf: New file.
3600         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
3601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
3602         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
3603         HAVE_REMAINDERF.
3604         * doc/posix-functions/remainderf.texi: Mention the new module.
3605
3606 2012-02-25  Bruno Haible  <bruno@clisp.org>
3607
3608         remainder: Support for MSVC.
3609         * lib/math.in.h (remainder): New declaration.
3610         * lib/remainder.c: New file.
3611         * m4/remainder.m4: New file.
3612         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
3613         (Depends-on): Add math, round, fma.
3614         (configure.ac): Use results of gl_FUNC_REMAINDER.
3615         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
3616         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
3617         HAVE_DECL_REMAINDER.
3618         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
3619         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
3620         * tests/test-math-c++.cc: Check the declaration of remainder.
3621         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
3622         problems are fixed.
3623
3624 2012-02-25  Bruno Haible  <bruno@clisp.org>
3625
3626         Tests for module 'fmodl'.
3627         * modules/fmodl-tests: New file.
3628         * tests/test-fmodl.c: New file.
3629         * tests/test-math-c++.cc: Check the declaration of fmodl.
3630
3631         New module 'fmodl'.
3632         * lib/math.in.h (fmodl): New declaration.
3633         * lib/fmodl.c: New file.
3634         * m4/fmodl.m4: New file.
3635         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
3636         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
3637         REPLACE_FMODL.
3638         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
3639         REPLACE_FMODL.
3640         * modules/fmodl: New file.
3641         * doc/posix-functions/fmodl.texi: Mention the new module.
3642
3643 2012-02-25  Bruno Haible  <bruno@clisp.org>
3644
3645         Tests for module 'modfl'.
3646         * modules/modfl-tests: New file.
3647         * tests/test-modfl.c: New file.
3648         * tests/test-math-c++.cc: Check the declaration of modfl.
3649
3650         New module 'modfl'.
3651         * lib/math.in.h (modfl): New declaration.
3652         * lib/modfl.c: New file.
3653         * m4/modfl.m4: New file.
3654         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
3655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
3656         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
3657         * modules/modfl: New file.
3658         * doc/posix-functions/modfl.texi: Mention the new module.
3659
3660 2012-02-25  Bruno Haible  <bruno@clisp.org>
3661
3662         Tests for module 'fabsl'.
3663         * modules/fabsl-tests: New file.
3664         * tests/test-fabsl.c: New file.
3665         * tests/test-math-c++.cc: Check the declaration of fabsl.
3666
3667         New module 'fabsl'.
3668         * lib/math.in.h (fabsl): New declaration.
3669         * lib/fabsl.c: New file.
3670         * m4/fabsl.m4: New file.
3671         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
3672         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
3673         REPLACE_FABSL.
3674         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
3675         REPLACE_FABSL.
3676         * modules/fabsl: New file.
3677         * doc/posix-functions/fabsl.texi: Mention the new module.
3678
3679 2012-02-25  Bruno Haible  <bruno@clisp.org>
3680
3681         fabs tests: More tests.
3682         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
3683         (zero): New variable.
3684         (main): Add tests for signed zero.
3685         * modules/fabs-tests (Files): Add tests/minus-zero.h.
3686
3687         fabsf tests: More tests.
3688         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
3689         (zero): New variable.
3690         (main): Add tests for signed zero.
3691         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
3692
3693 2012-02-24  Bruno Haible  <bruno@clisp.org>
3694
3695         atanl: Provide function definition on MSVC.
3696         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
3697         function pointer.
3698         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
3699
3700 2012-02-24  Bruno Haible  <bruno@clisp.org>
3701
3702         acosl: Provide function definition on MSVC.
3703         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
3704         function pointer.
3705         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
3706
3707 2012-02-24  Bruno Haible  <bruno@clisp.org>
3708
3709         asinl: Provide function definition on MSVC.
3710         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
3711         function pointer.
3712         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
3713
3714 2012-02-24  Bruno Haible  <bruno@clisp.org>
3715
3716         tanl: Provide function definition on MSVC.
3717         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
3718         function pointer.
3719         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
3720
3721 2012-02-24  Bruno Haible  <bruno@clisp.org>
3722
3723         cosl: Provide function definition on MSVC.
3724         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
3725         function pointer.
3726         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
3727
3728 2012-02-24  Bruno Haible  <bruno@clisp.org>
3729
3730         sinl: Provide function definition on MSVC.
3731         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
3732         function pointer.
3733         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
3734
3735 2012-02-24  Bruno Haible  <bruno@clisp.org>
3736
3737         logl: Provide function definition on MSVC.
3738         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
3739         function pointer.
3740         * lib/math.in.h (logl): Undefine if it does not exist as a function.
3741
3742 2012-02-24  Bruno Haible  <bruno@clisp.org>
3743
3744         expl: Provide function definition on MSVC.
3745         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
3746         function pointer.
3747         * lib/math.in.h (expl): Undefine if it does not exist as a function.
3748
3749 2012-02-24  Bruno Haible  <bruno@clisp.org>
3750
3751         sqrtl: Provide function definition on MSVC.
3752         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
3753         a function pointer.
3754         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
3755
3756 2012-02-24  Bruno Haible  <bruno@clisp.org>
3757
3758         ceill: Provide function definition on MSVC.
3759         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
3760         used as a function pointer.
3761         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
3762
3763 2012-02-24  Bruno Haible  <bruno@clisp.org>
3764
3765         floorl: Provide function definition on MSVC.
3766         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
3767         used as a function pointer.
3768         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
3769
3770 2012-02-24  Bruno Haible  <bruno@clisp.org>
3771
3772         ceilf: Provide function definition on MSVC.
3773         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
3774         used as a function pointer.
3775         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
3776
3777 2012-02-24  Bruno Haible  <bruno@clisp.org>
3778
3779         floorf: Provide function definition on MSVC.
3780         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
3781         used as a function pointer.
3782         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
3783
3784 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3785
3786         stdnoreturn: new module
3787         This implements a replacement for C11's <stdnoreturn.h>.
3788         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
3789         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
3790         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
3791         * tests/test-stdnoreturn.c: New files.
3792
3793 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
3794
3795         regex: fix false multibyte matches in some regular expressions
3796         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
3797         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
3798         * lib/regex_internal.c (re_string_skip_chars):
3799         Fix miscomputation of remain_len that may cause incomplete
3800         multi-byte character and false match.
3801
3802 2012-02-24  Jim Meyering  <meyering@redhat.com>
3803
3804         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
3805         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
3806         uses with "==" *before* the call, e.g., 0 == strcmp (...)
3807         Remove now-unnecessary str''cmp obfuscation.
3808         Suggested by Akim Demaille.
3809
3810 2012-02-24  Bruno Haible  <bruno@clisp.org>
3811
3812         streq: Rename macro.
3813         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3814         * NEWS: Mention the change.
3815         * lib/mbrtowc.c (mbrtowc): Update.
3816         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3817         * lib/wcwidth.c (wcwidth): Update.
3818         Suggested by Akim Demaille and Jim Meyering.
3819
3820 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3821
3822         regex: fix typo in definition of MIN
3823         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3824         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3825
3826 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3827             Bruno Haible  <bruno@clisp.org>
3828
3829         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3830         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3831         entries into a stack-allocated buffer directly.
3832         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3833
3834 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3835             Bruno Haible  <bruno@clisp.org>
3836
3837         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3838
3839          - There were several instances of this pattern:
3840
3841              for (;;) {
3842                n = acl (f, GETACLCNT, 0, NULL);
3843                [ allocate an array A of size N ]
3844                if (acl (f, GETACL, n, a) == n)
3845                  break;
3846              }
3847
3848            This loop might never terminate if some other process is constantly
3849            manipulating the file's ACL.  The loop should be rewritten to
3850            terminate.
3851
3852          - The acl (... GETACLNT ...) call is merely an optimization; its value
3853            is merely a hint as to how big to make the array.  A better
3854            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3855            and just guess a reasonably-big size, growing the size and trying
3856            again if it's not large enough.  This guarantees termination, and
3857            saves a system call.
3858
3859         * lib/acl-internal.h: Include <limits.h>.
3860         (MIN, SIZE_MAX): New macros.
3861         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3862         a stack-allocated buffer, and use malloc if it does not fit. Don't
3863         use GETACLCNT.
3864         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3865
3866 2012-02-19  Bruno Haible  <bruno@clisp.org>
3867
3868         acl: Fix endless loop on Solaris with vxfs.
3869         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3870         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3871         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3872         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3873         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3874         Reported by Bill Jones in
3875         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3876
3877 2012-02-19  Bruno Haible  <bruno@clisp.org>
3878
3879         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3880         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3881         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3882         that this function returns 0 in some more cases.
3883
3884 2012-02-19  Bruno Haible  <bruno@clisp.org>
3885
3886         acl: Update doc references.
3887         * doc/acl-resources.txt: Update links to Solaris documentation.
3888
3889 2012-02-19  Bruno Haible  <bruno@clisp.org>
3890
3891         Fix test failure in many locales on Solaris 11.
3892         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3893         'tr' arguments.
3894         * tests/test-pipe-filter-ii1.c (main): Likewise.
3895         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3896         expressions in the C locale.
3897         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3898         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3899
3900 2012-02-19  Bruno Haible  <bruno@clisp.org>
3901
3902         gnulib-tool: Improve usage message.
3903         * gnulib-tool (func_usage): Move doc of --help and --version to the
3904         section "Operation modes".
3905
3906 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3907
3908         README-release: make it easier to execute commands
3909         * top/README-release: break commands out on to separate lines.
3910
3911 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3912
3913         GNUmakefile: simplify detection of unconfigured trees
3914         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3915         whether the tree make is being run from is already configured or
3916         not.  Related simplifications.
3917
3918 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3919
3920         * gnulib-tool (func_usage): Document --help and --version.
3921
3922 2012-02-11  Jim Meyering  <meyering@redhat.com>
3923
3924         bootstrap: don't exit 0 upon gnulib-tool failure
3925         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3926         its exit status, not 0.
3927
3928 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3929
3930         README-release: various improvements
3931         * top/README-release: Give a command to push changes for the
3932         release.  Add "distcheck" to list of other pre-release checks.
3933         Fix instance of "make stable" which should be "make TYPE".
3934
3935 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3936
3937         maint: replace FSF snail-mail addresses with URLs
3938         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3939         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3940         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3941         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3942         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3943         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3944         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3945         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3946         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3947         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3948         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3949         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3950         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3951         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3952         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3953         * lib/glthread/thread.c, lib/glthread/thread.h:
3954         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3955         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3956         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3957         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3958         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3959         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3960         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3961         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3962         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3963         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3964         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3965         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3966         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3967         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3968         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3969         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3970         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3971         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3972         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3973         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3974         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3975         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3976         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3977         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3978         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3979         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3980         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3981         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3982         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3983         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3984         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3985         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3986         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3987         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3988         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3989         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3990         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3991         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3992         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3993         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3994         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3995         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3996         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3997         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3998         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3999         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
4000         * tests/test-poll.c, tests/test-quotearg-simple.c:
4001         * tests/test-quotearg.c, tests/test-quotearg.h:
4002         * tests/test-round-ieee.c, tests/test-round1.c:
4003         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
4004         * tests/test-roundl-ieee.c, tests/test-roundl.c:
4005         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
4006         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
4007         * tests/test-strerror.c, tests/test-strerror_r.c:
4008         * tests/test-strsignal.c, tests/test-strverscmp.c:
4009         * tests/test-xmemdup0.c:
4010         Replace FSF snail mail addresses with URLs, as per GNU coding
4011         standards.  See glibc bug
4012         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
4013
4014 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4015
4016         README-release: capitalize a word and split a line
4017         * top/README-release: Fix punctuation and spacing.
4018
4019 2012-02-08  Akim Demaille  <demaille@gostai.com>
4020
4021         fatal-signal: use C prototypes (with explicit void).
4022         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4023         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
4024
4025 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4026
4027         regex: spelling fix
4028         * lib/regexec.c: spelling fix
4029
4030         regex: rely on stdint.h for SIZE_MAX
4031         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
4032
4033 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
4034
4035         regex: merge glibc changes
4036
4037         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
4038         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
4039         (init_word_char): Work even if bitset words are not exactly 32 or
4040         64 bits wide.  Don't assume there are no padding bits.
4041         * lib/regex.c [_LIBC]: Do not include <config.h>.
4042         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
4043         and -Wtype-limits.
4044         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
4045         needless disagreement with glibc.  All uses changed.  Define it to
4046         1 only if _GNU_SOURCE, to match glibc.
4047         (_REG_RM_NAME): Remove; no longer needed, since the names in
4048         question are now all protected by __USE_GNU.
4049         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
4050         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
4051         * lib/regex_internal.h (MIN): New macro.
4052
4053         2012-01-03 Ulrich Drepper <drepper@gmail.com>
4054         * lib/regcomp.c (init_word_char): Optimize regex a bit.
4055
4056         2011-12-30 Jakub Jelinek <jakub@redhat.com>
4057         * lib/regex_internal.c (re_string_fetch_byte_case):
4058         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
4059         is miscompiled, and it turns out it is because of an incorrect
4060         attribute on re_string_fetch_byte_case.  Unlike
4061         re_string_peek_byte_case, this one is really not pure, it modifies
4062         memory (increments pstr->cur_idx), and with the pure attribute GCC
4063         assumed it doesn't and it cached the presumed value of
4064         regexp->cur_idx in a variable across the
4065          for (;; ++i)
4066            {
4067              if (i >= BRACKET_NAME_BUF_SIZE)
4068                return REG_EBRACK;
4069              if (token->type == OP_OPEN_CHAR_CLASS)
4070                ch = re_string_fetch_byte_case (regexp);
4071              else
4072                ch = re_string_fetch_byte (regexp);
4073              if (re_string_eoi(regexp))
4074                return REG_EBRACK;
4075              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
4076                break;
4077              elem->opr.name[i] = ch;
4078            }
4079
4080         2011-11-29 Andreas Schwab <schwab@redhat.com>
4081         * lib/regcomp.c (build_equiv_class):
4082         Fix access after end of search string in regex matcher.
4083
4084         2011-11-12 Ulrich Drepper <drepper@redhat.com>
4085         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
4086
4087         2011-10-12 Ulrich Drepper <drepper@redhat.com>
4088         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
4089
4090         2011-10-11 Ulrich Drepper <drepper@redhat.com>
4091         * lib/regcomp.c (parse_branch, parse_sub_exp):
4092         More regex memory leak fixes and tests.
4093         (parse_sub_exp, parse_bracket_exp):
4094         Fix memory leak for some invalid regular expressions.
4095
4096         2011-05-28 Ulrich Drepper <drepper@gmail.com>
4097         * lib/regex_internal.c, lib/regexec.c:
4098         Fix unnecessary overallocation due to incomplete character.  When
4099         incomplete characters are found at the end of a string the code
4100         ran amok and allocated lots of memory.  Stricter limits are now in
4101         place.
4102
4103         2011-05-20 Reuben Thomas <rrt@sc3d.org>
4104         * lib/regex.h: Update documentation.
4105
4106         2011-05-16 Aharon Robbins <arnold@skeeve.com>
4107         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
4108
4109         2010-05-05 Andreas Schwab <schwab@redhat.com>
4110         * lib/regexec.c (find_collation_sequence_value):
4111         Fix lookup of collation sequence value during regexp matching.
4112
4113         2010-01-22 Ulrich Drepper <drepper@redhat.com>
4114         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
4115
4116         2008-01-16 Ulrich Drepper <drepper@redhat.com>
4117         * lib/regex.h: Cleanup namespace.
4118
4119         2007-11-26 Ulrich Drepper <drepper@redhat.com>
4120         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
4121
4122         2007-08-26 Ulrich Drepper <drepper@redhat.com>
4123         * lib/regex_internal.h: Prevent some declarations and definitions
4124         to be seen when used in tests.
4125
4126         2005-05-06 Ulrich Drepper <drepper@redhat.com>
4127         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
4128         __libc_lock_* macros if not _LIBC.
4129         (struct re_dfa_t): Add lock.
4130
4131 2012-02-07  Eric Blake  <eblake@redhat.com>
4132
4133         maint.mk: also prohibit lower-case @var@
4134         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
4135         lower case, like @top_srcdir@.
4136
4137 2012-02-04  Eric Blake  <eblake@redhat.com>
4138
4139         canonicalize: avoid uninitialized memory use
4140         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
4141         random '/' left in dest.
4142         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
4143
4144 2012-02-04  Bruno Haible  <bruno@clisp.org>
4145
4146         isatty: Fix test failure of ptsname_r on native Windows.
4147         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
4148         and don't set errno.
4149         (isatty): Test first whether fd is valid. Set errno when returning 0.
4150
4151 2012-02-04  Bruno Haible  <bruno@clisp.org>
4152
4153         spawn-pipe tests: Fix a NULL program name in a diagnostic.
4154         * tests/test-spawn-pipe-main.c: Include progname.h.
4155         (main): Invoke set_program_name.
4156         * modules/spawn-pipe-tests (Depends-on): Add progname.
4157
4158         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
4159         * tests/test-nonblocking-socket-main.c: Include progname.h.
4160         (main): Invoke set_program_name.
4161         * modules/nonblocking-socket-tests (Depends-on): Add progname.
4162
4163         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
4164         * tests/test-nonblocking-pipe-main.c: Include progname.h.
4165         (main): Invoke set_program_name.
4166         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
4167
4168 2012-02-04  Eric Blake  <eblake@redhat.com>
4169
4170         canonicalize-lgpl: fix // handling
4171         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
4172
4173         canonicalize: fix // handling
4174         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
4175         /// to //, since only // is special.
4176
4177 2012-02-04  Bruno Haible  <bruno@clisp.org>
4178
4179         ioctl: Fix test failure on native Windows.
4180         * lib/ioctl.c: Include msvc-nothrow.h.
4181         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
4182
4183 2012-02-04  Bruno Haible  <bruno@clisp.org>
4184
4185         fsync: Avoid test failure on native Windows.
4186         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
4187         read-only.
4188
4189 2012-02-04  Bruno Haible  <bruno@clisp.org>
4190
4191         sys_select: Avoid syntax error on OpenBSD 5.0.
4192         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
4193         currently being included, just include the system's <sys/select.h>.
4194
4195 2012-02-04  Bruno Haible  <bruno@clisp.org>
4196
4197         sys_select: Avoid syntax error on OpenBSD 5.0.
4198         * lib/sys_select.in.h: Include <signal.h> only after the include_next
4199         <sys/select.h>, not before.
4200         Reported by Jiri B <jirib@devio.us>.
4201
4202 2012-02-04  Bruno Haible  <bruno@clisp.org>
4203
4204         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
4205         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
4206         global variables.
4207         * tests/test-get-rusage-data.c (main): Likewise.
4208         Reported by Jim Meyering.
4209
4210 2012-02-04  Bruno Haible  <bruno@clisp.org>
4211
4212         stdioext: Fix last commit.
4213         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
4214
4215 2012-02-03  Bruno Haible  <bruno@clisp.org>
4216
4217         stdioext: Add tentative support for Plan9.
4218         * lib/stdio-impl.h: Include <errno.h>.
4219         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
4220         * lib/freadable.c (freadable): Likewise.
4221         * lib/fwritable.c (fwritable): Likewise.
4222         * lib/fbufmode.c (fbufmode): Likewise.
4223         * lib/freading.c (freading): Likewise.
4224         * lib/fwriting.c (fwriting): Likewise.
4225         * lib/freadptr.c (freadptr): Likewise.
4226         * lib/freadseek.c (freadptrinc): Likewise.
4227         * lib/freadahead.c (freadahead): Likewise.
4228         * lib/fpurge.c (fpurge): Likewise.
4229         * lib/fseeko.c (rpl_fseeko): Likewise.
4230         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
4231         Reported by Jens Staal <staal1978@gmail.com>.
4232
4233 2012-02-02  Jim Meyering  <meyering@redhat.com>
4234
4235         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
4236         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
4237         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
4238         not even to try to add the attribute.  Instead, add a pragma to suppress
4239         the suggestion/warning.
4240
4241 2012-01-31  Karl Berry  <karl@gnu.org>
4242
4243         setstate doc: typo.
4244         * doc/posix-functions/setstate.texi (setstate): { not (.
4245
4246 2012-01-31  Bruno Haible  <bruno@clisp.org>
4247
4248         popen: Make more robust on Windows.
4249         * lib/popen.c: On native Windows, use the _popen based code even if
4250         HAVE_POPEN is set.
4251         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
4252         environment variable on native Windows.
4253
4254 2012-01-30  Bruno Haible  <bruno@clisp.org>
4255
4256         pclose: Fix typo.
4257         * lib/stdio.in.h (pclose): Fix typo in warning message.
4258
4259 2012-01-30  Bruno Haible  <bruno@clisp.org>
4260
4261         doc about getlogin_r, setstate.
4262         * doc/posix-functions/getlogin_r.texi: List the incompatible
4263         declaration problem under "not fixed by gnulib".
4264         * doc/posix-functions/setstate.texi: Mention incompatible declaration
4265         problem on Solaris 11 and other platforms.
4266
4267 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
4268             Bruno Haible  <bruno@clisp.org>
4269
4270         poll tests: Make test more robust.
4271         * tests/test-poll.c: Include macros.h.
4272         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
4273         return value of various I/O operations.
4274         * modules/poll-tests (Files): Add tests/macros.h.
4275
4276 2012-01-30  Bruno Haible  <bruno@clisp.org>
4277
4278         sys_stat: Fix support for mingw64 and MSVC.
4279         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
4280         header files already do it.
4281         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
4282         stat itself.
4283         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4284
4285 2012-01-30  Bruno Haible  <bruno@clisp.org>
4286
4287         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
4288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
4289         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
4290
4291 2012-01-29  Bruno Haible  <bruno@clisp.org>
4292
4293         quotearg: Fix test failure on MacOS X 10.5.
4294         * tests/test-quotearg-simple.c: Include localcharset.h.
4295         (main): If the locale encoding is not ASCII, bypass the tests of
4296         locale_quoting_style and clocale_quoting_style.
4297         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
4298
4299 2012-01-29  Jim Meyering  <meyering@redhat.com>
4300
4301         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
4302         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
4303         detect uses of canonicalize_file_name.
4304
4305 2012-01-28  Bruno Haible  <bruno@clisp.org>
4306
4307         test-framework-sh: Fix test failure with AIX 7.1 diff.
4308         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
4309         in column 1, like 'diff -c' does.
4310         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
4311         whether 'diff -u' is used. Instead, test whether the output contains
4312         some '@' character.
4313
4314 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4315
4316         strtoimax: eliminate need for stdint.h, inttypes.h checks
4317         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
4318         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
4319         the prerequisites for a recently-introduced strtoimax test.
4320         I guess this might cause strtoimax to be replaced when not
4321         strictly necessary on older hosts, but this shouldn't introduce
4322         any bugs and it should make Emacs 'configure' faster on typical
4323         modern hosts.  Problem discovered when importing the latest gnulib
4324         to an Emacs test version.
4325         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
4326
4327 2012-01-28  Bruno Haible  <bruno@clisp.org>
4328
4329         sys_time: Override 'struct timeval' on some native Windows platforms.
4330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
4331         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
4332         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
4333         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
4334         needs to be overridden.
4335         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
4336         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
4337         * tests/test-sys_select.c: Check that the tv_sec member has the same
4338         size as a 'time_t'.
4339         * tests/test-sys_time.c: Likewise.
4340         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
4341         is set, set also REPLACE_GETTIMEOFDAY.
4342         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
4343         convert the resulting 'struct timeval' before returning.
4344         * lib/select.c: Include <sys/time.h>.
4345         (select, timeval): Undefine at the right place.
4346         * modules/select (Depends-on): Add sys_time.
4347         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
4348         some Windows platforms.
4349         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
4350
4351 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4352
4353         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
4354         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
4355         an integer.
4356         * lib/fcntl.c (dupfd): Likewise.
4357         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
4358
4359 2012-01-28  Bruno Haible  <bruno@clisp.org>
4360
4361         fcntl: Avoid compilation error on native Windows.
4362         * modules/fcntl (Depends-on): Add 'close'.
4363
4364 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4365
4366         select, poll, isatty: Avoid warnings on x86_64 mingw64.
4367         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
4368         pointer to an integer.
4369         * lib/poll.c (IsConsoleHandle): Likewise.
4370         * lib/isatty.c (IsConsoleHandle): Likewise.
4371
4372 2012-01-28  Jim Meyering  <meyering@redhat.com>
4373
4374         doc: clarify README-release
4375         * top/README-release: Clarify: you should make a point to have
4376         the latest stable versions of build tools in your PATH, and the
4377         reference to buildreq is solely for its list of tool names, not
4378         for its minimal-functional version numbers.
4379         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
4380
4381         maint.mk: use more readable (yet functionally equivalent) quoting
4382         It is common to quote a single quote in a single quoted string like
4383         this:  '...'\''...'.  Unless you know the idiom, that looks like
4384         gibberish, so prefer to double-quote the string when possible.
4385         Then you can use a more readable, lone single quote: "...'..."
4386         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
4387         "don't" is more readable than the equivalent 'don'\''t'.
4388         (sc_cast_of_x_alloc_return_value): Likewise.
4389         (sc_cast_of_alloca_return_value): Likewise.
4390         (sc_makefile_path_separator_check): Similar: use ":" in '...',
4391         rather than '\'':'\''.
4392
4393 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4394
4395         stdalign: relax _Alignof and tighten _Alignas test
4396         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
4397         as it was too strict: alignof must divide offsetof, but it need
4398         not equal offsetof.  Inspired by Joseph S. Myers's comment
4399         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
4400         Conversely, tighten the _Alignas test a bit, as the resulting
4401         alignment must be exactly 8.
4402
4403 2012-01-27  Bruno Haible  <bruno@clisp.org>
4404
4405         stdalign: Document the last change.
4406         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
4407
4408 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
4409
4410         stdalign: check that alignof and offsetof are consistent
4411         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
4412         Problem reported for gnulib by Richard W.M. Jones in
4413         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
4414
4415 2012-01-27  Jim Meyering  <meyering@redhat.com>
4416
4417         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
4418         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
4419         convert a sequence with gaps to the minimal containing range.
4420         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
4421         * tests/test-update-copyright.sh: Test for this.
4422         The FSF confirmed it is ok to do this, assuming there is at
4423         least one significant change per year in the affected range:
4424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
4425
4426 2012-01-26  Bruno Haible  <bruno@clisp.org>
4427
4428         pipe2: refine doc about thread-safety
4429         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
4430         multithread-safety problem.
4431         * doc/glibc-functions/accept4.texi: Likewise.
4432
4433 2012-01-26  Bruno Haible  <bruno@clisp.org>
4434
4435         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
4436         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
4437         In the test program, include <fcntl.h>, for O_RDONLY.
4438
4439 2012-01-26  Eric Blake  <eblake@redhat.com>
4440
4441         pipe2: document lack of thread-safety in replacement
4442         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
4443         issue in replacement.
4444         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4445         Based on a report by Eric Wong.
4446
4447 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
4448             Bruno Haible  <bruno@clisp.org>
4449
4450         malloca: Avoid warnings on x86_64 mingw64.
4451         * lib/malloca.c: Include <stdint.h>.
4452         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
4453         * modules/malloca (Depends-on): Add stdint.
4454         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
4455
4456 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
4457
4458         obstack: remove __STDC__ conditionals
4459         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
4460         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
4461         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
4462         m4/include_next.m4 as the only gnulib-maintained places that still
4463         refer to __STDC__.
4464
4465 2012-01-24  Bruno Haible  <bruno@clisp.org>
4466
4467         havelib: Modern quoting.
4468         * build-aux/config.rpath: Quote 'like this', not `like this', as per
4469         the recent change to the GNU coding standards.
4470
4471 2012-01-24  Bruno Haible  <bruno@clisp.org>
4472
4473         stdint: Improve support for Android.
4474         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
4475         Reported by Simon Josefsson <simon@josefsson.org>.
4476
4477 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4478
4479         doc: omit trailing empty lines from INSTALL etc.
4480         * doc/Makefile (INSTALL): Omit trailing empty lines.
4481         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
4482         omit trailing empty lines.  This simplifies the build procedure.
4483
4484 2012-01-23  Jim Meyering  <meyering@redhat.com>
4485
4486         tests: avoid spurious warnings about gl_sockets_startup
4487         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
4488         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
4489         reporting a "statement with no effect".
4490         * tests/test-accept.c (main): Mark as "(void)".
4491         * tests/test-accept4.c (main): Likewise.
4492         * tests/test-bind.c (main): Likewise.
4493         * tests/test-connect.c (main): Likewise.
4494         * tests/test-getpeername.c (main): Likewise.
4495         * tests/test-getsockname.c (main): Likewise.
4496         * tests/test-getsockopt.c (main): Likewise.
4497         * tests/test-listen.c (main): Likewise.
4498         * tests/test-recv.c (main): Likewise.
4499         * tests/test-recvfrom.c (main): Likewise.
4500         * tests/test-send.c (main): Likewise.
4501         * tests/test-sendto.c (main): Likewise.
4502         * tests/test-setsockopt.c (main): Likewise.
4503         * tests/test-shutdown.c (main): Likewise.
4504
4505 2012-01-21  Bruno Haible  <bruno@clisp.org>
4506
4507         locale-fr.m4: Fix for Android.
4508         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
4509         failure of the test program on Bionic libc.
4510
4511 2012-01-21  Jim Meyering  <meyering@redhat.com>
4512
4513         bootstrap: fail when bootstrap_post_import_hook fails
4514         Otherwise, it's far too easy to miss diagnostics emitted
4515         between gnulib-tool's output and that of running configure.
4516         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
4517
4518 2012-01-17  Jim Meyering  <meyering@redhat.com>
4519
4520         maint: enable sc_trailing_blank
4521         * build-aux/pmccabe.css: Remove trailing blanks.
4522         * doc/acl-cygwin.txt: Likewise.
4523         * doc/gnu-oids.texi: Likewise
4524         * cfg.mk: Enable sc_trailing_blank.
4525         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
4526
4527 2012-01-17  Jim Meyering  <meyering@redhat.com>
4528
4529         maint: enable sc_prohibit_openat_without_use
4530         * cfg.mk: Enable sc_prohibit_openat_without_use.
4531         Exempt lib/selinux-at.c.
4532
4533 2012-01-17  Jim Meyering  <meyering@redhat.com>
4534
4535         maint: enable sc_prohibit_cloexec_without_use
4536         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
4537         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
4538
4539 2012-01-17  Jim Meyering  <meyering@redhat.com>
4540
4541         maint: enable sc_prohibit_intprops_without_use
4542         * cfg.mk: Enable sc_prohibit_intprops_without_use
4543         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
4544
4545 2012-01-17  Jim Meyering  <meyering@redhat.com>
4546
4547         maint: enable sc_prohibit_hash_pjw_without_use
4548         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
4549         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
4550         to match any use of \<hash_pjw\>, i.e., not necessarily with a
4551         following " (".
4552
4553 2012-01-17  Jim Meyering  <meyering@redhat.com>
4554
4555         maint: enable double-word-prohibiting rule
4556         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
4557         Exempt three files.
4558
4559 2012-01-17  Jim Meyering  <meyering@redhat.com>
4560
4561         maint: remove empty lines at EOF, but excluding modules/*
4562         Apply syntax rules at home as well as abroad.  Most changes
4563         were induced by running this:
4564           make srcdir=. _build-aux=build-aux -f top/maint.mk \
4565             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
4566             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
4567         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
4568         Exempt modules/* and two binary files.
4569         Also exempt doc/INSTALL*, per request from Bruno Haible.
4570         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
4571         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
4572         * doc/Copyright/request-assign.future: Likewise.
4573         * doc/Copyright/request-disclaim.changes: Likewise.
4574         * doc/INSTALL: Likewise.
4575         * doc/INSTALL.ISO: Likewise.
4576         * doc/INSTALL.UTF-8: Likewise.
4577         * doc/acl-cygwin.txt: Likewise.
4578         * doc/acl-resources.txt: Likewise.
4579         * doc/fdl-1.2.texi: Likewise.
4580         * doc/fdl-1.3.texi: Likewise.
4581         * doc/fdl.texi: Likewise.
4582         * lib/argp-pin.c: Likewise.
4583         * lib/round.c: Likewise.
4584         * lib/unicase/u16-totitle.c: Likewise.
4585         * lib/unictype/block_test.c: Likewise.
4586         * lib/uninorm/canonical-decomposition.c: Likewise.
4587         * m4/README: Likewise.
4588         * m4/relocatable-lib.m4: Likewise.
4589         * tests/test-isnand-nolibm.c: Likewise.
4590         * tests/test-isnand.c: Likewise.
4591         * tests/uninorm/NormalizationTest.txt: Likewise.
4592
4593 2012-01-17  Jim Meyering  <meyering@redhat.com>
4594
4595         maint: add framework to run syntax-check rules against gnulib sources
4596         * cfg.mk: New file, to disable all currently-failing tests.
4597         We'll enable them one by one, as they are made to pass.
4598         * Makefile (sc_maint): New rule.
4599
4600 2012-01-21  Bruno Haible  <bruno@clisp.org>
4601
4602         stdint: Add support for Android.
4603         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
4604         include the system's <stdint.h>.
4605         Reported by Simon Josefsson <simon@josefsson.org>.
4606
4607 2012-01-19  Jim Meyering  <meyering@redhat.com>
4608
4609         bootstrap: add bootstrap_post_import_hook
4610         Bison does still need something like the gnulib_mk_hook whose
4611         invocation I had to remove along with slurp in commit 767ccd40.
4612         Technically, we could get along without it, but doing so would
4613         have required living with a warning and a mandatory post-bootstrap
4614         automake rerun.
4615         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
4616         (bootstrap_post_import_hook): New function.
4617         Invoke it after gnulib-tool --import and before autoreconf.
4618
4619 2012-01-18  Jim Meyering  <meyering@redhat.com>
4620
4621         gitlog-to-changelog: don't use "no_"-prefixed variable name
4622         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
4623         to enable both --cluster and --no-cluster.  Change variable name,
4624         s/\$no_cluster/$cluster/, and reverse usage to match.
4625
4626         gitlog-to-changelog: use "||", not "or" in expressions
4627         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
4628         expressions.
4629
4630 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
4631
4632         gitlog-to-changelog: new option --no-cluster
4633         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
4634         clustering of adjacent commit messages.
4635
4636 2012-01-17  Jim Meyering  <meyering@redhat.com>
4637
4638         maint: spell file systems with two words, not one
4639         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
4640         two words, not one.
4641
4642 2012-01-16  Jim Meyering  <meyering@redhat.com>
4643
4644         bootstrap: add a FIXME comment to ensure we eventually remove the hack
4645         * build-aux/bootstrap (gnulib_tool_options): Add comment.
4646
4647 2012-01-16  Eric Blake  <eblake@redhat.com>
4648
4649         bootstrap: cater to autoconf 2.59
4650         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
4651         is not available.
4652
4653         bootstrap: properly check for libtool
4654         * build-aux/bootstrap (libtoolize): Also run libtool when older
4655         usage is detected.
4656
4657 2012-01-15  Bruno Haible  <bruno@clisp.org>
4658
4659         Improve support for MSVC 9.
4660         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
4661         clashes on MSVC.
4662         * lib/fcntl.in.h: Likewise.
4663         * lib/stdlib.in.h: Likewise.
4664         * lib/sys_stat.in.h: Likewise.
4665
4666 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
4667
4668         gnupload: we hold the master copy of this script now
4669         For motivation and more information, see:
4670         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
4671         * build-aux/gnupload: Make it clear in the heading comments that the
4672         master copy of this file is maintained by gnulib.  Since we are at
4673         it, bump its copyright year and ...
4674         ($scriptversion): ... the date in its version.
4675         ($usage): Patches and bug reports should be sent to the gnulib list,
4676         not the automake one.
4677         * config/srclist.txt: Don't try to sync 'gnupload' from automake
4678         anymore.
4679
4680 2012-01-15  Bruno Haible  <bruno@clisp.org>
4681
4682         Fix module 'random'.
4683         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
4684         initstate, setstate are declared.
4685
4686 2012-01-14  Bruno Haible  <bruno@clisp.org>
4687
4688         Tests for module 'random'.
4689         * modules/random-tests: New file.
4690         * tests/test-random.c: New file, based on tests/test-random_r.c.
4691
4692         New module 'random'.
4693         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
4694         declarations.
4695         * lib/random.c: New file, based on glibc/stdlib/random.c.
4696         * m4/random.m4: New file.
4697         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
4698         HAVE_RANDOM.
4699         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
4700         * modules/random: New file.
4701         * config/srclist.txt: Add an entry for random.c.
4702         * doc/posix-functions/random.texi: Mention the 'random' module.
4703         * doc/posix-functions/initstate.texi: Likewise.
4704         * doc/posix-functions/setstate.texi: Likewise.
4705         * doc/posix-functions/srandom.texi: Likewise.
4706
4707 2012-01-12  Bruno Haible  <bruno@clisp.org>
4708
4709         random_r: Use common idioms.
4710         * lib/random_r.c: Include <stdlib.h> first.
4711
4712         random_r: Override incompatible API on AIX, OSF/1.
4713         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
4714         Override the system function if REPLACE_RANDOM_R is 1.
4715         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
4716         and OSF/1, set REPLACE_RANDOM_R.
4717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
4718         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
4719         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
4720         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
4721         * doc/glibc-functions/random_r.texi: Likewise.
4722         * doc/glibc-functions/setstate_r.texi: Likewise.
4723
4724         random_r: Support for MSVC 9.
4725         * lib/random_r.c: Include stdint.h, not inttypes.h.
4726
4727 2012-01-12  Eric Blake  <eblake@redhat.com>
4728
4729         inet_ntop: guard extra work by IF_LINT
4730         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
4731         better code generation when not checking for warnings.
4732         Suggested by Paul Eggert and Jim Meyering.
4733
4734         strptime: fix regression on mingw
4735         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
4736         Fix regression.  Reported by Bruno Haible.
4737
4738 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
4739             Bruno Haible  <bruno@clisp.org>
4740
4741         copy-file: add error-code-returning variant.
4742         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
4743         (qcopy_file_preserving): New declaration.
4744         * lib/copy-file.c (qcopy_file_preserving): Renamed from
4745         copy_file_preserving. Change return type to 'int'. Don't emit an error
4746         message here.
4747         (copy_file_preserving): New function.
4748         * tests/test-copy-file.c: Include <stdlib.h>.
4749         (main): Test qcopy_file_preserving if the environment variable
4750         NO_STDERR_OUTPUT is set.
4751         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
4752         with NO_STDERR_OUTPUT
4753         * tests/test-copy-file-2.sh: Likewise.
4754
4755 2012-01-10  Bruno Haible  <bruno@clisp.org>
4756
4757         copy-file: Use 'quote' module consistently.
4758         * lib/copy-file.c (copy_file_preserving): Use quote().
4759
4760         copy-file: Refactor.
4761         * lib/copy-file.c: Include quote.h.
4762         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
4763         message here.
4764         * modules/copy-file (Depends-on): Add quote.
4765
4766         acl: Export qcopy_acl.
4767         * lib/acl.h (qcopy_acl): New declaration.
4768         * lib/copy-acl.c (qcopy_acl): Make non-static.
4769
4770         acl: Rename a local variable.
4771         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
4772
4773         acl: Align return values of copy_acl and qcopy_acl.
4774         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
4775         maybe < -1.
4776
4777 2012-01-11  Eric Blake  <eblake@redhat.com>
4778
4779         strptime: silence gcc warnings
4780         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
4781         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
4782         Reported by Daniel P. Berrange.
4783
4784         inet_ntop: silence gcc warning
4785         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
4786         Reported by Daniel P. Berrange.
4787
4788 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
4789
4790         getloadavg test: skip the test on GNU/Linux without /proc mounted
4791         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
4792         file.  When /proc is not mounted, it always fails with ENOENT.
4793         * tests/test-getloadavg.c (main): Treat ENOENT return code from
4794         getloadavg(3) the same way as ENOSYS and ENOTSUP.
4795
4796 2012-01-10  Bruno Haible  <bruno@clisp.org>
4797
4798         regex: Avoid link error on MSVC 9.
4799         * modules/regex (Depends-on): Add wctype.
4800
4801 2012-01-10  Bruno Haible  <bruno@clisp.org>
4802
4803         doc: Mention --with-tests option.
4804         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
4805         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
4806         --with-tests.
4807         Reported by Reuben Thomas.
4808
4809 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4810
4811         users.txt: order package names lexicographically.
4812         * users.txt: Order package names lexicographically.
4813
4814 2012-01-10  Jim Meyering  <meyering@redhat.com>
4815
4816         maint.mk: fix description in comment
4817         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4818
4819         ignore-value: remove deprecated ignore_ptr function
4820         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4821         * NEWS: Note this.
4822
4823 2012-01-09  Jim Meyering  <meyering@redhat.com>
4824
4825         test-init.sh: avoid a subshell
4826         * tests/test-init.sh: Remove protective subshell.
4827         Suggested by Bernhard Voelker.  While a subshell is normally
4828         required to protect against older shells (Solaris, FreeBSD) that
4829         warn about a missing program before performing redirection, the
4830         shell-selection tests performed by init.sh probably exclude any
4831         offending shell.
4832
4833 2012-01-08  Bruno Haible  <bruno@clisp.org>
4834
4835         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4836         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4837         variable.
4838
4839 2012-01-08  Bruno Haible  <bruno@clisp.org>
4840
4841         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4842         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4843         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4844         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4845         macro.
4846         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4847         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4848         * lib/spawn_faction_addopen.c: Add workaround implementation if
4849         HAVE_WORKING_POSIX_SPAWN.
4850         * modules/spawn (Makefile): Substitute
4851         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4852         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4853         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4854         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4855         (Depends-on): Update conditions.
4856         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4857         the Solaris 11 bug.
4858
4859 2012-01-08  Bruno Haible  <bruno@clisp.org>
4860
4861         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4862         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4863         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4864         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4865         macro.
4866         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4867         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4868         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4869         HAVE_WORKING_POSIX_SPAWN.
4870         * modules/spawn (Makefile): Substitute
4871         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4872         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4873         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4874         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4875         (Depends-on): Update conditions.
4876         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4877         the Solaris 11 bug.
4878
4879 2012-01-08  Bruno Haible  <bruno@clisp.org>
4880
4881         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4882         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4883         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4884         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4885         HAVE_WORKING_POSIX_SPAWN.
4886         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4887         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4888         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4889         * lib/spawn_faction_addclose.c: Add workaround implementation if
4890         HAVE_WORKING_POSIX_SPAWN.
4891         * modules/spawn (Makefile): Substitute
4892         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4893         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4894         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4895         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4896         (Depends-on): Update conditions.
4897         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4898         the Solaris 11 bug.
4899
4900 2012-01-08  Bruno Haible  <bruno@clisp.org>
4901
4902         doc: Update for Solaris 11 2011-11.
4903         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4904         * m4/printf.m4: Update comments.
4905
4906 2012-01-08  Bruno Haible  <bruno@clisp.org>
4907
4908         mktime: Avoid compilation error on Solaris 11.
4909         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4910
4911 2012-01-08  Bruno Haible  <bruno@clisp.org>
4912
4913         doc: Small fix.
4914         * doc/posix-headers/nl_types.texi: Correct platforms list.
4915
4916 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4917
4918         Add lgpl-3.0 module.
4919         * MODULES.html.sh (Support for building documentation): Add
4920         lgpl-3.0.
4921         * modules/lgpl-3.0: New file.
4922
4923 2012-01-08  Jim Meyering  <meyering@redhat.com>
4924
4925         select.c: indent with spaces, not TABs
4926         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4927
4928 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4929
4930         quotearg: do not use grave accent for left quote
4931         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4932         locale_quoting_style.
4933         (quotearg_buffer_restyled): Fix example.
4934         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4935
4936 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4937
4938         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4939         Most programs do not have translation catalogs for English and much
4940         less separate catalogs for British and American English.  Drop the
4941         suggestion to translators about these two, and provide it
4942         automatically for Unicode locales.  Like most programs, even those
4943         using American English, we use single quotation marks.  This conflicts
4944         with the American typographic convention, but works better when you
4945         cite the entire error message within double quotes.  It also tries not
4946         to clash with established practice and with what non-gnulib programs
4947         will usually do.
4948         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4949         using an UTF-8 or GB-18030 locale.  The list of other locales with
4950         quotes was provided by Bruno Haible.
4951         (quotearg_buffer_restyled): Adjust instructions to translators.
4952         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4953         text, since this would be wrong when using Unicode.
4954         * modules/quotearg: Depend on c-strcaseeq.
4955
4956 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4957
4958         quotearg: fix Wikipedia link
4959         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4960
4961 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4962
4963         Fix for mingw with MSVC9.
4964         * m4/ld-version-script.m4: Check that compiler rejects version
4965         scripts with syntax errors.  Reported by Bruno Haible
4966         <bruno@clisp.org>.
4967
4968 2012-01-06  Bruno Haible  <bruno@clisp.org>
4969
4970         Talk about "native Windows API", not "Woe32".
4971         * lib/accept4.c: Update comments to mention native Windows.
4972         * lib/execute.c: Likewise.
4973         * lib/fatal-signal.c: Likewise.
4974         * lib/localcharset.c: Likewise.
4975         * lib/nanosleep.c: Likewise.
4976         * lib/nl_langinfo.c: Likewise.
4977         * lib/pclose.c: Likewise.
4978         * lib/pipe-filter-gi.c: Likewise.
4979         * lib/pipe-filter-ii.c: Likewise.
4980         * lib/pipe.c: Likewise.
4981         * lib/pipe2.c: Likewise.
4982         * lib/popen.c: Likewise.
4983         * lib/progreloc.c: Likewise.
4984         * lib/relocatable.c: Likewise.
4985         * lib/sigaction.c: Likewise.
4986         * lib/sigprocmask.c: Likewise.
4987         * lib/spawn-pipe.h: Likewise.
4988         * lib/spawn-pipe.c: Likewise.
4989         * lib/spawni.c: Likewise.
4990         * lib/stat-time.h: Likewise.
4991         * lib/w32spawn.h: Likewise.
4992         * tests/test-isatty.c: Likewise.
4993         * lib/config.charset: More comments.
4994         * doc/gnulib-intro.texi: Mention native Windows.
4995         * doc/posix-functions/_Exit_C99.texi: Likewise.
4996         * doc/posix-headers/fcntl.texi: Likewise.
4997
4998 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4999
5000         argp: Avoid crash if translator uses % characters in a translation.
5001         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
5002         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5003
5004 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
5005
5006         doc: C11 and C++11 are now official
5007         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
5008         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
5009         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
5010         * modules/stdalign:
5011         Replace references to draft C1X to C11, and to draft C++0X to C++11.
5012
5013 2012-01-06  Bruno Haible  <bruno@clisp.org>
5014
5015         uc-is-grapheme-break tests: Tweak.
5016         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
5017         message.
5018
5019 2012-01-06  Bruno Haible  <bruno@clisp.org>
5020
5021         test-init.sh: correct the test for diff -u
5022         * tests/test-init.sh: Also redirect stdout to /dev/null.
5023
5024 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5025
5026         Use ', not `, for quoting output.
5027         * build-aux/announce-gen (usage, sizes, print_news_deltas)
5028         (print_changelog_deltas, get_tool_versions, main program):
5029         * build-aux/git-version-gen:
5030         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
5031         * build-aux/move-if-change (help):
5032         * build-aux/useless-if-before-free (usage, main program):
5033         * check-module (parse_module_file, usage)
5034         (find_included_lib_files, check_module):
5035         * lib/argmatch.c (main) [TEST]:
5036         * lib/argp-help.c (_help):
5037         * lib/getopt1.c (main) [TEST]:
5038         * lib/git-merge-changelog.c (usage):
5039         * lib/xstrtol-error.c (xstrtol_error):
5040         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5041         * m4/argz.m4 (gl_FUNC_ARGZ):
5042         * m4/bison.m4 (gl_BISON):
5043         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
5044         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
5045         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
5046         * m4/fpending.m4 (gl_PREREQ_FPENDING):
5047         * m4/gc-random.m4 (gl_GC_RANDOM):
5048         * m4/intl.m4 (gt_CHECK_DECL):
5049         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
5050         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
5051         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
5052         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
5053         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
5054         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
5055         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
5056         * tests/test-dirname.c (main):
5057         * tests/test-getpass.c (main):
5058         * tests/test-iconvme.c (main):
5059         * tests/test-parse-datetime.c (LOG):
5060         * tests/test-xstrtoimax.sh:
5061         * tests/test-xstrtol.sh:
5062         * tests/test-xstrtoll.sh:
5063         * tests/test-xstrtoumax.sh:
5064         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
5065         * top/GNUmakefile (abort-due-to-no-makefile):
5066         Quote 'like this', not `like this', as per the recent change to
5067         the GNU coding standards.
5068
5069 2012-01-05  Bruno Haible  <bruno@clisp.org>
5070
5071         strtoimax: Don't force a replacement on systems where intmax_t is int.
5072         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
5073         'intmax_t' is not larger than 'int'.
5074         Reported by Pádraig Brady <P@draigBrady.com>.
5075
5076 2012-01-05  Bruno Haible  <bruno@clisp.org>
5077
5078         doc: Mention NetBSD bugs.
5079         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
5080         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
5081
5082 2012-01-05  Bruno Haible  <bruno@clisp.org>
5083
5084         strtoumax tests: Enhance tests.
5085         * tests/test-strtoumax.c (main): Add tests for large values.
5086
5087 2012-01-05  Bruno Haible  <bruno@clisp.org>
5088
5089         strtoimax: Work around AIX 5.1 bug.
5090         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
5091         definition.
5092         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
5093         Set HAVE_STRTOIMAX.
5094         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
5095         REPLACE_STRTOIMAX.
5096         * modules/inttypes-incomplete (Makefile.am): Substitute
5097         REPLACE_STRTOIMAX.
5098         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
5099         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
5100         (Depends-on): Update conditions.
5101         * tests/test-strtoimax.c (main): Add tests for large values.
5102         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
5103
5104 2012-01-05  Bruno Haible  <bruno@clisp.org>
5105
5106         inttypes: Modernize.
5107         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
5108         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
5109         (Makefile.am): Update inttypes.h rule.
5110
5111 2012-01-05  Jim Meyering  <meyering@redhat.com>
5112
5113         init.sh: don't waste a subshell just to redirect stderr
5114         * tests/init.sh: In testing for diff -u and diff -c, use a
5115         stderr-redirecting exec inside `...` rather than a subshell.
5116
5117         test-init.sh: avoid failure on HP-UX 11.00
5118         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
5119         resolves to diff -c or cmp.  Reported by Bruno Haible.
5120
5121 2012-01-05  Bruno Haible  <bruno@clisp.org>
5122
5123         Tests for module 'strtoull'.
5124         * modules/strtoull-tests: New file.
5125         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
5126
5127 2012-01-05  Bruno Haible  <bruno@clisp.org>
5128
5129         Tests for module 'strtoll'.
5130         * modules/strtoll-tests: New file.
5131         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
5132
5133 2012-01-05  Bruno Haible  <bruno@clisp.org>
5134
5135         Tests for module 'strtoul'.
5136         * modules/strtoul-tests: New file.
5137         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
5138
5139 2012-01-05  Bruno Haible  <bruno@clisp.org>
5140
5141         Tests for module 'strtol'.
5142         * modules/strtol-tests: New file.
5143         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
5144
5145 2012-01-04  Jim Meyering  <meyering@redhat.com>
5146
5147         test-init.sh: accommodate Solaris 5.10's different diff -u output
5148         * tests/test-init.sh: Also exempt @@ lines from the comparison
5149         of diff output, since Solaris 5.10 and GNU diff formats differ.
5150         Reported by Stefano Lattarini.
5151
5152 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5153
5154         test-posixtm: don't assume signed integer wraparound
5155         * tests/test-posixtm.c (main): Don't assume wraparound semantics
5156         after signed integer overflow.  Inspired by (though it may not
5157         fix) Bruno Haible's bug report in
5158         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
5159
5160         Spell out "Windows 9x" and "Windows XP".
5161         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
5162         "Windows 9x" and "WinXP" with "Windows XP".
5163
5164 2012-01-04  Jim Meyering  <meyering@redhat.com>
5165
5166         test-vc-list-files-cvs.sh: remove obsolete comment
5167         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
5168         double exit.  Now that's all encapsulated via skip_ and Exit.
5169
5170 2012-01-04  Bruno Haible  <bruno@clisp.org>
5171
5172         Talk about "native Windows API", not "Win32".
5173         * lib/classpath.c: Update comments to mention native Windows.
5174         * lib/csharpexec.c: Likewise.
5175         * lib/dup2.c: Likewise.
5176         * lib/error.c: Likewise.
5177         * lib/fcntl.c: Likewise.
5178         * lib/filename.h: Likewise.
5179         * lib/findprog.c: Likewise.
5180         * lib/get-rusage-as.c: Likewise.
5181         * lib/get-rusage-data.c: Likewise.
5182         * lib/getpagesize.c: Likewise.
5183         * lib/javaexec.c: Likewise.
5184         * lib/msvc-inval.c: Likewise.
5185         * lib/msvc-nothrow.c: Likewise.
5186         * lib/nanosleep.c: Likewise.
5187         * lib/nonblocking.c: Likewise.
5188         * lib/printf-parse.c: Likewise.
5189         * lib/setlocale.c: Likewise.
5190         * lib/sigaction.c: Likewise.
5191         * lib/strerror_r.c: Likewise.
5192         * lib/tmpdir.c: Likewise.
5193         * lib/vasnprintf.c: Likewise.
5194         * lib/w32spawn.h: Likewise.
5195         * lib/waitpid.c: Likewise.
5196         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
5197         * m4/locale-ar.m4: Likewise.
5198         * m4/locale-fr.m4: Likewise.
5199         * m4/locale-ja.m4: Likewise.
5200         * m4/locale-tr.m4: Likewise.
5201         * m4/locale-zh.m4: Likewise.
5202         * m4/printf.m4: Likewise.
5203         * tests/test-cloexec.c: Likewise.
5204         * tests/test-copy-acl.sh: Likewise.
5205         * tests/test-copy-file.sh: Likewise.
5206         * tests/test-file-has-acl.sh: Likewise.
5207         * tests/test-set-mode-acl.sh: Likewise.
5208         * tests/test-dup-safer.c: Likewise.
5209         * tests/test-dup2.c: Likewise.
5210         * tests/test-dup3.c: Likewise.
5211         * tests/test-fcntl.c: Likewise.
5212         * tests/test-nonblocking-pipe.h: Likewise.
5213         * tests/test-nonblocking-socket.h: Likewise.
5214         * tests/test-pipe.c: Likewise.
5215         * tests/test-pipe2.c: Likewise.
5216         * tests/test-spawn-pipe-child.c: Likewise.
5217         * doc/acl-resources.txt: Likewise.
5218         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5219         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
5220         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
5221         * lib/localcharset.c: Update comments to mention native Windows.
5222         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5223         * lib/localename.c: Likewise.
5224         * lib/progreloc.c: Likewise.
5225         * lib/relocatable.c: Likewise.
5226         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
5227         (windows_compute_revents): Renamed from win32_compute_revents.
5228         (windows_compute_revents_socket): Renamed from
5229         win32_compute_revents_socket.
5230         * lib/select.c: Update comments to mention native Windows.
5231         (windows_poll_handle): Renamed from win32_poll_handle.
5232         * m4/threadlib.m4: Update comments to mention native Windows.
5233         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
5234         --enable-threads=windows instead of --enable-threads=win32. Set
5235         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
5236         * lib/glthread/lock.h: Update comments to mention native Windows.
5237         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
5238         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
5239         USE_WIN32_THREADS.
5240         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
5241         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
5242         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
5243         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
5244         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
5245         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
5246         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
5247         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
5248         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
5249         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
5250         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
5251         * tests/test-tls.c: Likewise.
5252         Rationale:
5253         Microsoft renamed the "Win32 API" to "Windows API", as it is available
5254         on both 32-bit and 64-bit Windows systems.
5255         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
5256         line of distinction is between "native Windows" on one side and Unix/
5257         POSIX systems on the other side. More details in
5258         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
5259         Suggested by Paul Eggert.
5260
5261 2012-01-03  Bruno Haible  <bruno@clisp.org>
5262
5263         isatty: Support for MSVC 9.
5264         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
5265         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
5266         (_isatty_nothrow): New function.
5267         (isatty): Use it instead of _isatty.
5268         (IsConsoleHandle): Add comment, from Paolo Bonzini.
5269         * lib/poll.c (IsConsoleHandle): Likewise.
5270         * lib/select.c (IsConsoleHandle): Likewise.
5271         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
5272         (gl_PREREQ_ISATTY): New macro.
5273         * modules/isatty (Depends-on): Add msvc-inval.
5274         (configure.ac): Invoke gl_PREREQ_ISATTY.
5275
5276 2012-01-03  Jim Meyering  <meyering@redhat.com>
5277
5278         maint.mk: remove temporary transition aid from over 1.5 years ago
5279         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
5280         purpose was to aid in the transition (avoiding silent malfunction)
5281         from that old name to the new _sc_search_regexp.  This shim was
5282         added by commit 219c504b.
5283
5284         init.sh: do not try to accommodate compare arguments starting with "-"
5285         * tests/init.sh (compare_dev_null_): Do not try to accommodate
5286         compare arguments that start with "-".  Besides, we do not worry
5287         about this when invoking diff or cmp; why start now with sed?
5288         Using "--" to separate options from argument would trigger sed
5289         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
5290         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
5291
5292 2012-01-02  Bruno Haible  <bruno@clisp.org>
5293
5294         Enhance tests for module 'isatty'.
5295         * modules/isatty-tests (Depends-on): Add pipe-posix.
5296         * tests/test-isatty.c: Include <fcntl.h>.
5297         (DEV_NULL): New macro.
5298         (main): Test the resut of isatty() also on regular files, pipes, and
5299         /dev/null.
5300
5301         New module 'isatty'.
5302         * lib/unistd.in.h (isatty): New declaration.
5303         * lib/isatty.c: New file, based on an idea of
5304         Bastien Roucariès <roucaries.bastien@gmail.com>.
5305         * m4/isatty.m4: New file.
5306         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
5307         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
5308         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
5309         REPLACE_ISATTY.
5310         * modules/isatty: New file.
5311         * doc/posix-functions/isatty.texi: Mention the new module.
5312         Suggested by Paolo Bonzini.
5313
5314 2012-01-02  Bruno Haible  <bruno@clisp.org>
5315
5316         canonicalize: Tweak 2011-12-29 commit.
5317         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
5318         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
5319
5320 2012-01-02  Jim Meyering  <meyering@redhat.com>
5321
5322         gitlog-to-changelog: describe input syntax in --help output
5323         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
5324
5325         gitlog-to-changelog: fix typo in --help: show backslash before email @
5326         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
5327         in sources, but not in actual output.
5328
5329 2011-12-30  Jim Meyering  <meyering@redhat.com>
5330
5331         gitlog-to-changelog: don't malfunction when name contains %-directive
5332         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
5333         in a name string cause trouble.  E.g., with a user name of "%s",
5334         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
5335
5336 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
5337
5338         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
5339         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
5340         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
5341         the "  (tiny change)" notation that is appended to the standard
5342         ChangeLog "date  name  email" header line.
5343
5344 2012-01-01  Jim Meyering  <meyering@redhat.com>
5345
5346         test-framework-sh: init.sh: fix "make dist" failure
5347         When using gnulib-tool's --with-tests option and any module that
5348         depends on test-framework-sh, "make dist" would fail due to the
5349         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
5350         in the gltests directory, and not in the gllib/ directory.
5351         One way to work around that is to move the EXTRA_DIST += init.sh
5352         from the primary module to the -tests one:
5353         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
5354         * modules/test-framework-sh (Makefile.am): ...not here.
5355         Reported by Tom G. Christensen in
5356         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
5357
5358         version-etc: update copyright year reported by --version
5359         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
5360
5361 2011-12-31  Pádraig Brady  <P@draigBrady.com>
5362
5363         canonicalize: only stat() if required
5364         * lib/canonicalize.c (canonicalize_filename_mode):
5365         Avoid calling l?stat() when both CAN_MISSING,
5366         and CAN_NOLINKS are set, as we neither need
5367         to resolve symlinks or test component existence.
5368
5369 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
5370
5371         doc: cover st_ino issues once; add OpenVMS etc.
5372         * doc/posix-functions/stat.texi (stat):
5373         * doc/posix-functions/lstat.texi (lstat):
5374         * doc/posix-functions/fstatat.texi (fstatat):
5375         * doc/posix-functions/fstat.texi (fstat):
5376         Move general 'struct stat' stuff to sys_stat.texi,
5377         leaving behind a pointer.
5378         * doc/posix-headers/sys_stat.texi (sys/stat.h):
5379         Merge duplicate info about 'struct stat' problems into here.
5380         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
5381         and suggest partial workarounds.
5382
5383         same-inode: port to OpenVMS
5384         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
5385         three st_ino values.
5386
5387 2011-12-30  Pádraig Brady  <P@draigBrady.com>
5388
5389         canonicalize: fix references to stat() and lstat()
5390         * lib/canonicalize.c (canonicalize_filename_mode):
5391         Ensure references always resolve to a replacement
5392         function if required (even via a macro).
5393
5394 2011-12-30  Jim Meyering  <meyering@redhat.com>
5395
5396         gitlog-to-changelog: remove a little duplication
5397         * build-aux/gitlog-to-changelog (main): Grep @lines once,
5398         rather than twice.
5399
5400 2011-12-29  Pádraig Brady  <P@draigBrady.com>
5401
5402         canonicalize: add support for not resolving symlinks
5403         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
5404         indicate we don't want to follow symlinks.  Also
5405         provide CAN_MODE_MASK to aid setting these existing
5406         mutually exclusive values.
5407         * lib/canonicalize.c (canonicalize_filename_mode):
5408         Extract the flags from can_mode parameter, which
5409         are currently just used to select between stat()
5410         and lstat().  Also ensure that mutually exclusive
5411         values are flagged immediately as invalid.
5412         * tests/test-canonicalize.c: Verify symlinks are
5413         not followed, and that invalid flag combinations
5414         are diagnosed.
5415
5416 2011-12-25  Jim Meyering  <meyering@redhat.com>
5417
5418         gitlog-to-changelog: do not clump multi-paragraph entries
5419         Identical header lines (date,name,email+coauthors) are suppressed,
5420         thus putting all entries with those same characteristics under
5421         a single header.  However, when a log entry consists of two or
5422         more paragraphs, it may not be clear where it starts and ends.
5423         This change makes it so that such an entry is always separated
5424         from others by a header line, even when that header would
5425         otherwise be suppressed.
5426         * build-aux/gitlog-to-changelog: Implement the above.
5427         Inspired by a related request from Stefano Lattarini in
5428         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
5429
5430 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5431
5432         announce-gen: fix `cmd' typo in diagnostic
5433         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
5434         diagnostic: a missing '$' meant that the command was not output.
5435
5436 2011-12-23  Jim Meyering  <meyering@redhat.com>
5437
5438         test-framework-sh: distribute init.sh
5439         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
5440         Otherwise, "make -C gnulib-tests check" (at least in grep) would
5441         fail due to the lack of init.sh.
5442
5443         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
5444         * modules/atexit-tests: Rather than listing tests/init.sh,
5445         now that there's a module for it, simply depend on that new module.
5446         * modules/closein-tests: Likewise.
5447         * modules/exclude-tests: Likewise.
5448         * modules/getcwd-tests: Likewise.
5449         * modules/perror-tests: Likewise.
5450         * modules/pread-tests: Likewise.
5451         * modules/pwrite-tests: Likewise.
5452         * modules/vc-list-files-tests: Likewise.
5453         * modules/verify-tests: Likewise.
5454         * modules/xalloc-die-tests: Likewise.
5455         * modules/xstrtoimax-tests: Likewise.
5456         * modules/xstrtol-tests: Likewise.
5457         * modules/xstrtoll-tests: Likewise.
5458         * modules/xstrtoumax-tests: Likewise.
5459         * modules/yesno-tests: Likewise.
5460
5461 2011-12-22  Jim Meyering  <meyering@redhat.com>
5462
5463         test-framework-sh: add minimal tests of init.sh's compare function
5464         * modules/test-framework-sh-tests: New file.
5465         * tests/test-init.sh: New file.
5466
5467         test-framework-sh: new module
5468         * modules/test-framework-sh: New file.
5469         * MODULES.html.sh (Support for maintaining and releasing projects):
5470         List it.
5471
5472         init.sh: do not emit simulated diff output to stderr
5473         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
5474
5475 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5476
5477         .gitignore: ignore gnulib.dvi and regex.info
5478         * doc/.gitignore:add gnulib.dvi and regex.info
5479
5480 2011-12-22  Jim Meyering  <meyering@redhat.com>
5481
5482         init.sh: correct previous change
5483         * tests/init.sh (compare): My previous change was wrong.
5484         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
5485
5486         init.sh: avoid unwarranted test failure when using "set -e"
5487         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
5488         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
5489         a use like "compare exp out" would get evoke an unconditional failure.
5490
5491 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
5492
5493         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
5494         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
5495         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
5496         autoreconf that did not.
5497         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
5498         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
5499
5500 2011-12-17  Jim Meyering  <meyering@redhat.com>
5501
5502         bootstrap: remove some now-unneeded code
5503         This script arose back when gnulib-tool was young.
5504         Since then, it has seen improvements that render much of this
5505         script unnecessary.  In particular, it can now make symlinks
5506         to the files it uses.  Also, I no longer see as much value in
5507         marking files as read-only via comments.
5508         If you relied on the symlink-creation feature of the preceding
5509         version of this script, you can get most of that functionality
5510         by adding the --symlink option to the definition of
5511         gnulib_tool_option_extras in your bootstrap.conf file.
5512         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
5513         Run autopoint and libtoolize *before* gnulib-tool.
5514         After it, run an abbreviated autoreconf, rather than a loop around
5515         all tools.
5516         (slirp, bt_mark_as_generated): Remove functions.
5517
5518 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
5519
5520         ftoastr: fix typo
5521         * lib/ftoastr.h: Fix misspelling in comment.
5522
5523 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
5524
5525         * top/README-release: fix punctuation.
5526
5527 2011-12-17  Jim Meyering  <meyering@redhat.com>
5528
5529         bootstrap: correct the recent buildreq change
5530         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
5531         had no effect.
5532         * build-aux/bootstrap (buildreq): Bracket each search term with
5533         "*...*", so that the shell "case" statement works as intended.
5534         Add comments.
5535
5536 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
5537
5538         build: let bootstrap resort to wget when downloading .po files
5539         * build-aux/bootstrap (download_po_files): Fallback to wget when
5540         downloading the .po files via rsync fails.  This is necessary to
5541         bootstrap from behind a strict firewall.
5542
5543 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5544
5545         stdint: don't assume C++11 when compiling with g++
5546         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
5547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
5548         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
5549         work also in C++ before C++11, as that improperly inhibits
5550         generating a substitute stdint.h for that case.
5551
5552 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
5553
5554         alloca: protect comment from gnulib-tool
5555         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
5556         that gnulib-tool doesn't think it's a license, and munge it to
5557         say "GCC version 3".
5558
5559 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
5560
5561         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
5562         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
5563         $(abs_top_builddir) instead of $(top_builddir).
5564
5565 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
5566
5567         strftime-tests: also test nanoseconds
5568         * tests/test-strftime.c (T): Add a test of %N.
5569
5570 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
5571
5572         inttypes, stdint: add C++11 support
5573         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
5574         when including inttypes.h and stdint.h.  Support this change to
5575         the standard.
5576         * doc/posix-headers/inttypes.texi (inttypes.h):
5577         * doc/posix-headers/stdint.texi (stdint.h): Document this.
5578         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
5579         Define if not defined already, for the benefit of pre-C++11 hosts.
5580         Define the standard format macros (e.g., PRId8) always.
5581         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
5582         Likewise, if __cpluspus.  Define the standard constant and limit
5583         macros (e.g., INT8_C, INT8_MAX) always.
5584         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
5585         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
5586         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
5587         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
5588         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
5589         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
5590         Likewise.
5591
5592 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5593
5594         nonblocking tests: Fix test failure on Linux/PPC.
5595         Suggested by Prerna Saxena in
5596         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
5597         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
5598         Set to 1100000.
5599
5600 2011-12-12  Jim Meyering  <meyering@redhat.com>
5601
5602         argmatch: don't hard-code `' when listing valid option arguments
5603         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
5604         use the quote function to add quotes.  Use fputs rather than
5605         fprintf for the format string with no format directive.
5606
5607 2011-12-07  Eric Blake  <eblake@redhat.com>
5608
5609         bootstrap: detect tools required by gnulib-tool
5610         * build-aux/bootstrap (buildreq): Provide minimum implicit
5611         dependencies.
5612         * DEPENDENCIES: Mention patch as a prereq.
5613
5614 2011-12-04  Bruno Haible  <bruno@clisp.org>
5615
5616         sethostname: Port to Windows platforms.
5617         * lib/sethostname.c: Provide an alternate implementation for Windows
5618         platforms.
5619         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
5620         (main): Skip the test if sethostname() fails with EPERM. On Windows
5621         platforms, don't check the result of gethostname().
5622
5623 2011-12-04  Bruno Haible  <bruno@clisp.org>
5624             Jim Meyering  <meyering@redhat.com>
5625
5626         tests: Avoid spurious error message on platforms without mktemp program.
5627         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
5628
5629 2011-12-04  Bruno Haible  <bruno@clisp.org>
5630
5631         sethostname: Fix documentation.
5632         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
5633         "not fixed" section.
5634
5635 2011-12-03  Bruno Haible  <bruno@clisp.org>
5636
5637         gnulib-tool: Verify that the License field is present and non-empty.
5638         * gnulib-tool (func_get_license_raw): New function, extracted from
5639         func_get_license.
5640         (func_get_license): Use it. Warn if the module is not a test module and
5641         has no license.
5642         Suggested by Jim Meyering.
5643
5644 2011-12-03  Bruno Haible  <bruno@clisp.org>
5645
5646         sethostname tests: Fix link error on mingw.
5647         * tests/test-sethostname1.c: New file, extracted from
5648         tests/test-sethostname.c.
5649         * tests/test-sethostname2.c: New file, extracted from
5650         tests/test-sethostname.c.
5651         * tests/test-sethostname.c: Remove file.
5652         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
5653         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
5654         (Depends-on): Add gethostname.
5655         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
5656         Link the latter with $(GETHOSTNAME_LIB).
5657
5658         sethostname tests: Fix compilation error on mingw.
5659         * tests/test-sethostname.c: Don't include <sys/types.h>.
5660         (geteuid): Use a dummy value without uid_t.
5661         * modules/sethostname-tests (Depends-on): Remove sys_types.
5662
5663         sethostname tests: Avoid a gcc warning.
5664         * tests/test-sethostname.c (main): Remove an unused variable.
5665
5666         Tweak last commit.
5667         * modules/sethostname-tests (Files): Sort by decreasing importance.
5668         (configure.ac): Check for geteuid.
5669         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
5670         the test when there's nothing to test. Drop an unnecessary cast.
5671         Improve an error message. Verify that the final sethostname() call
5672         succeeds.
5673
5674 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5675
5676         Add a test suite for the sethostname module.
5677         * modules/sethostname-tests: New file.  A test program
5678         for the sethostname module.
5679         * tests/test-sethostname.c: Likewise.
5680
5681 2011-12-03  Bruno Haible  <bruno@clisp.org>
5682
5683         Tweak last commit.
5684         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
5685         Fix preprocessor directives indentation. Fix typos.
5686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
5687         * modules/unistd (Makefile): Likewise.
5688
5689 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5690
5691         Integrate the sethostname module into unistd.
5692         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
5693         into the unistd.h header.
5694         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
5695         preprocessor directives.
5696         * modules/unistd: Setup the Makefile substitutions of the
5697         SETHOSTNAME preprocessor directives.
5698
5699 2011-12-03  Bruno Haible  <bruno@clisp.org>
5700
5701         Tweak last commit.
5702         * lib/sethostname.c: Don't include <string.h>.
5703         (sethostname): No need to copy the argument string to the stack. Don't
5704         call clearerr. Preserve errno when fprintf failed.
5705         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
5706         Don't invoke AC_REPLACE_FUNCS.
5707         * modules/sethostname (Link): Remove empty section.
5708         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
5709         failure problem.
5710
5711 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5712
5713         New module 'sethostname'.
5714         * lib/sethostname.c (sethostname): New file.  Provide sethostname
5715         for systems that lack it.
5716         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
5717         sethostname declaration and function.
5718         * modules/sethostname: New file.  Define the sethostname module.
5719
5720 2011-12-03  Bruno Haible  <bruno@clisp.org>
5721
5722         Tweak last commit.
5723         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
5724
5725 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
5726
5727         Split the HOST_NAME_MAX detection into a separate m4 macro.
5728         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
5729         macro so it can be used by the pending sethostname module.
5730
5731 2011-12-03  Bruno Haible  <bruno@clisp.org>
5732
5733         Fix module descriptions syntax.
5734         * modules/argv-iter (License): Fix syntax.
5735         * modules/di-set (License): Likewise.
5736         * modules/ino-map (License): Likewise.
5737         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
5738
5739 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
5740
5741         stdalign: port to Clang 3.0
5742         Problem reported by Simon Josefsson in
5743         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
5744         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
5745         which has <stdalign.h> but which does not define alignof.
5746         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
5747
5748 2011-12-01  Eric Blake  <eblake@redhat.com>
5749
5750         mktempd: silence dd usage
5751         * build-aux/mktempd (rand_bytes): Silence dd.
5752
5753 2011-11-30  Simon Josefsson  <simon@josefsson.org>
5754
5755         manywarnings: Don't mention gcc version in docstring.
5756         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
5757         Jim Meyering <meyering@redhat.com>.
5758
5759 2011-11-30  Jim Meyering  <meyering@redhat.com>
5760
5761         hash: mark a few floating point constants with "f" suffix
5762         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
5763         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
5764         floating point constants with "f", since they're destined to be
5765         saved/used as "float"s.
5766
5767 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
5768
5769         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
5770         * tests/test-float.c (test_long_double): Correct and re-enable the
5771         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
5772
5773 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
5774
5775         Avoid subtracting two pointers that don't point into the same block.
5776         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
5777         only pointers into the same memory block are subtracted. We cannot
5778         assume that sizeof (ptrdiff_t) == sizeof (void *).
5779
5780 2011-11-29  Eric Blake  <eblake@redhat.com>
5781
5782         maint.mk: add syntax check for use of compare from init.sh
5783         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
5784         moved here from coreutils.
5785
5786         manywarnings: drop -Wunsuffixed-float-constants
5787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
5788         '1.0D', which is the only way to silence this warning for 'double'.
5789
5790 2011-11-29  Jim Meyering  <meyering@redhat.com>
5791
5792         hash: mark compute_bucket_size with the pure attribute
5793         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
5794
5795         quotearg, propername: correct pragma guard expression
5796         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
5797         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
5798
5799 2011-11-28  Jim Meyering  <meyering@redhat.com>
5800
5801         propername: do not mark proper_name with the const attribute
5802         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
5803         since it examines data pointed to by its parameter.
5804         * lib/propername.c (proper_name): Instead, add a pragma to suppress
5805         the suggestion from -Wsuggest-attribute=const.
5806
5807         propername: mark one more function as const
5808         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5809
5810 2011-11-27  Jim Meyering  <meyering@redhat.com>
5811
5812         mark functions with const and pure attributes
5813
5814         Mark functions per suggestions from gcc-4.6 when using these options:
5815         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5816         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5817         Follow these guidelines: when possible, apply the attribute to
5818         an extern declaration, not to its definition.  Apply it to the
5819         definition only when the definition is static.
5820         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5821         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5822         * lib/base64.h (isbase64): Likewise.
5823         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5824         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5825         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5826         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5827         (c_tolower, c_toupper): Likewise.
5828         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5829         * lib/chdir-long.c (find_non_slash): Likewise.
5830         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5831         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5832         * lib/file-type.h (file_type): Likewise.
5833         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5834         * lib/filevercmp.c (verrevcmp): Likewise.
5835         * lib/freadahead.h (freadahead): Likewise.
5836         * lib/fts.c (fts_maxarglen): Likewise.
5837         * lib/hash-pjw.h (hash_pjw): Likewise.
5838         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5839         * lib/hash.c (is_prime, next_prime): Likewise.
5840         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5841         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5842         (hash_table_ok, hash_get_first, hash_string): Likewise.
5843         (compute_bucket_size): Likewise.
5844         * lib/i-ring.h (i_ring_empty): Likewise.
5845         * lib/isnan.c (isnanl): Likewise.
5846         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5847         * lib/memcasecmp.h (memcasecmp): Likewise.
5848         * lib/memchr2.h (memchr2): Likewise.
5849         * lib/memcmp2.h (memcmp2): Likewise.
5850         * lib/parse-datetime.y (lookup_zone): Likewise.
5851         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5852         [!WINDOWS_SOCKETS]: Likewise.
5853         * lib/strnlen1.h (strnlen1): Likewise.
5854         * lib/uniwidth.in.h (uc_width): Likewise.
5855         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5856         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5857         (quoting_options_from_style): Add a comment.
5858         * lib/propername.h (proper_name): Add a comment.
5859
5860 2011-11-27  Bruno Haible  <bruno@clisp.org>
5861
5862         Remove unused macros from !_LIBC code in glibc-borrowed files.
5863         * lib/fnmatch.c (STRCOLL): Remove macro.
5864         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5865         * lib/glob.c (__stat, __readdir64): Remove macros.
5866         * lib/tempname.c (__open64, __xstat64): Remove macros.
5867         Suggested by Paul Eggert.
5868
5869 2011-11-27  Bruno Haible  <bruno@clisp.org>
5870
5871         getcwd: Fix link error on MSVC 9.
5872         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5873
5874 2011-11-27  Bruno Haible  <bruno@clisp.org>
5875
5876         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5877         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5878         HAVE_OPENDIR is 0.
5879         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5880         HAVE_CLOSEDIR is 0.
5881         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5882         is 0.
5883         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5884
5885 2011-11-27  Bruno Haible  <bruno@clisp.org>
5886
5887         getcwd: Fix bug from 2011-08-17.
5888         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5889         platforms that need it.
5890         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5891         code of 4 to be a failure, not a success. This ensures that
5892         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5893
5894 2011-11-27  Bruno Haible  <bruno@clisp.org>
5895
5896         binary-io tests: Avoid test failure on mingw when libtool is used.
5897         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5898         Don't verify the size of t-bin-out1.tmp here.
5899         * tests/test-binary-io.sh: Verify it here.
5900         Reported by Simon Josefsson.
5901
5902 2011-11-26  Bruno Haible  <bruno@clisp.org>
5903
5904         Fix conflict between two instantiations of module 'unistd'.
5905         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5906         ${include_guard_prefix} also in the autoconf snippet.
5907         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5909         GNULIB_UNISTD_H_GETOPT.
5910         * modules/getopt-posix (configure.ac): Set the
5911         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5912         * modules/getopt-gnu (configure.ac): Likewise.
5913         * modules/unistd (Makefile.am): Change the substitution value of
5914         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5915         Reported by Simon Josefsson.
5916
5917 2011-11-25  Bruno Haible  <bruno@clisp.org>
5918
5919         pagealign_alloc: Doc and comments.
5920         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5921         module.
5922         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5923
5924 2011-11-25  Jim Meyering  <meyering@redhat.com>
5925
5926         test-update-copyright.sh: avoid false-positive failure
5927         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5928         around false positive failure on Cygwin/Windows.  The latter was
5929         matching erroneously-created files with names like
5930         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5931
5932 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5933
5934         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5935         * m4/valgrind-tests.m4: Check that the parameters that will be
5936         used works, not just a subset of them.  Reported by Bruno Haible
5937         <bruno@clisp.org>.
5938
5939 2011-11-24  Jim Meyering  <meyering@redhat.com>
5940
5941         test-stdalign.c: comment out long double tests
5942         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5943         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5944         error: '_Alignas' specifiers cannot reduce alignment of \
5945         'static_longdouble_alignas'.
5946
5947 2011-11-22  Jim Meyering  <meyering@redhat.com>
5948
5949         init.sh: make "compare /dev/null FILE" output more readable
5950         * tests/init.sh (compare_): Document the preferred order of arguments.
5951         (emit_diff_u_header_): New function.
5952         (compare_dev_null_): Emit a simulated diff, rather than just the
5953         contents of the unexpected file.  Suggestion from Bruno Haible.
5954
5955 2011-11-21  Jim Meyering  <meyering@redhat.com>
5956             Eric Blake  <eblake@redhat.com>
5957
5958         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5959         * tests/init.sh: Make our compare function slightly more portable.
5960         Reported by Bruno Haible in
5961         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5962
5963 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5964
5965         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5966         before using it, in code that ends up in config.h.
5967
5968 2011-11-20  Bruno Haible  <bruno@clisp.org>
5969
5970         getcwd: Work around getcwd bug on AIX 5..7.
5971         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5972         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5973         Use a different value for gl_cv_func_getcwd_path_max. Move the
5974         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5975         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5976         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5977         Define HAVE_MINIMALLY_WORKING_GETCWD.
5978         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5979         where it is not even minimally working, that is, on AIX.
5980         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5981         m4/getcwd-path-max.m4.
5982         (main): Update exit code computation.
5983         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5984         getcwd does not handle long file names.
5985
5986 2011-11-20  Bruno Haible  <bruno@clisp.org>
5987
5988         getcwd: Fix bug from 2009-09-10.
5989         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5990         like "no".
5991
5992 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5993
5994         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5995
5996 2011-11-20  Bruno Haible  <bruno@clisp.org>
5997
5998         fma tests: Avoid shadowing local variables.
5999         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
6000         expected.
6001
6002 2011-11-20  Bruno Haible  <bruno@clisp.org>
6003
6004         copysignf tests: Fix.
6005         * tests/test-copysignf.c: Fix signature check.
6006
6007 2011-11-20  Bruno Haible  <bruno@clisp.org>
6008
6009         fma: Remove unused code.
6010         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
6011         unused macros.
6012
6013 2011-11-20  Bruno Haible  <bruno@clisp.org>
6014
6015         sethostname: Fix doc about AIX.
6016         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
6017         sethostname; it has it.
6018
6019         sethostname: Mention more portability problems.
6020         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
6021         problem.
6022         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
6023
6024 2011-11-19  Bruno Haible  <bruno@clisp.org>
6025
6026         Depend on module fcntl-h when AT_FDCWD is used.
6027         * modules/utimens (Depends-on): Add fcntl-h.
6028         * modules/areadlinkat (Depends-on): Likewise.
6029         * modules/areadlinkat-with-size (Depends-on): Likewise.
6030         * modules/faccessat (Depends-on): Likewise.
6031         * modules/fchmodat (Depends-on): Likewise.
6032         * modules/fchownat (Depends-on): Likewise.
6033         * modules/getcwd (Depends-on): Likewise.
6034         * modules/mkdirat (Depends-on): Likewise.
6035         * modules/mkfifoat (Depends-on): Likewise.
6036         * modules/readlinkat (Depends-on): Likewise.
6037         * modules/symlinkat (Depends-on): Likewise.
6038         * modules/dup2-tests (Depends-on): Likewise.
6039         * modules/fdutimensat-tests (Depends-on): Likewise.
6040         * modules/futimens-tests (Depends-on): Likewise.
6041
6042 2011-11-19  Bruno Haible  <bruno@clisp.org>
6043
6044         euidaccess: Update a comment.
6045         * lib/euidaccess.c: Update comment about platforms with faccessat.
6046
6047 2011-11-19  Bruno Haible  <bruno@clisp.org>
6048
6049         openat: Fix file list.
6050         * modules/openat (Files): Remove lib/at-func.c.
6051
6052 2011-11-19  Bruno Haible  <bruno@clisp.org>
6053
6054         fstatat: Simplify.
6055         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
6056         gnulib should define rpl_fstatat, there is a
6057         "#define fstatat rpl_fstatat" in <sys/stat.h>.
6058
6059 2011-11-19  Bruno Haible  <bruno@clisp.org>
6060
6061         Ensure 'inline' can be used in tests/test-utimens-common.h.
6062         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
6063         * modules/futimens-tests (configure.ac): Likewise.
6064         * modules/utimens-tests (configure.ac): Likewise.
6065         * modules/utimensat-tests (configure.ac): Likewise.
6066
6067 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6068
6069         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
6070         not hash_insert0.
6071         (hash_insert_if_absent): Doc fix.
6072
6073 2011-11-19  Simon Josefsson  <simon@josefsson.org>
6074
6075         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
6076
6077 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
6078
6079         test-getcwd: disambiguate exit status
6080         * tests/test-getcwd.c (test_long_name): Return 0..7.
6081         (main): Exit with an unambiguous exit status.  The old
6082         code yielded a mysterious mixture of two failure codes.
6083
6084         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
6085         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
6086         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
6087         rpl_fstatat or fstatat.  This should fix the other problem
6088         reported by Kai Habel in
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6090         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
6091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
6092         and I reproduced it on a Solaris 8 host we still have in production.
6093
6094 2011-11-18  Jim Meyering  <meyering@redhat.com>
6095
6096         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
6097         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
6098         Add a sentence to the comment.
6099         (hash_insert0): New function that simply calls hash_insert_if_absent.
6100         * lib/hash.h (hash_insert_if_absent): Declare it.
6101         (hash_insert0): Add deprecation attribute.
6102         (_GL_ATTRIBUTE_DEPRECATED): Define.
6103         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
6104         not hash_insert0.
6105         * NEWS: Mention it, even though it's not really an incompatible change.
6106
6107 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
6108
6109         openat: avoid compilation failure due to lack of <errno.h> inclusion
6110         * lib/openat.c: Include <errno.h>.
6111
6112 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6113
6114         * modules/getcwd (Depends-on): Add fdopendir.
6115         This fixes one of the two problems reported by Kai Habel in
6116         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
6117
6118         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
6119         stdalign problem reported by Ian Beckwith in
6120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
6121         * modules/crypto/gc-arcfour (Depends-on):
6122         Depend conditionally on crypto/arcfour.
6123         * modules/crypto/gc-arctwo (Depends-on):
6124         Depend conditionally on crypto/arctwo.
6125         * modules/crypto/gc-des (Depends-on):
6126         Depend conditionally on crypto/des.
6127         * modules/crypto/gc-hmac-md5 (Depends-on):
6128         Depend conditionally on crypto/hmac-md5.
6129         * modules/crypto/gc-hmac-sha1 (Depends-on):
6130         Depend conditionally on crypto/hmac-sha1.
6131         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
6132         * modules/crypto/gc-md4 (Depends-on):
6133         Depend conditionally on crypto/md4.
6134         * modules/crypto/gc-md5 (Depends-on):
6135         Depend conditionally on crypto/md5.
6136         * modules/crypto/gc-rijndael (Depends-on):
6137         Depend conditionally on crypto/rijndael.
6138         * modules/crypto/gc-sha1 (Depends-on):
6139         Depend conditionally on crypto/sha1.
6140         * modules/crypto/gc-arcfour:
6141         * modules/crypto/gc-arctwo:
6142         * modules/crypto/gc-des:
6143         * modules/crypto/gc-hmac-md5:
6144         * modules/crypto/gc-hmac-sha1:
6145         * modules/crypto/gc-md2:
6146         * modules/crypto/gc-md4:
6147         * modules/crypto/gc-md5:
6148         * modules/crypto/gc-rijndael:
6149         * modules/crypto/gc-sha1:
6150         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
6151         now that the conditional dependencies do the work for us.
6152
6153 2011-11-17  Jim Meyering  <meyering@redhat.com>
6154
6155         tests: factor st_ctime-comparison out of two headers
6156         * tests/test-utimens-common.h (ctime_compare): Define.
6157         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
6158         * tests/test-lutimens.h (test_lutimens): Likewise.
6159         * tests/test-utimens.h (test_utimens): Likewise.
6160
6161         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
6162         Invoke the test program via an init.sh-using wrapper.
6163         * tests/test-getcwd.sh: New file.
6164         * modules/getcwd-tests (Files): Add it.
6165         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
6166
6167 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
6168
6169         gitlog-to-changelog: support multi-author commits.
6170         The FSF cares about keeping track of all authors of patches to its
6171         projects, but Git doesn't provide obvious support for multi-author
6172         changesets. Consensus seems to be forming around the use of extra
6173         Signed-off-by inspired lines in the log message formatted as
6174         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
6175         multi-author commits between version control systems.
6176         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
6177         log message and output in standard ChangeLog multi-author format.
6178         Reported by Peter Rosin <peda@lysator.liu.se>
6179
6180 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
6181             Bruno Haible  <bruno@clisp.org>
6182
6183         Fix some modules' file list.
6184         * modules/fstatat (Files): Add m4/lstat.m4.
6185         * modules/openat (Files): Likewise.
6186         * modules/unlinkat (Files): Likewise.
6187
6188 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
6189
6190         maint.mk: fix tight-scope.mk generation in VPATH builds.
6191         * top/maint.mk (tight-scope.mk): Make sure to prefix file
6192         reference with $(srcdir) so that the file is found correctly even
6193         when running `make syntax-check' in a VPATH build.
6194
6195 2011-11-13  Bruno Haible  <bruno@clisp.org>
6196             Jim Meyering  <meyering@redhat.com>
6197
6198         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
6199         * tests/init.sh (compare): Remove "No differences encountered" or
6200         synonymous output from the 'diff' program.
6201
6202 2011-11-13  Bruno Haible  <bruno@clisp.org>
6203
6204         Makefile: Tweak indentation.
6205         * Makefile: Use tab as first character in every line that contains rule
6206         commands.
6207
6208 2011-11-13  Bruno Haible  <bruno@clisp.org>
6209
6210         Syntax check for copyright statements.
6211         * check-copyright: New file.
6212         * Makefile (sc_check_copyright): New rule.
6213
6214 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6215
6216         * build-aux/git-version-gen: Add --prefix to configure the tag
6217         match string.
6218
6219 2011-11-13  Simon Josefsson  <simon@josefsson.org>
6220
6221         * build-aux/git-version-gen: Add --help and --version.
6222
6223 2011-11-12  Jim Meyering  <meyering@redhat.com>
6224
6225         revamp the other test-exclude?.sh scripts to use init.sh, too
6226         * tests/test-exclude1.sh: Use init.sh.
6227         * tests/test-exclude2.sh: Likewise.
6228         * tests/test-exclude3.sh: Likewise.
6229         * tests/test-exclude4.sh: Likewise.
6230         * tests/test-exclude5.sh: Likewise.
6231         * tests/test-exclude6.sh: Likewise.
6232         * tests/test-exclude7.sh: Likewise.
6233         * tests/test-exclude8.sh: Likewise.
6234         * modules/exclude-tests (Files): List init.sh.
6235
6236         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
6237         These shell scripts ignored failure of the binary test-exclude,
6238         so making the latter return 77 didn't cause them to be skipped.
6239         * tests/test-exclude5.sh: Exit with test-exclude's error status
6240         when that program fails.  Revamp to use init.sh.
6241         * tests/test-exclude2.sh: Likewise.
6242
6243         test-exclude: fix a typo
6244         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
6245
6246 2011-11-11  Bruno Haible  <bruno@clisp.org>
6247
6248         obstack: Fix compilation error on MSVC 9.
6249         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
6250
6251 2011-11-11  Jim Meyering  <meyering@redhat.com>
6252
6253         test-exclude: skip tests rather than failing on deficient systems
6254         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
6255         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
6256         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
6257         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
6258
6259 2011-11-10  Bruno Haible  <bruno@clisp.org>
6260
6261         ptsname_r test: Avoid gcc warning on glibc systems.
6262         * tests/test-ptsname_r.c (null_ptr): New function.
6263         (test_errors): Use it.
6264
6265 2011-11-10  Bruno Haible  <bruno@clisp.org>
6266
6267         ptsname_r: Avoid compilation error on OSF/1 5.1.
6268         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
6269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
6270         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
6271         function is not declared or incompatibly declared.
6272         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
6273         * modules/ptsname_r (Depends-on, configure.ac): Update.
6274         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
6275
6276 2011-11-10  Bruno Haible  <bruno@clisp.org>
6277
6278         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
6279         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
6280         When cross-compiling, guess yes on all platforms except AIX.
6281         Reported by Ludovic Courtès <ludo@gnu.org>.
6282
6283 2011-11-09  Bruno Haible  <bruno@clisp.org>
6284
6285         ptsname_r tests: Fix bugs.
6286         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
6287         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
6288
6289 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6290
6291         fstatat: work with cross-compilation
6292         Problem reported by Ludovic Courtès in
6293         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
6294         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
6295         "cross-compiling" and assume the bug is present.  Replace
6296         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
6297         an inverted sense, to be more conservative about our assumptions.
6298         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
6299
6300 2011-11-09  Bruno Haible  <bruno@clisp.org>
6301
6302         Improve MODULES.html output.
6303         * modules/mkfifoat (Description): Use the word "function".
6304         * modules/readlinkat (Description): Likewise.
6305         * modules/symlinkat (Description): Likewise.
6306
6307 2011-11-09  Eric Blake  <eblake@redhat.com>
6308
6309         ptsname_r-tests: new test module
6310         * modules/ptsname_r-tests: New module.
6311         * tests/test-ptsname_r.c: New file.
6312
6313         ptsname_r: new module
6314         * modules/ptsname_r: New module.
6315         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
6316         * lib/ptsname.c (__ptsname_r): Split...
6317         * lib/ptsname_r.c: ...into new file.
6318         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6319         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
6320         * modules/stdlib (Makefile.am): Substitute witnesses.
6321         * lib/stdlib.in.h (ptsname_r): Declare it.
6322         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
6323         * MODULES.html.sh (Misc): Likewise.
6324         * modules/ptsname (Depends-on): Alter dependency.
6325         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
6326
6327 2011-11-09  Jim Meyering  <meyering@redhat.com>
6328
6329         announce-gen: be more concise when there's only one URL+tarball
6330         * build-aux/announce-gen (get_tool_versions): When you distribute
6331         only one type of tarball, combine the first two "Here are..."
6332         sections and make the key-checking grammar independent of
6333         how many tarballs there are.
6334
6335 2011-11-09  Eric Blake  <eblake@redhat.com>
6336
6337         openpty: provide a stub on mingw
6338         * lib/pty.in.h (includes): Provide forward declarations.
6339         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
6340
6341         raise: fix mingw handling of SIGPIPE
6342         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
6343
6344 2011-11-08  Bruno Haible  <bruno@clisp.org>
6345
6346         More conditional dependencies.
6347         * modules/faccessat (Depends-on): Add conditions.
6348         * modules/fchmodat (Depends-on): Likewise.
6349         * modules/fchownat (Depends-on): Likewise.
6350         * modules/fstatat (Depends-on): Likewise.
6351         * modules/mkfifoat (Depends-on): Likewise.
6352         * modules/readlinkat (Depends-on): Likewise.
6353         * modules/symlinkat (Depends-on): Likewise.
6354         * modules/unlinkat (Depends-on): Likewise.
6355         * modules/utimensat (Depends-on): Likewise.
6356         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
6357         * modules/linkat (Depends-on): Refine the conditions.
6358         * modules/renameat (Depends-on): Likewise.
6359
6360 2011-11-08  Bruno Haible  <bruno@clisp.org>
6361
6362         faccessat: Move AC_LIBOBJ invocation to module description.
6363         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
6364         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
6365         invocation from here...
6366         * modules/faccessat (configure.ac): ... to here. Invoke
6367         gl_PREREQ_FACCESSAT.
6368
6369 2011-11-08  Bruno Haible  <bruno@clisp.org>
6370
6371         faccessat: Simplify autoconf macro.
6372         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
6373         gl_FUNC_EUIDACCESS.
6374
6375 2011-11-08  Bruno Haible  <bruno@clisp.org>
6376
6377         renameat: Fix dependencies.
6378         * modules/renameat (Depends-on): Add stdbool.
6379
6380 2011-11-08  Bruno Haible  <bruno@clisp.org>
6381
6382         mkfifoat: Fix module description.
6383         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
6384         not gl_UNISTD_MODULE_INDICATOR.
6385
6386 2011-11-08  Bruno Haible  <bruno@clisp.org>
6387
6388         fstatat: Remove unused dependency.
6389         * modules/fstatat (Depends-on): Remove fstat.
6390
6391 2011-11-08  Simon Josefsson  <simon@josefsson.org>
6392
6393         GNUmakefile: behave when Makefile is missing.
6394         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
6395
6396 2011-11-08  Bruno Haible  <bruno@clisp.org>
6397
6398         openat: Conditionalize dependencies.
6399         * lib/openat.c: Reduce the scope of some #includes.
6400         * modules/openat (Depends-on): Add conditions.
6401
6402 2011-11-07  Jim Meyering  <meyering@redhat.com>
6403
6404         maint.mk: extract GPG key ID without using a temporary file
6405         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
6406         without using a temporary file.  Based on a suggestion from Werner Koch
6407         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
6408
6409 2011-11-07  Eric Blake  <eblake@redhat.com>
6410
6411         grantpt: fix typo
6412         * lib/stdlib.in.h (grantpt): Check correct function.
6413
6414         maint.mk: silence new syntax check
6415         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
6416
6417 2011-11-06  Bruno Haible  <bruno@clisp.org>
6418
6419         Doc about floating-point and math API.
6420         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
6421         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
6422
6423 2011-11-06  Bruno Haible  <bruno@clisp.org>
6424
6425         stdalign tests: Skip the test when compiled by Sun C.
6426         * tests/test-stdalign.c (main): Skip the test on Sun C.
6427
6428 2011-11-06  Bruno Haible  <bruno@clisp.org>
6429
6430         ansi-c++-opt: Complete the 2011-06-05 change.
6431         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
6432         does not support namespaces, set the variable to "no", not to ":".
6433
6434 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6435
6436         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
6437
6438 2011-11-06  Bruno Haible  <bruno@clisp.org>
6439
6440         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
6441         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
6442         (minus_zerol) [HP-UX]: New macro.
6443         (unary_minus) [HP-UX]: New function.
6444         (copysignl) [HP-UX]: Use unary_minus function.
6445
6446 2011-11-06  Bruno Haible  <bruno@clisp.org>
6447
6448         ldexp, ldexpf, ldexpl: Enhance tests.
6449         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
6450         and tests/test-ldexpl.c.
6451         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
6452         LDEXP, MIN_EXP, MAX_EXP): New macros.
6453         Include test-ldexp.h.
6454         (main): Just call test_function.
6455         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
6456         infinity.h, nan.h.
6457         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6458         MAX_EXP): New macros.
6459         Include test-ldexp.h.
6460         (x, y): Remove variables.
6461         (main): Just call test_function.
6462         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
6463         infinity.h, nan.h.
6464         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
6465         MAX_EXP): New macros.
6466         Include test-ldexp.h.
6467         (x, y): Remove variables.
6468         (main): Just call test_function.
6469         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
6470         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
6471         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6472         (Depends-on): Add isnand-nolibm, signbit, float.
6473         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
6474         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
6475         (Depends-on): Add isnanf-nolibm, signbit, float.
6476
6477 2011-11-06  Bruno Haible  <bruno@clisp.org>
6478
6479         math tests: Cosmetics.
6480         * tests/test-math-c++.cc: Reorder declarations.
6481
6482 2011-11-05  Bruno Haible  <bruno@clisp.org>
6483
6484         fma*: Simplify test.
6485         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
6486         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
6487
6488         Tests for module 'fmal'.
6489         * modules/fmal-tests: New file.
6490         * tests/test-fmal1.c: New file.
6491         * tests/test-fmal2.c: New file.
6492
6493         New module 'fmal'.
6494         * lib/math.in.h (fmal): New declaration.
6495         * lib/fmal.c: New file.
6496         * m4/fmal.m4: New file.
6497         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
6498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
6499         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
6500         REPLACE_FMAL.
6501         * modules/fmal: New file.
6502         * doc/posix-functions/fmal.texi: Mention the new module and the various
6503         bugs.
6504
6505         Tests for module 'fmaf'.
6506         * modules/fmaf-tests: New file.
6507         * tests/test-fmaf1.c: New file.
6508         * tests/test-fmaf2.c: New file.
6509
6510         New module 'fmaf'.
6511         * lib/math.in.h (fmaf): New declaration.
6512         * lib/fmaf.c: New file.
6513         * m4/fmaf.m4: New file.
6514         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
6515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
6516         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
6517         REPLACE_FMAF.
6518         * modules/fmaf: New file.
6519         * doc/posix-functions/fmaf.texi: Mention the new module and the various
6520         bugs.
6521
6522         Tests for module 'fma'.
6523         * modules/fma-tests: New file.
6524         * tests/test-fma1.c: New file.
6525         * tests/test-fma1.h: New file.
6526         * tests/test-fma2.c: New file.
6527         * tests/test-fma2.h: New file.
6528
6529         New module 'fma'.
6530         * lib/math.in.h (fma): New declaration.
6531         * lib/fma.c: New file.
6532         * m4/fma.m4: New file.
6533         * m4/fegetround.m4: New file.
6534         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
6535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
6536         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
6537         REPLACE_FMA.
6538         * modules/fma: New file.
6539         * doc/posix-functions/fma.texi: Mention the new module and the various
6540         bugs.
6541
6542         Extend gl_MATHFUNC.
6543         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
6544         Support 'void' as argument type.
6545         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
6546
6547 2011-11-05  Jim Meyering  <meyering@redhat.com>
6548
6549         maint.mk: also prohibit inclusion of dirent.h without use
6550         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
6551
6552 2011-11-05  Bruno Haible  <bruno@clisp.org>
6553
6554         ldexpl tests: Avoid test failure on MSVC 9.
6555         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
6556         value. Needed in order to enforce the conversion from a value greater
6557         than LDBL_MAX to Infinity.
6558
6559 2011-11-05  Bruno Haible  <bruno@clisp.org>
6560
6561         New modules 'at-internal', 'openat-h', split off from module 'openat'.
6562         * modules/at-internal: New file, extracted from modules/openat.
6563         * modules/openat-h: New file.
6564         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
6565         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
6566         * modules/openat (Description): Add reference to POSIX function.
6567         (Files): Remove lib/openat.h, lib/openat-proc.c.
6568         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
6569         intprops, unistd.
6570         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
6571         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
6572         gl_FCNTL_MODULE_INDICATOR.
6573         (Include): Remove unistd.h, openat.h.
6574         * modules/areadlinkat (Files): Add lib/at-func.c.
6575         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6576         openat-die, openat-h, save-cwd.
6577         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
6578         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6579         openat-die, openat-h, save-cwd, unistd.
6580         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
6581         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6582         openat-h, save-cwd. Remove fcntl-h, openat.
6583         * modules/fchmodat (Files): Remove lib/openat.h.
6584         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6585         openat, stdbool, unistd.
6586         * modules/fchownat (Files): Remove lib/openat.h.
6587         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6588         openat, stdbool, sys_stat.
6589         * modules/fdopendir (Files): Remove lib/openat-priv.h,
6590         lib/openat-proc.c.
6591         (Depends-on): Add at-internal.
6592         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
6593         * modules/fstatat (Files): Remove lib/openat.h.
6594         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6595         stdbool, unistd.
6596         * modules/fts (Depends-on): Add openat-h.
6597         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
6598         openat.
6599         * modules/mkdirat (Files): Remove lib/openat.h.
6600         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
6601         openat, stdbool, sys_stat.
6602         * modules/mkfifoat (Files): Add lib/at-func.c.
6603         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6604         openat-h, save-cwd. Remove fcntl-h, openat.
6605         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
6606         * modules/readlinkat (Files): Add lib/at-func.c.
6607         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6608         openat-h, save-cwd. Remove fcntl-h, openat.
6609         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
6610         openat.
6611         * modules/selinux-at (Files): Add lib/at-func.c.
6612         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
6613         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
6614         * modules/symlinkat (Files): Add lib/at-func.c.
6615         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
6616         openat-h, save-cwd. Remove fcntl-h, openat.
6617         * modules/unlinkat (Files): Remove lib/openat.h.
6618         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
6619         stdbool.
6620         * modules/utimensat (Files): Add lib/at-func.c.
6621         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
6622         openat-die, openat-h, save-cwd.
6623         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
6624         * modules/fdutimensat-tests (Depends-on): Add openat.
6625         * modules/fstatat-tests (Depends-on): Add openat-h.
6626         * modules/readlinkat-tests (Depends-on): Add openat.
6627         * modules/symlinkat-tests (Depends-on): Add openat.
6628
6629 2011-11-05  Bruno Haible  <bruno@clisp.org>
6630
6631         openat: Include <stdbool.h>.
6632         * lib/openat.c: Include <stdbool.h>.
6633
6634 2011-11-04  Bruno Haible  <bruno@clisp.org>
6635
6636         fchownat, renameat, unlinkat: Fix dependencies.
6637         * modules/fchownat (Depends-on): Add fstatat.
6638         * modules/renameat (Depends-on): Likewise.
6639         * modules/unlinkat (Depends-on): Likewise.
6640
6641 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
6642
6643         openat: remove direct dependency on dirent
6644         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
6645         and hasn't been needed ever since fdopendir was split into its own
6646         module on 2009-08-31.
6647         * modules/openat (Depends-on): Remove dirent.
6648
6649 2011-11-04  Bruno Haible  <bruno@clisp.org>
6650
6651         renameat: Optimize code size.
6652         * modules/renameat (configure.ac): Don't compile at-func2.c if
6653         REPLACE_RENAMEAT is 1.
6654
6655 2011-11-04  Bruno Haible  <bruno@clisp.org>
6656
6657         openat tests: Fix file list.
6658         * modules/openat-tests (Files): Add tests/test-open.h.
6659
6660 2011-11-04  Bruno Haible  <bruno@clisp.org>
6661
6662         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
6663         * modules/fchmodat (Depends-on): Add openat-die.
6664         * modules/fchownat (Depends-on): Likewise.
6665         * modules/linkat (Depends-on): Likewise.
6666         * modules/renameat (Depends-on): Likewise.
6667         * modules/openat (Depends-on): Add dirent.
6668
6669 2011-11-04  Jim Meyering  <meyering@redhat.com>
6670
6671         at-func*.c: fix comments
6672         * lib/at-func2.c: Correct/improve first-line comment.
6673         * lib/at-func.c: Correct grammar in first-line comment.
6674
6675 2011-11-04  Bruno Haible  <bruno@clisp.org>
6676
6677         New module 'mkdirat', split off from module 'openat'.
6678         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
6679         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
6680         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
6681         * modules/mkdirat: New file, extracted from modules/openat.
6682         * modules/openat (Files): Remove lib/mkdirat.c.
6683         (Depends-on): Remove mkdir.
6684         (configure.ac): Remove AC_LIBOBJ of mkdirat.
6685         (Include): Remove <sys/stat.h>.
6686         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
6687         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
6688         tests/test-mkdir.h.
6689         (Depends-on): Remove ignore-value.
6690         (Makefile.am): Remove rules for test-mkdirat.
6691         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
6692         of module 'openat'.
6693         * NEWS: Mention the change.
6694
6695 2011-11-04  Bruno Haible  <bruno@clisp.org>
6696
6697         closedir: Avoid warning on mingw.
6698         * lib/closedir.c: Include <unistd.h>.
6699
6700 2011-11-04  Bruno Haible  <bruno@clisp.org>
6701
6702         New module 'fstatat', split off from module 'openat'.
6703         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
6704         defined.
6705         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
6706         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
6707         gl_FUNC_FSTATAT.
6708         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
6709         * modules/fstatat: New file, extracted from modules/openat.
6710         * modules/openat (Files): Remove lib/fstatat.c.
6711         (Depends-on): Remove lstat.
6712         (configure.ac): Remove AC_LIBOBJ of fstatat.
6713         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
6714         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
6715         tests/test-lstat.h, tests/test-stat.h.
6716         (Depends-on): Remove getcwd-lgpl.
6717         (Makefile.am): Remove rules for test-fstatat.
6718         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
6719         of module 'openat'.
6720         * NEWS: Mention the change.
6721         * modules/getcwd (Depends-on): Add fstatat.
6722         * modules/linkat (Depends-on): Likewise.
6723         * modules/mkfifoat-tests (Depends-on): Likewise.
6724         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
6725
6726 2011-11-03  Bruno Haible  <bruno@clisp.org>
6727
6728         New module 'unlinkat', split off from module 'openat'.
6729         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
6730         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
6731         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
6732         * modules/unlinkat: New file, extracted from modules/openat. Correct
6733         the dependency conditions.
6734         * modules/openat (Files): Remove lib/unlinkat.c.
6735         (Depends-on): Remove rmdir, unlink.
6736         (configure.ac): Remove AC_LIBOBJ of unlinkat.
6737         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
6738         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
6739         tests/test-rmdir.h, tests/test-unlink.h.
6740         (Depends-on): Remove unlinkdir.
6741         (Makefile.am): Remove rules for test-unlinkat.
6742         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
6743         of module 'openat'.
6744         * NEWS: Mention the change.
6745         * modules/linkat-tests (Depends-on): Add unlinkat.
6746         * modules/mkfifoat-tests (Depends-on): Likewise.
6747         * modules/readlinkat-tests (Depends-on): Likewise.
6748
6749 2011-11-02  Bruno Haible  <bruno@clisp.org>
6750
6751         New module 'fchmodat', split off from module 'openat'.
6752         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
6753         defined.
6754         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
6755         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
6756         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
6757         * modules/fchmodat: New file, extracted from modules/openat.
6758         * modules/openat (Files): Remove lib/fchmodat.c.
6759         (configure.ac): Remove AC_LIBOBJ of fchmodat.
6760         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
6761         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
6762         (Makefile.am): Remove rules for test-fchmodat.
6763         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
6764         of module 'openat'.
6765         * NEWS: Mention the change.
6766
6767 2011-11-02  Jim Meyering  <meyering@redhat.com>
6768
6769         putenv: indent #definition of "environ" to placate cppi
6770         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
6771
6772         gitlog-to-changelog: provide a ChangeLog-repair mechanism
6773         Git logs are often treated as immutable, because editing them
6774         changes the SHA1 checksums of all descendants.  Thus, errors in
6775         git logs tend to stay there forever.  However, when we generate
6776         a ChangeLog file -- typically for distribution -- from that git log,
6777         we can actually make corrections in the generated file.  The key
6778         lies in recording in machine-readable/applicable form the desired
6779         corrections.  See --help for description and an example.
6780         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
6781         (usage): Describe it; alphabetize option descriptions.
6782         (main): Honor the new option, carefully.
6783
6784 2011-11-01  Jim Meyering  <meyering@redhat.com>
6785
6786         gitlog-to-changelog: avoid an infloop
6787         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
6788         that ends up being empty.
6789
6790 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6791
6792         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
6793         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
6794         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
6795         contains (possibly-quoted) backslashes.  This should avoid
6796         all-too-common shell bugs if COMPLICATED contains backslashes in
6797         the "wrong" places.  Reported by David Evans in
6798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
6799         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
6800         because we want ASCII ranges.  Is there some reason we don't use
6801         the C locale everywhere in this script?
6802         (func_module, top level): Avoid unwanted pathname expansion when
6803         $repo_url_prefix or $repo_url_suffix_repl contain shell
6804         metacharacters like '?' and '*'.
6805
6806 2011-11-01  Bruno Haible  <bruno@clisp.org>
6807
6808         fchownat: Improve description.
6809         * modules/fchownat (Description): Add link to function.
6810
6811 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6812
6813         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6814         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6816         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6817
6818 2011-11-01  Bruno Haible  <bruno@clisp.org>
6819
6820         alignof: Avoid collision with stdalign module.
6821         * lib/alignof.h (alignof): Remove macro.
6822         * NEWS: Mention the change.
6823         Reported by Paul Eggert.
6824
6825 2011-11-01  Bruno Haible  <bruno@clisp.org>
6826
6827         New module 'fchownat', split off from module 'openat'.
6828         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6829         defined.
6830         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6831         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6832         invoke gl_FUNC_FCHOWNAT.
6833         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6834         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6835         * modules/fchownat: New file, extracted from modules/openat.
6836         * modules/openat (Files): Remove lib/fchownat.c.
6837         (Depends-on): Remove lchown.
6838         (configure.ac): Remove AC_LIBOBJ of fchownat.
6839         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6840         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6841         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6842         (Depends-on): Remove mgetgroups, usleep, stat-time.
6843         (configure.ac): Remove test for getegid.
6844         (Makefile.am): Remove rules for test-fchownat.
6845         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6846         of module 'openat'.
6847         * NEWS: Mention the change.
6848
6849 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6850
6851         stdalign: port better to MSVC and to Sun C 5.11
6852         This fixes some of the problems reported by Bruno Haible in
6853         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6854         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6855         shortcomings of MSVC and of Sun C 5.11.
6856         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6857         around __declspec arg.
6858         * modules/stdalign-tests (Files): Add tests/macros.h.
6859         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6860         Include macros.h, for ASSERT.
6861         (DECLARE_ALIGNED): Remove.
6862         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6863         to catch bug), and to 1 if not (simplifies the rest of the code).
6864         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6865         (CHECK_AUTO): Remove.
6866         (CHECK_ALIGNED): Check only the alignment of the static vars,
6867         since auto var alignment isn't supported by Sun C 5.11.
6868         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6869         ASSERT failures are easier to diagnose.
6870
6871 2011-10-31  Bruno Haible  <bruno@clisp.org>
6872
6873         doc about some IRIX 5.3 problems.
6874         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6875         on IRIX 5.3.
6876         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6877         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6878         5.3.
6879         * doc/posix-functions/grantpt.texi: Likewise.
6880         * doc/posix-functions/unlockpt.texi: Likewise.
6881         * doc/posix-functions/lgamma.texi: Likewise.
6882         * doc/posix-functions/nextafter.texi: Likewise.
6883         * doc/posix-functions/remainder.texi: Likewise.
6884         * doc/posix-functions/select.texi: Mention misplaced declaration on
6885         IRIX 5.3.
6886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6887
6888 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6889
6890         gitlog-to-changelog: fix git-log invocation.
6891         git-log mishandles date strings before 1970-01-01 UTC, and there is
6892         no use to specify --since=1970-01-01 by default anyway.
6893         * build-aux/gitlog-to-changelog: By default, when no --since option
6894         was given, do not specify explicit --since option to git-log.
6895
6896 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6897
6898         gitlog-to-changelog: new option --append-dot.
6899         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6900         first non-blank line of each commit message terminated with a dot.
6901
6902 2011-10-30  Bruno Haible  <bruno@clisp.org>
6903
6904         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6905         * lib/ffsl.h: Include <config.h>.
6906         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6907
6908 2011-10-30  Jim Meyering  <meyering@redhat.com>
6909
6910         GNUmakefile: reenable "make syntax-check" for most projects
6911         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6912         build-aux variable", "syntax-check" would do nothing but succeed with
6913         the "No version control files detected..." diagnostic (unless you
6914         happened to override _build-aux via cfg.mk).
6915         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6916         to precede inclusion of maint.mk.  Otherwise, these variables would
6917         be used undefined in any project that does not override the default.
6918
6919 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6920
6921         gitlog-to-changelog: treat a message with only blank lines as empty.
6922         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6923         trailing blank lines before the code that issues a warning about an
6924         empty commit message.
6925
6926 2011-10-30  Jim Meyering  <meyering@redhat.com>
6927
6928         test-parse-datetime.c: avoid new DST-related false positive test failure
6929         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6930         based on the time/date we'll convert, not the current time.
6931         Otherwise, the moment we cross a DST boundary like today's in
6932         Europe, (CEST to CET), that offset ends up being one hour off.
6933
6934 2011-10-27  Bruno Haible  <bruno@clisp.org>
6935
6936         fstat: Tweak documentation.
6937         * modules/fstat (Description): More precise description.
6938
6939 2011-10-27  Bruno Haible  <bruno@clisp.org>
6940
6941         Update documentation regarding 'largefile' module.
6942         * doc/posix-functions/fstat.texi: Tweak wording.
6943         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6944         problems with huge directories and/or small ino_t types.
6945         * doc/posix-functions/readdir.texi: Likewise.
6946         * doc/posix-functions/rewinddir.texi: Likewise.
6947
6948 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6949
6950         maint.mk: don't maintain a second build-aux variable.
6951         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6952         depends on GNUmakefile, which already maintains a cfg.mk
6953         overridable $(_build-aux) for projects with a non-standard
6954         build-aux directory location, although without the $(srcdir)
6955         prefix.  Use that variable consistently instead of introducing a
6956         second one.  Adjust all call sites.
6957
6958 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6959
6960         Add stdalign module and use it in other modules.
6961         This is based on a previous proposal by Bruno Haible
6962         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6963
6964         stdalign: new module
6965         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6966         * modules/stdalign: New files.
6967         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6968         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6969
6970         stdalign-tests: new module
6971         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6972
6973         argp: use stdalign
6974         * lib/argp-parse.c: Include <stdalign.h>.
6975         (alignof): Remove.
6976         * modules/argp (Depends-on): Add stdalign.
6977
6978         crypto libraries: use stdalign
6979         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6980         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6981         Do not include <stdlib.h> twice, in md4.c.
6982         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6983         because we are accessing a pointer's bit-pattern, not a size.
6984         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6985         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6986         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6987         * modules/crypto/sha512: Likewise.
6988
6989         sys_socket: use stdalign, not alignof
6990         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6991         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6992
6993 2011-10-27  Bruno Haible  <bruno@clisp.org>
6994
6995         raise test: Avoid a test failure on Linux/MIPS.
6996         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6997         because 99 is a valid signal on Linux/MIPS.
6998
6999 2011-10-27  Bruno Haible  <bruno@clisp.org>
7000
7001         nonblocking tests: Fix test failure on Linux/MIPS.
7002         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
7003         Set to 270000.
7004
7005 2011-10-27  Bruno Haible  <bruno@clisp.org>
7006
7007         utimensat: Work around problem on Linux/hppa.
7008         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
7009         values.
7010         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
7011
7012 2011-10-25  Jim Meyering  <meyering@redhat.com>
7013
7014         maint.mk: fix a bug in sc_prohibit_stddef_without_use
7015         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
7016         after symbols like NULL, size_t, etc.
7017         Reported by Alfred M. Szmidt.
7018
7019         maint.mk: exempt ENODATA from a syntax-check rule
7020         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
7021         from the sc_prohibit_always-defined_macros syntax-check rule.
7022         Add a comment.  See this for more details:
7023         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
7024
7025 2011-10-23  Jim Meyering  <meyering@redhat.com>
7026
7027         fts: close parent dir FD before returning from post-traversal fts_read
7028         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
7029         unlink A, even though an FD open on A remained.  This is suboptimal
7030         (holding a file descriptor open longer than needed), but otherwise not
7031         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
7032         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
7033         that represents a real problem: it causes the removal of A to fail
7034         with e.g., "rm: cannot remove `A': Device or resource busy"
7035
7036         fts visits each directory twice and keeps a cache (fts_fd_ring) of
7037         directory file descriptors.  After completing the final, FTS_DP,
7038         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
7039         cache, but then proceeded to add a new FD to it via the subsequent
7040         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
7041         final file descriptor would be closed only via fts_close's call to
7042         fd_ring_clear.  Now, it is usually closed earlier, via the final
7043         FTS_DP-returning fts_read call.
7044         * lib/fts.c (restore_initial_cwd): New function, converted from
7045         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
7046         Update callers.
7047         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
7048         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
7049
7050 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
7051             Bruno Haible  <bruno@clisp.org>
7052             Jim Meyering  <jim@meyering.net>
7053
7054         readme-release: improve safety of release prep instructions.
7055         * README-release: Don't git pull all branches when only master
7056         is needed for the release process.
7057         Run make maintainer-clean before changing trees and merging.
7058         Don't try to run ./configure right after git pull in case files
7059         that influence the bootstrap process have changed, move the
7060         ./configure step to after running ./bootstrap.
7061         Don't bootstrap "one last time"... it's the first time!
7062
7063 2011-10-22  Bruno Haible  <bruno@clisp.org>
7064
7065         errno, strerror-override: Support for MSVC 10.
7066         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
7067         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
7068         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
7069         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
7070         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
7071         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
7072         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
7073         Assign values compatible with MSVC 10.
7074         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
7075         New macros.
7076         (GNULIB_defined_EWINSOCK): New macro.
7077         * lib/strerror-override.c (strerror_override): Update accordingly.
7078         * lib/strerror-override.h: Likewise.
7079         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
7080         longer equal to the corresponding errno value.
7081         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7082
7083 2011-10-22  Bruno Haible  <bruno@clisp.org>
7084
7085         perror: Recognize when test program crashes.
7086         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
7087         strerror, set gl_cv_func_perror_works to no.
7088         Reported by Daniel Richard G. <skunk@iskunk.org>.
7089
7090         perror: Fix indentation.
7091         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
7092
7093 2011-10-22  Bruno Haible  <bruno@clisp.org>
7094
7095         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
7096         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
7097         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
7098         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
7099         functions, not as a macro.
7100         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
7101         macros.
7102         (isfinite, isinf, isnan, signbit): Check overloaded functions and
7103         absence of macro.
7104         Suggested by Eric Blake.
7105         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7106
7107 2011-10-21  Bruno Haible  <bruno@clisp.org>
7108
7109         relocatable-prog-wrapper: Don't leave object files behind.
7110         * build-aux/install-reloc: Re-synchronize list of .o files to be
7111         removed with list of compilation units.
7112
7113 2011-10-20  Bruno Haible  <bruno@clisp.org>
7114
7115         openpty, posix_openpt: Remove code duplication.
7116         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
7117         * lib/openpty.c: Include <stdlib.h>.
7118         (openpty): Use posix_openpt on all platforms except IRIX.
7119         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
7120
7121 2011-10-20  Bruno Haible  <bruno@clisp.org>
7122
7123         unlockpt: Detect invalid argument.
7124         * lib/unlockpt.c: Include <fcntl.h>.
7125         (unlockpt): Check whether fd is valid, using fcntl().
7126         * modules/unlockpt (Depends-on): Add fcntl-h.
7127
7128 2011-10-20  Bruno Haible  <bruno@clisp.org>
7129
7130         openpty: Avoid compilation error on AIX 6.1.
7131         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
7132
7133 2011-10-20  Bruno Haible  <bruno@clisp.org>
7134
7135         posix_openpt: Support for OpenBSD.
7136         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
7137         (posix_openpt) [OpenBSD]: New code.
7138         * lib/grantpt.c: Include <fcntl.h>.
7139         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
7140         * modules/grantpt (Depends-on): Add fcntl-h.
7141
7142 2011-10-20  Bruno Haible  <bruno@clisp.org>
7143
7144         posix_openpt test: Coding style.
7145         * tests/test-posix_openpt.c: Use GNU coding style.
7146
7147 2011-10-20  Bruno Haible  <bruno@clisp.org>
7148
7149         grantpt: Support --avoid=pt_chown.
7150         * modules/grantpt (Files): Add lib/pty-private.h.
7151
7152 2011-10-20  Bruno Haible  <bruno@clisp.org>
7153
7154         posix_openpt: Fix autoconf macro.
7155         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
7156         unneeded check for _getpty.
7157
7158 2011-10-20  Bruno Haible  <bruno@clisp.org>
7159
7160         openpty: Update comments.
7161         * lib/openpty.c: Add comments about Minix.
7162
7163 2011-10-19  Eric Blake  <eblake@redhat.com>
7164
7165         openpty: relax license
7166         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
7167
7168         pt_chown: use configmake to simplify build
7169         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
7170
7171         ptsname and others: relax license
7172         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
7173         * modules/unlockpt (License): Likewise.
7174         * modules/pt_chown (License): Likewise.
7175         * modules/ptsname (License): Likewise.
7176         * modules/ttyname_r (License): Likewise.
7177
7178 2011-10-19  Jim Meyering  <meyering@redhat.com>
7179
7180         posix_openpt: remove spurious #endif
7181         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
7182
7183 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
7184
7185         maint.mk: Respect $(build_aux) in web-manual rule.
7186         * top/maint.mk (web-manual): Find gen-announce script in user's
7187         $(build_aux) directory instead of hard-coding 'build-aux'.
7188
7189 2011-10-19  Bruno Haible  <bruno@clisp.org>
7190
7191         posix_openpt: Fix compilation error.
7192         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
7193         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
7194         Mention the openpty module as an alternative.
7195
7196 2011-10-19  Bruno Haible  <bruno@clisp.org>
7197
7198         Support for old NeXTstep 3.3 frexp().
7199         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
7200         execution time of the test to 5 seconds.
7201         Reported by Daniel Richard G. <skunk@iskunk.org>.
7202
7203 2011-10-19  Bruno Haible  <bruno@clisp.org>
7204
7205         Support for old NeXTstep 3.3 sed.
7206         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
7207         part, use /.../, not \|...|. Escape periods in the header file name.
7208         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
7209         Reported by Daniel Richard G. <skunk@iskunk.org>.
7210
7211 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7212
7213         Support for old NeXTstep 3.3 gcc.
7214         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
7215         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
7216         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
7217         * lib/spawn.in.h (_Restrict_arr_): Likewise.
7218         * lib/regex.h (_Restrict_arr_): Likewise.
7219         * lib/regex_internal.h (re_token_t): Likewise.
7220         * lib/regexec.c (check_node_accept_bytes): Likewise.
7221         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
7222
7223 2011-10-18  Eric Blake  <eblake@redhat.com>
7224
7225         posix_openpt: new module
7226         * modules/posix_openpt: New module.
7227         * m4/posix_openpt.m4: New file.
7228         * lib/posix_openpt.c: Likewise.
7229         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7230         (gl_STDLIB_H_DEFAULTS): Set defaults.
7231         * modules/stdlib (Makefile.am): Substitute macros.
7232         * lib/stdlib.in.h (posix_openpt): Declare.
7233         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
7234         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
7235         * modules/posix_openpt-tests: New test module.
7236         * tests/test-posix_openpt.c: New test.
7237
7238 2011-10-15  Bruno Haible  <bruno@clisp.org>
7239
7240         xstrtoll: Fix compilation failure.
7241         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
7242         from lib/strtol.c.
7243         * doc/posix-headers/limits.texi: Mention missing numerical limits on
7244         some platforms.
7245         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7246
7247 2011-10-15  Bruno Haible  <bruno@clisp.org>
7248
7249         vasnprintf: Optimize bit search operation.
7250         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
7251         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
7252         gl_DOUBLE_EXPONENT_LOCATION.
7253         * modules/vasnprintf (Files): Add m4/exponentd.m4.
7254         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7255         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7256         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7257         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7258         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7259         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7260         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7261         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
7262
7263 2011-10-15  Bruno Haible  <bruno@clisp.org>
7264
7265         vasnprintf: Fix comments.
7266         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
7267
7268 2011-10-14  Bruno Haible  <bruno@clisp.org>
7269
7270         Tests for module 'integer_length_ll'.
7271         * modules/integer_length_ll-tests: New file.
7272         * tests/test-integer_length_ll.c: New file.
7273
7274         New module 'integer_length_ll'.
7275         * lib/integer_length_ll.c: New file.
7276         * modules/integer_length_ll: New file.
7277
7278 2011-10-14  Bruno Haible  <bruno@clisp.org>
7279
7280         Tests for module 'integer_length_l'.
7281         * modules/integer_length_l-tests: New file.
7282         * tests/test-integer_length_l.c: New file.
7283
7284         New module 'integer_length_l'.
7285         * lib/integer_length_l.c: New file.
7286         * modules/integer_length_l: New file.
7287
7288 2011-10-14  Bruno Haible  <bruno@clisp.org>
7289
7290         Tests for module 'integer_length'.
7291         * modules/integer_length-tests: New file.
7292         * tests/test-integer_length.c: New file.
7293
7294         New module 'integer_length'.
7295         * lib/integer_length.h: New file.
7296         * lib/integer_length.c: New file.
7297         * modules/integer_length: New file.
7298
7299 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7300
7301         popen: Fix dependency conditions.
7302         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
7303
7304 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
7305
7306         perror: Fix autoconf test.
7307         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
7308         <stdlib.h> and <string.h>.
7309
7310 2011-10-14  Bruno Haible  <bruno@clisp.org>
7311
7312         ffsl: Optimize on 64-bit platforms.
7313         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
7314         unrolling.
7315
7316 2011-10-13  Bruno Haible  <bruno@clisp.org>
7317
7318         ffsl: Optimize on 32-bit platforms.
7319         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
7320         use ffs() without a loop.
7321
7322         ffsl, ffsll: Optimize for GCC.
7323         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
7324         * lib/ffsl.c (GCC_BUILTIN): New macro.
7325         * lib/ffsll.c (GCC_BUILTIN): Likewise.
7326
7327 2011-10-13  Bruno Haible  <bruno@clisp.org>
7328
7329         ffs, bcopy, memset: Support symbol renaming via config.h.
7330         * lib/ffs.c: Include <config.h>.
7331         * lib/bcopy.c: Likewise.
7332         * lib/memset.c: Likewise.
7333
7334 2011-10-10  Bruno Haible  <bruno@clisp.org>
7335
7336         atanl: Simplify for platforms where 'long double' == 'double'.
7337         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7338         alternative implementation.
7339         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7340         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7341         * modules/atanl (Depends-on): Add atan. Update conditions.
7342
7343 2011-10-10  Bruno Haible  <bruno@clisp.org>
7344
7345         acosl: Simplify for platforms where 'long double' == 'double'.
7346         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7347         alternative implementation.
7348         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7349         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7350         * modules/acosl (Depends-on): Add acos. Update conditions.
7351
7352 2011-10-10  Bruno Haible  <bruno@clisp.org>
7353
7354         asinl: Simplify for platforms where 'long double' == 'double'.
7355         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7356         alternative implementation.
7357         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7358         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7359         * modules/asinl (Depends-on): Add asin. Update conditions.
7360
7361 2011-10-10  Bruno Haible  <bruno@clisp.org>
7362
7363         tanl: Simplify for platforms where 'long double' == 'double'.
7364         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7365         implementation.
7366         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7367         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7368         * modules/tanl (Depends-on): Add tan. Update conditions.
7369         (configure.ac): Don't compile trigl.c if
7370         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7371
7372 2011-10-10  Bruno Haible  <bruno@clisp.org>
7373
7374         cosl: Simplify for platforms where 'long double' == 'double'.
7375         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7376         implementation.
7377         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7378         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7379         * modules/cosl (Depends-on): Add cos. Update conditions.
7380         (configure.ac): Don't compile sincosl.c and trigl.c if
7381         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7382
7383 2011-10-10  Bruno Haible  <bruno@clisp.org>
7384
7385         sinl: Simplify for platforms where 'long double' == 'double'.
7386         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7387         implementation.
7388         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7389         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7390         * modules/sinl (Depends-on): Add sin. Update conditions.
7391         (configure.ac): Don't compile sincosl.c and trigl.c if
7392         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7393
7394 2011-10-10  Bruno Haible  <bruno@clisp.org>
7395
7396         logl: Simplify for platforms where 'long double' == 'double'.
7397         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7398         implementation.
7399         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7400         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7401         * modules/logl (Depends-on): Add log. Update conditions.
7402
7403 2011-10-10  Bruno Haible  <bruno@clisp.org>
7404
7405         expl: Simplify for platforms where 'long double' == 'double'.
7406         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
7407         implementation.
7408         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7409         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7410         * modules/expl (Depends-on): Add exp. Update conditions.
7411
7412 2011-10-10  Bruno Haible  <bruno@clisp.org>
7413
7414         sqrtl: Simplify for platforms where 'long double' == 'double'.
7415         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7416         alternative implementation.
7417         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7418         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7419         * modules/sqrtl (Depends-on): Update conditions.
7420
7421 2011-10-10  Bruno Haible  <bruno@clisp.org>
7422
7423         ldexpl: Simplify for platforms where 'long double' == 'double'.
7424         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7425         alternative implementation.
7426         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7427         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7428         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
7429
7430 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
7431
7432         ffsll: set correct witness
7433         * modules/ffsll (configure.ac): Fix typo.
7434
7435 2011-10-10  Bruno Haible  <bruno@clisp.org>
7436
7437         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
7438         * lib/printf-frexpl.c: Include <config.h>.
7439         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7440         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
7441         second time.
7442         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
7443         gl_LONG_DOUBLE_VS_DOUBLE.
7444         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
7445         conditions.
7446
7447 2011-10-10  Bruno Haible  <bruno@clisp.org>
7448
7449         frexpl: Simplify for platforms where 'long double' == 'double'.
7450         * lib/frexpl.c: Include <config.h>.
7451         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7452         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7453         time.
7454         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7455         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7456         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
7457         * modules/frexpl (Depends-on): Add frexp. Update conditions.
7458         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
7459         conditions.
7460
7461 2011-10-10  Jim Meyering  <meyering@redhat.com>
7462
7463         test-renameat: don't leave behind a temporary file
7464         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
7465           ERROR: files left in build directory after distclean:
7466           ./gltests/test-renameat.too
7467           make[1]: *** [distcleancheck] Error 1
7468         Reported by Tom G. Christensen.
7469
7470 2011-10-09  Bruno Haible  <bruno@clisp.org>
7471
7472         rint: Determine RINT_LIBM correctly on AIX 7.
7473         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
7474         directly, not only through a function pointer. Also accept an optional
7475         4th argument with extra code.
7476         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
7477         rintf() call by gcc when optimizing.
7478
7479         mathfunc.m4: Refactor.
7480         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
7481         m4 variable.
7482
7483 2011-10-09  Bruno Haible  <bruno@clisp.org>
7484
7485         rintl: Simplify for platforms where 'long double' == 'double'.
7486         * lib/rintl.c: Include <config.h>.
7487         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7488         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7489         time.
7490         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7491         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7492         * modules/rintl (Depends-on): Add rint. Update conditions.
7493
7494 2011-10-09  Bruno Haible  <bruno@clisp.org>
7495
7496         roundl: Simplify for platforms where 'long double' == 'double'.
7497         * lib/roundl.c: Include <config.h>.
7498         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7499         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7500         time.
7501         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7502         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7503         * modules/roundl (Depends-on): Add round. Update conditions.
7504
7505 2011-10-09  Bruno Haible  <bruno@clisp.org>
7506
7507         truncl: Simplify for platforms where 'long double' == 'double'.
7508         * lib/truncl.c: Include <config.h>.
7509         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7510         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7511         time.
7512         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7513         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7514         * modules/truncl (Depends-on): Add trunc. Update conditions.
7515
7516 2011-10-09  Bruno Haible  <bruno@clisp.org>
7517
7518         ceill: Simplify for platforms where 'long double' == 'double'.
7519         * lib/ceill.c: Include <config.h>.
7520         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7521         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7522         time.
7523         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7524         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7525         * modules/ceill (Depends-on): Add ceil. Update conditions.
7526
7527 2011-10-09  Bruno Haible  <bruno@clisp.org>
7528
7529         floorl: Simplify for platforms where 'long double' == 'double'.
7530         * lib/floorl.c: Include <config.h>.
7531         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
7532         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
7533         time.
7534         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7535         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7536         * modules/floorl (Depends-on): Add floor. Update conditions.
7537
7538 2011-10-09  Bruno Haible  <bruno@clisp.org>
7539
7540         rint: Fix ordering constraints.
7541         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
7542         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
7543         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
7544
7545 2011-10-09  Bruno Haible  <bruno@clisp.org>
7546
7547         copysignl: Simplify for platforms where 'long double' == 'double'.
7548         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
7549         alternative.
7550         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7551         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
7552         * modules/copysignl (Depends-on): Add copysign. Update conditions.
7553
7554 2011-10-09  Bruno Haible  <bruno@clisp.org>
7555
7556         Tests for module 'rintl'.
7557         * modules/rintl-tests: New file.
7558         * tests/test-rintl.c: New file.
7559
7560         New module 'rintl'.
7561         * lib/math.in.h (rintl): New declaration.
7562         * lib/rintl.c: New file.
7563         * m4/rintl.m4: New file.
7564         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
7565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
7566         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
7567         * modules/rintl: New file.
7568         * tests/test-math-c++.cc: Check the declaration of rintl.
7569         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7570         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
7571         * doc/posix-functions/rintl.texi: Mention the new module.
7572
7573 2011-10-09  Bruno Haible  <bruno@clisp.org>
7574
7575         Tests for module 'rintf'.
7576         * modules/rintf-tests: New file.
7577         * tests/test-rintf.c: New file.
7578
7579         New module 'rintf'.
7580         * lib/math.in.h (rintf): New declaration.
7581         * lib/rintf.c: New file.
7582         * m4/rintf.m4: New file.
7583         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
7584         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
7585         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
7586         * modules/rintf: New file.
7587         * tests/test-math-c++.cc: Check the declaration of rintf.
7588         * doc/posix-functions/rintf.texi: Mention the new module.
7589
7590 2011-10-09  Bruno Haible  <bruno@clisp.org>
7591
7592         rint: Support for MSVC.
7593         * lib/math.in.h (rint): New declaration.
7594         * lib/rint.c: New file.
7595         * m4/rint.m4: New file.
7596         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
7597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
7598         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
7599         * modules/rint (Description): Fix.
7600         (Files): Add lib/rint.c, m4/rint.m4.
7601         (Depends-on): Add math.
7602         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
7603         gl_MATH_MODULE_INDICATOR.
7604         * tests/test-math-c++.cc: Check the declaration of rint.
7605         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7606         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
7607         * doc/posix-functions/rint.texi: Mention the replacement provided by
7608         the module.
7609
7610         rint tests: More tests.
7611         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
7612         minus-zero.h, infinity.h, nan.h.
7613         (main): Skip the test if the current rounding mode is not standard. Add
7614         tests for negative numbers, minus zero, infinity, NaN.
7615         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
7616         tests/nan.h.
7617         (Depends-on): Add isnand-nolibm.
7618
7619 2011-10-09  Bruno Haible  <bruno@clisp.org>
7620
7621         Tests for module 'copysignl'.
7622         * modules/copysignl-tests: New file.
7623         * tests/test-copysignl.c: New file.
7624
7625         New module 'copysignl'.
7626         * lib/math.in.h (copysignl): New declaration.
7627         * lib/copysignl.c: New file.
7628         * m4/copysignl.m4: New file.
7629         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
7630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
7631         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
7632         HAVE_COPYSIGNL.
7633         * modules/copysignl: New file.
7634         * tests/test-math-c++.cc: Check the declaration of copysignl.
7635         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
7636         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
7637         * doc/posix-functions/copysignl.texi: Mention the new module.
7638
7639 2011-10-09  Bruno Haible  <bruno@clisp.org>
7640
7641         Tests for module 'copysignf'.
7642         * modules/copysignf-tests: New file.
7643         * tests/test-copysignf.c: New file.
7644
7645         New module 'copysignf'.
7646         * lib/math.in.h (copysignf): New declaration.
7647         * lib/copysignf.c: New file.
7648         * m4/copysignf.m4: New file.
7649         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
7650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
7651         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
7652         HAVE_COPYSIGNF.
7653         * modules/copysignf: New file.
7654         * tests/test-math-c++.cc: Check the declaration of copysignf.
7655         * doc/posix-functions/copysignf.texi: Mention the new module.
7656
7657 2011-10-09  Bruno Haible  <bruno@clisp.org>
7658
7659         Ensure that HAVE_* variables are set to 1 before they are set to 0.
7660         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
7661         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
7662         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7663         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
7664         gl_SIGNAL_H_DEFAULTS.
7665
7666 2011-10-09  Bruno Haible  <bruno@clisp.org>
7667
7668         poll: Make macro safer.
7669         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
7670         ac_cv_header_poll_h is not set.
7671
7672 2011-10-09  Bruno Haible  <bruno@clisp.org>
7673
7674         copysign: Provide replacement.
7675         * lib/math.in.h (copysign): New declaration.
7676         * lib/copysign.c: New file.
7677         * m4/copysign.m4: New file.
7678         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
7679         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
7680         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
7681         HAVE_COPYSIGN.
7682         * modules/copysign (Description): Clarify.
7683         (Files): Add lib/copysign.c, m4/copysign.m4.
7684         (Depends-on): Add math, signbit.
7685         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
7686         gl_MATH_MODULE_INDICATOR.
7687         * tests/test-math-c++.cc: Check the declaration of copysign.
7688         * doc/posix-functions/copysign.texi: Mention the effects of the module
7689         on Minix and MSVC.
7690
7691 2011-10-09  Bruno Haible  <bruno@clisp.org>
7692
7693         isinf: Ensure macro on AIX 5.1.
7694         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
7695         macro.
7696         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
7697
7698 2011-10-09  Bruno Haible  <bruno@clisp.org>
7699
7700         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
7701         * modules/snprintf-posix-tests (configure.ac): Require
7702         gl_LONG_DOUBLE_VS_DOUBLE.
7703         * modules/sprintf-posix-tests (configure.ac): Likewise.
7704         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
7705         * modules/vasprintf-posix-tests (configure.ac): Likewise.
7706         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
7707         * modules/vsprintf-posix-tests (configure.ac): Likewise.
7708         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
7709         tests on platforms where 'long double' is the same as 'double'.
7710         * tests/test-sprintf-posix.h (test_function): Likewise.
7711         * tests/test-vasnprintf-posix.c (test_function): Likewise.
7712         * tests/test-vasprintf-posix.c (test_function): Likewise.
7713
7714         *printf: Fix for platforms where 'long double' == 'double'.
7715         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
7716         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
7717         * modules/dprintf-posix (Files): Add m4/math_h.m4.
7718         * modules/fprintf-posix (Files): Likewise.
7719         * modules/obstack-printf-posix (Files): Likewise.
7720         * modules/snprintf-posix (Files): Likewise.
7721         * modules/sprintf-posix (Files): Likewise.
7722         * modules/vasnprintf (Files): Likewise.
7723         * modules/vasnprintf-posix (Files): Likewise.
7724         * modules/vasprintf-posix (Files): Likewise.
7725         * modules/vdprintf-posix (Files): Likewise.
7726         * modules/vfprintf-posix (Files): Likewise.
7727         * modules/vsnprintf-posix (Files): Likewise.
7728         * modules/vsprintf-posix (Files): Likewise.
7729         * modules/unistdio/u8-vasnprintf (Files): Likewise.
7730         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
7731         * modules/unistdio/u16-vasnprintf (Files): Likewise.
7732         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
7733         * modules/unistdio/u32-vasnprintf (Files): Likewise.
7734         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
7735         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
7736
7737         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
7738         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
7739         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
7740         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
7741         'long double'.
7742         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
7743
7744         isinf: Fix for platforms where 'long double' == 'double'.
7745         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7746         Don't blindly assume 80-bit 'long double'.
7747
7748         isfinite: Fix for platforms where 'long double' == 'double'.
7749         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
7750         Don't blindly assume 80-bit 'long double'.
7751
7752         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
7753         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
7754         * modules/isfinite-tests (configure.ac): Require
7755         gl_LONG_DOUBLE_VS_DOUBLE.
7756         * modules/isinf-tests (configure.ac): Likewise.
7757         * modules/isnan-tests (configure.ac): Likewise.
7758         * modules/isnanl-tests (configure.ac): Likewise.
7759         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
7760         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
7761         tests on platforms where 'long double' is the same as 'double'.
7762         * tests/test-isinf.c (test_isinfl): Likewise.
7763         * tests/test-isnan.c (test_long_double): Likewise.
7764         * tests/test-isnanl.h (main): Likewise.
7765
7766 2011-10-08  Bruno Haible  <bruno@clisp.org>
7767
7768         Tests for module 'tanhf'.
7769         * modules/tanhf-tests: New file.
7770         * tests/test-tanhf.c: New file.
7771
7772         New module 'tanhf'.
7773         * lib/math.in.h (tanhf): New declaration.
7774         * lib/tanhf.c: New file.
7775         * m4/tanhf.m4: New file.
7776         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
7777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
7778         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
7779         * modules/tanhf: New file.
7780         * tests/test-math-c++.cc: Check the declaration of tanhf.
7781         * doc/posix-functions/tanhf.texi: Mention the new module.
7782
7783         tanh: Use a .m4 file.
7784         * m4/tanh.m4: New file.
7785         * modules/tanh (Files): Add it.
7786         (configure.ac): Just invoke gl_FUNC_TANH.
7787
7788 2011-10-08  Bruno Haible  <bruno@clisp.org>
7789
7790         Tests for module 'coshf'.
7791         * modules/coshf-tests: New file.
7792         * tests/test-coshf.c: New file.
7793
7794         New module 'coshf'.
7795         * lib/math.in.h (coshf): New declaration.
7796         * lib/coshf.c: New file.
7797         * m4/coshf.m4: New file.
7798         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
7799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
7800         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
7801         * modules/coshf: New file.
7802         * tests/test-math-c++.cc: Check the declaration of coshf.
7803         * doc/posix-functions/coshf.texi: Mention the new module.
7804
7805         cosh: Use a .m4 file.
7806         * m4/cosh.m4: New file.
7807         * modules/cosh (Files): Add it.
7808         (configure.ac): Just invoke gl_FUNC_COSH.
7809
7810 2011-10-08  Bruno Haible  <bruno@clisp.org>
7811
7812         Tests for module 'sinhf'.
7813         * modules/sinhf-tests: New file.
7814         * tests/test-sinhf.c: New file.
7815
7816         New module 'sinhf'.
7817         * lib/math.in.h (sinhf): New declaration.
7818         * lib/sinhf.c: New file.
7819         * m4/sinhf.m4: New file.
7820         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7822         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7823         * modules/sinhf: New file.
7824         * tests/test-math-c++.cc: Check the declaration of sinhf.
7825         * doc/posix-functions/sinhf.texi: Mention the new module.
7826
7827         sinh: Use a .m4 file.
7828         * m4/sinh.m4: New file.
7829         * modules/sinh (Files): Add it.
7830         (configure.ac): Just invoke gl_FUNC_SINH.
7831
7832 2011-10-08  Bruno Haible  <bruno@clisp.org>
7833
7834         Tests for module 'atan2f'.
7835         * modules/atan2f-tests: New file.
7836         * tests/test-atan2f.c: New file.
7837
7838         New module 'atan2f'.
7839         * lib/math.in.h (atan2f): New declaration.
7840         * lib/atan2f.c: New file.
7841         * m4/atan2f.m4: New file.
7842         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7843         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7844         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7845         * modules/atan2f: New file.
7846         * tests/test-math-c++.cc: Check the declaration of atan2f.
7847         * doc/posix-functions/atan2f.texi: Mention the new module.
7848
7849         atan2: Use a .m4 file.
7850         * m4/atan2.m4: New file.
7851         * modules/atan2 (Files): Add it.
7852         (configure.ac): Just invoke gl_FUNC_ATAN2.
7853
7854 2011-10-08  Bruno Haible  <bruno@clisp.org>
7855
7856         Tests for module 'atanf'.
7857         * modules/atanf-tests: New file.
7858         * tests/test-atanf.c: New file.
7859
7860         New module 'atanf'.
7861         * lib/math.in.h (atanf): New declaration.
7862         * lib/atanf.c: New file.
7863         * m4/atanf.m4: New file.
7864         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7865         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7866         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7867         * modules/atanf: New file.
7868         * tests/test-math-c++.cc: Check the declaration of atanf.
7869         * doc/posix-functions/atanf.texi: Mention the new module.
7870
7871         atan: Use a .m4 file.
7872         * m4/atan.m4: New file.
7873         * modules/atan (Files): Add it.
7874         (configure.ac): Just invoke gl_FUNC_ATAN.
7875
7876 2011-10-08  Bruno Haible  <bruno@clisp.org>
7877
7878         Tests for module 'acosf'.
7879         * modules/acosf-tests: New file.
7880         * tests/test-acosf.c: New file.
7881
7882         New module 'acosf'.
7883         * lib/math.in.h (acosf): New declaration.
7884         * lib/acosf.c: New file.
7885         * m4/acosf.m4: New file.
7886         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7888         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7889         * modules/acosf: New file.
7890         * tests/test-math-c++.cc: Check the declaration of acosf.
7891         * doc/posix-functions/acosf.texi: Mention the new module.
7892
7893         acos: Use a .m4 file.
7894         * m4/acos.m4: New file.
7895         * modules/acos (Files): Add it.
7896         (configure.ac): Just invoke gl_FUNC_ACOS.
7897
7898 2011-10-08  Bruno Haible  <bruno@clisp.org>
7899
7900         Tests for module 'asinf'.
7901         * modules/asinf-tests: New file.
7902         * tests/test-asinf.c: New file.
7903
7904         New module 'asinf'.
7905         * lib/math.in.h (asinf): New declaration.
7906         * lib/asinf.c: New file.
7907         * m4/asinf.m4: New file.
7908         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7909         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7910         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7911         * modules/asinf: New file.
7912         * tests/test-math-c++.cc: Check the declaration of asinf.
7913         * doc/posix-functions/asinf.texi: Mention the new module.
7914
7915         asin: Use a .m4 file.
7916         * m4/asin.m4: New file.
7917         * modules/asin (Files): Add it.
7918         (configure.ac): Just invoke gl_FUNC_ASIN.
7919
7920 2011-10-08  Bruno Haible  <bruno@clisp.org>
7921
7922         Tests for module 'tanf'.
7923         * modules/tanf-tests: New file.
7924         * tests/test-tanf.c: New file.
7925
7926         New module 'tanf'.
7927         * lib/math.in.h (tanf): New declaration.
7928         * lib/tanf.c: New file.
7929         * m4/tanf.m4: New file.
7930         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7931         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7932         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7933         * modules/tanf: New file.
7934         * tests/test-math-c++.cc: Check the declaration of tanf.
7935         * doc/posix-functions/tanf.texi: Mention the new module.
7936
7937         tan: Use a .m4 file.
7938         * m4/tan.m4: New file.
7939         * modules/tan (Files): Add it.
7940         (configure.ac): Just invoke gl_FUNC_TAN.
7941
7942 2011-10-08  Bruno Haible  <bruno@clisp.org>
7943
7944         Tests for module 'cosf'.
7945         * modules/cosf-tests: New file.
7946         * tests/test-cosf.c: New file.
7947
7948         New module 'cosf'.
7949         * lib/math.in.h (cosf): New declaration.
7950         * lib/cosf.c: New file.
7951         * m4/cosf.m4: New file.
7952         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7953         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7954         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7955         * modules/cosf: New file.
7956         * tests/test-math-c++.cc: Check the declaration of cosf.
7957         * doc/posix-functions/cosf.texi: Mention the new module.
7958
7959         cos: Use a .m4 file.
7960         * m4/cos.m4: New file.
7961         * modules/cos (Files): Add it.
7962         (configure.ac): Just invoke gl_FUNC_COS.
7963
7964 2011-10-08  Bruno Haible  <bruno@clisp.org>
7965
7966         Tests for module 'sinf'.
7967         * modules/sinf-tests: New file.
7968         * tests/test-sinf.c: New file.
7969
7970         New module 'sinf'.
7971         * lib/math.in.h (sinf): New declaration.
7972         * lib/sinf.c: New file.
7973         * m4/sinf.m4: New file.
7974         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7975         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7976         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7977         * modules/sinf: New file.
7978         * tests/test-math-c++.cc: Check the declaration of sinf.
7979         * doc/posix-functions/sinf.texi: Mention the new module.
7980
7981         sin: Use a .m4 file.
7982         * m4/sin.m4: New file.
7983         * modules/sin (Files): Add it.
7984         (configure.ac): Just invoke gl_FUNC_SIN.
7985
7986 2011-10-08  Bruno Haible  <bruno@clisp.org>
7987
7988         Tests for module 'powf'.
7989         * modules/powf-tests: New file.
7990         * tests/test-powf.c: New file.
7991
7992         New module 'powf'.
7993         * lib/math.in.h (powf): New declaration.
7994         * lib/powf.c: New file.
7995         * m4/powf.m4: New file.
7996         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7998         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7999         * modules/powf: New file.
8000         * tests/test-math-c++.cc: Check the declaration of powf.
8001         * doc/posix-functions/powf.texi: Mention the new module.
8002
8003         pow: Use a .m4 file.
8004         * m4/pow.m4: New file.
8005         * modules/pow (Files): Add it.
8006         (configure.ac): Just invoke gl_FUNC_POW.
8007
8008 2011-10-08  Bruno Haible  <bruno@clisp.org>
8009
8010         Tests for module 'log10f'.
8011         * modules/log10f-tests: New file.
8012         * tests/test-log10f.c: New file.
8013
8014         New module 'log10f'.
8015         * lib/math.in.h (log10f): New declaration.
8016         * lib/log10f.c: New file.
8017         * m4/log10f.m4: New file.
8018         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
8019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
8020         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
8021         * modules/log10f: New file.
8022         * tests/test-math-c++.cc: Check the declaration of log10f.
8023         * doc/posix-functions/log10f.texi: Mention the new module.
8024
8025         log10: Use a .m4 file.
8026         * m4/log10.m4: New file.
8027         * modules/log10 (Files): Add it.
8028         (configure.ac): Just invoke gl_FUNC_LOG10.
8029
8030 2011-10-08  Bruno Haible  <bruno@clisp.org>
8031
8032         Tests for module 'logf'.
8033         * modules/logf-tests: New file.
8034         * tests/test-logf.c: New file.
8035
8036         New module 'logf'.
8037         * lib/math.in.h (logf): New declaration.
8038         * lib/logf.c: New file.
8039         * m4/logf.m4: New file.
8040         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
8041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
8042         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
8043         * modules/logf: New file.
8044         * tests/test-math-c++.cc: Check the declaration of logf.
8045         * doc/posix-functions/logf.texi: Mention the new module.
8046
8047         log: Use a .m4 file.
8048         * m4/log.m4: New file.
8049         * modules/log (Files): Add it.
8050         (configure.ac): Just invoke gl_FUNC_LOG.
8051
8052 2011-10-08  Bruno Haible  <bruno@clisp.org>
8053
8054         Tests for module 'expf'.
8055         * modules/expf-tests: New file.
8056         * tests/test-expf.c: New file.
8057
8058         New module 'expf'.
8059         * lib/math.in.h (expf): New declaration.
8060         * lib/expf.c: New file.
8061         * m4/expf.m4: New file.
8062         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
8063         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
8064         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
8065         * modules/expf: New file.
8066         * tests/test-math-c++.cc: Check the declaration of expf.
8067         * doc/posix-functions/expf.texi: Mention the new module.
8068
8069         exp: Use a .m4 file.
8070         * m4/exp.m4: New file.
8071         * modules/exp (Files): Add it.
8072         (configure.ac): Just invoke gl_FUNC_EXP.
8073
8074 2011-10-08  Bruno Haible  <bruno@clisp.org>
8075
8076         Tests for module 'sqrtf'.
8077         * modules/sqrtf-tests: New file.
8078         * tests/test-sqrtf.c: New file.
8079
8080         New module 'sqrtf'.
8081         * lib/math.in.h (sqrtf): New declaration.
8082         * lib/sqrtf.c: New file.
8083         * m4/sqrtf.m4: New file.
8084         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
8085         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
8086         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
8087         * modules/sqrtf: New file.
8088         * tests/test-math-c++.cc: Check the declaration of sqrtf.
8089         * doc/posix-functions/sqrtf.texi: Mention the new module.
8090
8091 2011-10-08  Bruno Haible  <bruno@clisp.org>
8092
8093         Tests: Avoid link failures w.r.t. libintl.
8094         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
8095         $(LIBINTL).
8096         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
8097         $(LIBINTL).
8098         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
8099         against $(LIBINTL).
8100         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
8101         $(LIBINTL).
8102         * modules/openat-tests (Makefile.am): Link test-fchmodat against
8103         $(LIBINTL).
8104         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
8105
8106 2011-10-08  Bruno Haible  <bruno@clisp.org>
8107
8108         pow tests: Defeat compiler optimizations.
8109         * tests/test-pow.c (main): Assign arguments to x and y before use.
8110
8111 2011-10-08  Bruno Haible  <bruno@clisp.org>
8112
8113         gnulib-tool: Improve last commit.
8114         * gnulib-tool (func_modules_transitive_closure): Simplify code.
8115         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
8116         ignore dependencies that are not among the modules list.
8117
8118 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
8119
8120         gnulib-tool: don't follow dependencies to avoided modules
8121         This fixes a bug that is related to the previous one.
8122         * gnulib-tool (func_modules_transitive_closure)
8123         (func_emit_autoconf_snippets):
8124         Check whether a dependency is acceptable before using it.
8125         (--extract-dependencies): Report an error if --avoid is also used,
8126         since this combination of options is not yet supported.
8127
8128         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
8129         Problem reported by Peter Dyballa in
8130         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
8131         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
8132         when echoing "$condition".
8133
8134 2011-10-07  Bruno Haible  <bruno@clisp.org>
8135
8136         Fix documentation about math functions on MacOS X.
8137         * doc/posix-functions/exp2.texi: Don't say the function is missing on
8138         MacOS X 10.5.
8139         * doc/posix-functions/fdim.texi: Likewise.
8140         * doc/posix-functions/feclearexcept.texi: Likewise.
8141         * doc/posix-functions/fegetenv.texi: Likewise.
8142         * doc/posix-functions/fegetround.texi: Likewise.
8143         * doc/posix-functions/feholdexcept.texi: Likewise.
8144         * doc/posix-functions/feraiseexcept.texi: Likewise.
8145         * doc/posix-functions/fesetenv.texi: Likewise.
8146         * doc/posix-functions/fesetround.texi: Likewise.
8147         * doc/posix-functions/fetestexcept.texi: Likewise.
8148         * doc/posix-functions/feupdateenv.texi: Likewise.
8149         * doc/posix-functions/fmax.texi: Likewise.
8150         * doc/posix-functions/fmin.texi: Likewise.
8151         * doc/posix-functions/log2.texi: Likewise.
8152         * doc/posix-functions/modff.texi: Likewise.
8153         * doc/posix-functions/nan.texi: Likewise.
8154         * doc/posix-functions/nanf.texi: Likewise.
8155         * doc/posix-functions/nextafterf.texi: Likewise.
8156         * doc/posix-functions/remquo.texi: Likewise.
8157
8158 2011-10-07  Bruno Haible  <bruno@clisp.org>
8159
8160         modff: Drop assumption about library that defines modff.
8161         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
8162         AC_CHECK_FUNCS.
8163         * modules/modff (Files): Add m4/mathfunc.m4.
8164
8165 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
8166
8167         raise tests: Avoid a GCC warning.
8168         * tests/test-raise.c (handler): Use _Noreturn.
8169
8170 2011-10-07  Bruno Haible  <bruno@clisp.org>
8171
8172         Tests for module 'ldexpf'.
8173         * modules/ldexpf-tests: New file.
8174         * tests/test-ldexpf.c: New file.
8175
8176         New module 'ldexpf'.
8177         * lib/math.in.h (ldexpf): New declaration.
8178         * lib/ldexpf.c: New file.
8179         * m4/ldexpf.m4: New file.
8180         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
8181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
8182         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
8183         * modules/ldexpf: New file.
8184         * tests/test-math-c++.cc: Check the declaration of ldexpf.
8185         * doc/posix-functions/ldexpf.texi: Mention the new module.
8186
8187 2011-10-06  Bruno Haible  <bruno@clisp.org>
8188
8189         frexpf: Work around problems on IRIX and mingw.
8190         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
8191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
8192         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
8193         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
8194         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
8195         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
8196         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
8197
8198 2011-10-06  Bruno Haible  <bruno@clisp.org>
8199
8200         fabsf: Drop assumption about library that defines fabsf.
8201         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
8202         AC_CHECK_FUNCS.
8203         * modules/fabsf (Files): Add m4/mathfunc.m4.
8204
8205 2011-10-06  Bruno Haible  <bruno@clisp.org>
8206
8207         frexpf: Drop assumption about library that defines frexpf.
8208         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
8209         'int *', 'float *', 'long double *', 'float', 'long double'.
8210         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
8211         AC_CHECK_FUNCS.
8212         * modules/frexpf (Files): Add m4/mathfunc.m4.
8213
8214         Tests for module 'frexpf'.
8215         * modules/frexpf-tests: New file.
8216         * tests/test-frexpf.c: New file.
8217
8218         New module 'frexpf'.
8219         * lib/math.in.h (frexpf): New declaration.
8220         * lib/frexpf.c: New file.
8221         * m4/frexpf.m4: New file.
8222         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
8223         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
8224         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
8225         * modules/frexpf: New file.
8226         * tests/test-math-c++.cc: Check the declaration of frexpf.
8227         * doc/posix-functions/frexpf.texi: Mention the new module.
8228
8229 2011-10-06  Bruno Haible  <bruno@clisp.org>
8230
8231         math: Sort function declarations of math.in.h.
8232         * lib/math.in.h (frexp, logb): Move declarations.
8233
8234 2011-10-05  Bruno Haible  <bruno@clisp.org>
8235
8236         Tests for module 'modff'.
8237         * modules/modff-tests: New file.
8238         * tests/test-modff.c: New file.
8239
8240         New module 'modff'.
8241         * lib/math.in.h (modff): New declaration.
8242         * lib/modff.c: New file.
8243         * m4/modff.m4: New file.
8244         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
8245         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
8246         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
8247         * modules/modff: New file.
8248         * tests/test-math-c++.cc: Check the declaration of modff.
8249         * doc/posix-functions/modff.texi: Mention the new module.
8250
8251         modf tests: Make test sharper.
8252         * tests/test-modf.c (main): Strengthen upper bound.
8253
8254         modf: Use a .m4 file.
8255         * m4/modf.m4: New file.
8256         * modules/modf (Files): Add it.
8257         (configure.ac): Just invoke gl_FUNC_MODF.
8258
8259 2011-10-05  Bruno Haible  <bruno@clisp.org>
8260
8261         Tests for module 'fmodf'.
8262         * modules/fmodf-tests: New file.
8263         * tests/test-fmodf.c: New file.
8264
8265         New module 'fmodf'.
8266         * lib/math.in.h (fmodf): New declaration.
8267         * lib/fmodf.c: New file.
8268         * m4/fmodf.m4: New file.
8269         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
8270         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
8271         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
8272         * modules/fmodf: New file.
8273         * tests/test-math-c++.cc: Check the declaration of fmodf.
8274         * doc/posix-functions/fmodf.texi: Mention the new module.
8275
8276         fmod: Use a .m4 file.
8277         * m4/fmod.m4: New file.
8278         * modules/fmod (Files): Add it.
8279         (configure.ac): Just invoke gl_FUNC_FMOD.
8280
8281 2011-10-05  Bruno Haible  <bruno@clisp.org>
8282
8283         Tests for module 'fabsf'.
8284         * modules/fabsf-tests: New file.
8285         * tests/test-fabsf.c: New file.
8286
8287         New module 'fabsf'.
8288         * lib/math.in.h (fabsf): New declaration.
8289         * lib/fabsf.c: New file.
8290         * m4/fabsf.m4: New file.
8291         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
8292         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
8293         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
8294         * modules/fabsf: New file.
8295         * tests/test-math-c++.cc: Check the declaration of fabsf.
8296         * doc/posix-functions/fabsf.texi: Mention the new module.
8297
8298         fabs: Use a .m4 file.
8299         * m4/fabs.m4: New file.
8300         * modules/fabs (Files): Add it.
8301         (configure.ac): Just invoke gl_FUNC_FABS.
8302
8303 2011-10-05  Jim Meyering  <meyering@redhat.com>
8304
8305         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
8306         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
8307         ls -lL regression introduced in coreutils-8.12, it does so at the
8308         cost of an additional stat call in the common case.  Besides, now
8309         that the kernel change that prompted commit 95f7c57f has been reverted
8310         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
8311         we have no use for commit 95f7c57f, "file-has-acl: use
8312         acl_extended_file_nofollow if available".
8313
8314 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
8315
8316         file-has-acl: revert unintended change in behavior of ls -L
8317         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
8318         derived from...
8319         (file_has_acl): ...code here.  Call it.
8320         This problem was introduced with 2011-07-22 commit 95f7c57f,
8321         "file-has-acl: use acl_extended_file_nofollow if available".
8322         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
8323
8324 2011-10-03  Bruno Haible  <bruno@clisp.org>
8325
8326         poll: Avoid link errors on MSVC.
8327         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
8328         * modules/poll (Depends-on): Add sockets.
8329         (Link): New section.
8330         * NEWS: Mention the change.
8331         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
8332         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
8333         $(LIB_POLL) instead of $(LIBSOCKET).
8334
8335 2011-10-03  Bruno Haible  <bruno@clisp.org>
8336
8337         sys_select tests: Fix link error on MSVC 9.
8338         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
8339         with $(LIB_SELECT) instead of $(LIBSOCKET).
8340
8341 2011-10-03  Bruno Haible  <bruno@clisp.org>
8342
8343         sys_select: Fix compilation error on mingw.
8344         * lib/sys_select.in.h: On native Windows, include <io.h>.
8345
8346 2011-10-03  Bruno Haible  <bruno@clisp.org>
8347
8348         wmemset: Support for MSVC.
8349         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
8350         whether wmemset() exists.
8351
8352 2011-10-03  Bruno Haible  <bruno@clisp.org>
8353
8354         wmemmove: Support for MSVC.
8355         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
8356         whether wmemmove() exists.
8357
8358 2011-10-03  Bruno Haible  <bruno@clisp.org>
8359
8360         wmemcpy: Support for MSVC.
8361         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
8362         whether wmemcpy() exists.
8363
8364 2011-10-03  Bruno Haible  <bruno@clisp.org>
8365
8366         wmemcmp: Support for MSVC.
8367         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
8368         whether wmemcmp() exists.
8369
8370 2011-10-03  Bruno Haible  <bruno@clisp.org>
8371
8372         wmemchr: Support for MSVC.
8373         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
8374         whether wmemchr() exists.
8375
8376 2011-10-03  Bruno Haible  <bruno@clisp.org>
8377
8378         glthread/*, strsignal: Support for MSVC.
8379         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
8380         including <winsock.h> on MSVC 9.
8381         * lib/glthread/lock.h: Likewise.
8382         * lib/glthread/thread.h: Likewise.
8383         * lib/glthread/tls.h: Likewise.
8384         * lib/glthread/yield.h: Likewise.
8385         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
8386         if HAVE_UNISTD_H is false.
8387         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
8388
8389 2011-10-03  Bruno Haible  <bruno@clisp.org>
8390
8391         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
8392         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
8393         Set to 100000.
8394
8395 2011-10-03  Bruno Haible  <bruno@clisp.org>
8396
8397         acl: Fix specification.
8398         * lib/file-has-acl.c (file_has_acl): Fix specification.
8399
8400 2011-10-03  Bruno Haible  <bruno@clisp.org>
8401
8402         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
8403         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
8404         (compute_curr_prefix, shared_library_fullname,
8405         find_shared_library_fullname, get_shared_library_fullname, relocate):
8406         Use it together with PIC && INSTALLDIR.
8407         Reported by <jojelino@gmail.com>
8408         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
8409
8410 2011-10-01  Jim Meyering  <meyering@redhat.com>
8411
8412         maint.mk: adjust a release-related rule not to require use of gzip
8413         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
8414         Instead, check each file in $(DIST_ARCHIVES).  This is better for
8415         projects that build only .tar.xz files.  Also fix an erroneous test.
8416
8417         test-linkat: don't leave behind a temporary file
8418         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
8419         Otherwise, coreutils' "make distcheck" would fail with this:
8420           Only in /c/cu/tests/torture/coreutils/test/\
8421             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
8422           make[2]: *** [my-distcheck] Error 1
8423
8424         float, math: add omitted file
8425         * lib/itold.c: Add file, required for yesterday's float change.
8426
8427 2011-10-01  Bruno Haible  <bruno@clisp.org>
8428
8429         isinf: Fix for OpenBSD/x86.
8430         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
8431         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
8432         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
8433
8434 2011-10-01  Bruno Haible  <bruno@clisp.org>
8435
8436         isfinite: Fix syntax error in configure test.
8437         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
8438
8439         isfinite: Fix typo.
8440         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
8441         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
8442
8443 2011-10-01  Bruno Haible  <bruno@clisp.org>
8444
8445         nonblocking tests: Fix test failure on Linux/IA-64.
8446         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
8447         Set to 270000.
8448
8449 2011-10-01  Bruno Haible  <bruno@clisp.org>
8450
8451         mkfifoat tests: Fix a test failure on mingw.
8452         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
8453         with error ENOSYS.
8454
8455 2011-09-30  Bruno Haible  <bruno@clisp.org>
8456
8457         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
8458         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
8459         'long double'. Set REPLACE_ITOLD.
8460         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
8461         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
8462         * lib/itold.c: New file.
8463         * modules/float (Files): Add lib/itold.c.
8464         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
8465         (Makefile.am): Substitute REPLACE_ITOLD.
8466         * modules/math (Depends-on): Add float.
8467         (Makefile.am): Substitute REPLACE_ITOLD.
8468         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
8469         * doc/posix-headers/math.texi: Likewise.
8470         * doc/posix-functions/logl.texi: Likewise.
8471
8472 2011-09-30  Bruno Haible  <bruno@clisp.org>
8473
8474         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
8475         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
8476         Set to 140000.
8477
8478 2011-09-30  Bruno Haible  <bruno@clisp.org>
8479
8480         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
8481         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
8482         invocation, say "right after AC_PROG_CC_STDC", not "right after
8483         AC_PROG_CC".
8484         Reported by Gary V. Vaughan <gary@gnu.org>.
8485
8486 2011-09-30  Bruno Haible  <bruno@clisp.org>
8487
8488         Centralize C99 requirement.
8489         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
8490         * modules/stdarg (configure.ac-early): Invoke it instead of
8491         AC_PROG_CC_STDC.
8492         Reported by Gary V. Vaughan and Paul Eggert.
8493
8494 2011-09-29  Bruno Haible  <bruno@clisp.org>
8495
8496         float: Fix LDBL_MAX value on Linux/PowerPC.
8497         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
8498         on Linux/PowerPC.
8499         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
8500         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
8501         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
8502         platform.
8503         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
8504
8505 2011-09-29  Bruno Haible  <bruno@clisp.org>
8506
8507         doc: Improve doc about gl_EARLY.
8508         * doc/gnulib-tool.texi (Initial import): Mention where to place an
8509         AC_PROG_CC_STDC invocation.
8510         Reported by Gary V. Vaughan <gary@gnu.org>.
8511
8512 2011-09-28  Bruno Haible  <bruno@clisp.org>
8513
8514         fgetc, fputc, fread, fwrite tests: Fix link error.
8515         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
8516         on non-MSVC platforms.
8517         * tests/test-fputc.c (main): Likewise.
8518         * tests/test-fread.c (main): Likewise.
8519         * tests/test-fwrite.c (main): Likewise.
8520         Reported by Jim Meyering.
8521
8522 2011-09-27  Bruno Haible  <bruno@clisp.org>
8523
8524         fputc, fwrite tests: Avoid test failure on MSVC.
8525         * tests/test-fgetc.c: Include msvc-inval.h.
8526         (main): Invoke gl_msvc_inval_ensure_handler.
8527         * tests/test-fputc.c: Include msvc-inval.h.
8528         (main): Invoke gl_msvc_inval_ensure_handler.
8529         * tests/test-fread.c: Include msvc-inval.h.
8530         (main): Invoke gl_msvc_inval_ensure_handler.
8531         * tests/test-fwrite.c: Include msvc-inval.h.
8532         (main): Invoke gl_msvc_inval_ensure_handler.
8533         * modules/fgetc-tests (Depends-on): Add msvc-inval.
8534         * modules/fputc-tests (Depends-on): Likewise.
8535         * modules/fread-tests (Depends-on): Likewise.
8536         * modules/fwrite-tests (Depends-on): Likewise.
8537
8538 2011-09-27  Bruno Haible  <bruno@clisp.org>
8539
8540         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
8541         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
8542         (raise): Remove older, duplicated declaration.
8543         (_gl_raise_SIGPIPE): New declaration.
8544         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
8545         (rpl_raise): Remove function.
8546         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
8547         a gnulib-defined SIGPIPE here.
8548         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
8549         'sigprocmask' has detected missing signal-blocking and the module
8550         'sigpipe' is enabled.
8551         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
8552
8553 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
8554
8555         base64-tests: avoid memory leak
8556         * tests/test-base64.c (main): Plug memory leak.
8557
8558         base32: new module
8559         * modules/base32: New module.
8560         * lib/base32.c: New file.
8561         * lib/base32.h: Likewise.
8562         * m4/base32.m4: Likewise.
8563         * modules/base32-tests: New test.
8564         * tests/test-base32.c: Likewise.
8565         * MODULES.html.sh (Misc): Mention it.
8566
8567 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8568
8569         gnulib: use more-standard license notice wording
8570         * gnulib-tool (func_emit_copyright_notice): When emitting a
8571         license notice into a file, use the standard wording as suggested
8572         by the current information for GNU maintainers, except say "file"
8573         rather than "program".  The new wording gives a license version
8574         number, which addresses an issue raised by Glenn Morris in
8575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
8576         * m4/onceonly.m4: Use that same wording here, too.
8577
8578         dup2: minor simplification
8579         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
8580         as lib/dup2.c no longer uses 'inline'.
8581
8582 2011-09-25  Bruno Haible  <bruno@clisp.org>
8583
8584         strings: Fix compilation error on MSVC.
8585         * lib/strings.in.h: Include <stddef.h> for size_t.
8586
8587 2011-09-25  Bruno Haible  <bruno@clisp.org>
8588
8589         fflush et al.: Document limitation on MSVC.
8590         * doc/posix-functions/fflush.texi: Document possible crash in handling
8591         mode other than DEFAULT_HANDLING.
8592         * doc/posix-functions/fgetc.texi: Likewise.
8593         * doc/posix-functions/fputc.texi: Likewise.
8594         * doc/posix-functions/fread.texi: Likewise.
8595         * doc/posix-functions/fwrite.texi: Likewise.
8596
8597 2011-09-25  Bruno Haible  <bruno@clisp.org>
8598
8599         msvc-inval: Allow three invalid parameter handling modes.
8600         * lib/msvc-inval.h: Don't include <stdlib.h> here.
8601         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
8602         macros.
8603         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
8604         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
8605         SANE_LIBRARY_HANDLING as a no-op.
8606         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
8607         <stdlib.h>.
8608         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
8609
8610 2011-09-25  Bruno Haible  <bruno@clisp.org>
8611
8612         msvc-inval: Make handler multithread-safe.
8613         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
8614         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
8615         declarations.
8616         (gl_msvc_inval_current): New declaration.
8617         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8618         Operate on the structure returned by gl_msvc_inval_current().
8619         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
8620         Remove varaiables.
8621         (tls_index, tls_initialized): New variables.
8622         (not_per_thread): New variable.
8623         (gl_msvc_inval_current): New function.
8624         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
8625         returned by gl_msvc_inval_current().
8626
8627 2011-09-25  Bruno Haible  <bruno@clisp.org>
8628
8629         msvc-inval: Install handler globally.
8630         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
8631         !_MSC_VER.
8632         (gl_msvc_invalid_parameter_handler): Remove declaration.
8633         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
8634         declarations.
8635         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
8636         Install the handler globally, don't uninstall it.
8637         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
8638         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
8639         currently valid, call RaiseException instead.
8640         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
8641         for !_MSC_VER.
8642
8643 2011-09-25  Bruno Haible  <bruno@clisp.org>
8644
8645         strerror_r-posix: Fix for MSVC 9.
8646         * lib/strerror_r.c (local_snprintf): New function.
8647         (snprintf): Define to local_snprintf, not to _snprintf.
8648
8649 2011-09-25  Bruno Haible  <bruno@clisp.org>
8650
8651         ftruncate: Support for MSVC 9.
8652         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
8653         (chsize_nothrow): New function.
8654         (chsize): Redefine as a macro.
8655         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
8656         * modules/ftruncate (Depends-on): Add msvc-inval.
8657
8658 2011-09-25  Bruno Haible  <bruno@clisp.org>
8659
8660         New module 'fstat'.
8661         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
8662         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
8663         * lib/fchdir.c (rpl_fstat): Remove function.
8664         * m4/fstat.m4: New file.
8665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
8666         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
8667         declared.
8668         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
8669         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
8670         * modules/fstat: New file.
8671         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
8672         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
8673         is set.
8674         * doc/posix-functions/fstat.texi: Mention the new module and the
8675         problem on MSVC.
8676         * NEWS: Mention the change.
8677         * modules/acl (Depends-on): Add fstat.
8678         * modules/chdir-safer (Depends-on): Likewise.
8679         * modules/chown (Depends-on): Likewise.
8680         * modules/copy-file (Depends-on): Likewise.
8681         * modules/fchdir (Depends-on): Likewise.
8682         * modules/fdopendir (Depends-on): Likewise.
8683         * modules/fopen (Depends-on): Likewise.
8684         * modules/fts (Depends-on): Likewise.
8685         * modules/getcwd (Depends-on): Likewise.
8686         * modules/isapipe (Depends-on): Likewise.
8687         * modules/linkat (Depends-on): Likewise.
8688         * modules/lseek (Depends-on): Likewise.
8689         * modules/mkdir-p (Depends-on): Likewise.
8690         * modules/open (Depends-on): Likewise.
8691         * modules/openat (Depends-on): Likewise.
8692         * modules/read-file (Depends-on): Likewise.
8693         * modules/renameat (Depends-on): Likewise.
8694         * modules/utimens (Depends-on): Likewise.
8695
8696 2011-09-25  Bruno Haible  <bruno@clisp.org>
8697
8698         linkat: Fix compilation on MSVC 9.
8699         * lib/linkat.c: Don't include <stdint.h>.
8700
8701 2011-09-25  Bruno Haible  <bruno@clisp.org>
8702
8703         fclose: Support for MSVC 9.
8704         * lib/fclose.c: Include msvc-inval.h.
8705         (fclose_nothrow): New function.
8706         (rpl_fclose): Use it.
8707         * modules/fclose (Depends-on): Add msvc-inval.
8708         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
8709
8710 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
8711
8712         dup2: minor simplifications
8713         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
8714         that it's a performance win.
8715         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
8716         ! defined __CYGWIN__)" to "ifdef F_GETFL".
8717
8718 2011-09-24  Jim Meyering  <meyering@redhat.com>
8719
8720         test-futimens: avoid a warning from gcc -Wshadow
8721         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
8722         to avoid a shadowing warning.
8723
8724 2011-09-24  Bruno Haible  <bruno@clisp.org>
8725
8726         fdopen: Support for MSVC 9.
8727         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
8728         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
8729         * lib/fdopen.c: Include msvc-inval.h.
8730         (fdopen_nothrow): New function.
8731         (rpl_fdopen): Use it.
8732         * modules/fdopen (Depends-on): Add msvc-inval.
8733         * modules/fclose-tests (Depends-on): Add fdopen.
8734         * modules/fflush-tests (Depends-on): Likewise.
8735         * modules/fgetc-tests (Depends-on): Likewise.
8736         * modules/fputc-tests (Depends-on): Likewise.
8737         * modules/fread-tests (Depends-on): Likewise.
8738         * modules/freopen-tests (Depends-on): Likewise.
8739         * modules/fseeko-tests (Depends-on): Likewise.
8740         * modules/ftello-tests (Depends-on): Likewise.
8741         * modules/fwrite-tests  (Depends-on): Likewise.
8742         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
8743
8744 2011-09-24  Bruno Haible  <bruno@clisp.org>
8745
8746         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
8747         * modules/fgetc-tests (Depends-on): Add unistd.
8748         * modules/fputc-tests (Depends-on): Likewise.
8749         * modules/fread-tests (Depends-on): Likewise.
8750         * modules/fwrite-tests (Depends-on): Likewise.
8751
8752 2011-09-24  Bruno Haible  <bruno@clisp.org>
8753
8754         dup: Simplify autoconf test.
8755         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
8756         on gl_MSVC_INVAL's result.
8757
8758 2011-09-24  Bruno Haible  <bruno@clisp.org>
8759
8760         Tests for function fwrite().
8761         * modules/fwrite-tests: New file.
8762         * tests/test-fwrite.c: New file.
8763         * modules/stdio-tests (Depends-on): Add fwrite-tests.
8764
8765         Tests for function fread().
8766         * modules/fread-tests: New file.
8767         * tests/test-fread.c: New file.
8768         * modules/stdio-tests (Depends-on): Add fread-tests.
8769
8770         Activate fputc tests.
8771         * modules/stdio-tests (Depends-on): Add fputc-tests.
8772
8773         Enhance fgetc, fputc tests.
8774         * tests/test-fgetc.c (main): Also test the stream's error indicator.
8775         * tests/test-fputc.c (main): Likewise.
8776
8777 2011-09-24  Bruno Haible  <bruno@clisp.org>
8778
8779         write: Support for MSVC 9.
8780         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8781         is not 1.
8782         * lib/write.c (write_nothrow): New function.
8783         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
8784         not 1. Use write_nothrow.
8785         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
8786         invalid parameter handler.
8787         (gl_PREREQ_WRITE): New macro.
8788         * modules/write (Depends-on): Add msvc-inval.
8789         (configure.ac): Invoke gl_PREREQ_WRITE.
8790         * doc/posix-functions/write.texi: Mention the problem on MSVC.
8791
8792 2011-09-24  Bruno Haible  <bruno@clisp.org>
8793
8794         read: Fix last commit.
8795         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
8796
8797 2011-09-24  Bruno Haible  <bruno@clisp.org>
8798
8799         dup2: Fix last commit.
8800         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
8801         (rpl_dup2): Disable fcntl workaround on native Windows.
8802
8803         sigprocmask: Make code safer.
8804         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
8805         section that changes macro definitions for this compilation unit.
8806
8807 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8808
8809         dup2: clarify by coalescing Windows-specific material
8810         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8811         "msvc-nothrow.h"' to the Windows-specific section, so that the
8812         Emacs source need not contain these include files.
8813         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8814         Windows-specific fixes into this function rather than just the
8815         nothrow fix, as this shortens and clarifies the code.  Always
8816         define as a function, as that's a bit cleaner than having it be
8817         sometimes a function and sometimes a macro.
8818         (rpl_dup2): Move the Windows-specific stuff out of here and into
8819         ms_windows_dup2.  Don't protect the Haiku-related fix with
8820         "#if !defined __linux__", as the same code also works around
8821         a Linux kernel bug, and it doesn't add any system calls on any
8822         platform.  Add comment about FreeBSD 6.1.
8823
8824         sigprocmask: move #include directive
8825         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8826         Windows-specific section, so that the Emacs source need not
8827         contain msvc-inval.h.
8828
8829 2011-09-23  Bruno Haible  <bruno@clisp.org>
8830
8831         read: Support for MSVC 9.
8832         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8833         is not 1.
8834         * lib/read.c (read_nothrow): New function.
8835         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8836         read_nothrow.
8837         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8838         invalid parameter handler.
8839         (gl_PREREQ_READ): New macro.
8840         * modules/read (Depends-on): Add msvc-inval.
8841         (configure.ac): Invoke gl_PREREQ_READ.
8842         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8843
8844 2011-09-23  Bruno Haible  <bruno@clisp.org>
8845
8846         close: Support for MSVC 9.
8847         * lib/close.c: Include <errno.h>, msvc-inval.h.
8848         (close_nothrow): New function.
8849         (rpl_close): Use it.
8850         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8851         invalid parameter handler.
8852         * modules/close (Depends-on): Add msvc-inval.
8853         * modules/dup2-tests (Depends-on): Add close.
8854         * modules/dup3-tests (Depends-on): Likewise.
8855         * modules/fcntl-tests (Depends-on): Likewise.
8856         * modules/spawn-pipe-tests (Depends-on): Likewise.
8857         * modules/unistd-safer-tests (Depends-on): Likewise.
8858         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8859
8860 2011-09-23  Bruno Haible  <bruno@clisp.org>
8861
8862         New module 'dup'.
8863         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8864         Allow replacement.
8865         * lib/dup.c: New file.
8866         * lib/fchdir.c (rpl_dup): Remove function.
8867         * m4/dup.m4: New file.
8868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8869         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8870         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8871         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8872         * modules/dup: New file.
8873         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8874         'dup' module is in use.
8875         * modules/fdopendir (Depends-on): Add dup.
8876         * modules/fdutimensat-tests (Depends-on): Likewise.
8877         * modules/fts (Depends-on): Likewise.
8878         * modules/futimens-tests (Depends-on): Likewise.
8879         * modules/posix_spawnp-tests (Depends-on): Likewise.
8880         * modules/unistd-safer-tests (Depends-on): Likewise.
8881         * modules/utimens-tests (Depends-on): Likewise.
8882         * doc/posix-functions/dup.texi: Mention the new module and the problem
8883         on MSVC.
8884
8885 2011-09-23  Bruno Haible  <bruno@clisp.org>
8886
8887         getdtablesize: Support for MSVC 9.
8888         * lib/getdtablesize.c: Include msvc-inval.h.
8889         (_setmaxstdio_nothrow): New function.
8890         (_setmaxstdio): Redefine it.
8891         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8892         * modules/getdtablesize (Depends-on): Add msvc-inval.
8893         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8894
8895 2011-09-23  Bruno Haible  <bruno@clisp.org>
8896
8897         signal-h: Rename from signal.
8898         * modules/signal-h: Renamed from modules/signal.
8899         * modules/pthread_sigmask (Depends-on): Update.
8900         * modules/raise (Depends-on): Likewise.
8901         * modules/sigaction (Depends-on): Likewise.
8902         * modules/sigpipe (Depends-on): Likewise.
8903         * modules/sigprocmask (Depends-on): Likewise.
8904         * modules/sys_select (Depends-on): Likewise.
8905         * modules/signal-h-tests: Renamed from modules/signal-tests.
8906         (Files, Depends-on, Makefile.am): Update.
8907         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8908         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8909         (Files, Makefile.am): Update.
8910         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8911         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8912         * modules/signal: New placeholder file.
8913         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8914         * doc/posix-headers/signal.texi: Update.
8915         * NEWS: Mention the change.
8916
8917 2011-09-23  Bruno Haible  <bruno@clisp.org>
8918
8919         sigprocmask: Avoid crashes through signal() on MSVC 9.
8920         * lib/sigprocmask.c: Include msvc-inval.h.
8921         (signal_nothrow): New function.
8922         (signal): Redefine it.
8923         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8924         * modules/sigprocmask (Depends-on): Add msvc-inval.
8925         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8926
8927 2011-09-23  Bruno Haible  <bruno@clisp.org>
8928
8929         Tests for module 'raise'.
8930         * modules/raise-tests: New file.
8931         * tests/test-raise.c: New file.
8932
8933         raise: Support for MSVC.
8934         * lib/signal.in.h (raise): New declaration.
8935         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8936         for native Windows platforms.
8937         * m4/raise.m4: New file.
8938         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8939         HAVE_RAISE, REPLACE_RAISE.
8940         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8941         REPLACE_RAISE.
8942         * modules/raise (Status, Notice): Remove fields.
8943         (Files): Add m4/raise.m4.
8944         (Depends-on): Add signal, msvc-inval.
8945         (configure.ac): Use the common idioms.
8946         (Maintainer): Add me.
8947         * tests/test-signal-c++.cc: Check the signature of raise.
8948         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8949
8950 2011-09-23  Bruno Haible  <bruno@clisp.org>
8951
8952         pipe2: Fix compilation on pre-C99 compilers.
8953         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8954
8955 2011-09-23  Bruno Haible  <bruno@clisp.org>
8956
8957         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8958         * lib/msvc-nothrow.h: New file.
8959         * lib/msvc-nothrow.c: New file.
8960         * m4/msvc-nothrow.m4: New file.
8961         * modules/msvc-nothrow: New file.
8962         * lib/dup2.c: Include msvc-nothrow.h.
8963         (rpl_dup2): No need to protect _get_osfhandle call here.
8964         * lib/accept4.c: Include msvc-nothrow.h.
8965         * lib/error.c: Likewise.
8966         * lib/fcntl.c: Likewise.
8967         * lib/lseek.c: Likewise.
8968         * lib/nonblocking.c: Likewise.
8969         * lib/poll.c: Likewise.
8970         * lib/read.c: Likewise.
8971         * lib/select.c: Likewise.
8972         * lib/sockets.h: Likewise.
8973         * lib/sockets.c: Likewise.
8974         * lib/stdio-read.c: Likewise.
8975         * lib/stdio-write.c: Likewise.
8976         * lib/write.c: Likewise.
8977         * lib/w32sock.h: Likewise.
8978         * lib/w32spawn.h: Likewise.
8979         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8980         * lib/fsync.c: Likewise.
8981         * lib/isapipe.c: Likewise.
8982         * modules/dup2 (Depends-on): Add msvc-nothrow.
8983         * modules/accept4 (Depends-on): Likewise.
8984         * modules/error (Depends-on): Likewise.
8985         * modules/fcntl (Depends-on): Likewise.
8986         * modules/lseek (Depends-on): Likewise.
8987         * modules/nonblocking (Depends-on): Likewise.
8988         * modules/poll (Depends-on): Likewise.
8989         * modules/read (Depends-on): Likewise.
8990         * modules/select (Depends-on): Likewise.
8991         * modules/sockets (Depends-on): Likewise.
8992         * modules/sigpipe (Depends-on): Likewise.
8993         * modules/write (Depends-on): Likewise.
8994         * modules/accept (Depends-on): Likewise.
8995         * modules/bind (Depends-on): Likewise.
8996         * modules/connect (Depends-on): Likewise.
8997         * modules/gethostname (Depends-on): Likewise.
8998         * modules/getpeername (Depends-on): Likewise.
8999         * modules/getsockname (Depends-on): Likewise.
9000         * modules/getsockopt (Depends-on): Likewise.
9001         * modules/ioctl (Depends-on): Likewise.
9002         * modules/listen (Depends-on): Likewise.
9003         * modules/recv (Depends-on): Likewise.
9004         * modules/recvfrom (Depends-on): Likewise.
9005         * modules/send (Depends-on): Likewise.
9006         * modules/sendto (Depends-on): Likewise.
9007         * modules/setsockopt (Depends-on): Likewise.
9008         * modules/shutdown (Depends-on): Likewise.
9009         * modules/socket (Depends-on): Likewise.
9010         * modules/execute (Depends-on): Likewise.
9011         * modules/spawn-pipe (Depends-on): Likewise.
9012         * modules/flock (Depends-on): Likewise.
9013         * modules/fsync (Depends-on): Likewise.
9014         * modules/isapipe (Depends-on): Likewise.
9015         * tests/test-cloexec.c: Include msvc-nothrow.h.
9016         * tests/test-dup-safer.c: Likewise.
9017         * tests/test-dup2.c: Likewise.
9018         * tests/test-dup3.c: Likewise.
9019         * tests/test-fcntl.c: Likewise.
9020         * tests/test-pipe.c: Likewise.
9021         * tests/test-pipe2.c: Likewise.
9022         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
9023         * modules/unistd-safer-tests (Depends-on): Likewise.
9024         * modules/dup2-tests (Depends-on): Likewise.
9025         * modules/dup3-tests (Depends-on): Likewise.
9026         * modules/fcntl-tests (Depends-on): Likewise.
9027         * modules/pipe-posix-tests (Depends-on): Likewise.
9028         * modules/pipe2-tests (Depends-on): Likewise.
9029
9030 2011-09-23  Bruno Haible  <bruno@clisp.org>
9031
9032         dup2: Make code more maintainable.
9033         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
9034         (rpl_dup2): Use it.
9035         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
9036         * modules/dup2 (configure.ac): Invoke it.
9037         Reported by Paul Eggert.
9038
9039 2011-09-23  Bruno Haible  <bruno@clisp.org>
9040
9041         msvc-inval: Fix compilation error.
9042         * lib/msvc-inval.h: Include <excpt.h>.
9043
9044 2011-09-23  Bruno Haible  <bruno@clisp.org>
9045
9046         mkdir: Tweak for MSVC 9.
9047         * lib/sys_stat.in.h: Update comments.
9048         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
9049
9050         Tests for module 'chdir'.
9051         * modules/chdir-tests: New file.
9052         * tests/test-chdir.c: New file.
9053
9054         New module 'chdir'.
9055         * modules/chdir: New file.
9056         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
9057         (chdir): New declaration.
9058         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
9059         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
9060         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
9061         * tests/test-unistd-c++.cc: Check signature of chdir.
9062         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
9063         * modules/chdir-long (Depends-on): Add chdir.
9064         * modules/fchdir (Depends-on): Likewise.
9065         * modules/rename (Depends-on): Likewise.
9066         * modules/savewd (Depends-on): Likewise.
9067
9068         rmdir: Support for mingw, MSVC 9.
9069         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
9070         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
9071
9072         getcwd: Tweak for MSVC 9.
9073         * lib/unistd.in.h: Update comments.
9074         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
9075
9076 2011-09-22  Bruno Haible  <bruno@clisp.org>
9077
9078         strerror_r-posix: Avoid a link error on MSVC.
9079         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
9080         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
9081
9082 2011-09-22  Bruno Haible  <bruno@clisp.org>
9083
9084         select: Avoid link errors on MSVC.
9085         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
9086         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
9087         * modules/pselect (Link): Likewise.
9088         * NEWS: Mention the change.
9089         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
9090         test-select-stdin against $(LIB_SELECT).
9091         * modules/pselect-tests (Makefile.am): Link test-pselect against
9092         $(LIB_SELECT).
9093
9094 2011-09-22  Bruno Haible  <bruno@clisp.org>
9095
9096         select: Avoid compilation error on MSVC.
9097         * lib/select.c: Don't include <stdbool.h>.
9098
9099 2011-09-21  Bruno Haible  <bruno@clisp.org>
9100
9101         Consolidate all uses of PATH_MAX in *.m4 files.
9102         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
9103         macros.
9104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
9105         and gl_PATHMAX_SNIPPET.
9106         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9107         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9108         * modules/chdir-long (Files): Add m4/pathmax.m4.
9109         * modules/getcwd (Files): Likewise.
9110
9111 2011-09-21  Bruno Haible  <bruno@clisp.org>
9112
9113         ftruncate: Un-deprecate, concentrate on Win32 support.
9114         * modules/ftruncate (Status, Notice): Remove sections.
9115         (Depends-on): Add largefile.
9116         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
9117         non-mingw platforms.
9118         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
9119         include <io.h>.
9120         * modules/perror-tests (Depends-on): Add ftruncate.
9121         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
9122         'ftruncate' module.
9123
9124 2011-09-21  Bruno Haible  <bruno@clisp.org>
9125
9126         Add dependencies to new dirent related modules.
9127         * modules/opendir (Depends-on): Add closedir.
9128         * modules/getcwd (Depends-on): Add opendir, closedir.
9129         * modules/dirent-safer-tests (Depends-on): Likewise.
9130         * modules/fdopendir-tests (Depends-on): Likewise.
9131         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
9132         * modules/renameat-tests (Depends-on): Likewise.
9133
9134 2011-09-21  Bruno Haible  <bruno@clisp.org>
9135
9136         opendir: Avoid compilation error on mingw.
9137         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
9138         * modules/opendir (Depends-on): Add unistd.
9139
9140 2011-09-21  Bruno Haible  <bruno@clisp.org>
9141
9142         ftruncate tests: Avoid a test failure on mingw.
9143         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
9144
9145 2011-09-21  Bruno Haible  <bruno@clisp.org>
9146
9147         select tests: Avoid test failures on OSF/1 5.1 and mingw.
9148         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
9149         native Windows.
9150
9151 2011-09-21  Bruno Haible  <bruno@clisp.org>
9152
9153         New module 'fdopen'.
9154         * lib/stdio.in.h (fdopen): New declaration.
9155         * lib/fdopen.c: New file.
9156         * m4/fdopen.m4: New file.
9157         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
9158         REPLACE_FDOPEN.
9159         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
9160         REPLACE_FDOPEN.
9161         * modules/fdopen: New file.
9162         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
9163         * tests/test-stdio-c++.cc: Check signature of fdopen.
9164         * doc/posix-functions/fdopen.texi: Mention the new module.
9165
9166 2011-09-21  Bruno Haible  <bruno@clisp.org>
9167
9168         unlockpt tests: Avoid test failure on NetBSD 5.1.
9169         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
9170         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
9171
9172 2011-09-21  Bruno Haible  <bruno@clisp.org>
9173
9174         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
9175         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
9176         * tests/test-getlogin_r.c (main): Likewise.
9177
9178 2011-09-20  Bruno Haible  <bruno@clisp.org>
9179
9180         time tests: Don't require pid_t.
9181         * doc/posix-headers/time.texi: Revert last change.
9182         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
9183         * tests/test-time.c: Comment out the check for pid_t.
9184
9185 2011-09-20  Bruno Haible  <bruno@clisp.org>
9186
9187         fsync tests: Avoid a test failure on mingw.
9188         * tests/test-fsync.c (main): Allow a failure with EIO.
9189
9190 2011-09-20  Bruno Haible  <bruno@clisp.org>
9191
9192         euidaccess: Update comments.
9193         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
9194
9195 2011-09-20  Bruno Haible  <bruno@clisp.org>
9196
9197         Ensure EBADF returns for socket functions on mingw.
9198         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
9199         descriptor is invalid.
9200         * lib/bind.c (rpl_bind): Likewise.
9201         * lib/connect.c (rpl_connect): Likewise.
9202         * lib/getpeername.c (rpl_getpeername): Likewise.
9203         * lib/getsockname.c (rpl_getsockname): Likewise.
9204         * lib/getsockopt.c (rpl_getsockopt): Likewise.
9205         * lib/listen.c (rpl_listen): Likewise.
9206         * lib/recv.c (rpl_recv): Likewise.
9207         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9208         * lib/send.c (rpl_send): Likewise.
9209         * lib/sendto.c (rpl_sendto): Likewise.
9210         * lib/setsockopt.c (rpl_setsockopt): Likewise.
9211         * lib/shutdown.c (rpl_shutdown): Likewise.
9212
9213 2011-09-20  Bruno Haible  <bruno@clisp.org>
9214
9215         select tests: EBADF tests.
9216         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
9217         test_bad_fd): New functions.
9218         (test_function): Invoke also test_bad_fd.
9219
9220 2011-09-20  Bruno Haible  <bruno@clisp.org>
9221
9222         Tests for module 'posix_spawn_file_actions_addopen.
9223         * modules/posix_spawn_file_actions_addopen-tests: New file.
9224         * tests/test-posix_spawn_file_actions_addopen.c: New file.
9225
9226         Tests for module 'posix_spawn_file_actions_adddup2'.
9227         * modules/posix_spawn_file_actions_adddup2-tests: New file.
9228         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
9229
9230         Tests for module 'posix_spawn_file_actions_addclose'.
9231         * modules/posix_spawn_file_actions_addclose-tests: New file.
9232         * tests/test-posix_spawn_file_actions_addclose.c: New file.
9233
9234 2011-09-20  Bruno Haible  <bruno@clisp.org>
9235
9236         Tests for module 'unlockpt'.
9237         * modules/unlockpt-tests: New file.
9238         * tests/test-unlockpt.c: New file.
9239         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
9240
9241         Tests for module 'grantpt'.
9242         * modules/grantpt-tests: New file.
9243         * tests/test-grantpt.c: New file.
9244         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
9245
9246 2011-09-20  Bruno Haible  <bruno@clisp.org>
9247
9248         freopen tests: EBADF tests.
9249         * tests/test-freopen.c: Include errno.h, unistd.h.
9250         (main): Add tests for EBADF, commented out for the moment.
9251
9252         fclose tests: EBADF tests.
9253         * tests/test-fclose.c (main): Add tests for EBADF.
9254
9255         fflush tests: EBADF tests.
9256         * tests/test-fflush.c: Include errno.h, macros.h.
9257         (main): Add tests for EBADF.
9258
9259         ftello tests: EBADF tests.
9260         * tests/test-ftello4.sh: New file.
9261         * tests/test-ftello4.c: New file.
9262         * modules/ftello-tests (Files): Add them.
9263         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
9264
9265         fseeko tests: EBADF tests.
9266         * tests/test-fseeko4.sh: New file.
9267         * tests/test-fseeko4.c: New file.
9268         * modules/fseeko-tests (Files): Add them.
9269         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
9270
9271         Tests for function fputc().
9272         * modules/fputc-tests: New file.
9273         * tests/test-fputc.c: New file.
9274         * modules/stdio-tests (Depends-on): Add fputc-tests.
9275
9276         Tests for function fgetc().
9277         * modules/fgetc-tests: New file.
9278         * tests/test-fgetc.c: New file.
9279         * modules/stdio-tests (Depends-on): Add fgetc-tests.
9280
9281         Tests for function fdopen().
9282         * modules/fdopen-tests: New file.
9283         * tests/test-fdopen.c: New file.
9284         * modules/stdio-tests (Depends-on): Add fdopen-tests.
9285
9286         Tests for module 'vdprintf'.
9287         * modules/vdprintf-tests: New file.
9288         * tests/test-vdprintf.c: New file.
9289
9290         Tests for module 'dprintf'.
9291         * modules/dprintf-tests: New file.
9292         * tests/test-dprintf.c: New file.
9293
9294 2011-09-20  Bruno Haible  <bruno@clisp.org>
9295
9296         Tests for module 'ioctl'.
9297         * modules/ioctl-tests: New file.
9298         * tests/test-ioctl.c: New file.
9299
9300 2011-09-20  Bruno Haible  <bruno@clisp.org>
9301
9302         fcntl tests: EBADF tests.
9303         * tests/test-fcntl.c (main): Add more tests for EBADF.
9304
9305 2011-09-20  Bruno Haible  <bruno@clisp.org>
9306
9307         utimensat tests: EBADF tests.
9308         * tests/test-utimensat.c (main): Add tests for EBADF.
9309
9310         renameat tests: EBADF tests.
9311         * tests/test-renameat.c (main): Add tests for EBADF.
9312
9313         mkfifoat tests: EBADF tests.
9314         * tests/test-mkfifoat.c (main): Add tests for EBADF.
9315
9316         readlinkat tests: EBADF tests.
9317         * tests/test-readlinkat.c (main): Add tests for EBADF.
9318
9319         symlinkat tests: EBADF tests.
9320         * tests/test-symlinkat.c (main): Add tests for EBADF.
9321
9322         linkat tests: EBADF tests.
9323         * tests/test-linkat.c (main): Add tests for EBADF.
9324
9325         Tests for module 'faccessat'.
9326         * modules/faccessat-tests: New file.
9327         * tests/test-faccessat.c: New file.
9328
9329         fdopendir tests: EBADF tests.
9330         * tests/test-fdopendir.c (main): Add more tests for EBADF.
9331
9332         openat tests: EBADF tests.
9333         * tests/test-fchownat.c (main): Add tests for EBADF.
9334         * tests/test-fstatat.c (main): Likewise.
9335         * tests/test-mkdirat.c (main): Likewise.
9336         * tests/test-openat.c (main): Likewise.
9337         * tests/test-unlinkat.c (main): Likewise.
9338         * tests/test-fchmodat.c: New file.
9339         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
9340         (Makefile.am): Also run 'test-fchmodat'.
9341
9342 2011-09-20  Bruno Haible  <bruno@clisp.org>
9343
9344         utimens, futimens, fdutimensat tests: EBADF tests.
9345         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
9346
9347         Tests for function fstat().
9348         * modules/fstat-tests: New file.
9349         * tests/test-fstat.c: New file.
9350         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
9351
9352 2011-09-20  Bruno Haible  <bruno@clisp.org>
9353
9354         test-ttyname_r tests: EBADF tests.
9355         * tests/test-ttyname_r.c (main): Add tests for EBADF.
9356
9357         Tests for module 'isatty'.
9358         * modules/isatty-tests: New file.
9359         * tests/test-isatty.c: New file.
9360
9361         Tests for module 'write'.
9362         * modules/write-tests: New file.
9363         * tests/test-write.c: New file.
9364
9365         Tests for module 'read'.
9366         * modules/read-tests: New file.
9367         * tests/test-read.c: New file.
9368
9369         pwrite tests: EBADF tests.
9370         * tests/test-pwrite.c (main): Add tests for EBADF.
9371
9372         pread tests: EBADF tests.
9373         * tests/test-pread.c (main): Add tests for EBADF.
9374
9375         lseek tests: EBADF tests.
9376         * tests/test-lseek.c (main): Add more tests for EBADF.
9377
9378         Tests for module 'ftruncate'.
9379         * modules/ftruncate-tests: New file.
9380         * tests/test-ftruncate.sh: New file.
9381         * tests/test-ftruncate.c: New file.
9382
9383         fsync tests: EBADF tests.
9384         * tests/test-fsync.c (main): Add more tests for EBADF.
9385
9386         fdatasync tests: EBADF tests.
9387         * tests/test-fdatasync.c (main): Add more tests for EBADF.
9388
9389         Tests for module 'fchown'.
9390         * modules/fchown-tests: New file.
9391         * tests/test-fchown.c: New file.
9392
9393         Tests for module 'fchmod'.
9394         * modules/fchmod-tests: New file.
9395         * tests/test-fchmod.c: New file.
9396
9397         fchdir tests: EBADF tests.
9398         * tests/test-fchdir.c (main): Add more tests for EBADF.
9399
9400         dup2 tests: EBADF tests.
9401         * tests/test-dup2.c (main): Add more tests for EBADF.
9402
9403         Tests for module 'dup'.
9404         * modules/dup-tests: New file.
9405         * tests/test-dup.c: New file.
9406
9407         Tests for module 'close'.
9408         * modules/close-tests: New file.
9409         * tests/test-close.c: New file.
9410
9411 2011-09-20  Bruno Haible  <bruno@clisp.org>
9412
9413         Tests for module 'shutdown'.
9414         * modules/shutdown-tests: New file.
9415         * tests/test-shutdown.c: New file.
9416
9417         Tests for module 'setsockopt'.
9418         * modules/setsockopt-tests: New file.
9419         * tests/test-setsockopt.c: New file.
9420
9421         Tests for module 'sendto'.
9422         * modules/sendto-tests: New file.
9423         * tests/test-sendto.c: New file.
9424
9425         Tests for module 'send'.
9426         * modules/send-tests: New file.
9427         * tests/test-send.c: New file.
9428
9429         Tests for module 'recvfrom'.
9430         * modules/recvfrom-tests: New file.
9431         * tests/test-recvfrom.c: New file.
9432
9433         Tests for module 'recv'.
9434         * modules/recv-tests: New file.
9435         * tests/test-recv.c: New file.
9436
9437         Tests for module 'listen'.
9438         * modules/listen-tests: New file.
9439         * tests/test-listen.c: New file.
9440
9441         Tests for module 'getsockopt'.
9442         * modules/getsockopt-tests: New file.
9443         * tests/test-getsockopt.c: New file.
9444
9445         Tests for module 'getsockname'.
9446         * modules/getsockname-tests: New file.
9447         * tests/test-getsockname.c: New file.
9448
9449         Tests for module 'getpeername'.
9450         * modules/getpeername-tests: New file.
9451         * tests/test-getpeername.c: New file.
9452
9453         Tests for module 'connect'.
9454         * modules/connect-tests: New file.
9455         * tests/test-connect.c: New file.
9456
9457         Tests for module 'bind'.
9458         * modules/bind-tests: New file.
9459         * tests/test-bind.c: New file.
9460
9461         accept4 tests: Fix for native Windows.
9462         * tests/test-accept4.c: Include sockets.h.
9463         (main): Invoke gl_sockets_startup.
9464         * modules/accept4-tests (Depends-on): Add sockets.
9465
9466         accept tests: Fix for native Windows.
9467         * tests/test-accept.c: Include sockets.h.
9468         (main): Invoke gl_sockets_startup.
9469         * modules/accept-tests (Depends-on): Add sockets.
9470
9471 2011-09-19  Bruno Haible  <bruno@clisp.org>
9472
9473         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
9474         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
9475         do...while(0).
9476         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
9477         Suggested by Paul Eggert.
9478
9479 2011-09-19  Bruno Haible  <bruno@clisp.org>
9480
9481         sched: Ensure pid_t is defined.
9482         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
9483         not define pid_t.
9484         * lib/sched.in.h: Include <sys/types.h>.
9485         * doc/posix-headers/sched.texi: Mention the pid_t problem.
9486         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9487
9488 2011-09-19  Bruno Haible  <bruno@clisp.org>
9489
9490         msvc-inval: Ensure the entire expansion is a single statement.
9491         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
9492         of braces.
9493
9494 2011-09-19  Jim Meyering  <meyering@redhat.com>
9495
9496         tests: use printf, not echo in init.sh's warn_ function
9497         * tests/init.sh (warn_): Use printf, not echo.  The latter would
9498         misbehave when given strings containing a backslash or starting
9499         with e.g., -n.  James Youngman suggested setting IFS.
9500
9501 2011-09-19  Eric Blake  <eblake@redhat.com>
9502
9503         futimens: enhance test
9504         * tests/test-futimens.h (test_futimens): Also check for EBADF on
9505         closed non-negative fd.
9506
9507         date: accept 'hence' as opposite of 'ago'
9508         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
9509         * tests/test-parse-datetime.c (main): Enhance test.
9510         Suggested by Jesse Wilson.
9511
9512 2011-09-19  Jim Meyering  <meyering@redhat.com>
9513
9514         getcwd: don't fail in a deep directory on a system without openat
9515         Before this change, getcwd would fail when called from a directory
9516         of depth PATH_MAX / 3 or greater.  That was due to the fact that
9517         the non-openat implementation used "..", "../..", "../../..", etc.
9518         to access ancestor directories.  With too many, that string would
9519         be longer than PATH_MAX.
9520         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
9521         using gnulib's openat replacement.
9522         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
9523         we're using the replacement function.
9524
9525 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
9526
9527         maint.mk: avoid warnings from perl about missing files
9528         * top/maint.mk (def_sym_regex): Ignore files listed in
9529         $(gl_other_headers_) that do not exist, say because a project
9530         does not use a corresponding module.
9531
9532 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
9533
9534         stat: use pathmax.h only if needed
9535         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
9536         This is better for Emacs, which does not have a mingw port and
9537         therefore can avoid the pathmax module.
9538
9539         utimens: remove dependency on dup2
9540         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
9541         to work around the Linux kernel bug.
9542         * modules/utimens (Depends-on): Remove dup2.
9543
9544 2011-09-18  Bruno Haible  <bruno@clisp.org>
9545
9546         inet_ntop, inet_pton: Look for it also in libresolv.
9547         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
9548         libnsl, search for it in libresolv.
9549         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9550         Needed on Solaris 7.
9551
9552 2011-09-18  Bruno Haible  <bruno@clisp.org>
9553
9554         accept, accept4 tests: Avoid link error on Solaris.
9555         * modules/accept-tests (Makefile.am): Link test-accept against
9556         $(LIBSOCKET).
9557         * modules/accept4-tests (Makefile.am): Link test-accept4 against
9558         $(LIBSOCKET).
9559
9560         accept4: Avoid link error on Solaris.
9561         * modules/accept4 (Link): New section.
9562
9563         socket functions: Avoid link errors on Solaris.
9564         * modules/accept (Depends-on): Add socketlib.
9565         (Link): New section.
9566         * modules/bind (Depends-on): Add socketlib.
9567         (Link): New section.
9568         * modules/connect (Depends-on): Add socketlib.
9569         (Link): New section.
9570         * modules/getpeername (Depends-on): Add socketlib.
9571         (Link): New section.
9572         * modules/getsockname (Depends-on): Add socketlib.
9573         (Link): New section.
9574         * modules/getsockopt (Depends-on): Add socketlib.
9575         (Link): New section.
9576         * modules/listen (Depends-on): Add socketlib.
9577         (Link): New section.
9578         * modules/recv (Depends-on): Add socketlib.
9579         (Link): New section.
9580         * modules/recvfrom (Depends-on): Add socketlib.
9581         (Link): New section.
9582         * modules/send (Depends-on): Add socketlib.
9583         (Link): New section.
9584         * modules/sendto (Depends-on): Add socketlib.
9585         (Link): New section.
9586         * modules/setsockopt (Depends-on): Add socketlib.
9587         (Link): New section.
9588         * modules/shutdown (Depends-on): Add socketlib.
9589         (Link): New section.
9590         * modules/socket (Depends-on): Add socketlib.
9591         (Link): New section.
9592
9593 2011-09-18  Bruno Haible  <bruno@clisp.org>
9594
9595         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
9596         * tests/test-ptsname.c (main): Terminate the test if it takes longer
9597         than 5 seconds.
9598         * modules/ptsname-tests (configure.ac): Test for alarm.
9599
9600 2011-09-18  Bruno Haible  <bruno@clisp.org>
9601
9602         posix_spawn_file_actions_add*: Fix module dependencies.
9603         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
9604         posix_spawn_file_actions_init.
9605         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
9606         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
9607
9608 2011-09-18  Bruno Haible  <bruno@clisp.org>
9609
9610         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
9611         * tests/test-rename.h (test_rename): Allow error code EEXIST.
9612         * tests/test-renameat.c (main): Likewise.
9613
9614 2011-09-18  Bruno Haible  <bruno@clisp.org>
9615
9616         Tests for module 'accept4'.
9617         * modules/accept4-tests: New file.
9618         * tests/test-accept4.c: New file.
9619
9620 2011-09-18  Bruno Haible  <bruno@clisp.org>
9621
9622         Tests for module 'accept'.
9623         * modules/accept-tests: New file.
9624         * tests/test-accept.c: New file.
9625
9626 2011-09-18  Bruno Haible  <bruno@clisp.org>
9627
9628         dup2: Support for MSVC.
9629         * lib/dup2.c: Include msvc-inval.h.
9630         (rpl_dup2): Handle invalid parameter notifications during dup2 and
9631         _get_osfhandle calls.
9632         * modules/dup2 (Depends-on): Add msvc-inval.
9633         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
9634
9635         New module 'msvc-inval'.
9636         * lib/msvc-inval.h: New file.
9637         * lib/msvc-inval.c: New file.
9638         * m4/msvc-inval.m4: New file.
9639         * modules/msvc-inval: New file.
9640
9641 2011-09-17  Bruno Haible  <bruno@clisp.org>
9642
9643         Tests for module 'pclose'.
9644         * modules/pclose-tests: New file.
9645
9646         New module 'pclose'.
9647         * lib/stdio.in.h (pclose): New declaration.
9648         * lib/pclose.c: New file.
9649         * m4/pclose.m4: New file.
9650         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
9651         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
9652         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
9653         * modules/pclose: New file.
9654         * modules/popen-tests (Depends-on): Add pclose.
9655         * modules/popen-safer-tests (Depends-on): Likewise.
9656         * doc/posix-functions/pclose.texi: Mention the new module.
9657
9658 2011-09-17  Bruno Haible  <bruno@clisp.org>
9659
9660         popen: Support for MSVC.
9661         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
9662         * lib/popen.c (popen): Provide alternate definition for native Windows.
9663         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
9664         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
9665         * modules/popen (Depends-on, configure.ac): Update condition.
9666         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
9667         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
9668         fixed.
9669
9670 2011-09-17  Bruno Haible  <bruno@clisp.org>
9671
9672         isnanl, isnand, isnanf: Work around MSVC bug.
9673         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
9674
9675 2011-09-17  Bruno Haible  <bruno@clisp.org>
9676
9677         sys_socket tests: Fix recent mistake.
9678         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
9679
9680 2011-09-17  Bruno Haible  <bruno@clisp.org>
9681
9682         putenv: Support for MSVC.
9683         * modules/putenv (Depends-on): Add environ.
9684         * lib/putenv.c (environ): Disable declaration.
9685         * lib/unistd.in.h: Update comment.
9686
9687 2011-09-17  Bruno Haible  <bruno@clisp.org>
9688
9689         math: Avoid macro redefinition warnings on MSVC.
9690         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
9691         Undefine before redefining.
9692
9693 2011-09-17  Bruno Haible  <bruno@clisp.org>
9694
9695         doc: Mention functions which are declared as macros.
9696         * doc/posix-functions/*[fl].texi: Mention that some functions are
9697         defined as macros with arguments only.
9698
9699 2011-09-17  Bruno Haible  <bruno@clisp.org>
9700
9701         Add dependencies to new dirent related modules.
9702         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
9703         * modules/fts (Depends-on): Likewise.
9704         * modules/glob (Depends-on): Likewise.
9705         * modules/savedir (Depends-on): Likewise.
9706         * modules/scandir (Depends-on): Likewise.
9707         * modules/dirent-safer (Depends-on): Add opendir, closedir.
9708         * modules/fdopendir (Depends-on): Add opendir.
9709
9710 2011-09-17  Bruno Haible  <bruno@clisp.org>
9711
9712         inet_pton: Support for MSVC on Windows Vista or newer.
9713         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
9714         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
9715         HAVE_DECL_INET_PTON is defined.
9716         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9717         On platforms with <winsock2.h>, test whether inet_pton is declared in
9718         <ws2tcpip.h>. If so, arrange to replace it.
9719         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9720         REPLACE_INET_PTON.
9721         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
9722         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
9723         (Depends-on, configure.ac): Update condition.
9724         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
9725
9726 2011-09-17  Bruno Haible  <bruno@clisp.org>
9727
9728         inet_ntop: Support for MSVC on Windows Vista or newer.
9729         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
9730         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
9731         HAVE_DECL_INET_NTOP is defined.
9732         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
9733         On platforms with <winsock2.h>, test whether inet_ntop is declared in
9734         <ws2tcpip.h>. If so, arrange to replace it.
9735         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
9736         REPLACE_INET_NTOP.
9737         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
9738         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
9739         (Depends-on, configure.ac): Update condition.
9740         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
9741
9742 2011-09-16  Eric Blake  <eblake@redhat.com>
9743
9744         test-fsync: yet another enhancement
9745         * tests/test-fsync.c (main): Also test behavior on read-only text
9746         file.
9747
9748 2011-09-16  Bruno Haible  <bruno@clisp.org>
9749
9750         Enhance fsync, fdatasync tests.
9751         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
9752         * tests/test-fdatasync.c (main): Likewise.
9753
9754 2011-09-16  Bruno Haible  <bruno@clisp.org>
9755
9756         Support for MSVC compiler: Ensure mode_t gets defined.
9757         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
9758         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9759         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
9760         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
9761         * tests/test-fcntl-h.c: Check that mode_t is defined.
9762         * tests/test-sys_stat.c: Likewise.
9763         * tests/test-sys_types.c: Likewise.
9764         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
9765         * doc/posix-headers/sys_stat.texi: Likewise.
9766         * doc/posix-headers/sys_types.texi: Likewise.
9767
9768 2011-09-16  Bruno Haible  <bruno@clisp.org>
9769
9770         sys_stat: Support for MSVC.
9771         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
9772         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
9773         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
9774         MSVC.
9775
9776 2011-09-16  Bruno Haible  <bruno@clisp.org>
9777
9778         Support for MSVC compiler: Ensure off_t gets defined.
9779         * lib/unistd.in.h: Include <sys/types.h>.
9780         * tests/test-fcntl-h.c: Check that off_t is defined.
9781         * tests/test-sys_stat.c: Likewise.
9782         * tests/test-sys_types.c: Likewise.
9783
9784 2011-09-16  Eric Blake  <eblake@redhat.com>
9785
9786         fdatasync: port to Solaris
9787         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
9788         * modules/fdatasync (Link): Document it.
9789         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
9790
9791         fdatasync: port to MacOS X 10.7
9792         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
9793         declared.
9794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
9795         * modules/unistd (Makefile.am): Substitute it.
9796         * lib/unistd.in.h (fdatasync): Declare on MacOS.
9797         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
9798
9799         fdatasync: minor improvements
9800         * modules/fdatasync (Depends-on): Add condition for fsync.
9801         * lib/fdatasync.c (fdatasync): Add comment.
9802         * tests/test-unistd-c++.cc: Test fdatasync.
9803
9804         unistd: update refs to newer POSIX
9805         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
9806         Suggested by Bruno Haible.
9807
9808         fdatasync: new module
9809         * modules/fsync (Description): Document difference to fdatasync.
9810         * modules/fdatasync: New module.
9811         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9812         * lib/fdatasync.c (fdatasync): Likewise.
9813         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9814         defaults.
9815         * modules/unistd (Makefile.am): Set witnesses.
9816         * lib/unistd.in.h (fdatasync): Declare.
9817         * MODULES.html.sh: Document it.
9818         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9819         * modules/fdatasync-tests: New test.
9820         * tests/test-fdatasync.c: Likewise.
9821
9822 2011-09-16  Eric Blake  <eblake@redhat.com>
9823
9824         test-fsync: enhance tests
9825         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9826         * tests/test-fsync.c (main): Enhance test.
9827
9828 2011-09-15  Bruno Haible  <bruno@clisp.org>
9829
9830         Support for MSVC compiler: Ensure ssize_t gets defined.
9831         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9832         * doc/posix-headers/stdio.texi: Likewise.
9833         * modules/stdio (Depends-on): Add ssize_t.
9834         * modules/sys_socket (Depends-on): Likewise.
9835         * modules/sys_types (Depends-on): Likewise.
9836         * modules/sys_uio (Depends-on): Likewise.
9837         * modules/unistd (Depends-on): Likewise.
9838         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9839         * tests/test-sys_types.c: Check that ssize_t is defined.
9840
9841 2011-09-14  Bruno Haible  <bruno@clisp.org>
9842
9843         Avoid using #, the m4 comment starter character, near brackets.
9844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9845         delimiter character in sed expressions.
9846         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9847         Suggested by Eric Blake.
9848
9849         Properly quote AC_CHECK_DECLS' 4th argument.
9850         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9851         argument.
9852         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9853         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9854         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9855         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9856         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9857         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9859         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9860         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9861         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9862         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9863         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9864         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9865         * m4/isinf.m4 (gl_ISINF): Likewise.
9866         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9867         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9868         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9869         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9870         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9871         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9872         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9873         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9874         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9875         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9876         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9877         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9878         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9879         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9881         Reported by Eric Blake.
9882
9883         Properly quote AC_CHECK_DECL's 4th argument.
9884         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9885         argument.
9886         * m4/argp.m4 (gl_ARGP): Likewise.
9887         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9888         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9889         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9890         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9891         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9892         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9894         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9895         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9896         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9897         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9898         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9899         Reported by Eric Blake.
9900
9901 2011-09-14  Eric Blake  <eblake@redhat.com>
9902
9903         opendir: avoid compile warning
9904         * lib/opendir.c (includes): Always include errno.h.
9905         Reported by Tatsuro MATSUOKA.
9906
9907 2011-09-14  Jim Meyering  <meyering@redhat.com>
9908
9909         maint.mk: sc_tight_scope: propagate failure from sub-make
9910         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9911         Reported by Martin von Gagern.
9912
9913 2011-09-13  Bruno Haible  <bruno@clisp.org>
9914
9915         tempname: Support for MSVC.
9916         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9917         MSVC.
9918         * modules/tempname (Depends-on): Add fcntl-h.
9919
9920 2011-09-13  Bruno Haible  <bruno@clisp.org>
9921
9922         sys_time: Support for MSVC.
9923         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9924         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9925         include <winsock2.h>.
9926         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9927         function declarations that collide with POSIX.
9928         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9929         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9930
9931 2011-09-13  Bruno Haible  <bruno@clisp.org>
9932
9933         stat: Support for MSVC.
9934         * lib/stat.c: Include pathmax.h.
9935         * modules/stat (Depends-on): Add pathmax.
9936
9937         pathmax: Support for native Windows.
9938         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9939
9940 2011-09-12  Bruno Haible  <bruno@clisp.org>
9941
9942         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9943         * lib/dirent.in.h (struct dirent): New type.
9944         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9945         DT_WHT): New macros.
9946         (DIR): New type.
9947         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9948         (readdir, rewinddir): New declarations.
9949         * lib/dirent-private.h: New file.
9950         * lib/opendir.c: New file.
9951         * lib/readdir.c: New file.
9952         * lib/rewinddir.c: New file.
9953         * lib/closedir.c: New file.
9954         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9955         * m4/opendir.m4: New file.
9956         * m4/readdir.m4: New file.
9957         * m4/rewinddir.m4: New file.
9958         * m4/closedir.m4: New file.
9959         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9960         REPLACE_CLOSEDIR here.
9961         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9962         readdir, rewinddir are declared.
9963         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9964         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9965         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9966         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9967         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9968         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9969         * modules/opendir: New file.
9970         * modules/readdir: New file.
9971         * modules/rewinddir: New file.
9972         * modules/closedir: New file.
9973         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9974         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9975         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9976         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9977         * NEWS: Mention the 'fchdir' change.
9978
9979 2011-09-11  Bruno Haible  <bruno@clisp.org>
9980
9981         asm-underscore.m4: Support for MSVC.
9982         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9983         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9984
9985 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9986
9987         Doc about crypt functions.
9988         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9989         needing for _GNU_SOURCE to get crypt.
9990         * doc/posix-functions/encrypt.texi: Likewise.
9991         * doc/posix-functions/setkey.texi: Likewise.
9992
9993 2011-09-11  Bruno Haible  <bruno@clisp.org>
9994
9995         doc: Update regarding MSVC 9.
9996         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9997         tested".
9998         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9999         * doc/posix-headers/*.texi: Likewise.
10000         * doc/pastposix-functions/*.texi: Likewise.
10001         * doc/glibc-functions/*.texi: Likewise.
10002         * doc/glibc-headers/*.texi: Likewise.
10003
10004 2011-09-11  Bruno Haible  <bruno@clisp.org>
10005
10006         unistd et al.: Don't assume <unistd.h> exists.
10007         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
10008         does not exist.
10009         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
10010         exist. But include <stdlib.h>.
10011         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
10012         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
10013         symlink() does not exist.
10014         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
10015         include <io.h> instead.
10016         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
10017         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
10018         include <direct.h> instead.
10019         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10021         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
10022         <io.h> instead.
10023         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
10024         correctly if the system does not have hard links.
10025         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
10026         <direct.h> instead.
10027         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
10028         it when looking for function declarations.
10029         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
10030         <direct.h> and <io.h> instead.
10031         * doc/posix-headers/unistd.texi: More details about MSVC problem.
10032
10033 2011-09-11  Bruno Haible  <bruno@clisp.org>
10034
10035         strcase: Support for MSVC.
10036         * modules/strcase (Status, Notice): Remove obsoletion mark.
10037         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
10038         * doc/posix-functions/strncasecmp.texi: Likewise.
10039
10040         strings: Don't assume <strings.h> exists.
10041         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
10042         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
10043         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
10044         * doc/posix-headers/strings.texi: Mention the MSVC problem.
10045
10046 2011-09-11  Bruno Haible  <bruno@clisp.org>
10047
10048         dirent: Don't assume <dirent.h> exists.
10049         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
10050         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
10051         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
10052         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
10053
10054 2011-09-11  Bruno Haible  <bruno@clisp.org>
10055
10056         Fix wint_t on MSVC.
10057         * lib/wchar.in.h (wint_t): On MSVC, override it.
10058         * lib/wctype.in.h (wint_t): Likewise.
10059         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
10060         MSVC.
10061         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
10062         * doc/posix-headers/wctype.texi: Likewise.
10063
10064 2011-09-11  Bruno Haible  <bruno@clisp.org>
10065
10066         sys_types: Fix typo.
10067         * lib/sys_types.in.h: Fix typo in comment.
10068         Reported by Paul Eggert.
10069
10070         Support for MSVC compiler: Ensure size_t gets defined.
10071         * modules/strings (Depends-on): Add 'sys_types'.
10072         * modules/sys_uio (Depends-on): Likewise.
10073         * lib/sys_uio.in.h: Update comment.
10074
10075         C++ tests for module 'sys_types'.
10076         * modules/sys_types-c++-tests: New file.
10077         * tests/test-sys_types-c++.cc: New file.
10078
10079         Tests for module 'sys_types'.
10080         * modules/sys_types-tests: New file.
10081         * tests/test-sys_types.c: New file.
10082
10083         New module 'sys_types'.
10084         * lib/sys_types.in.h: New file.
10085         * m4/sys_types_h.m4: New file.
10086         * modules/sys_types: New file.
10087         * doc/posix-headers/sys_types.texi: Mention the new module and the
10088         size_t problem on MSVC 9.
10089
10090 2011-09-11  Bruno Haible  <bruno@clisp.org>
10091
10092         Support for MSVC compiler: Avoid division by a literal 0.
10093         * lib/math.in.h (NAN): Define through a function call also on MSVC.
10094         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
10095         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
10096         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
10097         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
10098         * tests/infinity.h: New file.
10099         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
10100         on MSVC.
10101         * tests/test-ceilf1.c: Include infinity.h.
10102         (main): Use Infinityf.
10103         * tests/test-ceil1.c: Include infinity.h.
10104         (main): Use Infinityd.
10105         * tests/test-ceill.c: Include infinity.h.
10106         (main): Use Infinityl.
10107         * tests/test-dprintf-posix.c: Include infinity.h.
10108         (test_function): Use Infinityd.
10109         * tests/test-floorf1.c: Include infinity.h.
10110         (main): Use Infinityf.
10111         * tests/test-floor1.c: Include infinity.h.
10112         (main): Use Infinityd.
10113         * tests/test-floorl.c: Include infinity.h.
10114         (main): Use Infinityl.
10115         * tests/test-fprintf-posix.c: Include infinity.h.
10116         (test_function): Use Infinityd.
10117         * tests/test-frexp.c: Include infinity.h.
10118         (main): Use Infinityd.
10119         * tests/test-frexpl.c: Include infinity.h.
10120         (main): Use Infinityl.
10121         * tests/test-isfinite.c: Include infinity.h.
10122         (test_isfinitef): Use Infinityf.
10123         (test_isfinited): Use Infinityd.
10124         (test_isfinitel): Use Infinityl.
10125         * tests/test-isinf.c: Include infinity.h.
10126         (test_isinff): Use Infinityf.
10127         (test_isinfd): Use Infinityd.
10128         (test_isinfl): Use Infinityl.
10129         * tests/test-isnan.c: Include infinity.h.
10130         (test_float): Use Infinityf.
10131         (test_double): Use Infinityd.
10132         (test_long_double): Use Infinityl.
10133         * tests/test-isnanf.h: Include infinity.h.
10134         (main): Use Infinityf.
10135         * tests/test-isnand.h: Include infinity.h.
10136         (main): Use Infinityd.
10137         * tests/test-isnanl.h: Include infinity.h.
10138         (main): Use Infinityl.
10139         * tests/test-ldexpl.c: Include infinity.h.
10140         (main): Use Infinityl.
10141         * tests/test-printf-posix.h: Include infinity.h.
10142         (test_function): Use Infinityd.
10143         * tests/test-roundf1.c: Include infinity.h.
10144         (main): Use Infinityf.
10145         * tests/test-round1.c: Include infinity.h.
10146         (main): Use Infinityd.
10147         * tests/test-roundl.c: Include infinity.h.
10148         (main): Use Infinityl.
10149         * tests/test-signbit.c: Include infinity.h.
10150         (test_signbitf): Use Infinityf.
10151         (test_signbitd): Use Infinityd.
10152         (test_signbitl): Use Infinityl.
10153         * tests/test-snprintf-posix.h: Include infinity.h.
10154         (test_function): Use Infinityd, Infinityl.
10155         * tests/test-sprintf-posix.h: Include infinity.h.
10156         (test_function): Use Infinityd, Infinityl.
10157         * tests/test-truncf1.c: Include infinity.h.
10158         (main): Use Infinityf.
10159         * tests/test-trunc1.c: Include infinity.h.
10160         (main): Use Infinityd.
10161         * tests/test-truncl.c: Include infinity.h.
10162         (main): Use Infinityl.
10163         * tests/test-vasnprintf-posix.c: Include infinity.h.
10164         (test_function): Use Infinityd, Infinityl.
10165         * tests/test-vasprintf-posix.c: Include infinity.h.
10166         (test_function): Use Infinityd, Infinityl.
10167         * modules/ceilf-tests (Files): Add tests/infinity.h.
10168         * modules/ceil-tests (Files): Likewise.
10169         * modules/ceill-tests (Files): Likewise.
10170         * modules/dprintf-posix-tests (Files): Likewise.
10171         * modules/floorf-tests (Files): Likewise.
10172         * modules/floor-tests (Files): Likewise.
10173         * modules/floorl-tests (Files): Likewise.
10174         * modules/fprintf-posix-tests (Files): Likewise.
10175         * modules/frexp-tests (Files): Likewise.
10176         * modules/frexp-nolibm-tests (Files): Likewise.
10177         * modules/frexpl-tests (Files): Likewise.
10178         * modules/frexpl-nolibm-tests (Files): Likewise.
10179         * modules/isfinite-tests (Files): Likewise.
10180         * modules/isinf-tests (Files): Likewise.
10181         * modules/isnan-tests (Files): Likewise.
10182         * modules/isnanf-tests (Files): Likewise.
10183         * modules/isnanf-nolibm-tests (Files): Likewise.
10184         * modules/isnand-tests (Files): Likewise.
10185         * modules/isnand-nolibm-tests (Files): Likewise.
10186         * modules/isnanl-tests (Files): Likewise.
10187         * modules/isnanl-nolibm-tests (Files): Likewise.
10188         * modules/ldexpl-tests (Files): Likewise.
10189         * modules/printf-posix-tests (Files): Likewise.
10190         * modules/roundf-tests (Files): Likewise.
10191         * modules/round-tests (Files): Likewise.
10192         * modules/roundl-tests (Files): Likewise.
10193         * modules/signbit-tests (Files): Likewise.
10194         * modules/snprintf-posix-tests (Files): Likewise.
10195         * modules/sprintf-posix-tests (Files): Likewise.
10196         * modules/truncf-tests (Files): Likewise.
10197         * modules/trunc-tests (Files): Likewise.
10198         * modules/truncl-tests (Files): Likewise.
10199         * modules/vasnprintf-posix-tests (Files): Likewise.
10200         * modules/vasprintf-posix-tests (Files): Likewise.
10201         * modules/vdprintf-posix-tests (Files): Likewise.
10202         * modules/vfprintf-posix-tests (Files): Likewise.
10203         * modules/vprintf-posix-tests (Files): Likewise.
10204         * modules/vsnprintf-posix-tests (Files): Likewise.
10205         * modules/vsprintf-posix-tests (Files): Likewise.
10206         * modules/xprintf-posix-tests (Files): Likewise.
10207
10208 2011-09-11  Bruno Haible  <bruno@clisp.org>
10209
10210         Ensure pid_t gets defined.
10211         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
10212         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
10213         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10214         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10215         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
10216         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
10217         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
10218         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10219         * tests/test-fcntl-h.c: Check that pid_t is defined.
10220         * tests/test-sched.c: Likewise.
10221         * tests/test-termios.c: Likewise.
10222         * tests/test-time.c: Likewise.
10223         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
10224         * doc/posix-headers/signal.texi: Likewise.
10225         * doc/posix-headers/sys_types.texi: Likewise.
10226         * doc/posix-headers/time.texi: Likewise.
10227
10228 2011-09-11  Bruno Haible  <bruno@clisp.org>
10229
10230         acl: Fix compilation on Solaris 10 (older version).
10231         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
10232         of ACE_EVERYONE.
10233         * lib/set-mode-acl.c (qset_acl): Likewise.
10234         Reported by Christian Jullien <eligis@orange.fr>.
10235
10236 2011-09-10  Bruno Haible  <bruno@clisp.org>
10237
10238         iconv, unsetenv: Add support for MSVC compiler.
10239         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
10240         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
10241
10242 2011-09-10  Bruno Haible  <bruno@clisp.org>
10243
10244         *printf: Add support for MSVC compiler.
10245         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
10246         handles the exception caused by the %n directive. When cross-compiling,
10247         guess no on native Windows.
10248         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
10249         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
10250         emulate it through vsnprintf.
10251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
10252         * doc/posix-functions/dprintf.texi: Update documentation regarding
10253         MSVC 9.
10254         * doc/posix-functions/fprintf.texi: Likewise.
10255         * doc/posix-functions/printf.texi: Likewise.
10256         * doc/posix-functions/snprintf.texi: Likewise.
10257         * doc/posix-functions/sprintf.texi: Likewise.
10258         * doc/posix-functions/swprintf.texi: Likewise.
10259         * doc/posix-functions/vdprintf.texi: Likewise.
10260         * doc/posix-functions/vfprintf.texi: Likewise.
10261         * doc/posix-functions/vprintf.texi: Likewise.
10262         * doc/posix-functions/vsnprintf.texi: Likewise.
10263         * doc/posix-functions/vsprintf.texi: Likewise.
10264         * doc/glibc-functions/asprintf.texi: Likewise.
10265         * doc/glibc-functions/obstack_printf.texi: Likewise.
10266         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10267         * doc/glibc-functions/vasprintf.texi: Likewise.
10268
10269 2011-09-10  Bruno Haible  <bruno@clisp.org>
10270
10271         nocrash: Add support for native Windows.
10272         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
10273
10274 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
10275             Bruno Haible  <bruno@clisp.org>
10276
10277         absolute-header, include-next: Add support for MSVC compiler.
10278         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
10279         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
10280         directory separator in #line directives.
10281         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
10282         recognize also backslash as directory separator in #line directives.
10283
10284 2011-09-08  Jim Meyering  <meyering@redhat.com>
10285
10286         maint.mk: mark the post-release commit log with "maint: " prefix
10287         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
10288         one-line commit-log summary.
10289
10290 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
10291             Bruno Haible  <bruno@clisp.org>
10292
10293         Doc about crypt functions.
10294         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
10295         systems.
10296         * doc/posix-functions/encrypt.texi: Likewise.
10297         * doc/posix-functions/setkey.texi: Likewise.
10298
10299 2011-09-08  Simon Josefsson  <simon@josefsson.org>
10300
10301         * lib/gc.h: Fix copyright header.
10302
10303 2011-09-07  Bruno Haible  <bruno@clisp.org>
10304
10305         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
10306         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
10307         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
10308
10309 2011-09-07  Bruno Haible  <bruno@clisp.org>
10310
10311         openat: Work around compilation error with OSF/1 5.1 DTK cc.
10312         * lib/fopen.c: Use different syntax for include of <stdio.h>.
10313         * lib/freopen.c: Likewise.
10314         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
10315         * lib/lstat.c: Likewise.
10316         * lib/stat.c: Likewise.
10317         * lib/open.c: Use different syntax for include of <fcntl.h>.
10318         * lib/openat.c: Include fcntl.h again, explicitly.
10319
10320 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
10321
10322         parse-datetime: document the newly accepted format
10323         * doc/parse-datetime.texi (Combined date and time of day items):
10324         New section.
10325
10326 2011-09-06  Bruno Haible  <bruno@clisp.org>
10327
10328         acl: Fix a test failure on newer Solaris 10 with ZFS.
10329         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
10330         ENOSYS as no ACL.
10331         Reported by Jim Meyering.
10332
10333 2011-09-06  Bruno Haible  <bruno@clisp.org>
10334
10335         acl: Update for AIX >= 5.3 with NFS.
10336         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
10337         ENOSYS as no ACL.
10338
10339         acl: Fix a test failure on AIX >= 5.3 with NFS.
10340         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
10341         as no ACL.
10342
10343 2011-09-06  Bruno Haible  <bruno@clisp.org>
10344
10345         acl: Fix a test failure on IRIX 6.5 with NFS.
10346         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
10347         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
10348         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
10349         * lib/copy-acl.c (qcopy_acl): Likewise.
10350
10351 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
10352
10353         openat: port to AIX 7.1 with large files
10354         AIX 7.1 does a "#define openat open64at" if large files are in use,
10355         so we can't simply #undef openat.  Use the orig_openat trick (similar
10356         to orig_open in lib/open.c) to work around the problem.  Problem
10357         reported by Kevin Brott for GNU tar, in the thread containing
10358         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
10359         * lib/openat.c (__need_system_fcntl_h): Define first.
10360         Include <fcntl.h> and <sys/types.h> before undefining.
10361         (orig_openat) [HAVE_OPENAT]: New inline function.
10362         (openat) [HAVE_OPENAT]: Do not undef.
10363         (rpl_openat): Use orig_openat, not openat.
10364
10365 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10366             Bruno Haible  <bruno@clisp.org>
10367
10368         acl: Avoid errors on NonStop Kernel.
10369         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
10370         ENOTSUP errors.
10371
10372 2011-09-05  Bruno Haible  <bruno@clisp.org>
10373
10374         acl: Clean up Solaris code.
10375         * lib/acl-internal.h: Remove no-op #if.
10376         * lib/file-has-acl.c: Likewise.
10377         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
10378         * lib/copy-acl.c (qcopy_acl): Likewise.
10379
10380 2011-09-05  Bruno Haible  <bruno@clisp.org>
10381
10382         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
10383         binaries built on the original Solaris 10.
10384         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
10385         trivial.
10386
10387 2011-09-05  Bruno Haible  <bruno@clisp.org>
10388
10389         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10390         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
10391         10.
10392         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
10393         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
10394         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
10395         instead of acl_get, facl_get, acl_set, facl_set.
10396
10397 2011-09-05  Bruno Haible  <bruno@clisp.org>
10398
10399         copy-file: Try unit tests on more file systems.
10400         * tests/test-copy-file-1.sh: New file.
10401         * tests/test-copy-file-2.sh: New file.
10402         * modules/copy-file-tests (Files): Add them.
10403         (Makefile.am): Add them to TESTS.
10404
10405         acl: Try unit tests on more file systems.
10406         * tests/test-file-has-acl-1.sh: New file.
10407         * tests/test-file-has-acl-2.sh: New file.
10408         * tests/test-set-mode-acl-1.sh: New file.
10409         * tests/test-set-mode-acl-2.sh: New file.
10410         * tests/test-copy-acl-1.sh: New file.
10411         * tests/test-copy-acl-2.sh: New file.
10412         * modules/acl-tests (Files): Add them.
10413         (Makefile.am): Add them to TESTS.
10414
10415 2011-09-04  Bruno Haible  <bruno@clisp.org>
10416
10417         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
10418         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
10419         10.
10420         (OLD_ALLOW, OLD_DENY): New macros.
10421         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
10422         ACE_ACCESS_ALLOWED_ACE_TYPE.
10423         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
10424         ACE_ACCESS_DENIED_ACE_TYPE.
10425         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
10426         (NEW_ACE_EXECUTE): Fix value.
10427         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
10428         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
10429         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
10430         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
10431         NEW_ACE_SYNCHRONIZE): New macros.
10432         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
10433         instead of acl_fromtext, acl_set, facl_set.
10434         Fixes a coreutils/tests/cp/perm failure.
10435
10436 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
10437
10438         openat: test for fstatat (..., 0) bug
10439         Further testing with tar suggests that fstatat (..., 0)
10440         does not work in general, on AIX 7.1; see
10441         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
10442         So, give up entirely on AIX 7.1's fstatat, and fall back on our
10443         replacement fstatat (which is what older AIX releases were using
10444         anyway).
10445         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
10446         use is now changed to orig_fstatat.  This was probably the right
10447         thing to do anyway.
10448         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
10449         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
10450         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
10451         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
10452         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
10453         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
10454         if the bug is found.
10455
10456         openat: test for fstatat (AT_FDCWD, ..., 0) bug
10457         This tests for another fstatat bug on AIX 7.1:
10458         fstatat (AT_FDCWD, ..., 0) does not work.  See
10459         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
10460         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
10461         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
10462         (rpl_fstatat): Adjust so that it works around either (or both)
10463         bugs if present.
10464         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
10465
10466 2011-09-03  Karl Berry  <karl@gnu.org>
10467
10468         * doc/regex.texi (Character Class Operators): Avoid literal ":"
10469         in index entries.
10470
10471 2011-09-02  Bruno Haible  <bruno@clisp.org>
10472
10473         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
10474         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
10475         values of AR, ARFLAGS, RANLIB.
10476         Reported by John W. Eaton <jwe@gnu.org> for Octave.
10477
10478 2011-09-02  Bruno Haible  <bruno@clisp.org>
10479
10480         Find 'ar' program that fits with --host argument.
10481         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
10482
10483 2011-09-02  Bruno Haible  <bruno@clisp.org>
10484
10485         tests: init.sh: Support any non-GNU diff.
10486         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
10487         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
10488         Solaris 8.
10489
10490 2011-09-02  Bruno Haible  <bruno@clisp.org>
10491
10492         tests: init.sh: work also with any non-GNU diff that supports -u
10493         * tests/init.sh: Relax check for diff -u support.
10494         Rather than checking for GNU diff via --version, simply check
10495         for support for -u itself.  Useful at least on OpenBSD 4.9,
10496         AIX 7.1, IRIX 6.5, and Solaris 10.
10497
10498 2011-09-01  Bruno Haible  <bruno@clisp.org>
10499
10500         strtoimax, strtoumax: Document problem on HP-UX 11.
10501         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
10502         * doc/posix-functions/strtoumax.texi: Likewise.
10503
10504 2011-09-01  Bruno Haible  <bruno@clisp.org>
10505
10506         strtoumax: Avoid link error on OSF/1 with DTK cc.
10507         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
10508         defined as a function.
10509         * modules/strtoumax (Depends-on, configure.ac): Test only whether
10510         strtoumax is defined, not whether it is declared.
10511
10512 2011-09-01  Bruno Haible  <bruno@clisp.org>
10513
10514         strtoimax: Avoid link error on OSF/1 with DTK cc.
10515         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
10516         defined as a function.
10517         * modules/strtoimax (Depends-on, configure.ac): Test only whether
10518         strtoimax is defined, not whether it is declared.
10519
10520 2011-09-01  Bruno Haible  <bruno@clisp.org>
10521
10522         imaxdiv: Avoid link error on OSF/1 with DTK cc.
10523         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
10524         as a function.
10525         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
10526         whether it is declared.
10527
10528 2011-09-01  Bruno Haible  <bruno@clisp.org>
10529
10530         imaxabs: Avoid link error on OSF/1 with DTK cc.
10531         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
10532         as a function.
10533         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
10534         whether it is declared.
10535
10536 2011-09-01  Bruno Haible  <bruno@clisp.org>
10537
10538         Tests for module 'strtoumax'.
10539         * modules/strtoumax-tests: New file.
10540         * tests/test-strtoumax.c: New file.
10541
10542         Tests for module 'strtoimax'.
10543         * modules/strtoimax-tests: New file.
10544         * tests/test-strtoimax.c: New file.
10545
10546         Tests for module 'imaxdiv'.
10547         * modules/imaxdiv-tests: New file.
10548         * tests/test-imaxdiv.c: New file.
10549
10550         Tests for module 'imaxabs'.
10551         * modules/imaxabs-tests: New file.
10552         * tests/test-imaxabs.c: New file.
10553
10554 2011-09-01  Bruno Haible  <bruno@clisp.org>
10555
10556         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
10557         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
10558         pthread_create.
10559
10560 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
10561
10562         openat: work around AIX 7.1 fstatat issue
10563         This should fix the problem that was not properly fixed
10564         in the previous change, dated 2011-08-30.
10565         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
10566         __need_system_stat_h defined.
10567         (orig_fstatat) [HAVE_FSTATAT]: New function.
10568         (rpl_fstatat): Go back to the old way of doing things,
10569         except call orig_fstatat instead of fstatat.
10570         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
10571         Remove unnecessary check whether fstatat fills in st_size etc.
10572
10573 2011-09-01  Bruno Haible  <bruno@clisp.org>
10574
10575         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
10576         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
10577         just include the system's header.
10578
10579 2011-08-31  Jim Meyering  <meyering@redhat.com>
10580
10581         tests: avoid spurious assertion failure in test-float.c on ppc64
10582         * tests/test-float.c (test_long_double): Comment out an assertion,
10583         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
10584         with gcc-4.4.4.
10585
10586         maint: indent with spaces, not TABs
10587         I need to get in the habit of running gnulib's "make check".
10588         Both of these would have been caught.
10589         * m4/largefile.m4: Indent with spaces, not TABs.
10590         * lib/parse-datetime.y (iso_8601_time): Likewise.
10591         Spotted by Pádraig Brady.
10592
10593         test-parse-datetime.c: accommodate a relatively strict gcc warning
10594         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
10595         to avoid a warning from gcc's -Werror=missing-declarations.
10596         Insert a few spaces-before-funcall-parenthesis.
10597
10598 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
10599
10600         parse-datetime: accept ISO 8601 date and time rep with "T" separator
10601         The parser now accepts ISO 8601 date-time strings with "T" as the
10602         separator.  It has long parsed dates like "2004-02-29 16:21:42"
10603         with a space between the date and time strings.  Now it also parses
10604         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
10605         variants like "2004-02-29T16:21:42.333-07:00"
10606         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
10607         of day representation using the 'T' separator character.
10608         * doc/parse-datetime.texi (General date syntax): replace use of
10609         deprecated --iso-8601 option with --rfc-3339 in example of date
10610         command output formats that can be parsed.
10611         * tests/test-parse-datetime.c (tm_diff): New function, taken from
10612         lib/parse-datetime.y.
10613         (gmt_offset): New function.
10614         (main): Add additional test cases to validate ISO8601 extended
10615         date and time of day parsing.
10616
10617 2011-08-31  Bruno Haible  <bruno@clisp.org>
10618
10619         freopen: Documentation.
10620         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
10621         name.
10622         Reported by Claudio Bley <claudio.bley@gmail.com>.
10623
10624 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
10625
10626         freopen: Don't crash if the filename argument is NULL.
10627         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
10628         NULL.
10629
10630 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
10631
10632         openat: work around AIX 7.1 fstatat bug
10633         Problem reported by Kevin Brott for GNU tar, in the thread containing
10634         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
10635         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
10636         FSTATAT_ST_SIZE_ETC_BROKEN.
10637         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
10638         rpl_fstatat.
10639         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
10640         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
10641         AC_CHECK_FUNCS_ONCE for fstatat.
10642         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
10643         fchmodat, mkdirat, openat and unlinkat.
10644
10645 2011-08-30  Bruno Haible  <bruno@clisp.org>
10646
10647         Avoid endless recursions if config.h includes some header files.
10648         * lib/fopen.c (__need_FILE): Define already before including config.h.
10649         * lib/freopen.c (__need_FILE): Likewise.
10650         * lib/open.c (__need_system_fcntl_h): Likewise.
10651         * lib/stat.c (__need_system_sys_stat_h): Likewise.
10652         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
10653         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10654
10655 2011-08-25  Karl Berry  <karl@gnu.org>
10656
10657         * config/srclist.txt (ylwrap): new try.
10658         * build-aux/ylwrap: new file.
10659
10660 2011-08-23  Bruno Haible  <bruno@clisp.org>
10661
10662         tmpdir: Use a good default directory on native Windows.
10663         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
10664         (P_tmpdir): Default to _P_tmpdir on native Windows.
10665         (path_search): On native Windows, try the value returned by GetTempPath
10666         before trying P_tmpdir.
10667         * modules/tmpdir (Depends-on): Add pathmax.
10668         Suggested by John Darrington <john@darrington.wattle.id.au>.
10669
10670 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
10671
10672         doc: fix typo in README-release
10673         * top/README-release: Capitalize first word of a sentence.
10674
10675 2011-08-19  Jim Meyering  <meyering@redhat.com>
10676
10677         fts: do not exhaust memory when processing million-entry directories
10678         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
10679         directory would require about 256*N bytes of memory.  Thus, it was
10680         easy to construct a directory too large to be processed by any of
10681         those tools.  With this change, fts' maximum memory utilization is
10682         now limited to around 30MB.
10683         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
10684         (fts_read): When we've processed the final entry (i.e., when
10685         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
10686         using the parent entry to read any remaining entries.  Dispatch
10687         depending on what fts_build returns:
10688         - NULL+stop, aka failure: stop
10689         - NULL otherwise: move up in the dir hierarchy
10690         - non-NULL: handle this new entry
10691         (fts_build): Declare and use new local, continue_readdir.
10692         Prepare to be called from fts_read, when the entries
10693         from a partially-read directory have just been exhausted.
10694         In that case, we'll skip the opendir and instead use the parent's
10695         fts_dirp and derive dir_fd from that.
10696         Finally, in the readdir loop, if we read max_entries entries,
10697         exit the loop ensuring *not* to call closedir.  This is required
10698         so that fts_dirp can be reused on a subsequent call.
10699         Prompted by Ben England's report of memory exhaustion in find
10700         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
10701
10702         maint: fts: move decl of `dp' down into while loop; split a long line
10703         * lib/fts.c (fts_build): No semantic change.
10704
10705         fts: add/use new struct member, fts_dirp
10706         We are about to use this to manage any directory with
10707         too many entries to read all of them into memory at once.
10708         To do that, we'll need to save the DIR* pointer in each
10709         affected FTSENT struct.
10710         * lib/fts_.h: Include <dirent.h>.
10711         (struct FTSENT) [fts_dirp]: New member.
10712         * lib/fts.c (closedir_and_clear): Define.
10713         Use it in place of closedir so that we are sure to
10714         clear the new fts_dirp member when done with it.
10715         (fts_alloc): Initialize the new member.
10716         (fts_lfree): Free, if needed.
10717
10718         maint: fts: give __opendir2 a new parameter and rename
10719         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
10720         than surreptitiously using sole caller's "dir_fd".
10721         (fts_opendir): Rename from __opendir2.
10722
10723         maint: fts.c: remove __opendir2's now-unused parameter, oflag
10724         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
10725
10726         maint: fts.c: correct off-by-one indentation
10727         * lib/fts.c (fts_build): Correct indentation, change style
10728         of a couple of block comments, and bracing style.
10729
10730         maint: fts.c: move __opendir2 #define "up" out of function body
10731         * lib/fts.c (__opendir2): Move "up".  No semantic change.
10732
10733         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
10734         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
10735         out for a long time and besides was useful only on BSD systems.
10736
10737 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
10738
10739         regex: port to Stratus OpenVOS
10740         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
10741         define to empty, rather than attempting nonportable optimizations.
10742         Problem reported by Paul Green in:
10743         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
10744         and fix suggested by Eric Blake in:
10745         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
10746
10747 2011-08-17  Eric Blake  <eblake@redhat.com>
10748
10749         getcwd: fix test failures on mingw
10750         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
10751         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
10752         test if long directory cannot be created, and allow mingw errno.
10753
10754         getcwd-lgpl: fix m4 to match relaxed test for BSD
10755         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
10756         (gl_FUNC_GETCWD_SIGNATURE): New macro.
10757         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
10758         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
10759         signature problem.
10760
10761         getcwd: fix compilation on mingw64
10762         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
10763         getcwd.
10764         Reported by Marc-André Lureau.
10765
10766         pipe2: silence compiler warning
10767         * lib/pipe2.c (pipe2): Hide label if it is not used.
10768
10769 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
10770
10771         relocatable-prog: fix link error
10772         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
10773         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
10774         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
10775         into modules/relocatable-lib without noticing that
10776         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
10777         also needs to build relocatable.c.
10778
10779 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         getaddrinfo: fix sh typo in gai_strerrorA decl checking
10782         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
10783         shell code: it contained a 'break' that was not in a loop.
10784         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
10785         via a shell-language loop; this may have been true in old Autoconf
10786         versions, but it's not true in Autoconf 2.68.  I found this bug
10787         when testing coreutils git on Solaris 8, whose shell complains
10788         about the syntax error.
10789
10790 2011-08-12  Simon Josefsson  <simon@josefsson.org>
10791
10792         * lib/base64.c: Fix comment to reference RFC 4648.
10793         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
10794         <gvtulder@gmail.com>.
10795
10796 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10797
10798         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
10799
10800         po/Makefile.in.in: fix make -q problem
10801         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
10802         rule, since there's no file named 'check-macro-version' and its
10803         use as a file breaks make -q.
10804         (all): Don't depend on check-macro-version.
10805         (CHECK_MACRO_VERSION): New macro.
10806         (stamp-po): Use it.
10807
10808         configmake: fix make -q problem
10809         * modules/configmake (configmake.h): Update configmake.h's time stamp
10810         even if the file does not change.  Otherwise, 'make -q' fails.
10811         Problem reported by Simon Josefsson in
10812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10813
10814 2011-08-11  Jim Meyering  <meyering@redhat.com>
10815
10816         git-version-gen: correct the advice in a comment
10817         * build-aux/git-version-gen: Correct comment.
10818         Don't recommend to list .tarball-version in .gitignore.
10819
10820 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10821
10822         base64: fix off-by-one buffer size bug
10823         Problem and (trivial) fix reported by Gijs van Tulder in
10824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10825         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10826         * tests/test-base64.c (main): Catch the bug.
10827
10828 2011-08-10  Eric Blake  <eblake@redhat.com>
10829
10830         closein: correct comments
10831         * lib/closein.c (close_stdin): Improve comments.
10832
10833 2011-08-09  Bruno Haible  <bruno@clisp.org>
10834
10835         More tests for 'fseeko'.
10836         * tests/test-fseeko3.c: New file, from Eric Blake.
10837         * tests/test-fseeko3.sh: New file.
10838         * modules/fseeko-tests (Files): Add them.
10839         (TESTS): Add test-fseeko3.sh.
10840         (check_PROGRAMS): Add test-fseeko3.
10841
10842 2011-08-09  Eric Blake  <eblake@redhat.com>
10843
10844         fseeko: remove unneeded hack
10845         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10846
10847         fseeko: fix bug on glibc
10848         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10849         Reported by John W. Eaton.
10850
10851 2011-08-08  Bruno Haible  <bruno@clisp.org>
10852
10853         unictype/base: Fix interoperability with preinstalled libunistring.
10854         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10855         Reported by Simon Josefsson.
10856
10857 2011-08-08  Bruno Haible  <bruno@clisp.org>
10858
10859         iswblank: Detect declaration correctly.
10860         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10861         AC_CHECK_DECLS invocation.
10862
10863 2011-08-08  Bruno Haible  <bruno@clisp.org>
10864
10865         tcgetsid: Detect declaration correctly.
10866         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10867         AC_CHECK_DECLS invocation.
10868         Reported by Simon Josefsson.
10869
10870 2011-08-08  Eric Blake  <eblake@redhat.com>
10871
10872         largefile: fix typo that regressed large file support
10873         * modules/largefile (configure.ac-early): Fix section name.
10874
10875 2011-08-06  Karl Berry  <karl@gnu.org>
10876
10877         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10878         a separate module.
10879
10880 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10881
10882         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10883         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10884         get prototype for free.
10885
10886 2011-08-04  Bruno Haible  <bruno@clisp.org>
10887
10888         Tests for module 'pathmax'.
10889         * modules/pathmax-tests: New file.
10890         * tests/test-pathmax.c: New file.
10891
10892         canonicalize-lgpl: Support larger filenames on the Hurd.
10893         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10894         Reported by Paul Eggert.
10895
10896         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10897         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10898         * lib/chdir-long.h: Include pathmax.h.
10899         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10900         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10901         (PATH_MAX): Remove code that is done by pathmax.h.
10902         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10903         * lib/tmpfile.c: Add a comment.
10904         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10905         * modules/chdir-long (Depends-on): Add pathmax.
10906         * modules/getcwd (Depends-on): Add pathmax.
10907         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10908         is not defined.
10909         * doc/posix-headers/limits.texi: Mention the pathmax module.
10910         * NEWS: Mention the change.
10911
10912 2011-08-02  Bruno Haible  <bruno@clisp.org>
10913
10914         pthread_sigmask: Actually use results of gl_THREADLIB.
10915         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10916         gl_THREADLIB, not gl_[]THREADLIB.
10917         Reported by Eric Blake.
10918
10919 2011-08-02  Jim Meyering  <meyering@redhat.com>
10920
10921         maint.mk: relax the default _gl_TS_function_match regexp
10922         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10923         space between function name and "(" in an "extern" declaration.
10924         That would fail to match a decl with no space there: extern void foo();
10925
10926 2011-07-31  Iain Nicol  <iain@thenicols.net>
10927
10928         git-version-gen: document that EXTRA_DIST must include .version
10929         * build-aux/git-version-gen: In the how-to-use comment, document
10930         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10931         will fail when run from an unpacked distribution tarball.
10932
10933 2011-08-01  Bruno Haible  <bruno@clisp.org>
10934
10935         wctype-h: Fix last change.
10936         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10937         REPLACE_TOWLOWER to 0.
10938         Reported by Sam Steingold <sds@gnu.org>.
10939
10940 2011-07-31  Bruno Haible  <bruno@clisp.org>
10941
10942         frexpl: Update autoconf test.
10943         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10944         according to changes of 2011-06-20.
10945
10946 2011-07-31  Bruno Haible  <bruno@clisp.org>
10947
10948         sys_utsname: Add support for Minix.
10949         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10950         <sys/utsname.h>.
10951         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10952         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10953
10954 2011-07-31  Bruno Haible  <bruno@clisp.org>
10955
10956         strings: Add support for Minix.
10957         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10958         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10959         * doc/posix-headers/strings.texi: Document the Minix problem.
10960
10961 2011-07-31  Bruno Haible  <bruno@clisp.org>
10962
10963         wctype-h: Add support for Minix.
10964         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10965         REPLACE_TOWLOWER.
10966         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10967         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10968         REPLACE_ISWCNTRL.
10969
10970 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10971
10972         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10973         This is a performance improvement for 64-bit hosts: it causes the
10974         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10975
10976 2011-07-31  Bruno Haible  <bruno@clisp.org>
10977
10978         stdioext: Add support for Minix.
10979         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10980         * lib/fpurge.c (fpurge): Likewise.
10981         * lib/freadahead.c (freadahead): Likewise.
10982         * lib/freadable.c (freadable): Likewise.
10983         * lib/freading.c (freading): Likewise.
10984         * lib/freadptr.c (freadptr): Likewise.
10985         * lib/freadseek.c (freadptrinc): Likewise.
10986         * lib/fseeko.c (rpl_fseeko): Likewise.
10987         * lib/fseterr.c (fseterr): Likewise.
10988         * lib/fwritable.c (fwritable): Likewise.
10989         * lib/fwriting.c (fwriting): Likewise.
10990         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10991         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10992
10993 2011-07-31  Bruno Haible  <bruno@clisp.org>
10994
10995         errno: Port to Minix.
10996         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10997         ECONNABORTED are defined.
10998         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10999         GNULIB_defined_ECONNABORTED): New macros.
11000         * lib/strerror-override.h (strerror_override): Test also
11001         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
11002         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
11003         ECONNABORTED.
11004         * doc/posix-headers/errno.texi: Mention the Minix problem.
11005
11006 2011-07-31  Bruno Haible  <bruno@clisp.org>
11007
11008         Work around declaration collisions on Minix.
11009         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
11010         defined, set REPLACE_MBSINIT.
11011         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
11012         defined, set REPLACE_MBRTOWC.
11013         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
11014         set REPLACE_MBRLEN.
11015         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
11016         defined, set REPLACE_MBSRTOWCS.
11017         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
11018         defined, set REPLACE_WCRTOMB.
11019         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
11020         defined, set REPLACE_WCSRTOMBS.
11021
11022 2011-07-31  Bruno Haible  <bruno@clisp.org>
11023
11024         Add support for Minix with ACK compiler.
11025         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
11026         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
11027         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
11028
11029 2011-07-31  Bruno Haible  <bruno@clisp.org>
11030
11031         Documentation about Minix.
11032         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
11033         * doc/glibc-headers/*.texi: Likewise.
11034         * doc/posix-functions/*.texi: Likewise.
11035         * doc/glibc-functions/*.texi: Likewise.
11036
11037 2011-07-31  Bruno Haible  <bruno@clisp.org>
11038
11039         snippet/warn-on-use: Fix indentation.
11040         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
11041
11042 2011-07-25  Jim Meyering  <meyering@redhat.com>
11043
11044         tests: test-update-copyright.sh: remove unnecessary "rm" commands
11045         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
11046         commands.
11047
11048 2011-07-27  Jim Meyering  <meyering@redhat.com>
11049
11050         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
11051         * top/maint.mk (gl_extract_significant_defines_): Now that
11052         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
11053         gnulib/lib/signal.in.h, and now that we recommend to
11054         define-if-undefined those two symbols in application code,
11055         we must filter them out of the "significant" list.
11056         This avoids a "make syntax-check" failure in coreutils.
11057
11058 2011-07-26  Eric Blake  <eblake@redhat.com>
11059
11060         warnings: add comments about previous patch
11061         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
11062         * m4/include_next.m4: Likewise.
11063         * m4/warn-on-use.m4: Likewise.
11064         * m4/warnings.m4: Likewise, and simplify use.
11065         Suggested by Stefano Lattarini.
11066
11067         include-next, warnings: support older autoconf
11068         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
11069         AS_VAR_PUSHDEF in a way that works with older autoconf.
11070         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
11071         Reported by Daniel P. Berrange.
11072
11073 2011-07-25  Bruno Haible  <bruno@clisp.org>
11074
11075         fseek, ftell: Fix doc.
11076         * doc/posix-functions/fseek.texi: Reword statement about
11077         AC_SYS_LARGEFILE.
11078         * doc/posix-functions/ftell.texi: Likewise.
11079
11080 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11081             Bruno Haible  <bruno@clisp.org>
11082
11083         Add dependencies to the 'largefile' module.
11084         * modules/fopen (Depends-on): Add 'largefile'.
11085         * modules/freopen (Depends-on): Likewise.
11086         * modules/fseeko (Depends-on): Likewise.
11087         * modules/ftello (Depends-on): Likewise.
11088         * modules/glob (Depends-on): Likewise.
11089         * modules/lseek (Depends-on): Likewise.
11090         * modules/lstat (Depends-on): Likewise.
11091         * modules/mkostemp (Depends-on): Likewise.
11092         * modules/mkostemps (Depends-on): Likewise.
11093         * modules/mkstemp (Depends-on): Likewise.
11094         * modules/mkstemps (Depends-on): Likewise.
11095         * modules/open (Depends-on): Likewise.
11096         * modules/openat (Depends-on): Likewise.
11097         * modules/pread (Depends-on): Likewise.
11098         * modules/pwrite (Depends-on): Likewise.
11099         * modules/scandir (Depends-on): Likewise.
11100         * modules/stat (Depends-on): Likewise.
11101         * modules/tmpfile (Depends-on): Likewise.
11102         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
11103         since the containing module now depends on the largefile module.
11104         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
11105         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
11106         off_t is fixed by gnulib.
11107         * doc/posix-functions/freopen.texi: Likewise.
11108         * doc/posix-functions/fseeko.texi: Likewise.
11109         * doc/posix-functions/fstatat.texi: Likewise.
11110         * doc/posix-functions/ftello.texi: Likewise.
11111         * doc/posix-functions/glob.texi: Likewise.
11112         * doc/posix-functions/lseek.texi: Likewise.
11113         * doc/posix-functions/lstat.texi: Likewise.
11114         * doc/posix-functions/mkstemp.texi: Likewise.
11115         * doc/posix-functions/open.texi: Likewise.
11116         * doc/posix-functions/openat.texi: Likewise.
11117         * doc/posix-functions/pread.texi: Likewise.
11118         * doc/posix-functions/pwrite.texi: Likewise.
11119         * doc/posix-functions/scandir.texi: Likewise.
11120         * doc/posix-functions/stat.texi: Likewise.
11121         * doc/posix-functions/tmpfile.texi: Likewise.
11122         * doc/glibc-functions/mkostemp.texi: Likewise.
11123         * doc/glibc-functions/mkostemps.texi: Likewise.
11124         * doc/glibc-functions/mkstemps.texi: Likewise.
11125
11126 2011-07-25  Bruno Haible  <bruno@clisp.org>
11127
11128         fcntl: Move AC_LIBOBJ invocation to module description.
11129         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
11130         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
11131
11132         fcntl: Remove call-in from fchdir.m4.
11133         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
11134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
11135
11136         dup3: Remove potential call-in from fchdir.m4.
11137         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
11138         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
11139
11140         dup2: Move AC_LIBOBJ invocation to module description.
11141         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
11142         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
11143         Don't invoke AC_LIBOBJ.
11144         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
11145
11146         dup2: Remove call-in from fchdir.m4.
11147         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
11148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
11149
11150         fclose: Move AC_LIBOBJ invocation to module description.
11151         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
11152         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
11153         to 1.
11154         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
11155
11156         fclose: Remove call-in from close.m4.
11157         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
11158         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
11159
11160         close: Move AC_LIBOBJ invocation to module description.
11161         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
11162         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
11163         1.
11164         * modules/close (configure.ac): Invoke AC_LIBOBJ.
11165
11166         close: Remove call-in from fchdir.m4.
11167         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
11168         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
11169
11170         open: Move AC_LIBOBJ invocation to module description.
11171         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
11172         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
11173         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
11174
11175         open: Remove call-in from fchdir.m4.
11176         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
11177         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
11178
11179         fchdir: Start to remove gl_REPLACE_* idiom.
11180         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
11181         (gl_FUNC_FCHDIR): Invoke it.
11182
11183 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
11184
11185         * lib/ftell.c (ftell): Comment out cast.
11186
11187         close: use gl_REPLACE_FCLOSE only if defined
11188         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
11189         is defined.  The close module doesn't depend on the fclose module
11190         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
11191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
11192         I reproduced the problem with "./gnulib-tool --test close sys_socket".
11193
11194 2011-07-24  Jim Meyering  <meyering@redhat.com>
11195
11196         test-select.h: avoid warning when using gcc's -Wmissing-declarations
11197         * tests/test-select.h (test_function): Declare as "static".
11198
11199 2011-07-24  Bruno Haible  <bruno@clisp.org>
11200
11201         doc: Mention the effects of AC_SYS_LARGEFILE.
11202         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
11203         on this function.
11204         * doc/posix-functions/aio_error.texi: Likewise.
11205         * doc/posix-functions/aio_fsync.texi: Likewise.
11206         * doc/posix-functions/aio_read.texi: Likewise.
11207         * doc/posix-functions/aio_return.texi: Likewise.
11208         * doc/posix-functions/aio_suspend.texi: Likewise.
11209         * doc/posix-functions/aio_write.texi: Likewise.
11210         * doc/posix-functions/fgetpos.texi: Likewise.
11211         * doc/posix-functions/fopen.texi: Likewise.
11212         * doc/posix-functions/freopen.texi: Likewise.
11213         * doc/posix-functions/fsetpos.texi: Likewise.
11214         * doc/posix-functions/fstatvfs.texi: Likewise.
11215         * doc/posix-functions/ftruncate.texi: Likewise.
11216         * doc/posix-functions/ftw.texi: Likewise.
11217         * doc/posix-functions/getrlimit.texi: Likewise.
11218         * doc/posix-functions/glob.texi: Likewise.
11219         * doc/posix-functions/lio_listio.texi: Likewise.
11220         * doc/posix-functions/lockf.texi: Likewise.
11221         * doc/posix-functions/mkstemp.texi: Likewise.
11222         * doc/posix-functions/mmap.texi: Likewise.
11223         * doc/posix-functions/nftw.texi: Likewise.
11224         * doc/posix-functions/openat.texi: Likewise.
11225         * doc/posix-functions/opendir.texi: Likewise.
11226         * doc/posix-functions/posix_fadvise.texi: Likewise.
11227         * doc/posix-functions/posix_fallocate.texi: Likewise.
11228         * doc/posix-functions/pread.texi: Likewise.
11229         * doc/posix-functions/pwrite.texi: Likewise.
11230         * doc/posix-functions/readdir.texi: Likewise.
11231         * doc/posix-functions/readdir_r.texi: Likewise.
11232         * doc/posix-functions/rewinddir.texi: Likewise.
11233         * doc/posix-functions/scandir.texi: Likewise.
11234         * doc/posix-functions/seekdir.texi: Likewise.
11235         * doc/posix-functions/setrlimit.texi: Likewise.
11236         * doc/posix-functions/statvfs.texi: Likewise.
11237         * doc/posix-functions/telldir.texi: Likewise.
11238         * doc/posix-functions/tmpfile.texi: Likewise.
11239         * doc/posix-functions/truncate.texi: Likewise.
11240         * doc/glibc-functions/fallocate.texi: Likewise.
11241         * doc/glibc-functions/fstatfs.texi: Likewise.
11242         * doc/glibc-functions/fts_children.texi: Likewise.
11243         * doc/glibc-functions/fts_read.texi: Likewise.
11244         * doc/glibc-functions/getdirentries.texi: Likewise.
11245         * doc/glibc-functions/mkostemp.texi: Likewise.
11246         * doc/glibc-functions/mkostemps.texi: Likewise.
11247         * doc/glibc-functions/mkstemps.texi: Likewise.
11248         * doc/glibc-functions/preadv.texi: Likewise.
11249         * doc/glibc-functions/pwritev.texi: Likewise.
11250         * doc/glibc-functions/sendfile.texi: Likewise.
11251         * doc/glibc-functions/statfs.texi: Likewise.
11252
11253 2011-07-24  Bruno Haible  <bruno@clisp.org>
11254
11255         doc: Fix typo.
11256         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
11257
11258 2011-07-24  Bruno Haible  <bruno@clisp.org>
11259
11260         doc: Mention fsusage.
11261         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
11262
11263 2011-07-24  Bruno Haible  <bruno@clisp.org>
11264
11265         doc: Mention new glibc headers and functions.
11266         * doc/glibc-headers/gshadow.texi: New file.
11267         * doc/glibc-functions/endsgent.texi: New file.
11268         * doc/glibc-functions/fgetsgent.texi: New file.
11269         * doc/glibc-functions/fgetsgent_r.texi: New file.
11270         * doc/glibc-functions/getsgent.texi: New file.
11271         * doc/glibc-functions/getsgent_r.texi: New file.
11272         * doc/glibc-functions/getsgnam.texi: New file.
11273         * doc/glibc-functions/getsgnam_r.texi: New file.
11274         * doc/glibc-functions/putsgent.texi: New file.
11275         * doc/glibc-functions/setsgent.texi: New file.
11276         * doc/glibc-functions/sgetsgent.texi: New file.
11277         * doc/glibc-functions/sgetsgent_r.texi: New file.
11278         * doc/glibc-functions/malloc_info.texi: New file.
11279         * doc/glibc-functions/preadv.texi: New file.
11280         * doc/glibc-functions/pwritev.texi: New file.
11281         * doc/glibc-functions/register_printf_modifier.texi: New file.
11282         * doc/glibc-functions/register_printf_specifier.texi: New file.
11283         * doc/glibc-functions/register_printf_type.texi: New file.
11284         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
11285         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
11286         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
11287         * doc/glibc-functions/pthread_getname_np.texi: New file.
11288         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
11289         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
11290         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
11291         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
11292         * doc/glibc-functions/pthread_setname_np.texi: New file.
11293         * doc/glibc-functions/pthread_sigqueue.texi: New file.
11294         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
11295         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
11296         * doc/glibc-functions/qsort_r.texi: New file.
11297         * doc/glibc-functions/quick_exit.texi: New file.
11298         * doc/glibc-functions/syncfs.texi: New file.
11299         * doc/gnulib.texi: Include them.
11300         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
11301         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
11302         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
11303         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
11304         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
11305         * doc/glibc-functions/execvpe.texi: Likewise.
11306
11307 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11308
11309         ftell: don't include <unistd.h>
11310         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
11311         guaranteed to define off_t, and the ftell module depends on the
11312         stdio module.
11313
11314         ftell: do not assume wraparound signed arithmetic
11315         * lib/ftell.c: Include <limits.h>.
11316         (ftell): Don't assume wraparound signed arithmetic.
11317
11318 2011-07-24  Bruno Haible  <bruno@clisp.org>
11319
11320         close: No longer depend on module 'fclose'.
11321         * modules/close (Depends-on): Remove fclose.
11322         * NEWS: Mention the change.
11323         Suggested by Sam Steingold <sds@gnu.org>.
11324
11325 2011-07-24  Bruno Haible  <bruno@clisp.org>
11326
11327         fsusage: Enable large volume support on AIX >= 5.2.
11328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
11329         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
11330         instead of STAT_STATVFS.
11331         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
11332
11333         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
11334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
11335         f_blocks field only on MacOS X.
11336
11337         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
11338         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
11339         * modules/fsusage (Depends-on): Add largefile.
11340
11341 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
11342
11343         * README: Modernize discussion of signed integers.
11344         Assuming overflow wraparound is no longer safe.
11345         Mention ones' complement and signed magnitude.
11346
11347 2011-07-22  Bruno Haible  <bruno@clisp.org>
11348
11349         select tests, pselect tests: Refactor.
11350         * tests/test-select.h: New file, extracted from tests/test-select.c.
11351         (select_fn): New type.
11352         (test, do_select, do_select_nowait, do_select_wait, test_tty,
11353         test_connect_first, test_accept_first, test_pair, test_socket_pair,
11354         test_pipe): Add my_select argument.
11355         (test_function): Renamed from main. Add my_select argument.
11356         * tests/test-select.c: Move most code to tests/test-select.h. Include
11357         test-select.h.
11358         * modules/select-tests (Files): Add tests/test-select.h.
11359         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
11360         (my_select, main): New functions.
11361         * modules/pselect-tests (Files): Add tests/test-select.h,
11362         tests/macros.h, tests/signature.h.
11363         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
11364         (configure.ac): Check for <sys/wait.h>.
11365
11366 2011-07-22  Bruno Haible  <bruno@clisp.org>
11367
11368         sys_select tests: Check the signature of FD_*.
11369         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
11370         signature tests from here...
11371         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
11372         here.
11373         * modules/sys_select-tests (Files): Add tests/signature.h.
11374
11375 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
11376
11377         largefile: new module, replacing large-inode
11378         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
11379         * MODULES.html.sh: Add largefile, remove large-inode.
11380         * modules/largefile, m4/largefile.m4: New files.
11381         * modules/large-inode, m4/large-inode.m4: Remove.
11382
11383         fsusage: port to MacOS X 10.7 with 4 TiB file systems
11384         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
11385         implementations that use only 32 bits to count blocks.
11386         On typical hosts with 1024-byte blocks, this fails with file
11387         systems as small as 4 TiB.  Problem reported by Herb Wartens
11388         <http://debbugs.gnu.org/9140> and this should also fix a similar
11389         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
11390
11391         large-inode: New module
11392         * MODULES.html.sh: Add it.
11393         * modules/large-inode, m4/large-inode.m4: New files.
11394
11395         extensions: Enable extensions on MacOS X 10.5 and later.
11396         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
11397
11398 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
11399
11400         file-has-acl: use acl_extended_file_nofollow if available
11401         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
11402         (acl_extended_file): New macro.
11403         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
11404         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
11405
11406 2011-07-21  Bruno Haible  <bruno@clisp.org>
11407
11408         Declare system functions in a way that works with C++.
11409         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
11410         declare fdopendir as extern "C".
11411         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
11412         declare frexpl as extern "C".
11413         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
11414         declare gai_strerror as extern "C".
11415         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
11416         programs, declare gai_strerror as extern "C".
11417         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
11418         declare getlogin_r as extern "C".
11419         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
11420         as extern "C".
11421         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
11422         declare ldexpl as extern "C".
11423         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
11424         as extern "C".
11425         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
11426         program, declare getmntinfo as extern "C".
11427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
11428         stpncpy as extern "C".
11429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
11430         program, declare __xpg_strerror_r as extern "C".
11431         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
11432         strndup as extern "C".
11433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
11434         declare memset and bzero as extern "C".
11435         Reported by Sam Steingold <sds@gnu.org>.
11436
11437 2011-07-12  Jim Meyering  <meyering@redhat.com>
11438
11439         maint.mk: prohibit inclusion of "verify.h" without use
11440         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
11441
11442 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11443
11444         timer-time: A new module to check for timer_settime()
11445         * m4/timer_time.m4: Check for the posix function.
11446         * modules/timer-time: Add the new module.
11447         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
11448         Mention it.
11449
11450 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
11451             Bruno Haible  <bruno@clisp.org>
11452
11453         pthread_sigmask: assume POSIX threads if --avoid=threadlib
11454         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
11455         not defined, assume POSIX threads and look for pthread_sigmask in
11456         $LIBS, without changing $CPPFLAGS.
11457
11458 2011-07-19  Bruno Haible  <bruno@clisp.org>
11459
11460         strstr: Update cross-compilation guess.
11461         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
11462         CPUs, guess no, in view of glibc
11463         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
11464         Suggested by Eric Blake. Reported by Reuben Thomas.
11465
11466 2011-07-19  Pádraig Brady  <P@draigBrady.com>
11467
11468         getopt-gnu: suppress core dumps from detection code
11469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
11470         to suppress core dumps that may well occur on glibc systems.
11471         * modules/getopt-gnu: Depend on nocrash.
11472
11473 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11474
11475         pthread_sigmask: ensure usleep is declared
11476         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
11477         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
11478
11479 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
11480
11481         doc: Document NonStop portability issues.
11482         * doc/posix-functions/sigaction.texi (sigaction):
11483         * doc/posix-headers/signal.texi (signal.h):
11484         Document NonStop.  See Joachim Schmitz in
11485         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
11486
11487 2011-07-15  Bruno Haible  <bruno@clisp.org>
11488
11489         ffsl, ffsll: Avoid unportable behaviour.
11490         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
11491
11492 2011-07-15  Bruno Haible  <bruno@clisp.org>
11493
11494         ffs: More tests.
11495         * tests/test-ffs.c (NBITS): New macro.
11496         (main): Add more tests.
11497         * tests/test-ffsl.c (NBITS): New macro.
11498         (main): Add more tests.
11499         * tests/test-ffsll.c (NBITS): New macro.
11500         (main): Add more tests.
11501
11502 2011-07-15  Eric Blake  <eblake@redhat.com>
11503
11504         ffsl, ffsll: new modules
11505         * modules/ffsl: New file.
11506         * modules/ffsll: Likewise.
11507         * m4/ffsl.m4: Likewise.
11508         * m4/ffsll.m4: Likewise.
11509         * lib/ffsl.c: Likewise.
11510         * lib/ffsl.h: Likewise.
11511         * lib/ffsll.c: Likewise.
11512         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
11513         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
11514         * modules/string (Makefile.am): Substitute witnesses.
11515         * lib/strings.in.h (ffsl, ffsll): Declare.
11516         * modules/ffsl-tests: New test file.
11517         * modules/ffsll-tests: Likewise.
11518         * tests/test-ffsl.c: Likewise.
11519         * tests/test-ffsll.c: Likewise.
11520         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11521         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
11522         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
11523
11524         ffs: fix m4 prerequisite
11525         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
11526
11527         ffs: avoid undefined behavior
11528         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
11529         * tests/test-ffs.c (naive, main): Avoid signed shifts.
11530         Reported by Bruno Haible.
11531
11532 2011-07-12  Bruno Haible  <bruno@clisp.org>
11533
11534         pthread_sigmask: Rely on module 'threadlib'.
11535         * modules/pthread_sigmask (Depends-on): Add threadlib.
11536         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
11537         is defined.
11538
11539 2011-07-12  Bruno Haible  <bruno@clisp.org>
11540
11541         regex: Depend on module 'strcase'.
11542         * modules/regex (Depends-on): Add strcase, for strcasecmp().
11543
11544 2011-07-12  Jim Meyering  <meyering@redhat.com>
11545
11546         warn-on-use: fix typo in file name
11547         * modules/snippet/warn-on-use (Files): Correct file name:
11548         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
11549
11550 2011-07-12  Bruno Haible  <bruno@clisp.org>
11551
11552         strings: Document module.
11553         * doc/posix-headers/strings.texi: Mention module 'strings'.
11554
11555 2011-07-12  Bruno Haible  <bruno@clisp.org>
11556
11557         Rename module '_Noreturn' to 'snippet/_Noreturn'.
11558         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
11559         (Files, Makefile.am): Update.
11560         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
11561         * modules/stdlib (Depends-on): Update.
11562
11563 2011-07-12  Bruno Haible  <bruno@clisp.org>
11564
11565         * NEWS: Mention the changes.
11566
11567         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
11568         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
11569         (Files, Makefile.am): Update.
11570         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
11571         * modules/arpa_inet (Depends-on): Update.
11572         * modules/ctype (Depends-on): Update.
11573         * modules/dirent (Depends-on): Update.
11574         * modules/fcntl-h (Depends-on): Update.
11575         * modules/glob (Depends-on): Update.
11576         * modules/iconv-h (Depends-on): Update.
11577         * modules/inttypes-incomplete (Depends-on): Update.
11578         * modules/langinfo (Depends-on): Update.
11579         * modules/locale (Depends-on): Update.
11580         * modules/math (Depends-on): Update.
11581         * modules/netdb (Depends-on): Update.
11582         * modules/poll-h (Depends-on): Update.
11583         * modules/pty (Depends-on): Update.
11584         * modules/search (Depends-on): Update.
11585         * modules/signal (Depends-on): Update.
11586         * modules/spawn (Depends-on): Update.
11587         * modules/stdio (Depends-on): Update.
11588         * modules/stdlib (Depends-on): Update.
11589         * modules/string (Depends-on): Update.
11590         * modules/strings (Depends-on): Update.
11591         * modules/sys_file (Depends-on): Update.
11592         * modules/sys_ioctl (Depends-on): Update.
11593         * modules/sys_select (Depends-on): Update.
11594         * modules/sys_socket (Depends-on): Update.
11595         * modules/sys_stat (Depends-on): Update.
11596         * modules/sys_time (Depends-on): Update.
11597         * modules/sys_times (Depends-on): Update.
11598         * modules/sys_utsname (Depends-on): Update.
11599         * modules/sys_wait (Depends-on): Update.
11600         * modules/termios (Depends-on): Update.
11601         * modules/time (Depends-on): Update.
11602         * modules/unistd (Depends-on): Update.
11603         * modules/wchar (Depends-on): Update.
11604         * modules/wctype-h (Depends-on): Update.
11605         * MODULES.html.sh (Support for building libraries and executables):
11606         Update.
11607
11608         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
11609         * modules/snippet/unused-parameter: Renamed from
11610         modules/unused-parameter.
11611         (Files, Makefile.am): Update.
11612         * build-aux/snippet/unused-parameter.h: Renamed from
11613         build-aux/unused-parameter.h.
11614         * modules/selinux-h (Depends-on): Update.
11615         * modules/unistr/base (Depends-on): Update.
11616         * MODULES.html.sh (Core language properties): Update.
11617
11618         Rename module 'link-warning' to 'snippet/link-warning'.
11619         * modules/snippet/link-warning: Renamed from modules/link-warning.
11620         (Files, Makefile.am): Update.
11621         * build-aux/snippet/link-warning.h: Renamed from
11622         build-aux/link-warning.h.
11623         * MODULES.html.sh (Support for building libraries and executables):
11624         Update.
11625
11626         Rename module 'c++defs' to 'snippet/c++defs'.
11627         * modules/snippet/c++defs: Renamed from modules/c++defs.
11628         (Files, Makefile.am): Update.
11629         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
11630         * modules/arpa_inet (Depends-on): Update.
11631         * modules/ctype (Depends-on): Update.
11632         * modules/dirent (Depends-on): Update.
11633         * modules/fcntl-h (Depends-on): Update.
11634         * modules/glob (Depends-on): Update.
11635         * modules/iconv-h (Depends-on): Update.
11636         * modules/langinfo (Depends-on): Update.
11637         * modules/locale (Depends-on): Update.
11638         * modules/math (Depends-on): Update.
11639         * modules/netdb (Depends-on): Update.
11640         * modules/poll-h (Depends-on): Update.
11641         * modules/pty (Depends-on): Update.
11642         * modules/search (Depends-on): Update.
11643         * modules/signal (Depends-on): Update.
11644         * modules/spawn (Depends-on): Update.
11645         * modules/stdio (Depends-on): Update.
11646         * modules/stdlib (Depends-on): Update.
11647         * modules/string (Depends-on): Update.
11648         * modules/strings (Depends-on): Update.
11649         * modules/sys_ioctl (Depends-on): Update.
11650         * modules/sys_select (Depends-on): Update.
11651         * modules/sys_socket (Depends-on): Update.
11652         * modules/sys_stat (Depends-on): Update.
11653         * modules/sys_time (Depends-on): Update.
11654         * modules/sys_wait (Depends-on): Update.
11655         * modules/termios (Depends-on): Update.
11656         * modules/time (Depends-on): Update.
11657         * modules/unistd (Depends-on): Update.
11658         * modules/wchar (Depends-on): Update.
11659         * modules/wctype-h (Depends-on): Update.
11660
11661         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
11662         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
11663         (Files, Makefile.am): Update.
11664         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
11665         * modules/argv-iter (Depends-on): Update.
11666         * modules/arpa_inet (Depends-on): Update.
11667         * modules/dirent (Depends-on): Update.
11668         * modules/fcntl-h (Depends-on): Update.
11669         * modules/fnmatch (Depends-on): Update.
11670         * modules/getopt-posix (Depends-on): Update.
11671         * modules/glob (Depends-on): Update.
11672         * modules/iconv-h (Depends-on): Update.
11673         * modules/inttypes-incomplete (Depends-on): Update.
11674         * modules/locale (Depends-on): Update.
11675         * modules/math (Depends-on): Update.
11676         * modules/netdb (Depends-on): Update.
11677         * modules/search (Depends-on): Update.
11678         * modules/signal (Depends-on): Update.
11679         * modules/spawn (Depends-on): Update.
11680         * modules/stdio (Depends-on): Update.
11681         * modules/stdlib (Depends-on): Update.
11682         * modules/string (Depends-on): Update.
11683         * modules/strings (Depends-on): Update.
11684         * modules/sys_socket (Depends-on): Update.
11685         * modules/sys_stat (Depends-on): Update.
11686         * modules/sys_time (Depends-on): Update.
11687         * modules/sys_times (Depends-on): Update.
11688         * modules/sys_utsname (Depends-on): Update.
11689         * modules/time (Depends-on): Update.
11690         * modules/unistd (Depends-on): Update.
11691         * modules/wchar (Depends-on): Update.
11692         * MODULES.html.sh (Support for building libraries and executables):
11693         Update.
11694
11695 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11696
11697         Improvements on _Noreturn and related modules.
11698
11699         modules/_Exit-tests: test _Noreturn too
11700         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
11701         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
11702         (main): Use them.
11703
11704         stdnoreturn, stdnoreturn-tests: remove modules
11705         They're not needed here and a bit premature for use elsewhere.  See
11706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
11707         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
11708         * tests/test-stdnoreturn.c: Remove files.
11709         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
11710         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
11711         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
11712         and using noreturn.
11713         * modules/openat, modules/sigpipe-die, modules/xalloc:
11714         * modules/xmemdup0, modules/xstrtol:
11715         Remove dependency on stdnoreturn.
11716
11717         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
11718         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
11719         Reparenthesize to avoid GCC warning.
11720         Support Microsoft's syntax.
11721         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
11722
11723         _Noreturn-tests: remove module
11724         * modules/_Noreturn-tests: Remove.
11725         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
11726         * tests/test-_Noreturn.c: Remove.
11727         * tests/test-stdnoreturn.c: Merge from the old
11728         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
11729
11730 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
11731
11732         _Noreturn, stdnoreturn, and related modules.
11733
11734         * top/maint.mk: Adjust to new noreturn support.
11735         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
11736         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
11737
11738         xalloc: use stdnoreturn.h
11739         * lib/xalloc.h: Include <stdnoreturn.h>.
11740         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11741         * modules/xalloc (Depends-on): Add stdnoreturn.
11742
11743         xstrtol: use stdnoreturn.h
11744         * lib/xstrtol.h: Include <stdnoreturn.h>.
11745         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11746         * modules/xstrtol (Depends-on): Add stdnoreturn.
11747
11748         xmemdup0: use stdnoreturn.h
11749         * lib/xmemdup0.h: Include <stdnoreturn.h>.
11750         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11751         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
11752
11753         sigpipe-die: use stdnoreturn.h
11754         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
11755         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11756         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
11757
11758         openat: use stdnoreturn.h
11759         * lib/openat.h: Include <stdnoreturn.h>.
11760         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
11761         * modules/openat (Depends-on): Add stdnoreturn.
11762
11763         * lib/openat-die.c (openat_save_fail): Modernize comment.
11764
11765         * lib/xalloc-die.c (xalloc_die): Modernize comment.
11766
11767         * lib/glthread/thread.h: Modernize comment.
11768
11769         obstack: use _Noreturn
11770         * lib/obstack.c (__attribute__): Remove macro.
11771         (print_and_abort): Use _Noreturn.
11772
11773         c-stack: use _Noreturn
11774         * lib/c-stack.c (die, overflow_handler, segv_handler):
11775         Use _Noreturn rather than __attribute__((noreturn)).
11776
11777         argmatch-tests, exclude_tests: use _Noreturn
11778         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
11779         Remove.
11780         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
11781
11782         stdlib: use _Noreturn
11783         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
11784         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
11785         * modules/stdlib (Depends-on): Add _Noreturn.
11786         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
11787
11788         stdnoreturn-tests: new module
11789         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
11790
11791         stdnoreturn: new module
11792         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
11793         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
11794
11795         _Noreturn-tests: new module
11796         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
11797
11798         _Noreturn: new module
11799         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
11800         New section, mentioning it.
11801         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
11802
11803         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
11804
11805 2011-07-11  Eric Blake  <eblake@redhat.com>
11806
11807         ffs: new module
11808         * modules/ffs: New file.
11809         * m4/ffs.m4: Likewise.
11810         * lib/ffs.c: Likewise.
11811         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11812         * modules/strings (Makefile.am): Substitute witness.
11813         (Depends-on): Add c++defs.
11814         * lib/strings.in.h (ffs): Declare.
11815         * modules/ffs-tests: New test file.
11816         * tests/test-ffs.c: Test new module.
11817         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11818         * doc/posix-functions/ffs.texi (ffs): Likewise.
11819
11820         regex: avoid compiler warning
11821         * lib/regex.c (includes): Include <strings.h>, for use of
11822         strcasecmp in regcomp.c.
11823         Reported by Joachim Schmitz.
11824
11825 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11826
11827         stdint: respect system's intmax_t if INTMAX_MAX
11828         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11829         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11830         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11831         long but int64_t is long long, and where we will clash with the
11832         system intmax_t if we override it.  See
11833         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11834         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11835         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11836         similarly for UINTMAX_C.
11837
11838 2011-07-08  Bruno Haible  <bruno@clisp.org>
11839
11840         pthread_sigmask tests: Avoid a compiler warning.
11841         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11842         non-zero.
11843
11844         sigprocmask tests: A better way to avoid a compiler warning.
11845         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11846         (main): Complain if system() returns non-zero.
11847         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11848
11849 2011-07-08  Bruno Haible  <bruno@clisp.org>
11850
11851         pthread_sigmask: Work around IRIX bug.
11852         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11853         bug.
11854         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11855         there may be unblocked pending signals.
11856         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11857
11858 2011-07-08  Bruno Haible  <bruno@clisp.org>
11859
11860         pthread_sigmask: Work around Cygwin bug.
11861         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11862         bug.
11863         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11864         the system's pthread_sigmask function.
11865         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11866
11867 2011-07-08  Bruno Haible  <bruno@clisp.org>
11868
11869         pthread_sigmask: Work around bug in single-threaded implementation.
11870         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11871         FreeBSD, HP-UX, Solaris bug.
11872         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11873         * lib/pthread_sigmask.c: Include <stddef.h>.
11874         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11875         the system's pthread_sigmask function.
11876         * modules/pthread_sigmask (configure.ac): Invoke
11877         gl_PREREQ_PTHREAD_SIGMASK.
11878         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11879         HP-UX, Solaris.
11880
11881 2011-07-08  Eric Blake  <eblake@redhat.com>
11882
11883         test-sigprocmask: avoid compiler warning
11884         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11885         * tests/test-sigprocmask.c (main): Use it to silence warning.
11886         Reported by Jim Meyering.
11887
11888         test-snprintf: avoid compiler warning
11889         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11890         * tests/test-vsnprintf.c (main): Likewise.
11891         Reported by Jim Meyering.
11892
11893 2011-07-08  Bruno Haible  <bruno@clisp.org>
11894
11895         Tests for module 'pthread_sigmask'.
11896         * modules/pthread_sigmask-tests: New file.
11897         * tests/test-pthread_sigmask1.c: New file, based on
11898         tests/test-sigprocmask.c.
11899         * tests/test-pthread_sigmask2.c: New file.
11900
11901 2011-07-08  Jim Meyering  <meyering@redhat.com>
11902
11903         test-getopt.h: avoid warning about an unused variable
11904         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11905
11906 2011-07-07  Jim Meyering  <meyering@redhat.com>
11907
11908         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11909         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11910         now that it no longer contains leading TABs.
11911         Remove unused "url=FIXME" statement.
11912
11913 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11914
11915         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11916         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11917         When gl_THREADLIB is not in use, assume that the POSIX sematics
11918         are desired.  This is better for Emacs, which uses POSIX semantics
11919         on GNUish and/or POSIXish platforms, and does not use threads at
11920         all otherwise.
11921
11922         pthread_sigmask: fix typo when testing for libraries
11923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11924         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11925
11926 2011-07-08  Eric Blake  <eblake@redhat.com>
11927
11928         fts: introduce FTS_NOATIME
11929         * lib/fts_.h (FTS_NOATIME): New bit flag.
11930         (FTS_OPTIONMASK): Adjust.
11931         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11932         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11933
11934 2011-07-08  Bruno Haible  <bruno@clisp.org>
11935
11936         Tests for module 'thread'.
11937         * modules/thread-tests: New file.
11938         * tests/test-thread_self.c: New file.
11939         * tests/test-thread_create.cc: New file.
11940
11941 2011-07-08  Bruno Haible  <bruno@clisp.org>
11942
11943         thread: Avoid gcc warnings when using gl_thread_self().
11944         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11945         'void *'.
11946         (gl_thread_self_pointer): Update.
11947
11948 2011-07-07  Bruno Haible  <bruno@clisp.org>
11949
11950         signal-c++-tests: Check declaration of pthread_sigmask.
11951         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11952         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11953         $(LIB_PTHREAD_SIGMASK).
11954
11955 2011-07-07  Bruno Haible  <bruno@clisp.org>
11956
11957         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11958         * lib/signal.in.h (pthread_sigmask): Override if
11959         REPLACE_PTHREAD_SIGMASK is 1.
11960         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11961         REPLACE_PTHREAD_SIGMASK.
11962         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11963         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11964         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11965         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11966         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11967
11968 2011-07-07  Bruno Haible  <bruno@clisp.org>
11969
11970         pthread_sigmask: Ensure declaration in <signal.h>.
11971         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11972         include <pthread.h>.
11973         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11974         problem.
11975
11976 2011-07-07  Bruno Haible  <bruno@clisp.org>
11977
11978         pthread_sigmask: Document the module.
11979         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11980
11981 2011-07-07  Bruno Haible  <bruno@clisp.org>
11982
11983         pthread_sigmask: Follow gnulib conventions.
11984         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11985         gl_PTHREAD_SIGMASK.
11986         * modules/pthread_sigmask (configure.ac): Update.
11987
11988 2011-07-07  Bruno Haible  <bruno@clisp.org>
11989
11990         pthread_sigmask: Make declaration C++ safe.
11991         * lib/signal.in.h: In two special conditions, just do an #include_next.
11992         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11993         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11994         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11995         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11996         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11997         not REPLACE_PTHREAD_MASK.
11998         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11999         not REPLACE_PTHREAD_MASK.
12000         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
12001
12002 2011-07-07  Bruno Haible  <bruno@clisp.org>
12003
12004         pthread_sigmask: Fix return value.
12005         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
12006         * lib/pthread_sigmask.c: New file.
12007         * modules/pthread_sigmask (Files): Add it.
12008         (configure.ac): Invoke AC_LIBOBJ.
12009
12010 2011-07-07  Eric Blake  <eblake@redhat.com>
12011
12012         getopt: more portable argv creation
12013         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
12014         const, use char arrays rather than strings.
12015         Suggested by Paul Eggert.
12016
12017 2011-07-07  Bruno Haible  <bruno@clisp.org>
12018
12019         Tests for module 'sigprocmask'.
12020         * modules/sigprocmask-tests: New file.
12021         * tests/test-sigprocmask.c: New file.
12022
12023 2011-07-07  Bruno Haible  <bruno@clisp.org>
12024
12025         float tests: Tweak.
12026         * tests/test-float.c (main): Tweak skip message.
12027
12028 2011-07-07  Eric Blake  <eblake@redhat.com>
12029
12030         getopt: avoid compiler warning during configure
12031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
12032         assigning string literals to non-const pointer.
12033
12034         getopt-gnu: avoid crash in glibc getopt
12035         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
12036         * tests/test-getopt.h (test_getopt): Enhance test.
12037         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12038         * doc/posix-functions/getopt.texi (getopt): Document it.
12039         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
12040         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12041         Likewise.
12042
12043 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12044
12045         getopt: handle W; without long options in getopt [BZ #12922]
12046         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
12047         but no long options are defined, just return 'W'.
12048
12049 2011-07-07  Bruno Haible  <bruno@clisp.org>
12050
12051         Avoid literal tabs.
12052         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
12053         variable containing a tab instead of a literal tab.
12054         Reported by Jim Meyering.
12055
12056 2011-07-07  Bruno Haible  <bruno@clisp.org>
12057
12058         Comments.
12059         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
12060
12061 2011-07-06  Bruno Haible  <bruno@clisp.org>
12062
12063         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
12064         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
12065         <winsock2.h>.
12066         (rpl_fd_isset, FD_ISSET): New definitions, copied from
12067         lib/sys_socket.in.h.
12068         (close, gethostname): Hide declarations from <winsock2.h>.
12069         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12070         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
12071         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
12072         (select): Don't override if gnulib's <sys/select.h> was already
12073         included.
12074         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
12075         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
12076         setsockopt, shutdown, select): Tweak indentation.
12077
12078 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12079
12080         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
12081         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
12082         in an application that does not use the sys_select module.
12083
12084 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
12085
12086         poll: do not return 0 on timeout=-1
12087         * lib/poll.c: Loop with yield if no events occured
12088
12089 2011-07-06  Eric Blake  <eblake@redhat.com>
12090
12091         pthread_sigmask: always replace when not using pthread
12092         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
12093         replacement when using some threading other than pthread.  Fix
12094         logic bug.
12095
12096 2011-07-06  Bruno Haible  <bruno@clisp.org>
12097
12098         Comments.
12099         * m4/printf.m4: Update comments about mingw.
12100
12101 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12102
12103         sys_select: define sigset_t more portably
12104         * lib/sys_select.in.h: Always include <sys/types.h>, since
12105         we now need sigset_t and mingw defines it there.
12106         Include <signal.h> before split inclusion guard, to avoid
12107         mishaps on Solaris, whose <signal.h> eventually includes us.
12108         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
12109         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
12110         which come from ...
12111         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
12112         gl_CHECK_TYPE_SIGSET_T.
12113         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
12114         does the real work.
12115         * modules/sys_select (Depends-on): Add 'signal'.
12116
12117         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
12118         Suggested by Bruno Haible.
12119
12120         pselect: Use pthread_sigmask, not sigprocmask.
12121         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
12122         multithreaded apps better than sigprocmask does.
12123         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
12124         sigprocmask directly.
12125
12126 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
12127
12128         * lib/pselect.c (pselect): Use plain name, without "rpl_".
12129         Don't #undef,  since we don't need any underlying pselect.
12130         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
12131         (Depends-on): Add select.
12132         (Link): Add $(LIBSOCKET).
12133         These changes suggested by Bruno Haible.
12134
12135         pselect: document better
12136         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12137         * doc/posix-functions/pselect.texi (pselect): Document new module.
12138
12139         pthread_sigmask: new module
12140         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
12141         * doc/posix-functions/pthread_sigmask.texi: Document new module.
12142         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
12143         This is done only as a macro; I don't know how well that'll
12144         work for C++.  Move <sys/types.h> include before the include_next,
12145         to avoid mishap on Solaris.
12146         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
12147         * modules/signal (Makefile.am): Substitute the check's results.
12148         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
12149
12150         test-pselect: new module
12151         * modules/pselect-tests, tests/test-pselect.c: New files.
12152         * tests/test-select.c, tests/test-sys_select-c++.cc:
12153         If TEST_PSELECT is defined, test pselect instead of testing select.
12154
12155         * tests/test-sys_select.c (sigset_t): Test for it, too.
12156         Suggested by Bruno Haible.
12157
12158 2011-07-05  Eric Blake  <eblake@redhat.com>
12159
12160         snprintf: guarantee %1$d, for libintl
12161         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
12162         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
12163         * doc/posix-functions/snprintf.texi (snprintf): Update.
12164         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12165         * tests/test-snprintf.c (main): Enhance test.
12166         * tests/test-vsnprintf.c (main): Likewise.
12167
12168 2011-07-05  Jim Meyering  <meyering@redhat.com>
12169
12170         maint: exempt stdio-read.c and stdio-write.c from the cppi check
12171         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
12172         per Bruno's request, to accommodate this idiom (no space after "#")
12173         even when the function is inside an #if block:
12174         char *
12175         gets (char *s)
12176         #undef gets
12177         {
12178           ...
12179         }
12180
12181 2011-07-04  Jim Meyering  <meyering@redhat.com>
12182
12183         maint: indent with spaces, not TABs, and add a rule to check this
12184         * tests/test-userspec.c: Indent with spaces, not TABs.
12185         * tests/test-argp.c: Likewise.
12186         * tests/test-c-stack2.sh: Likewise.
12187         * tests/test-parse-duration.sh: Likewise
12188         * m4/strtod.m4: Likewise.
12189         * m4/alloca.m4: Likewise.
12190         * m4/pselect.m4: Likewise.
12191         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
12192
12193 2011-07-03  Jim Meyering  <meyering@redhat.com>
12194
12195         maint.mk: correct omissions in prohibit_argmatch_without_use check
12196         This rule would mistakenly report that argmatch.h is included without
12197         use even when both the argmatch and invalid_arg macro were used.
12198         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
12199         of argmatch and invalid_arg.
12200
12201 2011-07-03  Bruno Haible  <bruno@clisp.org>
12202
12203         Comments about EINTR.
12204         * lib/safe-read.h: Explain the purpose of this module.
12205         * lib/safe-write.h: Likewise.
12206         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
12207         module.
12208         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
12209         module.
12210         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12211
12212 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
12213
12214         xnanosleep: Rewrite to use new dtotimespec module.
12215         It has the conversion code that used to be in xnanosleep.
12216         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
12217         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
12218         (TIME_T_MAX): Remove.
12219         (xnanosleep): Rewrite in terms of dtotimespec.
12220         * modules/xnanosleep (Depends-on): Add dtotimespec.
12221         Remove intprops, stdbool.
12222
12223         timespec-add, timespec-sub: new modules
12224         * lib/timespec.h (timespec_add, timespec_sub): New decls.
12225         * lib/timespec-add.c, lib/timespec-sub.c:
12226         * modules/timespec-add, modules/timespec-sub: New files.
12227
12228         dtotimespec: new module
12229         * lib/timespec.h (dtotimespec): New decl.
12230         * lib/dtotimespec.c, modules/dtotimespec: New files.
12231
12232         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
12233
12234         pselect: new module
12235         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
12236         (pselect): New decls.
12237         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
12238         since the standard pselect decl uses 'restrict'.
12239         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
12240         HAVE_PSELECT, REPLACE_PSELECT.
12241         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
12242         HAVE_PSELECT, REPLACE_PSELECT.
12243         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
12244
12245         sys_select: don't depend on sys_socket
12246         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
12247         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
12248         This fix works on GNU and GNU-like platforms, but has not been tested
12249         on native Windows.
12250         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
12251         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
12252         gl_HEADER_SYS_SOCKET.
12253         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
12254         gl_PREREQ_SYS_H_WINSOCK2.
12255
12256 2011-06-29  Eric Blake  <eblake@redhat.com>
12257
12258         pipe2: fix C89 compile problem
12259         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
12260         Reported by Bruno Haible.
12261
12262         pipe, pipe2: don't corrupt fd on error
12263         * lib/pipe.c (pipe): Leave fd unchanged on error.
12264         * lib/pipe2.c (pipe2): Likewise.
12265         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
12266         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
12267
12268 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
12269
12270         mmap-anon: do not use regular expressions inadvertently
12271         * m4/mmap-anon.m4: Remove trailing period from strings sought
12272         in the output.
12273
12274 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12275
12276         nanosleep: fix integer overflow problem
12277         * lib/nanosleep.c (my_usleep): Don't assume signed integer
12278         arithmetic wraps around on overflow.
12279
12280         nanosleep: simplify carrying
12281         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
12282         first call to the underyling nanosleep, not for the last one.
12283         This doesn't fix any bugs, but it simplifies the computation of
12284         the remaining delay.  Found while auditing integer overflow issues.
12285
12286         dup2: remove test for existence of fcntl
12287         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
12288         "#if HAVE_FCNTL", in the configure-time test program.
12289         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
12290         and therefore speeds up "configure" a bit.  Found while
12291         adding the dup2 module to Emacs.
12292
12293 2011-06-24  Eric Blake  <eblake@redhat.com>
12294
12295         maint.mk: enhance useless header checks
12296         * top/maint.mk (_sc_header_without_use): Check both include
12297         styles.
12298         (sc_prohibit_assert_without_use)
12299         (sc_prohibit_close_stream_without_use)
12300         (sc_prohibit_getopt_without_use)
12301         (sc_prohibit_quotearg_without_use)
12302         (sc_prohibit_quote_without_use)
12303         (sc_prohibit_long_options_without_use)
12304         (sc_prohibit_inttostr_without_use)
12305         (sc_prohibit_ignore_value_without_use)
12306         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
12307         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
12308         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
12309         (sc_prohibit_hash_pjw_without_use)
12310         (sc_prohibit_safe_read_without_use)
12311         (sc_prohibit_argmatch_without_use)
12312         (sc_prohibit_canonicalize_without_use)
12313         (sc_prohibit_root_dev_ino_without_use)
12314         (sc_prohibit_openat_without_use)
12315         (sc_prohibit_c_ctype_without_use)
12316         (sc_prohibit_signal_without_use)
12317         (sc_prohibit_stdio--_without_use)
12318         (sc_prohibit_stdio-safer_without_use)
12319         (sc_prohibit_strings_without_use)
12320         (sc_prohibit_intprops_without_use)
12321         (sc_prohibit_stddef_without_use)
12322         (sc_prohibit_xfreopen_without_use): Update clients.
12323
12324 2011-06-24  Jim Meyering  <meyering@redhat.com>
12325
12326         syntax-check: keep one maint.mk rule in sync with its header
12327         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
12328         of the bug Eric has just fixed, with today's commit 25e4c2ec.
12329         I prefer to avoid temporary files here, so use <(...), but that
12330         is not supported by /bin/sh, so...
12331         (SHELL): Define to /bin/bash.
12332
12333 2011-06-24  Eric Blake  <eblake@redhat.com>
12334
12335         maint.mk: update sc_prohibit_intprops_without_use
12336         * top/maint.mk (_intprops_names): Match recent changes.
12337
12338 2011-06-24  Bruno Haible  <bruno@clisp.org>
12339
12340         strerror-override: No-op tweak.
12341         * lib/strerror-override.h (strerror_override): Reorder conditions,
12342         for consistency with lib/strerror-override.c.
12343
12344 2011-06-23  Eric Blake  <eblake@redhat.com>
12345
12346         maint.mk: test further PATH_MAX issues
12347         * top/maint.mk (sc_prohibit_path_max_array): Rename...
12348         (sc_prohibit_path_max_allocation): ...and also test alloca.
12349         Suggested by Jim Meyering.
12350
12351 2011-06-22  Eric Blake  <eblake@redhat.com>
12352
12353         maint.mk: add syntax-check to avoid char[PATH_MAX]
12354         * top/maint.mk (sc_prohibit_path_max_array): New rule.
12355
12356         stat: be robust to PATH_MAX definition
12357         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
12358         * modules/stat (Depends-on): Add verify.
12359
12360         link: work around IRIX bug
12361         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
12362         * lib/link.c (rpl_link): Work around it.
12363         * tests/test-link.h (test_link): Enhance test.
12364         * doc/posix-functions/link.texi (link): Document the bug.
12365
12366         getopt: silence clang warning
12367         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
12368         dereference.
12369         Reported by Gustavo Martin Domato.
12370
12371 2011-06-22  Jim Meyering  <meyering@redhat.com>
12372
12373         bootstrap: do not insert a blank line into each .gitignore file
12374         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
12375
12376 2011-06-21  Eric Blake  <eblake@redhat.com>
12377
12378         perror: test for output mismatch
12379         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
12380         perror on IRIX.
12381
12382         strerror_r: fix OpenBSD behavior on out-of-range
12383         * lib/strerror_r.c (strerror_r): Always use maximal string.
12384         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12385
12386         strerror_r: fix OpenBSD behavior on 0
12387         * lib/strerror-override.c (strerror_override): Also override 0
12388         when needed.
12389         * lib/strerror-override.h (strerror_override): Likewise.
12390         * lib/strerror.c (strerror): Simplify, now that 0 override is done
12391         earlier.
12392         * lib/strerror_r.c (strerror_r): Likewise.
12393         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
12394         behavior...
12395         (gl_FUNC_STRERROR_0): ...into new macro.
12396         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
12397         is overridden.
12398         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
12399         * modules/strerror-override (Files): Add strerror.m4.
12400         (configure.ac): Also provide override for 0 when needed.
12401         * doc/posix-functions/strerror.texi (strerror): Document this.
12402         * doc/posix-functions/perror.texi (perror): Likewise.
12403
12404         perror: adjust array size
12405         * modules/perror (Depends-on): Add strerror-override.
12406         * lib/perror.c (perror): Use it to avoid magic number.
12407
12408         strerror-override: reduce size
12409         * lib/strerror-override.c (strerror_override): Use fewer lines.
12410
12411 2011-06-20  Bruno Haible  <bruno@clisp.org>
12412
12413         pathmax: Ensure correct value for PATH_MAX on HP-UX.
12414         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
12415
12416 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12417
12418         alloca: port to compilers that can optimize like GCC 4.6.0
12419         * lib/alloca.c (find_stack_direction): New signature, taken from
12420         Autoconf git.  This works with GCC 4.6.0.  This code should never
12421         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
12422         be used with other compilers that optimize as well as GCC 4.6.0 does.
12423         (alloca): Adjust to new signature.
12424         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
12425         New macro, which patches Autoconf in a similar way.
12426
12427         c-stack: stop worrying about stack direction
12428         * lib/c-stack.c (find_stack_direction): Remove.
12429         (segv_handler): Don't worry about stack direction growth, as it's
12430         too much of a pain to configure this correctly, given how compilers
12431         are optimizing-away our stack-growth detection code.  Instead, assume
12432         that any access to just before or just after the stack is OK.
12433         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12434         Don't require AC_FUNC_ALLOCA; no longer needed.
12435
12436 2011-06-20  Eric Blake  <eblake@redhat.com>
12437
12438         test-stat: don't allocate PATH_MAX bytes
12439         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
12440         PATH_MAX-sized buffer.
12441         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
12442         * modules/stat-tests (Depends-on): Likewise.
12443         * tests/test-fstatat.c (includes): Drop pathmax.h.
12444         * tests/test-stat.c (includes): Likewise.
12445         Reported by Bruno Haible.
12446
12447 2011-06-20  Bruno Haible  <bruno@clisp.org>
12448
12449         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
12450         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
12451         * lib/float.c: New file.
12452         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
12453         REPLACE_FLOAT_LDBL.
12454         * modules/float (Files): Add lib/float.c.
12455         (configure.ac): Invoke AC_LIBOBJ.
12456         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
12457
12458 2011-06-20  Bruno Haible  <bruno@clisp.org>
12459
12460         Tests for module 'float'.
12461         * modules/float-tests: New file.
12462         * tests/test-float.c: New file.
12463
12464 2011-06-19  Bruno Haible  <bruno@clisp.org>
12465
12466         isinf: Coding style.
12467         * lib/isinf.c: Use GNU coding style.
12468
12469 2011-06-19  Bruno Haible  <bruno@clisp.org>
12470
12471         linkat test: Avoid test failure on AIX 7.1.
12472         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
12473         * tests/test-link.h (test_link): Likewise.
12474
12475 2011-06-19  Bruno Haible  <bruno@clisp.org>
12476
12477         pread test: Avoid test failure on OpenBSD 4.9.
12478         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
12479
12480 2011-06-19  Bruno Haible  <bruno@clisp.org>
12481
12482         sprintf-posix: Fix test failure on AIX 7.1.
12483         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
12484         * doc/posix-functions/dprintf.texi: Mention limited precision problem
12485         on AIX.
12486         * doc/posix-functions/fprintf.texi: Likewise.
12487         * doc/posix-functions/printf.texi: Likewise.
12488         * doc/posix-functions/snprintf.texi: Likewise.
12489         * doc/posix-functions/sprintf.texi: Likewise.
12490         * doc/posix-functions/vdprintf.texi: Likewise.
12491         * doc/posix-functions/vfprintf.texi: Likewise.
12492         * doc/posix-functions/vprintf.texi: Likewise.
12493         * doc/posix-functions/vsnprintf.texi: Likewise.
12494         * doc/posix-functions/vsprintf.texi: Likewise.
12495
12496 2011-06-19  Bruno Haible  <bruno@clisp.org>
12497
12498         roundl-ieee: Fix test failure on AIX 7.1.
12499         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
12500         * doc/posix-functions/roundl.texi: Mention problem with negative
12501         arguments.
12502
12503 2011-06-19  Bruno Haible  <bruno@clisp.org>
12504
12505         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12506         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
12507         * doc/posix-functions/round.texi: Mention problem with negative
12508         arguments.
12509         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
12510
12511 2011-06-19  Bruno Haible  <bruno@clisp.org>
12512
12513         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
12514         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
12515         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
12516         * doc/posix-functions/roundf.texi: Mention problem with negative
12517         arguments.
12518         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
12519
12520 2011-06-19  Bruno Haible  <bruno@clisp.org>
12521
12522         ceilf-ieee: Work around bug on MacOS X 10.5.
12523         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
12524
12525         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
12526         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
12527         IEEE compliant, avoid compiler optimizations.
12528         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12529         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12530         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12531         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12532         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12533         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12534         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12535         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12536         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12537         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12538
12539 2011-06-19  Bruno Haible  <bruno@clisp.org>
12540
12541         ceilf-ieee: Work around bug on AIX 7.1.
12542         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
12543         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
12544
12545 2011-06-19  Bruno Haible  <bruno@clisp.org>
12546
12547         ceil-ieee: Work around bug on AIX 7.1.
12548         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
12549         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
12550
12551 2011-06-18  Bruno Haible  <bruno@clisp.org>
12552
12553         fsync test: Avoid test failure on MacOS X and AIX.
12554         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
12555         EINVAL.
12556
12557 2011-06-18  Bruno Haible  <bruno@clisp.org>
12558
12559         openat, fdopendir tests: Fix link errors.
12560         * modules/openat-tests (Depends-on): Add progname.
12561         * modules/fdopendir-tests (Depends-on): Likewise.
12562         * tests/test-fchownat.c: Include progname.h.
12563         (main): Call set_program_name.
12564         * tests/test-fstatat.c: Include progname.h.
12565         (main): Call set_program_name.
12566         * tests/test-mkdirat.c: Include progname.h.
12567         (main): Call set_program_name.
12568         * tests/test-openat.c: Include progname.h.
12569         (main): Call set_program_name.
12570         * tests/test-unlinkat.c: Include progname.h.
12571         (main): Call set_program_name.
12572         * tests/test-fdopendir.c: Include progname.h.
12573         (main): Call set_program_name.
12574
12575 2011-06-18  Bruno Haible  <bruno@clisp.org>
12576
12577         Doc update.
12578         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
12579         HP-UX.
12580         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
12581
12582 2011-06-18  Bruno Haible  <bruno@clisp.org>
12583
12584         getcwd tests: Avoid compilation error on HP-UX 11.31.
12585         * modules/getcwd-tests (Depends-on): Add pathmax.
12586         * tests/test-getcwd.c: Include pathmax.h.
12587
12588 2011-06-18  Bruno Haible  <bruno@clisp.org>
12589
12590         isfinite, isinf: Fix link error on AIX 6 and 7.
12591         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
12592         needed, also test the macro with a 'float' argument.
12593         * m4/isinf.m4 (gl_ISINF): Likewise.
12594
12595 2011-06-18  Bruno Haible  <bruno@clisp.org>
12596
12597         getloadavg: Don't clobber LIBS. Regression from previous commit.
12598         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
12599         AC_CHECK_LIB from here...
12600         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
12601         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
12602         gl_func_getloadavg_done.
12603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12604
12605 2011-06-18  Bruno Haible  <bruno@clisp.org>
12606
12607         clean-temp: Improve documentation.
12608         * lib/clean-temp.h: Explain better how to use this module.
12609         Reported by John Darrington <john@darrington.wattle.id.au>.
12610
12611 2011-06-17  Bruno Haible  <bruno@clisp.org>
12612
12613         pread, pwrite: Avoid cc warning on AIX.
12614         * lib/unistd.in.h (pread): Undefine before defining as a macro.
12615         (pwrite): Likewise.
12616
12617 2011-06-17  Bruno Haible  <bruno@clisp.org>
12618
12619         spawn-pipe tests: Fix link error.
12620         * tests/test-spawn-pipe-child.c: Undefine fprintf.
12621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12622
12623 2011-06-17  Bruno Haible  <bruno@clisp.org>
12624
12625         Tests: Remove unnecessary dependency.
12626         * modules/canonicalize-tests (Depends-on): Remove progname.
12627         * modules/chown-tests (Depends-on): Likewise.
12628         * modules/dirname-tests (Depends-on): Likewise.
12629         * modules/fdopendir-tests (Depends-on): Likewise.
12630         * modules/fdutimensat-tests (Depends-on): Likewise.
12631         * modules/hash-tests (Depends-on): Likewise.
12632         * modules/lchown-tests (Depends-on): Likewise.
12633         * modules/linkat-tests (Depends-on): Likewise.
12634         * modules/renameat-tests (Depends-on): Likewise.
12635         * modules/spawn-pipe-tests (Depends-on): Likewise.
12636         * modules/utimensat-tests (Depends-on): Likewise.
12637
12638 2011-06-17  Bruno Haible  <bruno@clisp.org>
12639
12640         spawn-pipe tests: Fix link error.
12641         * tests/test-spawn-pipe-child.c: Undefine fflush.
12642
12643 2011-06-17  Bruno Haible  <bruno@clisp.org>
12644
12645         Fix tests link errors.
12646         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
12647         * modules/chown-tests (Makefile.am): Don't link test-chown with
12648         LIBINTL.
12649         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
12650         LIBINTL.
12651         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
12652         LIBINTL.
12653         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
12654         LIBINTL.
12655
12656 2011-06-16  Bruno Haible  <bruno@clisp.org>
12657
12658         crypto/gc-sha1: Fix recent regression.
12659         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
12660         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
12661
12662         crypto/gc-md5: Fix recent regression.
12663         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
12664
12665         crypto/gc-md4: Fix recent regression.
12666         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
12667         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
12668
12669         crypto/gc-arctwo: Fix recent regression.
12670         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
12671         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
12672
12673         crypto/gc-rijndael: Fix recent regression.
12674         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
12675         (configure.ac): Invoke AC_LIBOBJ here.
12676         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
12677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12678
12679         crypto/gc-hmac-sha1: Fix recent regression.
12680         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
12681         (configure.ac): Invoke AC_LIBOBJ here.
12682         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
12683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12684
12685         crypto/gc-hmac-md5: Fix recent regression.
12686         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
12687         (configure.ac): Invoke AC_LIBOBJ here.
12688         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
12689         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12690
12691         crypto/gc-des: Fix recent regression.
12692         * modules/crypto/gc-des (Files): Remove m4/des.m4.
12693         (configure.ac): Invoke AC_LIBOBJ here.
12694         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
12695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12696
12697         crypto/gc-arcfour: Fix recent regression.
12698         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
12699         (configure.ac): Invoke AC_LIBOBJ here.
12700         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
12701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12702
12703 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
12706         After the 2011-05-21 change, this macro requires
12707         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
12708         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
12709
12710 2011-06-16  Bruno Haible  <bruno@clisp.org>
12711
12712         fprintftime: Move AC_LIBOBJ invocations to module description.
12713         * m4/fprintftime.m4: Remove file.
12714         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
12715         (configure.ac): Remove gl_FPRINTFTIME call.
12716         (Makefile.am): Augment lib_SOURCES.
12717         Reported by Jim Meyering.
12718
12719 2011-06-16  Bruno Haible  <bruno@clisp.org>
12720
12721         tmpfile-safer: Finish 2011-05-23 commit.
12722         * m4/stdio-safer.m4: Really remove file.
12723         Reported by Jim Meyering.
12724
12725 2011-06-16  Bruno Haible  <bruno@clisp.org>
12726
12727         syntax-check: Fix typo.
12728         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
12729         printf-posix.m4.
12730         Reported by Jim Meyering.
12731
12732 2011-06-13  Jim Meyering  <meyering@redhat.com>
12733
12734         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
12735         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
12736
12737 2011-05-23  Bruno Haible  <bruno@clisp.org>
12738
12739         yesno: Move AC_LIBOBJ invocations to module description.
12740         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
12741         * modules/yesno (Makefile.am): Augment lib_SOURCES.
12742
12743 2011-05-23  Bruno Haible  <bruno@clisp.org>
12744
12745         xstrtol: Move AC_LIBOBJ invocations to module description.
12746         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
12747         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
12748
12749 2011-05-23  Bruno Haible  <bruno@clisp.org>
12750
12751         xstrtold: Move AC_LIBOBJ invocations to module description.
12752         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
12753         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
12754
12755 2011-05-23  Bruno Haible  <bruno@clisp.org>
12756
12757         xstrtod: Move AC_LIBOBJ invocations to module description.
12758         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
12759         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
12760
12761 2011-05-23  Bruno Haible  <bruno@clisp.org>
12762
12763         xnanosleep: Move AC_LIBOBJ invocations to module description.
12764         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
12765         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
12766
12767 2011-05-23  Bruno Haible  <bruno@clisp.org>
12768
12769         xgetcwd: Move AC_LIBOBJ invocations to module description.
12770         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
12771         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
12772
12773 2011-05-23  Bruno Haible  <bruno@clisp.org>
12774
12775         xalloc: Move AC_LIBOBJ invocations to module description.
12776         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
12777         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
12778
12779 2011-05-23  Bruno Haible  <bruno@clisp.org>
12780
12781         write-any-file: Move AC_LIBOBJ invocations to module description.
12782         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
12783         invocation.
12784         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
12785
12786 2011-05-23  Bruno Haible  <bruno@clisp.org>
12787
12788         utimens: Move AC_LIBOBJ invocations to module description.
12789         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
12790         * modules/utimens (Makefile.am): Augment lib_SOURCES.
12791
12792 2011-05-23  Bruno Haible  <bruno@clisp.org>
12793
12794         utimecmp: Move AC_LIBOBJ invocations to module description.
12795         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
12796         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
12797
12798 2011-05-23  Bruno Haible  <bruno@clisp.org>
12799
12800         userspec: Move AC_LIBOBJ invocations to module description.
12801         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
12802         * modules/userspec (Makefile.am): Augment lib_SOURCES.
12803
12804 2011-05-23  Bruno Haible  <bruno@clisp.org>
12805
12806         unlinkdir: Move AC_LIBOBJ invocations to module description.
12807         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12808         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12809
12810 2011-05-23  Bruno Haible  <bruno@clisp.org>
12811
12812         unistd-safer: Move AC_LIBOBJ invocations to module description.
12813         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12814         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12815
12816 2011-05-23  Bruno Haible  <bruno@clisp.org>
12817
12818         tempname: Move AC_LIBOBJ invocations to module description.
12819         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12820         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12821
12822 2011-05-23  Bruno Haible  <bruno@clisp.org>
12823
12824         strftime: Move AC_LIBOBJ invocations to module description.
12825         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12826         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12827
12828 2011-05-23  Bruno Haible  <bruno@clisp.org>
12829
12830         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12831         * m4/stdlib-safer.m4: Remove file.
12832         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12833         (configure.ac): Remove gl_STDLIB_SAFER call.
12834         (Makefile.am): Augment lib_SOURCES.
12835
12836 2011-05-23  Bruno Haible  <bruno@clisp.org>
12837
12838         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12839         * m4/stdio-safer.m4: Remove file.
12840         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12841         (configure.ac): Remove gl_TMPFILE_SAFER call.
12842         (Makefile.am): Augment lib_SOURCES.
12843
12844 2011-05-23  Bruno Haible  <bruno@clisp.org>
12845
12846         popen-safer: Move AC_LIBOBJ invocations to module description.
12847         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12848         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12849         (configure.ac): Remove gl_POPEN_SAFER call.
12850         (Makefile.am): Augment lib_SOURCES.
12851
12852 2011-05-23  Bruno Haible  <bruno@clisp.org>
12853
12854         freopen-safer: Move AC_LIBOBJ invocations to module description.
12855         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12856         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12857         (configure.ac): Remove gl_FREOPEN_SAFER call.
12858         (Makefile.am): Augment lib_SOURCES.
12859
12860 2011-05-23  Bruno Haible  <bruno@clisp.org>
12861
12862         fopen-safer: Move AC_LIBOBJ invocations to module description.
12863         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12864         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12865         (configure.ac): Remove gl_FOPEN_SAFER call.
12866         (Makefile.am): Augment lib_SOURCES.
12867
12868 2011-05-23  Bruno Haible  <bruno@clisp.org>
12869
12870         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12871         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12872         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12873
12874 2011-05-23  Bruno Haible  <bruno@clisp.org>
12875
12876         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12877         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12878         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12879
12880 2011-05-23  Bruno Haible  <bruno@clisp.org>
12881
12882         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12883         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12884         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12885
12886 2011-05-23  Bruno Haible  <bruno@clisp.org>
12887
12888         settime: Move AC_LIBOBJ invocations to module description.
12889         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12890         * modules/settime (Makefile.am): Augment lib_SOURCES.
12891
12892 2011-05-23  Bruno Haible  <bruno@clisp.org>
12893
12894         savedir: Move AC_LIBOBJ invocations to module description.
12895         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12896         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12897
12898 2011-05-23  Bruno Haible  <bruno@clisp.org>
12899
12900         save-cwd: Move AC_LIBOBJ invocations to module description.
12901         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12902         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12903
12904 2011-05-23  Bruno Haible  <bruno@clisp.org>
12905
12906         same: Move AC_LIBOBJ invocations to module description.
12907         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12908         * modules/same (Makefile.am): Augment lib_SOURCES.
12909
12910 2011-05-23  Bruno Haible  <bruno@clisp.org>
12911
12912         safe-write: Move AC_LIBOBJ invocations to module description.
12913         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12914         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12915         instead of gl_SAFE_WRITE.
12916         (Makefile.am): Augment lib_SOURCES.
12917
12918 2011-05-23  Bruno Haible  <bruno@clisp.org>
12919
12920         safe-read: Move AC_LIBOBJ invocations to module description.
12921         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12922         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12923         of gl_SAFE_READ.
12924         (Makefile.am): Augment lib_SOURCES.
12925
12926 2011-05-23  Bruno Haible  <bruno@clisp.org>
12927
12928         safe-alloc: Move AC_LIBOBJ invocations to module description.
12929         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12930         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12931
12932 2011-05-23  Bruno Haible  <bruno@clisp.org>
12933
12934         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12935         * m4/rijndael.m4: Remove file.
12936         * modules/crypto/rijndael (Files): Remove it.
12937         (configure.ac): Remove gl_RIJNDAEL call.
12938         (Makefile.am): Augment lib_SOURCES.
12939
12940 2011-05-23  Bruno Haible  <bruno@clisp.org>
12941
12942         readtokens: Move AC_LIBOBJ invocations to module description.
12943         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12944         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12945
12946 2011-05-23  Bruno Haible  <bruno@clisp.org>
12947
12948         read-file: Move AC_LIBOBJ invocations to module description.
12949         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12950         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12951         of gl_FUNC_READ_FILE.
12952         (Makefile.am): Augment lib_SOURCES.
12953
12954 2011-05-23  Bruno Haible  <bruno@clisp.org>
12955
12956         quotearg: Move AC_LIBOBJ invocations to module description.
12957         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12958         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12959
12960 2011-05-23  Bruno Haible  <bruno@clisp.org>
12961
12962         quote: Move AC_LIBOBJ invocations to module description.
12963         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12964         * modules/quote (Makefile.am): Augment lib_SOURCES.
12965
12966 2011-05-23  Bruno Haible  <bruno@clisp.org>
12967
12968         posixver: Move AC_LIBOBJ invocations to module description.
12969         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12970         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12971
12972 2011-05-23  Bruno Haible  <bruno@clisp.org>
12973
12974         posixtm: Move AC_LIBOBJ invocations to module description.
12975         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12976         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12977
12978 2011-05-23  Bruno Haible  <bruno@clisp.org>
12979
12980         physmem: Move AC_LIBOBJ invocations to module description.
12981         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12982         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12983
12984 2011-05-23  Bruno Haible  <bruno@clisp.org>
12985
12986         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12987         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12988         invocation.
12989         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12990
12991 2011-05-23  Bruno Haible  <bruno@clisp.org>
12992
12993         mpsort: Move AC_LIBOBJ invocations to module description.
12994         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12995         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12996
12997 2011-05-23  Bruno Haible  <bruno@clisp.org>
12998
12999         modechange: Move AC_LIBOBJ invocations to module description.
13000         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
13001         * modules/modechange (Makefile.am): Augment lib_SOURCES.
13002
13003 2011-05-23  Bruno Haible  <bruno@clisp.org>
13004
13005         mkdir-p: Move AC_LIBOBJ invocations to module description.
13006         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
13007         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
13008
13009 2011-05-23  Bruno Haible  <bruno@clisp.org>
13010
13011         mkancesdirs: Move AC_LIBOBJ invocations to module description.
13012         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
13013         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
13014
13015 2011-05-23  Bruno Haible  <bruno@clisp.org>
13016
13017         mgetgroups: Move AC_LIBOBJ invocations to module description.
13018         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
13019         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
13020
13021 2011-05-23  Bruno Haible  <bruno@clisp.org>
13022
13023         memxor: Move AC_LIBOBJ invocations to module description.
13024         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
13025         * modules/memxor (Makefile.am): Augment lib_SOURCES.
13026
13027 2011-05-23  Bruno Haible  <bruno@clisp.org>
13028
13029         memcoll: Move AC_LIBOBJ invocations to module description.
13030         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
13031         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
13032
13033 2011-05-23  Bruno Haible  <bruno@clisp.org>
13034
13035         memcasecmp: Move AC_LIBOBJ invocations to module description.
13036         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
13037         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
13038
13039 2011-05-23  Bruno Haible  <bruno@clisp.org>
13040
13041         crypto/md5: Move AC_LIBOBJ invocations to module description.
13042         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
13043         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
13044
13045 2011-05-23  Bruno Haible  <bruno@clisp.org>
13046
13047         crypto/md4: Move AC_LIBOBJ invocations to module description.
13048         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
13049         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
13050
13051 2011-05-23  Bruno Haible  <bruno@clisp.org>
13052
13053         crypto/md2: Move AC_LIBOBJ invocations to module description.
13054         * m4/md2.m4: Remove file.
13055         * modules/crypto/md2 (Files): Remove it.
13056         (configure.ac): Remove gl_MD2 call.
13057         (Makefile.am): Augment lib_SOURCES.
13058
13059 2011-05-23  Bruno Haible  <bruno@clisp.org>
13060
13061         long-options: Move AC_LIBOBJ invocations to module description.
13062         * m4/long-options.m4: Remove file.
13063         * modules/long-options (Files): Remove it.
13064         (configure.ac): Remove gl_LONG_OPTIONS call.
13065         (Makefile.am): Augment lib_SOURCES.
13066
13067 2011-05-23  Bruno Haible  <bruno@clisp.org>
13068
13069         i-ring: Move AC_LIBOBJ invocations to module description.
13070         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
13071         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
13072
13073 2011-05-23  Bruno Haible  <bruno@clisp.org>
13074
13075         idcache: Move AC_LIBOBJ invocations to module description.
13076         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
13077         * modules/idcache (Makefile.am): Augment lib_SOURCES.
13078
13079 2011-05-23  Bruno Haible  <bruno@clisp.org>
13080
13081         human: Move AC_LIBOBJ invocations to module description.
13082         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
13083         * modules/human (Makefile.am): Augment lib_SOURCES.
13084
13085 2011-05-23  Bruno Haible  <bruno@clisp.org>
13086
13087         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
13088         * m4/hmac-sha1.m4: Remove file.
13089         * modules/crypto/hmac-sha1 (Files): Remove it.
13090         (configure.ac): Remove gl_HMAC_SHA1 call.
13091         (Makefile.am): Augment lib_SOURCES.
13092
13093 2011-05-23  Bruno Haible  <bruno@clisp.org>
13094
13095         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
13096         * m4/hmac-md5.m4: Remove file.
13097         * modules/crypto/hmac-md5 (Files): Remove it.
13098         (configure.ac): Remove gl_HMAC_MD5 call.
13099         (Makefile.am): Augment lib_SOURCES.
13100
13101 2011-05-23  Bruno Haible  <bruno@clisp.org>
13102
13103         hash: Move AC_LIBOBJ invocations to module description.
13104         * m4/hash.m4: Remove file.
13105         * modules/hash (Files): Remove it.
13106         (configure.ac): Remove gl_HASH call.
13107         (Makefile.am): Augment lib_SOURCES.
13108
13109 2011-05-23  Bruno Haible  <bruno@clisp.org>
13110
13111         hard-locale: Move AC_LIBOBJ invocations to module description.
13112         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
13113         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
13114
13115 2011-05-23  Bruno Haible  <bruno@clisp.org>
13116
13117         getugroups: Move AC_LIBOBJ invocations to module description.
13118         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
13119         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
13120
13121 2011-05-23  Bruno Haible  <bruno@clisp.org>
13122
13123         gettime: Move AC_LIBOBJ invocations to module description.
13124         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
13125         * modules/gettime (Makefile.am): Augment lib_SOURCES.
13126
13127 2011-05-23  Bruno Haible  <bruno@clisp.org>
13128
13129         getndelim2: Move AC_LIBOBJ invocations to module description.
13130         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
13131         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
13132
13133 2011-05-23  Bruno Haible  <bruno@clisp.org>
13134
13135         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
13136         * m4/gc-pbkdf2-sha1.m4: Remove file.
13137         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
13138         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
13139         (Makefile.am): Augment lib_SOURCES.
13140
13141 2011-05-23  Bruno Haible  <bruno@clisp.org>
13142
13143         fts: Move AC_LIBOBJ invocations to module description.
13144         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
13145         * modules/fts (configure.ac): ... to here.
13146
13147 2011-05-23  Bruno Haible  <bruno@clisp.org>
13148
13149         file-type: Move AC_LIBOBJ invocations to module description.
13150         * m4/file-type.m4: Remove file.
13151         * modules/file-type (Files): Remove it.
13152         (configure.ac): Remove gl_FILE_TYPE call.
13153         (Makefile.am): Augment lib_SOURCES.
13154
13155 2011-05-23  Bruno Haible  <bruno@clisp.org>
13156
13157         filenamecat*: Respect rules for use of AC_LIBOBJ.
13158         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
13159         Remove AC_LIBOBJ invocation.
13160         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
13161         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
13162
13163 2011-05-23  Bruno Haible  <bruno@clisp.org>
13164
13165         filemode: Move AC_LIBOBJ invocations to module description.
13166         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
13167         * modules/filemode (Makefile.am): Augment lib_SOURCES.
13168
13169 2011-05-23  Bruno Haible  <bruno@clisp.org>
13170
13171         openat-safer: Move AC_LIBOBJ invocations to module description.
13172         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
13173         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
13174
13175 2011-05-23  Bruno Haible  <bruno@clisp.org>
13176
13177         fcntl-safer: Move AC_LIBOBJ invocations to module description.
13178         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
13179         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
13180
13181 2011-05-23  Bruno Haible  <bruno@clisp.org>
13182
13183         exclude: Move AC_LIBOBJ invocations to module description.
13184         * m4/exclude.m4: Remove file.
13185         * modules/exclude (Files): Remove it.
13186         (configure.ac): Remove gl_EXCLUDE call.
13187         (Makefile.am): Augment lib_SOURCES.
13188
13189 2011-05-23  Bruno Haible  <bruno@clisp.org>
13190
13191         dirname*: Respect rules for use of AC_LIBOBJ.
13192         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
13193         invocations.
13194         * modules/dirname (Makefile.am): Augment lib_SOURCES.
13195         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
13196
13197 2011-05-23  Bruno Haible  <bruno@clisp.org>
13198
13199         dirent-safer: Move AC_LIBOBJ invocations to module description.
13200         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
13201         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
13202
13203 2011-05-23  Bruno Haible  <bruno@clisp.org>
13204
13205         crypto/des: Move AC_LIBOBJ invocations to module description.
13206         * m4/des.m4: Remove file.
13207         * modules/crypto/des (Files): Remove it.
13208         (configure.ac): Remove gl_DES call.
13209         (Makefile.am): Augment lib_SOURCES.
13210
13211 2011-05-23  Bruno Haible  <bruno@clisp.org>
13212
13213         cycle-check: Move AC_LIBOBJ invocations to module description.
13214         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
13215         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
13216
13217 2011-05-23  Bruno Haible  <bruno@clisp.org>
13218
13219         c-strtold: Move AC_LIBOBJ invocations to module description.
13220         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
13221         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
13222
13223 2011-05-23  Bruno Haible  <bruno@clisp.org>
13224
13225         c-strtod: Move AC_LIBOBJ invocations to module description.
13226         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
13227         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
13228
13229 2011-05-23  Bruno Haible  <bruno@clisp.org>
13230
13231         crc: Move AC_LIBOBJ invocations to module description.
13232         * m4/crc.m4: Remove file.
13233         * modules/crc (Files): Remove it.
13234         (configure.ac): Remove gl_CRC call.
13235         (Makefile.am): Augment lib_SOURCES.
13236
13237 2011-05-23  Bruno Haible  <bruno@clisp.org>
13238
13239         close-stream: Move AC_LIBOBJ invocations to module description.
13240         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
13241         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
13242
13243 2011-05-23  Bruno Haible  <bruno@clisp.org>
13244
13245         closeout: Move AC_LIBOBJ invocations to module description.
13246         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
13247         * modules/closeout (Makefile.am): Augment lib_SOURCES.
13248
13249 2011-05-23  Bruno Haible  <bruno@clisp.org>
13250
13251         closein: Move AC_LIBOBJ invocations to module description.
13252         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
13253         * modules/closein (Makefile.am): Augment lib_SOURCES.
13254
13255 2011-05-23  Bruno Haible  <bruno@clisp.org>
13256
13257         cloexec: Move AC_LIBOBJ invocations to module description.
13258         * m4/cloexec.m4: Remove file.
13259         * modules/cloexec (Files): Remove it.
13260         (configure.ac): Remove gl_CLOEXEC call.
13261         (Makefile.am): Augment lib_SOURCES.
13262
13263 2011-05-23  Bruno Haible  <bruno@clisp.org>
13264
13265         check-version: Move AC_LIBOBJ invocations to module description.
13266         * m4/check-version.m4: Remove file.
13267         * modules/check-version (Files): Remove it.
13268         (configure.ac): Remove gl_CHECK_VERSION call.
13269         (Makefile.am): Augment lib_SOURCES.
13270
13271 2011-05-23  Bruno Haible  <bruno@clisp.org>
13272
13273         chdir-safer: Move AC_LIBOBJ invocations to module description.
13274         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
13275         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
13276
13277 2011-05-23  Bruno Haible  <bruno@clisp.org>
13278
13279         canonicalize: Move AC_LIBOBJ invocations to module description.
13280         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
13281         AC_LIBOBJ invocation.
13282         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
13283
13284 2011-05-23  Bruno Haible  <bruno@clisp.org>
13285
13286         canon-host: Move AC_LIBOBJ invocations to module description.
13287         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
13288         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
13289         instead of gl_CANON_HOST.
13290         (Makefile.am): Augment lib_SOURCES.
13291
13292 2011-05-23  Bruno Haible  <bruno@clisp.org>
13293
13294         backupfile: Move AC_LIBOBJ invocations to module description.
13295         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
13296         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
13297
13298 2011-05-23  Bruno Haible  <bruno@clisp.org>
13299
13300         argmatch: Move AC_LIBOBJ invocations to module description.
13301         * m4/argmatch.m4: Remove file.
13302         * modules/argmatch (Files): Remove it.
13303         (configure.ac): Remove gl_ARGMATCH call.
13304         (Makefile.am): Augment lib_SOURCES.
13305
13306 2011-05-23  Bruno Haible  <bruno@clisp.org>
13307
13308         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
13309         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
13310         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
13311
13312 2011-05-23  Bruno Haible  <bruno@clisp.org>
13313
13314         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
13315         * m4/arcfour.m4: Remove file.
13316         * modules/crypto/arcfour (Files): Remove it.
13317         (configure.ac): Remove gl_ARCFOUR call.
13318         (Makefile.am): Augment lib_SOURCES.
13319
13320 2011-05-22  Bruno Haible  <bruno@clisp.org>
13321
13322         write: Move AC_LIBOBJ invocations to module description.
13323         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
13324         * modules/write (configure.ac): ... to here.
13325
13326 2011-05-22  Bruno Haible  <bruno@clisp.org>
13327
13328         wmemset: Move AC_LIBOBJ invocations to module description.
13329         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
13330         here...
13331         * modules/wmemset (configure.ac): ... to here.
13332
13333 2011-05-22  Bruno Haible  <bruno@clisp.org>
13334
13335         wmemmove: Move AC_LIBOBJ invocations to module description.
13336         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
13337         here...
13338         * modules/wmemmove (configure.ac): ... to here.
13339
13340 2011-05-22  Bruno Haible  <bruno@clisp.org>
13341
13342         wmemcpy: Move AC_LIBOBJ invocations to module description.
13343         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
13344         here...
13345         * modules/wmemcpy (configure.ac): ... to here.
13346
13347 2011-05-22  Bruno Haible  <bruno@clisp.org>
13348
13349         wmemcmp: Move AC_LIBOBJ invocations to module description.
13350         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
13351         here...
13352         * modules/wmemcmp (configure.ac): ... to here.
13353
13354 2011-05-22  Bruno Haible  <bruno@clisp.org>
13355
13356         wmemchr: Move AC_LIBOBJ invocations to module description.
13357         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
13358         here...
13359         * modules/wmemchr (configure.ac): ... to here.
13360
13361 2011-05-22  Bruno Haible  <bruno@clisp.org>
13362
13363         wcswidth: Move AC_LIBOBJ invocations to module description.
13364         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
13365         here...
13366         * modules/wcswidth (configure.ac): ... to here.
13367
13368 2011-05-22  Bruno Haible  <bruno@clisp.org>
13369
13370         wcwidth: Respect rules for use of AC_LIBOBJ.
13371         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
13372         invocation from here...
13373         * modules/wcwidth (configure.ac): ... to here.
13374         (Depends-on): Update conditions.
13375
13376 2011-05-22  Bruno Haible  <bruno@clisp.org>
13377
13378         wctype: Move AC_LIBOBJ invocations to module description.
13379         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
13380         invocation from here...
13381         * modules/wctype (configure.ac): ... to here.
13382         (Depends-on): Update conditions.
13383
13384 2011-05-22  Bruno Haible  <bruno@clisp.org>
13385
13386         wctrans: Move AC_LIBOBJ invocations to module description.
13387         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
13388         invocation from here...
13389         * modules/wctrans (configure.ac): ... to here.
13390
13391 2011-05-22  Bruno Haible  <bruno@clisp.org>
13392
13393         wctomb: Move AC_LIBOBJ invocations to module description.
13394         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
13395         invocations from here...
13396         * modules/wctomb (configure.ac): ... to here.
13397
13398 2011-05-22  Bruno Haible  <bruno@clisp.org>
13399
13400         wctob: Move AC_LIBOBJ invocations to module description.
13401         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
13402         gl_PREREQ_WCTOB invocations from here...
13403         * modules/wctob (configure.ac): ... to here.
13404         (Depends-on): Update conditions.
13405
13406 2011-05-22  Bruno Haible  <bruno@clisp.org>
13407
13408         wcsxfrm: Move AC_LIBOBJ invocations to module description.
13409         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
13410         here...
13411         * modules/wcsxfrm (configure.ac): ... to here.
13412
13413 2011-05-22  Bruno Haible  <bruno@clisp.org>
13414
13415         wcstok: Move AC_LIBOBJ invocations to module description.
13416         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
13417         * modules/wcstok (configure.ac): ... to here.
13418
13419 2011-05-22  Bruno Haible  <bruno@clisp.org>
13420
13421         wcsstr: Move AC_LIBOBJ invocations to module description.
13422         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
13423         * modules/wcsstr (configure.ac): ... to here.
13424
13425 2011-05-22  Bruno Haible  <bruno@clisp.org>
13426
13427         wcsspn: Move AC_LIBOBJ invocations to module description.
13428         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
13429         * modules/wcsspn (configure.ac): ... to here.
13430
13431 2011-05-22  Bruno Haible  <bruno@clisp.org>
13432
13433         wcsrtombs: Move AC_LIBOBJ invocations to module description.
13434         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
13435         gl_PREREQ_WCSRTOMBS invocations from here...
13436         * modules/wcsrtombs (configure.ac): ... to here.
13437
13438 2011-05-22  Bruno Haible  <bruno@clisp.org>
13439
13440         wcsrchr: Move AC_LIBOBJ invocations to module description.
13441         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
13442         here...
13443         * modules/wcsrchr (configure.ac): ... to here.
13444
13445 2011-05-22  Bruno Haible  <bruno@clisp.org>
13446
13447         wcspbrk: Move AC_LIBOBJ invocations to module description.
13448         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
13449         here...
13450         * modules/wcspbrk (configure.ac): ... to here.
13451
13452 2011-05-22  Bruno Haible  <bruno@clisp.org>
13453
13454         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
13455         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
13456         gl_PREREQ_WCSNRTOMBS invocations from here...
13457         * modules/wcsnrtombs (configure.ac): ... to here.
13458
13459 2011-05-22  Bruno Haible  <bruno@clisp.org>
13460
13461         wcsnlen: Move AC_LIBOBJ invocations to module description.
13462         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
13463         here...
13464         * modules/wcsnlen (configure.ac): ... to here.
13465
13466 2011-05-22  Bruno Haible  <bruno@clisp.org>
13467
13468         wcsncpy: Move AC_LIBOBJ invocations to module description.
13469         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
13470         here...
13471         * modules/wcsncpy (configure.ac): ... to here.
13472
13473 2011-05-22  Bruno Haible  <bruno@clisp.org>
13474
13475         wcsncmp: Move AC_LIBOBJ invocations to module description.
13476         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
13477         here...
13478         * modules/wcsncmp (configure.ac): ... to here.
13479
13480 2011-05-22  Bruno Haible  <bruno@clisp.org>
13481
13482         wcsncat: Move AC_LIBOBJ invocations to module description.
13483         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
13484         here...
13485         * modules/wcsncat (configure.ac): ... to here.
13486
13487 2011-05-22  Bruno Haible  <bruno@clisp.org>
13488
13489         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
13490         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
13491         from here...
13492         * modules/wcsncasecmp (configure.ac): ... to here.
13493
13494 2011-05-22  Bruno Haible  <bruno@clisp.org>
13495
13496         wcslen: Move AC_LIBOBJ invocations to module description.
13497         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
13498         * modules/wcslen (configure.ac): ... to here.
13499
13500 2011-05-22  Bruno Haible  <bruno@clisp.org>
13501
13502         wcsdup: Move AC_LIBOBJ invocations to module description.
13503         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
13504         * modules/wcsdup (configure.ac): ... to here.
13505
13506 2011-05-22  Bruno Haible  <bruno@clisp.org>
13507
13508         wcscspn: Move AC_LIBOBJ invocations to module description.
13509         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
13510         here...
13511         * modules/wcscspn (configure.ac): ... to here.
13512
13513 2011-05-22  Bruno Haible  <bruno@clisp.org>
13514
13515         wcscpy: Move AC_LIBOBJ invocations to module description.
13516         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
13517         * modules/wcscpy (configure.ac): ... to here.
13518
13519 2011-05-22  Bruno Haible  <bruno@clisp.org>
13520
13521         wcscoll: Move AC_LIBOBJ invocations to module description.
13522         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
13523         here...
13524         * modules/wcscoll (configure.ac): ... to here.
13525
13526 2011-05-22  Bruno Haible  <bruno@clisp.org>
13527
13528         wcscmp: Move AC_LIBOBJ invocations to module description.
13529         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
13530         * modules/wcscmp (configure.ac): ... to here.
13531
13532 2011-05-22  Bruno Haible  <bruno@clisp.org>
13533
13534         wcschr: Move AC_LIBOBJ invocations to module description.
13535         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
13536         * modules/wcschr (configure.ac): ... to here.
13537
13538 2011-05-22  Bruno Haible  <bruno@clisp.org>
13539
13540         wcscat: Move AC_LIBOBJ invocations to module description.
13541         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
13542         * modules/wcscat (configure.ac): ... to here.
13543
13544 2011-05-22  Bruno Haible  <bruno@clisp.org>
13545
13546         wcscasecmp: Move AC_LIBOBJ invocations to module description.
13547         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
13548         here...
13549         * modules/wcscasecmp (configure.ac): ... to here.
13550
13551 2011-05-22  Bruno Haible  <bruno@clisp.org>
13552
13553         wcrtomb: Move AC_LIBOBJ invocations to module description.
13554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
13555         invocations from here...
13556         * modules/wcrtomb (configure.ac): ... to here.
13557
13558 2011-05-22  Bruno Haible  <bruno@clisp.org>
13559
13560         wcpncpy: Move AC_LIBOBJ invocations to module description.
13561         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
13562         here...
13563         * modules/wcpncpy (configure.ac): ... to here.
13564
13565 2011-05-22  Bruno Haible  <bruno@clisp.org>
13566
13567         wcpcpy: Move AC_LIBOBJ invocations to module description.
13568         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
13569         * modules/wcpcpy (configure.ac): ... to here.
13570
13571 2011-05-22  Bruno Haible  <bruno@clisp.org>
13572
13573         waitpid: Move AC_LIBOBJ invocations to module description.
13574         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
13575         invocation from here...
13576         * modules/waitpid (configure.ac): ... to here.
13577
13578 2011-05-22  Bruno Haible  <bruno@clisp.org>
13579
13580         utimensat: Move AC_LIBOBJ invocations to module description.
13581         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
13582         here...
13583         * modules/utimensat (configure.ac): ... to here.
13584
13585 2011-05-22  Bruno Haible  <bruno@clisp.org>
13586
13587         usleep: Move AC_LIBOBJ invocations to module description.
13588         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
13589         here...
13590         * modules/usleep (configure.ac): ... to here.
13591
13592 2011-05-22  Bruno Haible  <bruno@clisp.org>
13593
13594         unlockpt: Move AC_LIBOBJ invocations to module description.
13595         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
13596         gl_PREREQ_UNLOCKPT invocations from here...
13597         * modules/unlockpt (configure.ac): ... to here.
13598
13599 2011-05-22  Bruno Haible  <bruno@clisp.org>
13600
13601         unlink: Respect rules for use of AC_LIBOBJ.
13602         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
13603         * modules/unlink (configure.ac): ... to here.
13604
13605 2011-05-22  Bruno Haible  <bruno@clisp.org>
13606
13607         uname: Move AC_LIBOBJ invocations to module description.
13608         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
13609         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
13610         here...
13611         * modules/uname (configure.ac): ... to here.
13612
13613 2011-05-22  Bruno Haible  <bruno@clisp.org>
13614
13615         ttyname_r: Move AC_LIBOBJ invocations to module description.
13616         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
13617         gl_PREREQ_TTYNAME_R invocations from here...
13618         * modules/ttyname_r (configure.ac): ... to here.
13619
13620 2011-05-22  Bruno Haible  <bruno@clisp.org>
13621
13622         tsearch: Move AC_LIBOBJ invocations to module description.
13623         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
13624         invocations from here...
13625         * modules/tsearch (configure.ac): ... to here.
13626
13627 2011-05-22  Bruno Haible  <bruno@clisp.org>
13628
13629         towctrans: Move AC_LIBOBJ invocations to module description.
13630         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
13631         AC_LIBOBJ invocation from here...
13632         * modules/towctrans (configure.ac): ... to here.
13633
13634 2011-05-22  Bruno Haible  <bruno@clisp.org>
13635
13636         tmpfile: Move AC_LIBOBJ invocations to module description.
13637         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
13638         invocations from here...
13639         * modules/tmpfile (configure.ac): ... to here.
13640
13641 2011-05-22  Bruno Haible  <bruno@clisp.org>
13642
13643         times: Move AC_LIBOBJ invocations to module description.
13644         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
13645         * modules/times (configure.ac): ... to here.
13646
13647 2011-05-22  Bruno Haible  <bruno@clisp.org>
13648
13649         time_r: Move AC_LIBOBJ invocations to module description.
13650         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
13651         invocations from here...
13652         * modules/time_r (configure.ac): ... to here.
13653
13654 2011-05-22  Bruno Haible  <bruno@clisp.org>
13655
13656         timegm: Move AC_LIBOBJ invocations to module description.
13657         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
13658         invocations from here...
13659         * modules/timegm (configure.ac): ... to here.
13660
13661 2011-05-22  Bruno Haible  <bruno@clisp.org>
13662
13663         tcgetsid: Move AC_LIBOBJ invocations to module description.
13664         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
13665         and gl_PREREQ_TCGETSID invocations from here...
13666         * modules/tcgetsid (configure.ac): ... to here.
13667         (Depends-on): Update conditions.
13668
13669 2011-05-22  Bruno Haible  <bruno@clisp.org>
13670
13671         symlinkat: Move AC_LIBOBJ invocations to module description.
13672         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
13673         here...
13674         * modules/symlinkat (configure.ac): ... to here.
13675
13676 2011-05-22  Bruno Haible  <bruno@clisp.org>
13677
13678         symlink: Move AC_LIBOBJ invocations to module description.
13679         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
13680         here...
13681         * modules/symlink (configure.ac): ... to here.
13682
13683 2011-05-22  Bruno Haible  <bruno@clisp.org>
13684
13685         strverscmp: Move AC_LIBOBJ invocations to module description.
13686         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
13687         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
13688         from here...
13689         * modules/strverscmp (configure.ac): ... to here.
13690
13691 2011-05-22  Bruno Haible  <bruno@clisp.org>
13692
13693         strtok_r: Move AC_LIBOBJ invocations to module description.
13694         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
13695         and gl_PREREQ_STRTOK_R invocations from here...
13696         * modules/strtok_r (configure.ac): ... to here.
13697         (Depends-on): Update conditions.
13698
13699 2011-05-22  Bruno Haible  <bruno@clisp.org>
13700
13701         strtoumax: Move AC_LIBOBJ invocations to module description.
13702         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
13703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
13704         from here...
13705         * modules/strtoumax (configure.ac): ... to here.
13706
13707 2011-05-22  Bruno Haible  <bruno@clisp.org>
13708
13709         strtoimax: Move AC_LIBOBJ invocations to module description.
13710         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
13711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
13712         from here...
13713         * modules/strtoimax (configure.ac): ... to here.
13714
13715 2011-05-22  Bruno Haible  <bruno@clisp.org>
13716
13717         strtoull: Move AC_LIBOBJ invocations to module description.
13718         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
13719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
13720         from here...
13721         * modules/strtoull (configure.ac): ... to here.
13722
13723 2011-05-22  Bruno Haible  <bruno@clisp.org>
13724
13725         strtoll: Move AC_LIBOBJ invocations to module description.
13726         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
13727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
13728         here...
13729         * modules/strtoll (configure.ac): ... to here.
13730
13731 2011-05-22  Bruno Haible  <bruno@clisp.org>
13732
13733         strtoul: Move AC_LIBOBJ invocations to module description.
13734         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
13735         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13736         * modules/strtoul (configure.ac): ... to here.
13737
13738 2011-05-22  Bruno Haible  <bruno@clisp.org>
13739
13740         strtol: Move AC_LIBOBJ invocations to module description.
13741         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
13742         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
13743         * modules/strtol (configure.ac): ... to here.
13744
13745 2011-05-22  Bruno Haible  <bruno@clisp.org>
13746
13747         strtod: Move AC_LIBOBJ invocations to module description.
13748         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
13749         invocations from here...
13750         * modules/strtod (configure.ac): ... to here.
13751
13752 2011-05-22  Bruno Haible  <bruno@clisp.org>
13753
13754         strstr*: Move AC_LIBOBJ invocations to module description.
13755         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
13756         invocations from here...
13757         * modules/strstr-simple (configure.ac): ... to here.
13758         * modules/strstr (configure.ac): ... and here.
13759
13760 2011-05-22  Bruno Haible  <bruno@clisp.org>
13761
13762         strsignal: Move AC_LIBOBJ invocations to module description.
13763         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
13764         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
13765         * modules/strsignal (configure.ac): ... to here.
13766         (Depends-on): Update conditions.
13767
13768 2011-05-22  Bruno Haible  <bruno@clisp.org>
13769
13770         strsep: Move AC_LIBOBJ invocations to module description.
13771         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
13772         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
13773         here...
13774         * modules/strsep (configure.ac): ... to here.
13775
13776 2011-05-22  Bruno Haible  <bruno@clisp.org>
13777
13778         strptime: Move AC_LIBOBJ invocations to module description.
13779         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
13780         gl_PREREQ_STRPTIME invocations from here...
13781         * modules/strptime (configure.ac): ... to here.
13782
13783 2011-05-22  Bruno Haible  <bruno@clisp.org>
13784
13785         strpbrk: Move AC_LIBOBJ invocations to module description.
13786         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
13787         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
13788         here...
13789         * modules/strpbrk (configure.ac): ... to here.
13790
13791 2011-05-22  Bruno Haible  <bruno@clisp.org>
13792
13793         strnlen: Move AC_LIBOBJ invocations to module description.
13794         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
13795         invocations from here...
13796         * modules/strnlen (configure.ac): ... to here.
13797
13798 2011-05-22  Bruno Haible  <bruno@clisp.org>
13799
13800         strndup: Move AC_LIBOBJ invocations to module description.
13801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
13802         invocations from here...
13803         * modules/strndup (configure.ac): ... to here.
13804         (Depends-on): Update conditions.
13805
13806 2011-05-22  Bruno Haible  <bruno@clisp.org>
13807
13808         strncat: Move AC_LIBOBJ invocations to module description.
13809         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13810         invocations from here...
13811         * modules/strncat (configure.ac): ... to here.
13812
13813 2011-05-22  Bruno Haible  <bruno@clisp.org>
13814
13815         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13816         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13817         invocations from here...
13818         * modules/strdup (configure.ac): ... to here.
13819         * modules/strdup-posix (configure.ac): ... and here.
13820
13821 2011-05-22  Bruno Haible  <bruno@clisp.org>
13822
13823         strcspn: Move AC_LIBOBJ invocations to module description.
13824         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13825         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13826         here...
13827         * modules/strcspn (configure.ac): ... to here.
13828
13829 2011-05-22  Bruno Haible  <bruno@clisp.org>
13830
13831         strchrnul: Move AC_LIBOBJ invocations to module description.
13832         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13833         gl_PREREQ_STRCHRNUL invocations from here...
13834         * modules/strchrnul (configure.ac): ... to here.
13835
13836 2011-05-22  Bruno Haible  <bruno@clisp.org>
13837
13838         strcasestr*: Move AC_LIBOBJ invocations to module description.
13839         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13840         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13841         * modules/strcasestr-simple (configure.ac): ... to here.
13842         * modules/strcasestr (configure.ac): ... and here.
13843
13844 2011-05-22  Bruno Haible  <bruno@clisp.org>
13845
13846         strcase: Move AC_LIBOBJ invocations to module description.
13847         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13848         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13849         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13850         gl_PREREQ_STRNCASECMP invocations from here...
13851         * modules/strcase (configure.ac): ... to here.
13852
13853 2011-05-22  Bruno Haible  <bruno@clisp.org>
13854
13855         stpncpy: Move AC_LIBOBJ invocations to module description.
13856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13857         here...
13858         * modules/stpncpy (configure.ac): ... to here.
13859
13860 2011-05-22  Bruno Haible  <bruno@clisp.org>
13861
13862         stpcpy: Move AC_LIBOBJ invocations to module description.
13863         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13865         here...
13866         * modules/stpcpy (configure.ac): ... to here.
13867
13868 2011-05-21  Bruno Haible  <bruno@clisp.org>
13869
13870         stat: Move AC_LIBOBJ invocations to module description.
13871         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13872         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13873         here...
13874         * modules/stat (configure.ac): ... to here.
13875
13876 2011-05-21  Bruno Haible  <bruno@clisp.org>
13877
13878         sleep: Move AC_LIBOBJ invocations to module description.
13879         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13880         * modules/sleep (configure.ac): ... to here.
13881
13882 2011-05-21  Bruno Haible  <bruno@clisp.org>
13883
13884         signbit: Move AC_LIBOBJ invocations to module description.
13885         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13886         * modules/signbit (configure.ac): ... to here.
13887
13888 2011-05-21  Bruno Haible  <bruno@clisp.org>
13889
13890         sigprocmask: Move AC_LIBOBJ invocations to module description.
13891         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13892         gl_PREREQ_SIGPROMASK invocations from here...
13893         * modules/sigprocmask (configure.ac): ... to here.
13894
13895 2011-05-21  Bruno Haible  <bruno@clisp.org>
13896
13897         sigaction: Move AC_LIBOBJ invocations to module description.
13898         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13899         gl_PREREQ_SIGACTION invocations from here...
13900         * modules/sigaction (configure.ac): ... to here.
13901
13902 2011-05-21  Bruno Haible  <bruno@clisp.org>
13903
13904         sig2str: Move AC_LIBOBJ invocations to module description.
13905         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13907         here...
13908         * modules/sig2str (configure.ac): ... to here.
13909
13910 2011-05-21  Bruno Haible  <bruno@clisp.org>
13911
13912         setlocale: Move AC_LIBOBJ invocations to module description.
13913         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13914         gl_PREREQ_SETLOCALE invocations from here...
13915         * modules/setlocale (configure.ac): ... to here.
13916
13917 2011-05-21  Bruno Haible  <bruno@clisp.org>
13918
13919         unsetenv: Move AC_LIBOBJ invocations to module description.
13920         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13921         and gl_PREREQ_UNSETENV invocations from here...
13922         * modules/unsetenv (configure.ac): ... to here.
13923         (Depends-on): Update.
13924
13925 2011-05-21  Bruno Haible  <bruno@clisp.org>
13926
13927         setenv: Move AC_LIBOBJ invocations to module description.
13928         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13929         here...
13930         * modules/setenv (configure.ac): ... to here.
13931
13932 2011-05-21  Bruno Haible  <bruno@clisp.org>
13933
13934         selinux-h: Move AC_LIBOBJ invocations to module description.
13935         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13936         AC_LIBOBJ invocation from here...
13937         * modules/selinux-h (configure.ac): ... to here.
13938
13939 2011-05-21  Bruno Haible  <bruno@clisp.org>
13940
13941         select: Respect rules for use of AC_LIBOBJ.
13942         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13943         here...
13944         * modules/select (configure.ac): ... to here.
13945
13946 2011-05-21  Bruno Haible  <bruno@clisp.org>
13947
13948         scandir: Move AC_LIBOBJ invocations to module description.
13949         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13950         invocations from here...
13951         * modules/scandir (configure.ac): ... to here.
13952
13953 2011-05-21  Bruno Haible  <bruno@clisp.org>
13954
13955         rpmatch: Move AC_LIBOBJ invocations to module description.
13956         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13957         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13958         here...
13959         * modules/rpmatch (configure.ac): ... to here.
13960
13961 2011-05-21  Bruno Haible  <bruno@clisp.org>
13962
13963         rmdir: Respect rules for use of AC_LIBOBJ.
13964         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13965         * modules/rmdir (configure.ac): ... to here.
13966
13967 2011-05-21  Bruno Haible  <bruno@clisp.org>
13968
13969         renameat: Move AC_LIBOBJ invocations to module description.
13970         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13971         here...
13972         * modules/renameat (configure.ac): ... to here.
13973
13974 2011-05-21  Bruno Haible  <bruno@clisp.org>
13975
13976         rename: Respect rules for use of AC_LIBOBJ.
13977         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13978         here...
13979         * modules/rename (configure.ac): ... to here.
13980
13981 2011-05-21  Bruno Haible  <bruno@clisp.org>
13982
13983         remove: Move AC_LIBOBJ invocations to module description.
13984         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13985         here...
13986         * modules/remove (configure.ac): ... to here.
13987
13988 2011-05-21  Bruno Haible  <bruno@clisp.org>
13989
13990         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13991         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13992         macro.
13993         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13994         * modules/relocatable-lib (configure.ac): ... to here.
13995         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13996         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13997
13998 2011-05-21  Bruno Haible  <bruno@clisp.org>
13999
14000         relocatable-prog: Move AC_LIBOBJ invocations to module description.
14001         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
14002         here...
14003         * modules/relocatable-prog (configure.ac): ... to here.
14004
14005 2011-05-21  Bruno Haible  <bruno@clisp.org>
14006
14007         regex: Move AC_LIBOBJ invocations to module description.
14008         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
14009         invocations from here...
14010         * modules/regex (configure.ac): ... to here.
14011
14012 2011-05-21  Bruno Haible  <bruno@clisp.org>
14013
14014         realloc-*: Move AC_LIBOBJ invocations to module description.
14015         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
14016         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
14017         AC_LIBOBJ invocations from here...
14018         * modules/realloc-gnu (configure.ac): ... to here.
14019         * modules/realloc-posix (configure.ac): ... and here.
14020
14021 2011-05-21  Bruno Haible  <bruno@clisp.org>
14022
14023         readutmp: Move AC_LIBOBJ invocations to module description.
14024         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
14025         * modules/readutmp (configure.ac): ... to here.
14026
14027 2011-05-21  Bruno Haible  <bruno@clisp.org>
14028
14029         readlinkat: Move AC_LIBOBJ invocations to module description.
14030         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
14031         here...
14032         * modules/readlinkat (configure.ac): ... to here.
14033
14034 2011-05-21  Bruno Haible  <bruno@clisp.org>
14035
14036         readlink: Move AC_LIBOBJ invocations to module description.
14037         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
14038         gl_PREREQ_READLINK invocations from here...
14039         * modules/readlink (configure.ac): ... to here.
14040
14041 2011-05-21  Bruno Haible  <bruno@clisp.org>
14042
14043         readline: Move AC_LIBOBJ invocations to module description.
14044         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
14045         gl_PREREQ_READLINE invocations from here...
14046         * modules/readline (configure.ac): ... to here.
14047
14048 2011-05-21  Bruno Haible  <bruno@clisp.org>
14049
14050         read: Move AC_LIBOBJ invocations to module description.
14051         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
14052         * modules/read (configure.ac): ... to here.
14053
14054 2011-05-21  Bruno Haible  <bruno@clisp.org>
14055
14056         rawmemchr: Move AC_LIBOBJ invocations to module description.
14057         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
14058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
14059         from here...
14060         * modules/rawmemchr (configure.ac): ... to here.
14061
14062 2011-05-21  Bruno Haible  <bruno@clisp.org>
14063
14064         random_r: Move AC_LIBOBJ invocations to module description.
14065         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
14066         gl_PREREQ_RANDOM_R invocations from here...
14067         * modules/random_r (configure.ac): ... to here.
14068
14069 2011-05-21  Bruno Haible  <bruno@clisp.org>
14070
14071         pwrite: Move AC_LIBOBJ invocations to module description.
14072         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
14073         * modules/pwrite (configure.ac): ... to here.
14074
14075 2011-05-21  Bruno Haible  <bruno@clisp.org>
14076
14077         putenv: Move AC_LIBOBJ invocations to module description.
14078         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
14079         * modules/putenv (configure.ac): ... to here.
14080
14081 2011-05-21  Bruno Haible  <bruno@clisp.org>
14082
14083         login_tty: Move AC_LIBOBJ invocations to module description.
14084         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
14085         * modules/login_tty (configure.ac): ... to here.
14086
14087 2011-05-21  Bruno Haible  <bruno@clisp.org>
14088
14089         openpty: Move AC_LIBOBJ invocations to module description.
14090         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
14091         * modules/openpty (configure.ac): ... to here.
14092
14093 2011-05-21  Bruno Haible  <bruno@clisp.org>
14094
14095         forkpty: Move AC_LIBOBJ invocations to module description.
14096         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
14097         * modules/forkpty (configure.ac): ... to here.
14098
14099 2011-05-21  Bruno Haible  <bruno@clisp.org>
14100
14101         ptsname: Move AC_LIBOBJ invocations to module description.
14102         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
14103         invocations from here...
14104         * modules/ptsname (configure.ac): ... to here.
14105
14106 2011-05-21  Bruno Haible  <bruno@clisp.org>
14107
14108         pread: Move AC_LIBOBJ invocations to module description.
14109         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
14110         * modules/pread (configure.ac): ... to here.
14111
14112 2011-05-21  Bruno Haible  <bruno@clisp.org>
14113
14114         posix_spawn*: Move AC_LIBOBJ invocations to module description.
14115         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
14116         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
14117         * modules/posix_spawn (configure.ac): ... to here.
14118         * modules/posix_spawnp (configure.ac): ... and here.
14119
14120 2011-05-21  Bruno Haible  <bruno@clisp.org>
14121
14122         popen: Move AC_LIBOBJ invocations to module description.
14123         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
14124         invocations from here...
14125         * modules/popen (configure.ac): ... to here.
14126
14127 2011-05-21  Bruno Haible  <bruno@clisp.org>
14128
14129         poll: Move AC_LIBOBJ invocations to module description.
14130         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
14131         invocations from here...
14132         * modules/poll (configure.ac): ... to here.
14133
14134 2011-05-21  Bruno Haible  <bruno@clisp.org>
14135
14136         pipe-posix: Move AC_LIBOBJ invocations to module description.
14137         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
14138         * modules/pipe-posix (configure.ac): ... to here.
14139
14140 2011-05-21  Bruno Haible  <bruno@clisp.org>
14141
14142         openat: Respect rules for use of AC_LIBOBJ.
14143         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
14144         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14145         * modules/openat (configure.ac): ... to here.
14146
14147 2011-05-21  Bruno Haible  <bruno@clisp.org>
14148
14149         obstack-printf*: Move AC_LIBOBJ invocations to module description.
14150         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
14151         invocation from here...
14152         * modules/obstack-printf (configure.ac): ... to here.
14153         * modules/obstack-printf-posix (configure.ac): ... and here.
14154
14155 2011-05-21  Bruno Haible  <bruno@clisp.org>
14156
14157         nl_langinfo: Move AC_LIBOBJ invocations to module description.
14158         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
14159         from here...
14160         * modules/nl_langinfo (configure.ac): ... to here.
14161
14162 2011-05-21  Bruno Haible  <bruno@clisp.org>
14163
14164         nanosleep: Move AC_LIBOBJ invocations to module description.
14165         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
14166         gl_PREREQ_NANOSLEEP invocations from here...
14167         * modules/nanosleep (configure.ac): ... to here.
14168
14169 2011-05-21  Bruno Haible  <bruno@clisp.org>
14170
14171         mountlist: Move AC_LIBOBJ invocations to module description.
14172         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
14173         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
14174         * modules/mountlist (configure.ac): ... to here.
14175
14176 2011-05-21  Bruno Haible  <bruno@clisp.org>
14177
14178         mktime: Respect rules for use of AC_LIBOBJ.
14179         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
14180         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
14181         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
14182         (gl_FUNC_MKTIME_INTERNAL): ... and here...
14183         * modules/mktime (configure.ac): ... to here.
14184         * modules/mktime-internal (configure.ac): ... and here.
14185         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
14186
14187 2011-05-21  Bruno Haible  <bruno@clisp.org>
14188
14189         mkstemps: Move AC_LIBOBJ invocations to module description.
14190         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
14191         here...
14192         * modules/mkstemps (configure.ac): ... to here.
14193
14194 2011-05-21  Bruno Haible  <bruno@clisp.org>
14195
14196         mkstemp: Move AC_LIBOBJ invocations to module description.
14197         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
14198         gl_PREREQ_MKSTEMP invocations from here...
14199         * modules/mkstemp (configure.ac): ... to here.
14200
14201 2011-05-21  Bruno Haible  <bruno@clisp.org>
14202
14203         mkostemps: Move AC_LIBOBJ invocations to module description.
14204         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
14205         here...
14206         * modules/mkostemps (configure.ac): ... to here.
14207
14208 2011-05-21  Bruno Haible  <bruno@clisp.org>
14209
14210         mkostemp: Move AC_LIBOBJ invocations to module description.
14211         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
14212         gl_PREREQ_MKOSTEMP invocations from here...
14213         * modules/mkostemp (configure.ac): ... to here.
14214
14215 2011-05-21  Bruno Haible  <bruno@clisp.org>
14216
14217         mknod: Move AC_LIBOBJ invocations to module description.
14218         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
14219         * modules/mknod (configure.ac): ... to here.
14220
14221 2011-05-21  Bruno Haible  <bruno@clisp.org>
14222
14223         mkfifoat: Move AC_LIBOBJ invocations to module description.
14224         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
14225         here...
14226         * modules/mkfifoat (configure.ac): ... to here.
14227
14228 2011-05-21  Bruno Haible  <bruno@clisp.org>
14229
14230         mkfifo: Respect rules for use of AC_LIBOBJ.
14231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
14232         here...
14233         * modules/mkfifo (configure.ac): ... to here.
14234
14235 2011-05-21  Bruno Haible  <bruno@clisp.org>
14236
14237         mkdtemp: Move AC_LIBOBJ invocations to module description.
14238         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
14239         invocations from here...
14240         * modules/mkdtemp (configure.ac): ... to here.
14241
14242 2011-05-21  Bruno Haible  <bruno@clisp.org>
14243
14244         mkdir: Move AC_LIBOBJ invocations to module description.
14245         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
14246         * modules/mkdir (configure.ac): ... to here.
14247
14248 2011-05-21  Bruno Haible  <bruno@clisp.org>
14249
14250         memset: Move AC_LIBOBJ invocations to module description.
14251         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
14252         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
14253         here...
14254         * modules/memset (configure.ac): ... to here.
14255
14256 2011-05-21  Bruno Haible  <bruno@clisp.org>
14257
14258         memrchr: Move AC_LIBOBJ invocations to module description.
14259         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
14260         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
14261         here...
14262         * modules/memrchr (configure.ac): ... to here.
14263
14264 2011-05-21  Bruno Haible  <bruno@clisp.org>
14265
14266         mempcpy: Move AC_LIBOBJ invocations to module description.
14267         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
14268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
14269         here...
14270         * modules/mempcpy (configure.ac): ... to here.
14271
14272 2011-05-21  Bruno Haible  <bruno@clisp.org>
14273
14274         memmove: Move AC_LIBOBJ invocations to module description.
14275         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
14276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
14277         here...
14278         * modules/memmove (configure.ac): ... to here.
14279
14280 2011-05-21  Bruno Haible  <bruno@clisp.org>
14281
14282         memmem*: Move AC_LIBOBJ invocations to module description.
14283         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
14284         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
14285         here...
14286         (gl_FUNC_MEMMEM): ... and here...
14287         * modules/memmem-simple (configure.ac): ... to here.
14288         * modules/memmem (configure.ac): ... and here.
14289
14290 2011-05-21  Bruno Haible  <bruno@clisp.org>
14291
14292         memcpy: Move AC_LIBOBJ invocations to module description.
14293         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
14294         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
14295         here...
14296         * modules/memcpy (configure.ac): ... to here.
14297
14298 2011-05-21  Bruno Haible  <bruno@clisp.org>
14299
14300         memcmp: Simplify autoconf macro.
14301         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
14302         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
14303         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
14304
14305 2011-05-21  Bruno Haible  <bruno@clisp.org>
14306
14307         memcmp: Move AC_LIBOBJ invocations to module description.
14308         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
14309         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
14310         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
14311         * modules/memcmp (configure.ac): ... to here.
14312         (Depends-on): Update conditions.
14313
14314 2011-05-21  Bruno Haible  <bruno@clisp.org>
14315
14316         memchr: Respect rules for use of AC_LIBOBJ.
14317         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
14318         invocations from here...
14319         * modules/memchr (configure.ac): ... to here.
14320
14321 2011-05-21  Bruno Haible  <bruno@clisp.org>
14322
14323         mbtowc: Move AC_LIBOBJ invocations to module description.
14324         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
14325         invocations from here...
14326         * modules/mbtowc (configure.ac): ... to here.
14327
14328 2011-05-21  Bruno Haible  <bruno@clisp.org>
14329
14330         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
14331         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
14332         gl_PREREQ_MBSRTOWCS invocations from here...
14333         * modules/mbsrtowcs (configure.ac): ... to here.
14334
14335 2011-05-21  Bruno Haible  <bruno@clisp.org>
14336
14337         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
14338         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
14339         gl_PREREQ_MBSNRTOWCS invocations from here...
14340         * modules/mbsnrtowcs (configure.ac): ... to here.
14341
14342 2011-05-21  Bruno Haible  <bruno@clisp.org>
14343
14344         mbsinit: Move AC_LIBOBJ invocations to module description.
14345         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
14346         invocations from here...
14347         * modules/mbsinit (configure.ac): ... to here.
14348
14349 2011-05-21  Bruno Haible  <bruno@clisp.org>
14350
14351         mbrlen: Move AC_LIBOBJ invocations to module description.
14352         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
14353         invocations from here...
14354         * modules/mbrlen (configure.ac): ... to here.
14355
14356 2011-05-21  Bruno Haible  <bruno@clisp.org>
14357
14358         mbrtowc: Respect rules for use of AC_LIBOBJ.
14359         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
14360         invocations from here...
14361         * modules/mbrtowc (configure.ac): ... to here.
14362
14363 2011-05-21  Bruno Haible  <bruno@clisp.org>
14364
14365         malloc-*: Move AC_LIBOBJ invocations to module description.
14366         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
14367         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
14368         AC_LIBOBJ invocations from here...
14369         * modules/malloc-gnu (configure.ac): ... to here.
14370         * modules/malloc-posix (configure.ac): ... and here.
14371
14372 2011-05-21  Bruno Haible  <bruno@clisp.org>
14373
14374         lstat, openat: Respect rules for use of AC_LIBOBJ.
14375         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
14376         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
14377         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
14378         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
14379         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
14380         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
14381         here.
14382         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
14383
14384 2011-05-21  Bruno Haible  <bruno@clisp.org>
14385
14386         lseek: Move AC_LIBOBJ invocations to module description.
14387         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
14388         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14389         * modules/lseek (configure.ac): ... to here.
14390
14391 2011-05-21  Bruno Haible  <bruno@clisp.org>
14392
14393         linkat: Move AC_LIBOBJ invocations to module description.
14394         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
14395         here...
14396         * modules/linkat (configure.ac): ... to here.
14397
14398 2011-05-21  Bruno Haible  <bruno@clisp.org>
14399
14400         link: Respect rules for use of AC_LIBOBJ.
14401         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
14402         * modules/link (configure.ac): ... to here.
14403
14404 2011-05-21  Bruno Haible  <bruno@clisp.org>
14405
14406         lchown: Move AC_LIBOBJ invocations to module description.
14407         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14408         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
14409         * modules/lchown (configure.ac): ... to here.
14410
14411 2011-05-21  Bruno Haible  <bruno@clisp.org>
14412
14413         iswctype: Move AC_LIBOBJ invocations to module description.
14414         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
14415         here...
14416         * modules/iswctype (configure.ac): ... to here.
14417
14418 2011-05-21  Bruno Haible  <bruno@clisp.org>
14419
14420         iswblank: Move AC_LIBOBJ invocations to module description.
14421         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
14422         here...
14423         * modules/iswblank (configure.ac): ... to here.
14424
14425 2011-05-21  Bruno Haible  <bruno@clisp.org>
14426
14427         atanl: Move AC_LIBOBJ invocations to module description.
14428         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
14429         * modules/atanl (configure.ac): ... to here.
14430
14431 2011-05-21  Bruno Haible  <bruno@clisp.org>
14432
14433         acosl: Move AC_LIBOBJ invocations to module description.
14434         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
14435         * modules/acosl (configure.ac): ... to here.
14436
14437 2011-05-21  Bruno Haible  <bruno@clisp.org>
14438
14439         asinl: Respect rules for use of AC_LIBOBJ.
14440         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
14441         * modules/asinl (configure.ac): ... to here.
14442
14443 2011-05-21  Bruno Haible  <bruno@clisp.org>
14444
14445         tanl: Move AC_LIBOBJ invocations to module description.
14446         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
14447         * modules/tanl (configure.ac): ... to here.
14448
14449 2011-05-21  Bruno Haible  <bruno@clisp.org>
14450
14451         cosl: Move AC_LIBOBJ invocations to module description.
14452         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
14453         * modules/cosl (configure.ac): ... to here.
14454
14455 2011-05-21  Bruno Haible  <bruno@clisp.org>
14456
14457         sinl: Move AC_LIBOBJ invocations to module description.
14458         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
14459         * modules/sinl (configure.ac): ... to here.
14460
14461 2011-05-21  Bruno Haible  <bruno@clisp.org>
14462
14463         logl: Move AC_LIBOBJ invocations to module description.
14464         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
14465         * modules/logl (configure.ac): ... to here.
14466
14467 2011-05-21  Bruno Haible  <bruno@clisp.org>
14468
14469         expl: Move AC_LIBOBJ invocations to module description.
14470         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
14471         * modules/expl (configure.ac): ... to here.
14472
14473 2011-05-21  Bruno Haible  <bruno@clisp.org>
14474
14475         roundl: Move AC_LIBOBJ invocations to module description.
14476         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
14477         * modules/roundl (configure.ac): ... to here.
14478
14479 2011-05-21  Bruno Haible  <bruno@clisp.org>
14480
14481         round: Move AC_LIBOBJ invocations to module description.
14482         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
14483         * modules/round (configure.ac): ... to here.
14484
14485 2011-05-21  Bruno Haible  <bruno@clisp.org>
14486
14487         roundf: Move AC_LIBOBJ invocations to module description.
14488         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
14489         * modules/roundf (configure.ac): ... to here.
14490
14491 2011-05-21  Bruno Haible  <bruno@clisp.org>
14492
14493         truncl: Move AC_LIBOBJ invocations to module description.
14494         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
14495         * modules/truncl (configure.ac): ... to here.
14496
14497 2011-05-21  Bruno Haible  <bruno@clisp.org>
14498
14499         trunc: Move AC_LIBOBJ invocations to module description.
14500         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
14501         * modules/trunc (configure.ac): ... to here.
14502
14503 2011-05-21  Bruno Haible  <bruno@clisp.org>
14504
14505         truncf: Move AC_LIBOBJ invocations to module description.
14506         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
14507         * modules/truncf (configure.ac): ... to here.
14508
14509 2011-05-21  Bruno Haible  <bruno@clisp.org>
14510
14511         ceill: Move AC_LIBOBJ invocations to module description.
14512         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
14513         * modules/ceill (configure.ac): ... to here.
14514
14515 2011-05-21  Bruno Haible  <bruno@clisp.org>
14516
14517         ceil: Move AC_LIBOBJ invocations to module description.
14518         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
14519         * modules/ceil (configure.ac): ... to here.
14520
14521 2011-05-21  Bruno Haible  <bruno@clisp.org>
14522
14523         ceilf: Move AC_LIBOBJ invocations to module description.
14524         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
14525         * modules/ceilf (configure.ac): ... to here.
14526
14527 2011-05-21  Bruno Haible  <bruno@clisp.org>
14528
14529         floorl: Respect rules for use of AC_LIBOBJ.
14530         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
14531         * modules/floorl (configure.ac): ... to here.
14532
14533 2011-05-21  Bruno Haible  <bruno@clisp.org>
14534
14535         floor: Respect rules for use of AC_LIBOBJ.
14536         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
14537         * modules/floor (configure.ac): ... to here.
14538
14539 2011-05-21  Bruno Haible  <bruno@clisp.org>
14540
14541         floorf: Move AC_LIBOBJ invocations to module description.
14542         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
14543         * modules/floorf (configure.ac): ... to here.
14544
14545 2011-05-20  Bruno Haible  <bruno@clisp.org>
14546
14547         sqrtl: Respect rules for use of AC_LIBOBJ.
14548         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
14549         * modules/sqrtl (configure.ac): ... to here.
14550
14551 2011-05-20  Bruno Haible  <bruno@clisp.org>
14552
14553         ldexpl: Respect rules for use of AC_LIBOBJ.
14554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
14555         * modules/ldexpl (configure.ac): ... to here.
14556
14557 2011-05-20  Bruno Haible  <bruno@clisp.org>
14558
14559         frexpl*: Respect rules for use of AC_LIBOBJ.
14560         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
14561         invocation from here...
14562         * modules/frexpl (configure.ac): ... to here.
14563         * modules/frexpl-nolibm (configure.ac): ... and here.
14564
14565 2011-05-20  Bruno Haible  <bruno@clisp.org>
14566
14567         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
14568         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
14569         invocation from here...
14570         * modules/frexp (configure.ac): ... to here.
14571         * modules/frexp-nolibm (configure.ac): ... and here.
14572
14573 2011-05-20  Bruno Haible  <bruno@clisp.org>
14574
14575         isnan: Respect rules for use of AC_LIBOBJ.
14576         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
14577         invocations here.
14578         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
14579         REPLACE_ISNAN.
14580         * modules/isnand (configure.ac): Likewise.
14581         * modules/isnanl (configure.ac): Likewise.
14582
14583 2011-05-20  Bruno Haible  <bruno@clisp.org>
14584
14585         isnanl*: Respect rules for use of AC_LIBOBJ.
14586         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
14587         invocation from here...
14588         * modules/isnanl (configure.ac): ... to here.
14589         * modules/isnanl-nolibm (configure.ac): ... and here.
14590
14591 2011-05-20  Bruno Haible  <bruno@clisp.org>
14592
14593         isnand*: Move AC_LIBOBJ invocations to module description.
14594         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
14595         invocation from here...
14596         * modules/isnand (configure.ac): ... to here.
14597         * modules/isnand-nolibm (configure.ac): ... and here.
14598
14599 2011-05-20  Bruno Haible  <bruno@clisp.org>
14600
14601         isnanf*: Move AC_LIBOBJ invocations to module description.
14602         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
14603         invocation from here...
14604         * modules/isnanf (configure.ac): ... to here.
14605         * modules/isnanf-nolibm (configure.ac): ... and here.
14606
14607 2011-05-20  Bruno Haible  <bruno@clisp.org>
14608
14609         isnan*: Separate the AC_LIBOBJ invocations.
14610         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
14611         AC_LIBOBJ invocation.
14612         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
14613         here.
14614         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
14615         AC_LIBOBJ invocation.
14616         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
14617         here.
14618         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
14619         AC_LIBOBJ invocation.
14620         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
14621         here.
14622         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
14623
14624 2011-05-08  Bruno Haible  <bruno@clisp.org>
14625
14626         isinf: Move AC_LIBOBJ invocations to module description.
14627         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
14628         * modules/isinf (configure.ac): ... to here.
14629
14630 2011-05-08  Bruno Haible  <bruno@clisp.org>
14631
14632         isfinite: Move AC_LIBOBJ invocations to module description.
14633         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
14634         * modules/isfinite (configure.ac): ... to here.
14635
14636 2011-05-08  Bruno Haible  <bruno@clisp.org>
14637
14638         isblank: Move AC_LIBOBJ invocations to module description.
14639         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
14640         here...
14641         * modules/isblank (configure.ac): ... to here.
14642
14643 2011-05-08  Bruno Haible  <bruno@clisp.org>
14644
14645         isapipe: Move AC_LIBOBJ invocations to module description.
14646         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
14647         gl_PREREQ_ISAPIPE invocations from here...
14648         * modules/isapipe (configure.ac): ... to here.
14649         (Depends-on): Update condition.
14650
14651 2011-05-08  Bruno Haible  <bruno@clisp.org>
14652
14653         ioctl: Move AC_LIBOBJ invocations to module description.
14654         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
14655         invocations from here...
14656         * modules/ioctl (configure.ac): ... to here.
14657         (Depends-on): Update condition.
14658
14659 2011-05-08  Bruno Haible  <bruno@clisp.org>
14660
14661         imaxdiv: Move AC_LIBOBJ invocations to module description.
14662         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
14663         invocations from here...
14664         * modules/imaxdiv (configure.ac): ... to here.
14665
14666 2011-05-08  Bruno Haible  <bruno@clisp.org>
14667
14668         imaxabs: Move AC_LIBOBJ invocations to module description.
14669         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
14670         invocations from here...
14671         * modules/imaxabs (configure.ac): ... to here.
14672
14673 2011-05-08  Bruno Haible  <bruno@clisp.org>
14674
14675         getaddrinfo: Move AC_LIBOBJ invocations to module description.
14676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
14677         AC_LIBOBJ invocations from here...
14678         * modules/getaddrinfo (configure.ac): ... to here.
14679         (Depends-on): Add conditions.
14680
14681 2011-05-08  Bruno Haible  <bruno@clisp.org>
14682
14683         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14684         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
14685         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14686         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
14687         (gl_PREREQ_INET_PTON): ... from here.
14688         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
14689         gl_PREREQ_INET_PTON here.
14690         (Depends-on): Update condition.
14691
14692 2011-05-08  Bruno Haible  <bruno@clisp.org>
14693
14694         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
14695         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
14696         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
14697         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
14698         (gl_PREREQ_INET_NTOP): ... from here.
14699         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
14700         gl_PREREQ_INET_NTOP here.
14701         (Depends-on): Update condition.
14702
14703 2011-05-08  Bruno Haible  <bruno@clisp.org>
14704
14705         iconv_open: Move AC_LIBOBJ invocations to module description.
14706         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
14707         AC_LIBOBJ invocations from here...
14708         * modules/iconv_open (configure.ac): ... to here.
14709
14710 2011-05-08  Bruno Haible  <bruno@clisp.org>
14711
14712         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
14713         If module 'iconv_open' is among the main modules and module
14714         'iconv_open-utf' is among the tests dependencies, then
14715         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
14716         return the special iconv_t values. Therefore iconv() and iconv_close()
14717         must support these special iconv_t values, already in lib, not only in
14718         tests.
14719         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
14720         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
14721         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
14722         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
14723         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
14724         (Depends-on): Add the dependencies of iconv_open-utf.
14725         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
14726         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
14727         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
14728
14729 2011-05-08  Bruno Haible  <bruno@clisp.org>
14730
14731         group-member: Move AC_LIBOBJ invocations to module description.
14732         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
14733         gl_PREREQ_GROUP_MEMBER invocations from here...
14734         * modules/group-member (configure.ac): ... to here.
14735
14736 2011-05-08  Bruno Haible  <bruno@clisp.org>
14737
14738         grantpt: Move AC_LIBOBJ invocations to module description.
14739         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
14740         invocations from here...
14741         * modules/grantpt (configure.ac): ... to here.
14742
14743 2011-05-08  Bruno Haible  <bruno@clisp.org>
14744
14745         glob: Move AC_LIBOBJ invocations to module description.
14746         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
14747         from here...
14748         * modules/glob (configure.ac): ... to here.
14749
14750 2011-05-08  Bruno Haible  <bruno@clisp.org>
14751
14752         getusershell: Move AC_LIBOBJ invocations to module description.
14753         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
14754         Move AC_LIBOBJ invocation from here...
14755         * modules/getusershell (configure.ac): ... to here.
14756         (Depends-on): Update condition.
14757
14758 2011-05-08  Bruno Haible  <bruno@clisp.org>
14759
14760         gettimeofday: Move AC_LIBOBJ invocations to module description.
14761         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
14762         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
14763         gl_PREREQ_GETTIMEOFDAY invocations from here...
14764         * modules/gettimeofday (configure.ac): ... to here.
14765
14766 2011-05-08  Bruno Haible  <bruno@clisp.org>
14767
14768         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
14769         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
14770         just gl_FUNC_TZSET.
14771         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
14772         (gl_FUNC_TZSET_CLOBBER): Remove actions.
14773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
14774         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
14775
14776 2011-05-08  Bruno Haible  <bruno@clisp.org>
14777
14778         getsubopt: Move AC_LIBOBJ invocations to module description.
14779         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
14780         gl_PREREQ_GETSUBOPT invocations from here...
14781         * modules/getsubopt (configure.ac): ... to here.
14782
14783 2011-05-08  Bruno Haible  <bruno@clisp.org>
14784
14785         getpass-gnu: Move AC_LIBOBJ invocations to module description.
14786         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
14787         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
14788         * modules/getpass-gnu (configure.ac): ... to here.
14789
14790 2011-05-08  Bruno Haible  <bruno@clisp.org>
14791
14792         getpass: Move AC_LIBOBJ invocations to module description.
14793         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
14794         gl_PREREQ_GETPASS invocations from here...
14795         * modules/getpass (configure.ac): ... to here.
14796
14797 2011-05-08  Bruno Haible  <bruno@clisp.org>
14798
14799         getpagesize: Move AC_LIBOBJ invocations to module description.
14800         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
14801         from here...
14802         * modules/getpagesize (configure.ac): ... to here.
14803
14804 2011-05-08  Bruno Haible  <bruno@clisp.org>
14805
14806         getopt: Move AC_LIBOBJ invocations to module description.
14807         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14808         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14809         invocations from here...
14810         * modules/getopt-gnu (configure.ac): ... to here.
14811         * modules/getopt-posix (configure.ac): ... and here.
14812         (Depends-on): Update condition.
14813
14814 2011-05-08  Bruno Haible  <bruno@clisp.org>
14815
14816         getopt, argp: Respect rules for use of AC_LIBOBJ.
14817         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14818         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14819         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14820         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14821
14822 2011-05-08  Bruno Haible  <bruno@clisp.org>
14823
14824         getlogin_r: Move AC_LIBOBJ invocations to module description.
14825         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14826         gl_PREREQ_GETLOGIN_R invocations from here...
14827         * modules/getlogin_r (configure.ac): ... to here.
14828
14829 2011-05-08  Bruno Haible  <bruno@clisp.org>
14830
14831         getlogin: Move AC_LIBOBJ invocations to module description.
14832         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14833         here...
14834         * modules/getlogin (configure.ac): ... to here.
14835
14836 2011-05-08  Bruno Haible  <bruno@clisp.org>
14837
14838         getloadavg: Move AC_LIBOBJ invocations to module description.
14839         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14840         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14841         * modules/getloadavg (configure.ac): ... to here.
14842
14843 2011-05-08  Bruno Haible  <bruno@clisp.org>
14844
14845         gethrxtime: Move AC_LIBOBJ invocations to module description.
14846         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14847         LIB_GETHRXTIME from here...
14848         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14849         invocations from here...
14850         * modules/gethrxtime (configure.ac): ... to here.
14851
14852 2011-05-08  Bruno Haible  <bruno@clisp.org>
14853
14854         gethostname: Move AC_LIBOBJ invocations to module description.
14855         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14856         gl_PREREQ_GETHOSTNAME invocations from here...
14857         * modules/gethostname (configure.ac): ... to here.
14858
14859 2011-05-08  Bruno Haible  <bruno@clisp.org>
14860
14861         getgroups: Move AC_LIBOBJ invocations to module description.
14862         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14863         here...
14864         * modules/getgroups (configure.ac): ... to here.
14865
14866 2011-05-08  Bruno Haible  <bruno@clisp.org>
14867
14868         getdtablesize: Move AC_LIBOBJ invocations to module description.
14869         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14870         invocation from here...
14871         * modules/getdtablesize (configure.ac): ... to here.
14872
14873 2011-05-08  Bruno Haible  <bruno@clisp.org>
14874
14875         getdomainname: Move AC_LIBOBJ invocations to module description.
14876         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14877         gl_PREREQ_GETDOMAINNAME invocations from here...
14878         * modules/getdomainname (configure.ac): ... to here.
14879
14880 2011-05-08  Bruno Haible  <bruno@clisp.org>
14881
14882         getline: Move AC_LIBOBJ invocations to module description.
14883         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14884         invocations from here...
14885         * modules/getline (configure.ac): ... to here.
14886
14887 2011-05-08  Bruno Haible  <bruno@clisp.org>
14888
14889         getline: Simplify.
14890         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14891         It's already handled through the module dependency.
14892
14893 2011-05-08  Bruno Haible  <bruno@clisp.org>
14894
14895         getdelim: Move AC_LIBOBJ invocations to module description.
14896         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14897         and gl_PREREQ_GETDELIM invocations from here...
14898         * modules/getdelim (configure.ac): ... to here.
14899         (Depends-on): Fix condition.
14900
14901 2011-05-08  Bruno Haible  <bruno@clisp.org>
14902
14903         getcwd: Move AC_LIBOBJ invocations to module description.
14904         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14905         invocations from here...
14906         * modules/getcwd (configure.ac): ... to here.
14907
14908 2011-05-08  Bruno Haible  <bruno@clisp.org>
14909
14910         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14911         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14912         here...
14913         * modules/getcwd-lgpl (configure.ac): ... to here.
14914
14915 2011-05-07  Bruno Haible  <bruno@clisp.org>
14916
14917         crypto/gc: Move AC_LIBOBJ invocations to module description.
14918         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14919         * modules/crypto/gc (configure.ac): ... to here.
14920
14921 2011-05-07  Bruno Haible  <bruno@clisp.org>
14922
14923         fwriting: Move AC_LIBOBJ invocations to module description.
14924         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14925         here...
14926         * modules/fwriting (configure.ac): ... to here.
14927
14928 2011-05-07  Bruno Haible  <bruno@clisp.org>
14929
14930         fwritable: Move AC_LIBOBJ invocations to module description.
14931         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14932         here...
14933         * modules/fwritable (configure.ac): ... to here.
14934
14935 2011-05-07  Bruno Haible  <bruno@clisp.org>
14936
14937         futimens: Move AC_LIBOBJ invocations to module description.
14938         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14939         here...
14940         * modules/futimens (configure.ac): ... to here.
14941
14942 2011-05-07  Bruno Haible  <bruno@clisp.org>
14943
14944         ftruncate: Move AC_LIBOBJ invocations to module description.
14945         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14946         gl_PREREQ_FTRUNCATE invocations from here...
14947         * modules/ftruncate (configure.ac): ... to here.
14948
14949 2011-05-07  Bruno Haible  <bruno@clisp.org>
14950
14951         fsync: Move AC_LIBOBJ invocations to module description.
14952         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14953         invocations from here...
14954         * modules/fsync (configure.ac): ... to here.
14955
14956 2011-05-07  Bruno Haible  <bruno@clisp.org>
14957
14958         fsusage: Move AC_LIBOBJ invocations to module description.
14959         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14960         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14961         * modules/fsusage (configure.ac): ... to here.
14962
14963 2011-05-07  Bruno Haible  <bruno@clisp.org>
14964
14965         freopen: Move AC_LIBOBJ invocations to module description.
14966         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14967         invocations from here...
14968         * modules/freopen (configure.ac): ... to here.
14969
14970 2011-05-07  Bruno Haible  <bruno@clisp.org>
14971
14972         free: Move AC_LIBOBJ invocations to module description.
14973         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14974         invocations from here...
14975         * modules/free (configure.ac): ... to here.
14976
14977 2011-05-07  Bruno Haible  <bruno@clisp.org>
14978
14979         freadable: Move AC_LIBOBJ invocations to module description.
14980         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14981         here...
14982         * modules/freadable (configure.ac): ... to here.
14983
14984 2011-05-07  Bruno Haible  <bruno@clisp.org>
14985
14986         fpurge: Move AC_LIBOBJ invocations to module description.
14987         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14988         invocations from here...
14989         * modules/fpurge (configure.ac): ... to here.
14990
14991 2011-05-07  Bruno Haible  <bruno@clisp.org>
14992
14993         fpending: Move AC_LIBOBJ invocations to module description.
14994         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14995         gl_FUNC_FPENDING.
14996         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14997         invocations from here...
14998         * modules/fpending (configure.ac): ... to here.
14999
15000 2011-05-07  Bruno Haible  <bruno@clisp.org>
15001
15002         fopen: Move AC_LIBOBJ invocations to module description.
15003         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
15004         invocations from here...
15005         * modules/fopen (configure.ac): ... to here.
15006
15007 2011-05-07  Bruno Haible  <bruno@clisp.org>
15008
15009         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
15010         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
15011         gl_FUNC_FNMATCH_POSIX.
15012         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
15013         invocations from here...
15014         * modules/fnmatch (configure.ac): ... to here.
15015         * modules/fnmatch-gnu (configure.ac): ... and here.
15016
15017 2011-05-07  Bruno Haible  <bruno@clisp.org>
15018
15019         flock: Move AC_LIBOBJ invocations to module description.
15020         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
15021         invocations from here...
15022         * modules/flock (configure.ac): ... to here.
15023
15024 2011-05-07  Bruno Haible  <bruno@clisp.org>
15025
15026         fileblocks: Move AC_LIBOBJ invocations to module description.
15027         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
15028         gl_PREREQ_FILEBLOCKS invocations from here...
15029         * modules/fileblocks (configure.ac): ... to here.
15030
15031 2011-05-06  Bruno Haible  <bruno@clisp.org>
15032
15033         fflush: Move AC_LIBOBJ invocations to module description.
15034         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
15035         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
15036         invocations from here...
15037         * modules/fflush (configure.ac): ... to here.
15038
15039 2011-05-06  Bruno Haible  <bruno@clisp.org>
15040
15041         fdopendir: Move AC_LIBOBJ invocations to module description.
15042         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
15043         here...
15044         * modules/fdopendir (configure.ac): ... to here.
15045         (Depends-on): Improve conditions.
15046
15047 2011-05-06  Bruno Haible  <bruno@clisp.org>
15048
15049         _Exit: Move AC_LIBOBJ invocations to module description.
15050         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
15051         invocations from here...
15052         * modules/_Exit (configure.ac): ... to here.
15053
15054 2011-05-21  Bruno Haible  <bruno@clisp.org>
15055
15056         euidaccess: Respect rules for use of AC_LIBOBJ.
15057         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15058         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
15059         from here...
15060         * modules/euidaccess (configure.ac): ... to here.
15061
15062 2011-05-06  Bruno Haible  <bruno@clisp.org>
15063
15064         error: Move AC_LIBOBJ invocations to module description.
15065         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
15066         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
15067         invocations from here...
15068         * modules/error (configure.ac): ... to here.
15069
15070 2011-05-06  Bruno Haible  <bruno@clisp.org>
15071
15072         duplocale: Move AC_LIBOBJ invocations to module description.
15073         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
15074         gl_PREREQ_DUPLOCALE invocations from here...
15075         * modules/duplocale (configure.ac): ... to here.
15076
15077 2011-05-05  Bruno Haible  <bruno@clisp.org>
15078
15079         dirfd: Move AC_LIBOBJ invocations to module description.
15080         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
15081         gl_FUNC_DIRFD.
15082         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
15083         here...
15084         * modules/dirfd (configure.ac): ... to here.
15085         (Depends-on): Fix condition.
15086
15087 2011-05-05  Bruno Haible  <bruno@clisp.org>
15088
15089         chown: Respect rules for use of AC_LIBOBJ.
15090         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
15091         * modules/chown (configure.ac): ... to here.
15092
15093 2011-05-05  Bruno Haible  <bruno@clisp.org>
15094
15095         chdir-long: Move AC_LIBOBJ invocations to module description.
15096         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
15097         gl_PREREQ_CHDIR_LONG invocations from here...
15098         * modules/chdir-long (configure.ac): ... to here.
15099
15100 2011-05-05  Bruno Haible  <bruno@clisp.org>
15101
15102         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
15103         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
15104         from here...
15105         * modules/canonicalize-lgpl (configure.ac): ... to here.
15106
15107 2011-05-05  Bruno Haible  <bruno@clisp.org>
15108
15109         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
15110         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
15111         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
15112         REPLACE_CALLOC.
15113         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
15114         * modules/calloc-gnu (configure.ac): Likewise.
15115
15116 2011-05-05  Bruno Haible  <bruno@clisp.org>
15117
15118         btowc: Move AC_LIBOBJ invocations to module description.
15119         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
15120         invocations from here...
15121         * modules/btowc (configure.ac): ... to here.
15122
15123 2011-05-21  Bruno Haible  <bruno@clisp.org>
15124
15125         atexit: Move AC_LIBOBJ invocations to module description.
15126         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
15127         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
15128         here...
15129         * modules/atexit (configure.ac): ... to here.
15130
15131 2011-05-05  Bruno Haible  <bruno@clisp.org>
15132
15133         atoll: Move AC_LIBOBJ invocations to module description.
15134         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
15135         invocations from here...
15136         * modules/atoll (configure.ac): ... to here.
15137
15138 2011-05-05  Bruno Haible  <bruno@clisp.org>
15139
15140         argz: Move AC_LIBOBJ invocations to module description.
15141         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
15142         * modules/argz (configure.ac): ... to here.
15143
15144 2011-05-05  Bruno Haible  <bruno@clisp.org>
15145
15146         alphasort: Move AC_LIBOBJ invocations to module description.
15147         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
15148         gl_PREREQ_ALPHASORT invocations from here...
15149         * modules/alphasort (configure.ac): ... to here.
15150
15151 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
15152
15153         verify: new macro verify_expr; verify_true deprecated
15154         * NEWS: Mention this.
15155         * doc/verify.texi (Compile-time Assertions): Document this.
15156         * lib/verify.h (verify_true): Deprecate.
15157         (verify_expr): New macro.
15158         * tests/test-verify.c (function): Test verify_expr.
15159
15160 2011-06-14  Jim Meyering  <meyering@redhat.com>
15161
15162         init.sh: give more portable redirection-related advice in a comment
15163         * tests/init.sh (stderr_fileno_): Update the advice in comments.
15164         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
15165         for lots of discussion.  Stefano Lattarini suggested the solution
15166         of putting "9>&2" after the command.  Reported by Bruno Haible.
15167
15168 2011-06-13  Bruno Haible  <bruno@clisp.org>
15169
15170         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
15171         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
15172         'none'.
15173
15174 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
15175
15176         ftoastr: use strtof only if HAVE_STRTOF
15177         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
15178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
15179         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
15180         * modules/ftoastr (configure.ac): Check for strtof.
15181
15182 2011-06-13  Bruno Haible  <bruno@clisp.org>
15183
15184         gnulib-tool: Addendum to 2011-06-08 commit.
15185         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
15186         and --witness-c-macro have been given, augment AM_CPPFLAGS.
15187
15188 2011-06-13  Bruno Haible  <bruno@clisp.org>
15189
15190         fseeko: Provide a non-inline replacement of fseek().
15191         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
15192         * modules/fseeko (Depends-on): Add fseek.
15193         * modules/fseek (License): Change to LGPLv2+.
15194
15195 2011-06-13  Bruno Haible  <bruno@clisp.org>
15196
15197         ftello: Provide a non-inline replacement of ftell().
15198         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
15199         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
15200         not have ftello() (such as on mingw).
15201         * modules/ftello (Depends-on): Add ftell.
15202         * modules/ftell (License): Change to LGPLv2+.
15203
15204 2011-05-07  Bruno Haible  <bruno@clisp.org>
15205
15206         ftell: Move AC_LIBOBJ invocations to module description.
15207         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
15208         * modules/ftell (configure.ac): ... to here.
15209
15210 2011-05-07  Bruno Haible  <bruno@clisp.org>
15211
15212         ftello: Respect rules for use of AC_LIBOBJ.
15213         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
15214         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
15215         here...
15216         * modules/ftello (configure.ac): ... to here.
15217
15218 2011-05-07  Bruno Haible  <bruno@clisp.org>
15219
15220         fseeko: Simplify.
15221         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
15222         (gl_FUNC_FSEEKO): Inline it here.
15223
15224 2011-05-07  Bruno Haible  <bruno@clisp.org>
15225
15226         fseek: Move AC_LIBOBJ invocations to module description.
15227         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
15228         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15229         * modules/fseek (configure.ac): ... to here.
15230
15231 2011-05-07  Bruno Haible  <bruno@clisp.org>
15232
15233         fseek: Respect rules for use of AC_LIBOBJ.
15234         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
15235         here...
15236         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
15237
15238 2011-05-07  Bruno Haible  <bruno@clisp.org>
15239
15240         fseeko: Respect rules for use of AC_LIBOBJ.
15241         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
15242         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
15243         here...
15244         * modules/fseeko (configure.ac): ... to here.
15245
15246 2011-06-13  Bruno Haible  <bruno@clisp.org>
15247
15248         gnulib-tool: Allow comments in the 'Depends-on' section.
15249         * doc/gnulib.texi (Module description): Mention comment syntax in the
15250         Depends-on section.
15251         * gnulib-tool (func_get_dependencies): Filter out comment lines.
15252
15253 2011-06-13  Bruno Haible  <bruno@clisp.org>
15254
15255         file-set.h: guard __attibute__ use, now that it's not always defined
15256         * lib/file-set.h (record_file): Use __attribute__ only with compiler
15257         versions that support it.  This fixes a coreutils build failure with
15258         the vendor cc on HP-UX 11.31.
15259
15260 2011-06-12  Bruno Haible  <bruno@clisp.org>
15261
15262         acl: Add support for HP-UX >= 11.11 JFS ACLs.
15263         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
15264         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
15265         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
15266         (acl, aclsort): New declarations.
15267         (aclv_nontrivial): New declaration.
15268         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
15269         (file_has_acl): Read also the second kind of HP-UX ACLs.
15270         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
15271         kind of HP-UX ACLs if the first kind fails.
15272         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
15273         second kind of HP-UX ACLs.
15274         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
15275         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
15276         agree.
15277         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15278         hpuxjfs.
15279         Handle hpuxjfs.
15280         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
15281         hpuxjfs.
15282         Handle hpuxjfs.
15283         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15284         (func_test_same_acls): Use both lsacl and getacl.
15285         Handle hpuxjfs.
15286         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
15287         (func_test_same_acls): Use both lsacl and getacl.
15288         Handle hpuxjfs.
15289
15290 2011-06-12  Bruno Haible  <bruno@clisp.org>
15291
15292         acl: Complete the 2010-08-10 fix.
15293         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
15294         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
15295         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
15296         explicitly.
15297         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
15298         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
15299
15300 2011-06-12  Bruno Haible  <bruno@clisp.org>
15301
15302         spawn-pipe tests: Comments.
15303         * tests/test-spawn-pipe-child.c (main): Update comment.
15304         Reported by James Youngman <jay@gnu.org>.
15305
15306 2011-06-11  James Youngman  <jay@gnu.org>
15307
15308         New module 'stat-size'.
15309         * modules/stat-size: New module.  Provides macros for accessing
15310         file size information in instances of struct stat.  Depends on the
15311         fileblocks module because it calls st_blocks.
15312         * lib/stat-size.h: New file, adapted from coreutils' system.h.
15313         * doc/gnulib.texi: Include stat-size.texi.
15314         * doc/stat-size.texi: Documentation for this module.
15315         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
15316         * m4/fileblocks.m4: Mention that stat-size depends on the call to
15317         AC_STRUCT_ST_BLOCKS.
15318
15319 2011-06-09  Bruno Haible  <bruno@clisp.org>
15320
15321         thread: Support pthreads-win32.
15322         * lib/glthread/thread.h (gl_thread_self): Define differently on
15323         pthreads-win32.
15324         (gl_null_thread): New declaration.
15325         (gl_thread_self_pointer): New macro.
15326         * lib/glthread/thread.c (gl_null_thread): New constant.
15327         * tests/test-lock.c: Use gl_thread_self_pointer instead of
15328         gl_thread_self.
15329         * tests/test-tls.c: Likewise.
15330         Suggested by Paul Eggert. Reported by Eric Blake.
15331
15332 2011-06-09  Bruno Haible  <bruno@clisp.org>
15333
15334         thread: Fix confusion between NULL and 0.
15335         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
15336         Reported by Paul Eggert.
15337
15338 2011-06-09  Bruno Haible  <bruno@clisp.org>
15339
15340         spawn-pipe tests: Avoid test failure on HP-UX 11.
15341         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
15342         is closed.
15343
15344 2011-06-09  Bruno Haible  <bruno@clisp.org>
15345
15346         acl tests: Fix compilation error on HP-UX 11.
15347         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
15348
15349 2011-06-09  Bruno Haible  <bruno@clisp.org>
15350
15351         rmdir: Avoid test failure on HP-UX 10.20.
15352         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
15353         EEXIST.
15354
15355 2011-06-08  Eric Blake  <eblake@redhat.com>
15356
15357         perror: fix test on mingw
15358         * modules/perror-tests (Depends-on): Add dup2.
15359
15360         strerror_r-posix: fix on MacOS
15361         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
15362         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
15363         logic bug.
15364         * lib/strerror_r.c (strerror_r): Fix the bug.
15365         * lib/strerror.c (strerror): Likewise.
15366         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
15367         problem.
15368         * doc/posix-functions/strerror.texi (strerror): Likewise.
15369         * doc/posix-functions/perror.texi (perror): Likewise.
15370         * tests/test-strerror.c (main): Enhance test.
15371         * tests/test-strerror_r.c (main): Likewise.
15372
15373 2011-06-08  Bruno Haible  <bruno@clisp.org>
15374
15375         gnulib-tool: Better isolation between different gnulib-tool invocations.
15376         * gnulib-tool: New option --witness-c-macro.
15377         (witness_c_macro): New variable.
15378         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
15379         AM_CPPFLAGS define it as a C macro.
15380         (func_emit_tests_Makefile_am): Likewise.
15381         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
15382         read it from there.
15383         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
15384         m4_define, not AC_DEFUN.
15385         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
15386         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
15387         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
15388         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
15389         s|...|...|, to substitute the values of the GNULIB_* module indicator
15390         variables.
15391         * modules/dirent (Makefile.am): Likewise.
15392         * modules/fcntl-h (Makefile.am): Likewise.
15393         * modules/iconv-h (Makefile.am): Likewise.
15394         * modules/langinfo (Makefile.am): Likewise.
15395         * modules/locale (Makefile.am): Likewise.
15396         * modules/math (Makefile.am): Likewise.
15397         * modules/netdb (Makefile.am): Likewise.
15398         * modules/poll-h (Makefile.am): Likewise.
15399         * modules/pty (Makefile.am): Likewise.
15400         * modules/search (Makefile.am): Likewise.
15401         * modules/signal (Makefile.am): Likewise.
15402         * modules/spawn (Makefile.am): Likewise.
15403         * modules/stdio (Makefile.am): Likewise.
15404         * modules/stdlib (Makefile.am): Likewise.
15405         * modules/string (Makefile.am): Likewise.
15406         * modules/sys_ioctl (Makefile.am): Likewise.
15407         * modules/sys_select (Makefile.am): Likewise.
15408         * modules/sys_socket (Makefile.am): Likewise.
15409         * modules/sys_stat (Makefile.am): Likewise.
15410         * modules/sys_times (Makefile.am): Likewise.
15411         * modules/sys_utsname (Makefile.am): Likewise.
15412         * modules/sys_wait (Makefile.am): Likewise.
15413         * modules/termios (Makefile.am): Likewise.
15414         * modules/time (Makefile.am): Likewise.
15415         * modules/unistd (Makefile.am): Likewise.
15416         * modules/wchar (Makefile.am): Likewise.
15417
15418 2011-06-08  Eric Blake  <eblake@redhat.com>
15419
15420         strerror: simplify replacement
15421         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
15422         * modules/strerror (configure.ac): No prereqs needed here...
15423         * modules/strerror-override (configure.ac): ...but this needs it.
15424         (Files): Add file for needed prereq macro.
15425
15426 2011-06-08  Bruno Haible  <bruno@clisp.org>
15427
15428         strerror_r-posix: Tweaks.
15429         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
15430         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
15431         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
15432         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
15433         (gl_FUNC_STRERROR_R): ... to here.
15434         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
15435
15436 2011-06-07  Eric Blake  <eblake@redhat.com>
15437
15438         perror: document fixed bugs
15439         * doc/posix-functions/perror.texi (perror): Document recent
15440         patches.
15441
15442 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
15443
15444         stat-time: get_stat_birthtime failure is better-defined
15445         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
15446         return a timestamp whose tv_sec and tv_nsec values are both -1.
15447         Previously, the spec said only that the tv_nsec value was negative.
15448         This upward-compatible change simplifies GNU tar a bit.
15449
15450 2011-06-07  Eric Blake  <eblake@redhat.com>
15451
15452         strerror_r-posix: work around cygwin 1.7.9
15453         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
15454         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
15455         bug without replacing strerror_r.
15456         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
15457         strerror_r is buggy, but without requiring strerror_r compilation.
15458         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
15459
15460         test-perror: relax test to ignore cygwin bug
15461         * tests/test-perror2.c (main): Relax test on requiring detection
15462         of stream errors, and use unbuffered stream.
15463         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
15464         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
15465         * doc/posix-functions/fputc.texi (fputc): Likewise.
15466         * doc/posix-functions/fputs.texi (fputs): Likewise.
15467         * doc/posix-functions/fputws.texi (fputws): Likewise.
15468         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
15469         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
15470         * doc/posix-functions/getopt.texi (getopt): Likewise.
15471         * doc/posix-functions/perror.texi (perror): Likewise.
15472         * doc/posix-functions/printf.texi (printf): Likewise.
15473         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
15474         * doc/posix-functions/psignal.texi (psignal): Likewise.
15475         * doc/posix-functions/putc.texi (putc): Likewise.
15476         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
15477         Likewise.
15478         * doc/posix-functions/putchar.texi (putchar): Likewise.
15479         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
15480         Likewise.
15481         * doc/posix-functions/puts.texi (puts): Likewise.
15482         * doc/posix-functions/putwc.texi (putwc): Likewise.
15483         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15484         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15485         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15486         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
15487         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15488         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15489         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
15490         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
15491
15492 2011-05-22  Bruno Haible  <bruno@clisp.org>
15493
15494         strerror: Move AC_LIBOBJ invocations to module description.
15495         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
15496         gl_PREREQ_STRERROR invocations from here...
15497         * modules/strerror (configure.ac): ... to here.
15498
15499 2011-05-21  Bruno Haible  <bruno@clisp.org>
15500
15501         perror: Use common idiom.
15502         * modules/perror (configure.ac): Reorder statements.
15503
15504 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15505
15506         tests: fix usage message in 'mktempd_'
15507         * tests/init.sh (mktempd_): In the usage message, use literal
15508         'mktempd_', not '$ME' (which is even undefined), as the name of
15509         the subroutine.
15510
15511 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
15512
15513         tests init: new function 'fatal_', for hard errors
15514         Before this patch, the only way offered by tests/init.sh to
15515         properly signal a hard error was the `framework_failure_'
15516         function.  But the error message issued by that function,
15517         as its name would suggest, refers to a set-up failure in the
15518         testsuite, while hard errors can obviously also be due to
15519         other reasons.  The best way to fix this inconsistency is to
15520         introduce a new function with a more general error message.
15521         * tests/init.sh (fatal_): New function.
15522
15523 2011-06-06  Eric Blake  <eblake@redhat.com>
15524
15525         canonicalize-lgpl: use common idiom
15526         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
15527         over newer POSIX -Rf.
15528         Reported by Bruno Haible.
15529
15530         canonicalize-lgpl: work around AIX realpath bug
15531         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
15532         * doc/posix-functions/realpath.texi (realpath): Document it.
15533         Reported by Bruno Haible.
15534
15535         strerror: work around FreeBSD bug
15536         * lib/strerror.c (strerror): Special case 0.
15537         Reported by Bruno Haible.
15538
15539         strerror-override: avoid bloating errno module
15540         * modules/errno (Files, configure.ac): Move replacement strings...
15541         * modules/strerror-override: ...to new module.
15542         * modules/strerror (Depends-on): Add strerror-override.
15543         * modules/strerror_r-posix (Depends-on): Likewise.
15544         * MODULES.html.sh: Document new module.
15545         Reported by Bruno Haible.
15546
15547 2011-06-06  Bruno Haible  <bruno@clisp.org>
15548
15549         spawn-pipe tests: Rename program.
15550         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
15551         * tests/test-spawn-pipe-child.c: Update comment.
15552         * tests/test-spawn-pipe.sh: Update.
15553         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
15554
15555         spawn-pipe tests: Link the child program only against libc.
15556         * tests/test-spawn-pipe-child.c: New file, extracted from
15557         tests/test-spawn-pipe.c.
15558         (main): Expect only one argument.
15559         (is_open): New function, copied from tests/test-pipe.c.
15560         * tests/test-spawn-pipe.c: Don't include <errno.h>.
15561         (child_main): Remove function.
15562         (test_pipe): Pass only one argument to the child program.
15563         (main): Remove child process code. Expect the child program's name as
15564         first argument.
15565         * tests/test-spawn-pipe.sh: Pass the child program's name as first
15566         argument.
15567         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
15568         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
15569         test-spawn-pipe-child against no libraries.
15570
15571 2011-06-06  Bruno Haible  <bruno@clisp.org>
15572
15573         careadlinkat: Avoid mismatch between ssize_t and int.
15574         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
15575         * lib/careadlinkat.c (careadlinkatcwd): Define always.
15576
15577 2011-06-06  Jim Meyering  <meyering@redhat.com>
15578
15579         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
15580         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
15581         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
15582
15583 2011-06-05  Bruno Haible  <bruno@clisp.org>
15584
15585         ansi-c++-opt: Interoperability with libtool.
15586         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
15587         set the variable to "no", not to ":".
15588         * NEWS: Mention the change.
15589
15590 2011-06-05  Bruno Haible  <bruno@clisp.org>
15591
15592         acl: Fix test failure on AIX 7.
15593         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
15594         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
15595
15596 2011-06-05  Bruno Haible  <bruno@clisp.org>
15597
15598         pipe-filter-ii: Fix test failure on AIX and IRIX.
15599         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
15600         with EAGAIN, retry with a smaller buffer size.
15601
15602 2011-06-05  Bruno Haible  <bruno@clisp.org>
15603
15604         localename: Fix link dependencies.
15605         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
15606         * modules/localename-tests (Makefile.am): Link test-localename with
15607         $(LIBTHREAD).
15608
15609 2011-06-05  Bruno Haible  <bruno@clisp.org>
15610
15611         error: Avoid gcc warning.
15612         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
15613
15614 2011-06-05  Bruno Haible  <bruno@clisp.org>
15615
15616         unsetenv: Avoid gcc warning.
15617         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
15618
15619 2011-06-05  Bruno Haible  <bruno@clisp.org>
15620
15621         setenv: Avoid gcc warning.
15622         * lib/setenv.c (setenv): Provide declaration if system lacks it.
15623
15624 2011-06-05  Bruno Haible  <bruno@clisp.org>
15625
15626         sys_select: Ensure memset is declared also on AIX 7.
15627         * lib/sys_select.in.h: Include <string.h> also on AIX.
15628         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
15629         self-contained also on AIX 7.1.
15630
15631 2011-06-04  Jim Meyering  <meyering@redhat.com>
15632
15633         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
15634         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
15635         function name, "error".
15636         (_gl_translatable_diag_func_re): New configurable variable.
15637
15638 2011-06-04  Bruno Haible  <bruno@clisp.org>
15639
15640         getopt: Avoid gcc warning.
15641         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
15642
15643 2011-06-04  Bruno Haible  <bruno@clisp.org>
15644
15645         strerror_r: Fix comments.
15646         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
15647         commit.
15648
15649 2011-06-04  Bruno Haible  <bruno@clisp.org>
15650
15651         perror: Fix compilation error.
15652         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
15653         Undefine fprintf, not sprintf.
15654         * modules/perror (Depends-on): Remove intprops, verify.
15655
15656 2011-06-04  Bruno Haible  <bruno@clisp.org>
15657
15658         setlocale: Enable replacement on Cygwin 1.5.
15659         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
15660         Cygwin 1.5.x.
15661         * doc/posix-functions/setlocale.texi: Mention that the problem with the
15662         LC_CTYPE category also exists on Cygwin 1.5.x.
15663
15664 2011-06-04  Bruno Haible  <bruno@clisp.org>
15665
15666         strerror-override: Don't disable symbol renamings.
15667         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
15668         * lib/strerror-override.c: Include config.h.
15669         (strerror_override): Don't undefine.
15670
15671 2011-06-03  Bruno Haible  <bruno@clisp.org>
15672
15673         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
15674         * lib/localename.h: Update copyright header.
15675         * lib/localename.c: Likewise.
15676         * lib/relocatable.h: Likewise.
15677         * lib/relocatable.c: Likewise.
15678
15679 2011-06-02  Bruno Haible  <bruno@clisp.org>
15680
15681         doc: Fix a module name.
15682         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
15683
15684 2011-06-02  Bruno Haible  <bruno@clisp.org>
15685
15686         pipe2: Remove dependency on 'nonblocking' module.
15687         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
15688         O_NONBLOCK is defined by gnulib.
15689         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
15690         is zero.
15691         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
15692         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
15693         defined by gnulib.
15694         (get_nonblocking_flag): New function.
15695         (main): Test O_NONBLOCK flag only if it is nonzero.
15696         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
15697
15698 2011-06-03  Jim Meyering  <meyering@redhat.com>
15699
15700         maint: three new prohibit-header-without-use rules
15701         Prohibit use of cloexec.h, posixver.h, same.h without use.
15702         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
15703         (sc_prohibit_posixver_without_use): Likewise.
15704         (sc_prohibit_same_without_use): Likewise.
15705
15706 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
15707
15708         allocator: 'die' routine is now given requested size
15709         * lib/allocator.h (struct allocator.die): New size arg.
15710         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
15711         If the actual problem is an ssize_t limitation, not a size_t or
15712         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
15713
15714 2011-06-01  Eric Blake  <eblake@redhat.com>
15715
15716         strerror: drop strerror_r dependency
15717         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
15718         * lib/strerror-override.c (strerror_override): ...to new file.
15719         * lib/strerror-override.h: Add prototype.
15720         * lib/strerror-impl.h: Delete.
15721         * lib/strerror.c (strerror): New implementation.
15722         * modules/errno (Files): Add new files.
15723         (configure.ac): Compile new file as appropriate.
15724         * modules/strerror (Files): Drop unused file.
15725         (Depends-on): Drop strerror_r-posix.
15726         * MODULES.html.sh: Document strerror_r-posix.
15727         Requested by Sam Steingold.
15728
15729         perror: call strerror_r directly
15730         * modules/perror (Files): Drop strerror-impl.h.
15731         * lib/perror.c (perror): Use our own stack buffer, rather than
15732         calling a wrapper that uses static storage.
15733         * doc/posix-functions/perror.texi (perror): Document a limitation
15734         of our replacement.
15735
15736         strerror_r: fix includes for FreeBSD
15737         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
15738         since we use abort on some platforms.
15739         Reported by Matthias Bolte.
15740
15741 2011-05-31  Bruno Haible  <bruno@clisp.org>
15742
15743         Fix link errors in tests: openat-die uses gettext-h.
15744         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
15745         against $(LIBINTL).
15746         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
15747         against $(LIBINTL).
15748         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
15749         $(LIBINTL).
15750         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
15751         against $(LIBINTL).
15752         * modules/linkat-tests (Makefile.am): Link test-linkat against
15753         $(LIBINTL).
15754         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
15755         $(LIBINTL).
15756         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
15757         against $(LIBINTL).
15758         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
15759         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
15760         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
15761         $(LIBINTL).
15762         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
15763         $(LIBINTL).
15764         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
15765         $(LIBINTL).
15766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15767
15768 2011-05-31  Bruno Haible  <bruno@clisp.org>
15769
15770         Fix link errors in tests: wait-process uses gettext-h.
15771         * modules/nonblocking-pipe-tests (Makefile.am): Set
15772         test_nonblocking_pipe_main_LDADD.
15773         * modules/nonblocking-socket-tests (Makefile.am): Link
15774         test-nonblocking-socket-main against $(LIBINTL).
15775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15776
15777 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
15778
15779         assert-h: work around 'verify' incompatibility
15780         * lib/verify.h: Use @...@ directives, not ifdef.
15781         * modules/assert-h (assert.h): Implement the directives.
15782         (assert.h): Substitute the symbol-prefix more consistently.
15783
15784 2011-05-29  Jim Meyering  <meyering@redhat.com>
15785
15786         trim: remove three superfluous assignments
15787         * lib/trim.c (trim2): Remove three superfluous assignments
15788         and correct brace positioning.
15789
15790 2011-05-29  Bruno Haible  <bruno@clisp.org>
15791
15792         wctype-h: Avoid namespace pollution on Solaris 2.6.
15793         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
15794         identifiers.
15795         * doc/posix-headers/wctype.texi: Mention the problem.
15796         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15797
15798 2011-05-28  Jim Meyering  <meyering@redhat.com>
15799
15800         parse-datetime.y: accommodate -Wstrict-overflow
15801         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
15802         placate -Wstrict-overflow.
15803
15804         trim: avoid a warning from -O2 -Wstrict-overflow
15805         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
15806
15807 2011-05-29  Bruno Haible  <bruno@clisp.org>
15808
15809         gnulib-tool: Fix bug in yesterday's commit.
15810         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15811         twice.
15812
15813 2011-05-29  Bruno Haible  <bruno@clisp.org>
15814
15815         Allow multiple gnulib generated include files to be combined.
15816         * gnulib-tool (func_compute_include_guard_prefix): New function.
15817         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15818         ${gl_include_guard_prefix} references.
15819         (func_import, func_create_testdir): Invoke
15820         func_compute_include_guard_prefix.
15821         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15822         * lib/ctype.in.h: Likewise.
15823         * lib/dirent.in.h: Likewise.
15824         * lib/errno.in.h: Likewise.
15825         * lib/fcntl.in.h: Likewise.
15826         * lib/float.in.h: Likewise.
15827         * lib/getopt.in.h: Likewise.
15828         * lib/iconv.in.h: Likewise.
15829         * lib/langinfo.in.h: Likewise.
15830         * lib/locale.in.h: Likewise.
15831         * lib/math.in.h: Likewise.
15832         * lib/netdb.in.h: Likewise.
15833         * lib/netinet_in.in.h: Likewise.
15834         * lib/poll.in.h: Likewise.
15835         * lib/pthread.in.h: Likewise.
15836         * lib/pty.in.h: Likewise.
15837         * lib/sched.in.h: Likewise.
15838         * lib/se-selinux.in.h: Likewise.
15839         * lib/search.in.h: Likewise.
15840         * lib/signal.in.h: Likewise.
15841         * lib/spawn.in.h: Likewise.
15842         * lib/stdarg.in.h: Likewise.
15843         * lib/stddef.in.h: Likewise.
15844         * lib/stdint.in.h: Likewise.
15845         * lib/stdio.in.h: Likewise.
15846         * lib/stdlib.in.h: Likewise.
15847         * lib/string.in.h: Likewise.
15848         * lib/strings.in.h: Likewise.
15849         * lib/sys_file.in.h: Likewise.
15850         * lib/sys_ioctl.in.h: Likewise.
15851         * lib/sys_select.in.h: Likewise.
15852         * lib/sys_socket.in.h: Likewise.
15853         * lib/sys_stat.in.h: Likewise.
15854         * lib/sys_time.in.h: Likewise.
15855         * lib/sys_times.in.h: Likewise.
15856         * lib/sys_uio.in.h: Likewise.
15857         * lib/sys_utsname.in.h: Likewise.
15858         * lib/sys_wait.in.h: Likewise.
15859         * lib/sysexits.in.h: Likewise.
15860         * lib/termios.in.h: Likewise.
15861         * lib/time.in.h: Likewise.
15862         * lib/unistd.in.h: Likewise.
15863         * lib/wchar.in.h: Likewise.
15864         * lib/wctype.in.h: Likewise.
15865         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15866         * modules/ctype (Makefile.am): Likewise.
15867         * modules/dirent (Makefile.am): Likewise.
15868         * modules/errno (Makefile.am): Likewise.
15869         * modules/fcntl-h (Makefile.am): Likewise.
15870         * modules/float (Makefile.am): Likewise.
15871         * modules/getopt-posix (Makefile.am): Likewise.
15872         * modules/iconv-h (Makefile.am): Likewise.
15873         * modules/langinfo (Makefile.am): Likewise.
15874         * modules/locale (Makefile.am): Likewise.
15875         * modules/math (Makefile.am): Likewise.
15876         * modules/netdb (Makefile.am): Likewise.
15877         * modules/netinet_in (Makefile.am): Likewise.
15878         * modules/poll-h (Makefile.am): Likewise.
15879         * modules/pthread (Makefile.am): Likewise.
15880         * modules/pty (Makefile.am): Likewise.
15881         * modules/sched (Makefile.am): Likewise.
15882         * modules/search (Makefile.am): Likewise.
15883         * modules/selinux-h (Makefile.am): Likewise.
15884         * modules/signal (Makefile.am): Likewise.
15885         * modules/spawn (Makefile.am): Likewise.
15886         * modules/stdarg (Makefile.am): Likewise.
15887         * modules/stddef (Makefile.am): Likewise.
15888         * modules/stdint (Makefile.am): Likewise.
15889         * modules/stdio (Makefile.am): Likewise.
15890         * modules/stdlib (Makefile.am): Likewise.
15891         * modules/string (Makefile.am): Likewise.
15892         * modules/strings (Makefile.am): Likewise.
15893         * modules/sys_file (Makefile.am): Likewise.
15894         * modules/sys_ioctl (Makefile.am): Likewise.
15895         * modules/sys_select (Makefile.am): Likewise.
15896         * modules/sys_socket (Makefile.am): Likewise.
15897         * modules/sys_stat (Makefile.am): Likewise.
15898         * modules/sys_time (Makefile.am): Likewise.
15899         * modules/sys_times (Makefile.am): Likewise.
15900         * modules/sys_uio (Makefile.am): Likewise.
15901         * modules/sys_utsname (Makefile.am): Likewise.
15902         * modules/sys_wait (Makefile.am): Likewise.
15903         * modules/sysexits (Makefile.am): Likewise.
15904         * modules/termios (Makefile.am): Likewise.
15905         * modules/time (Makefile.am): Likewise.
15906         * modules/unistd (Makefile.am): Likewise.
15907         * modules/wchar (Makefile.am): Likewise.
15908         * modules/wctype-h (Makefile.am): Likewise.
15909         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15910
15911 2011-05-29  Bruno Haible  <bruno@clisp.org>
15912
15913         assert-h: Allow multiple gnulib generated replacements to coexist.
15914         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15915
15916 2011-05-29  Bruno Haible  <bruno@clisp.org>
15917
15918         argp: Allow coexistence with strerror_r-posix module.
15919         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15920         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15921         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15922         not the glibc signature.
15923
15924 2011-05-28  Bruno Haible  <bruno@clisp.org>
15925
15926         gnulib-tool: Alternative structure of testdirs, similar to --import.
15927         * gnulib-tool: New option --single-configure.
15928         (func_usage): Document it.
15929         (single_configure): New variable.
15930         (func_modules_transitive_closure_separately,
15931         func_modules_transitive_closure_separately,
15932         func_determine_use_libtests, func_modules_add_dummy_separately,
15933         func_modules_to_filelist_separately): New functions, extracted from
15934         func_import.
15935         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15936         (func_import): Use the new functions.
15937         (func_create_testdir): Set final_modules. Handle $single_configure =
15938         true case.
15939
15940 2011-05-28  Bruno Haible  <bruno@clisp.org>
15941
15942         getloadavg: Remove an unreliable safety check.
15943         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15944         getloadavg.c is in place.
15945         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15946         Reported by Sam Steingold <sds@gnu.org>.
15947
15948 2011-05-28  Bruno Haible  <bruno@clisp.org>
15949
15950         doc: Cleanup yet another file produced by texinfo.tex.
15951         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15952
15953 2011-05-28  Bruno Haible  <bruno@clisp.org>
15954
15955         Finish the conditional dependencies mechanism.
15956         * gnulib-tool: New option --no-conditional-dependencies.
15957         (func_usage): Document it. Don't mark --conditional-dependencies as
15958         experimental.
15959         (cond_dependencies): The possible values can now be true, false, empty.
15960         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15961         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15962         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15963
15964 2011-05-28  Bruno Haible  <bruno@clisp.org>
15965
15966         doc: Use a recent texinfo.tex.
15967         * doc/Makefile (tex_opts): New variable.
15968         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15969
15970 2011-05-28  Jim Meyering  <meyering@redhat.com>
15971
15972         intprops.h: adjust comment to match code change
15973         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15974         only once, it *may* have side effects.  Also fix an unrelated typo.
15975         (_GL_INT_SIGNED): Likewise.
15976
15977 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15978
15979         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15980
15981 2011-05-26  Bruno Haible  <bruno@clisp.org>
15982
15983         mbsrchr: Avoid collision with system function on Interix.
15984         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15985         Reported by Markus Duft <mduft@gentoo.org>.
15986
15987 2011-05-15  James Youngman  <jay@gnu.org>
15988
15989         getopt: for ambiguous options, enumerate the possibilities.
15990         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15991         the ambiguous options when an ambiguous prefix is given. This was
15992         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15993         glibc change was
15994         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15995
15996 2011-05-25  Eric Blake  <eblake@redhat.com>
15997
15998         getcwd: work around mingw bug
15999         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
16000         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16001         Reported by Matthias Bolte.
16002
16003 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
16004
16005         test-intprops: disable -Wtype-limits diagnostics
16006         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
16007         diagnostics.  Otherwise, the integer overflow macros generate many
16008         diagnostics.  Reported by Jim Meyering in
16009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16010
16011         intprops: shorten, to pacify gcc -Woverlength-strings
16012         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
16013         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
16014         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
16015         likely to run afoul of C compiler limits for string constant lengths.
16016         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
16017
16018 2011-05-24  Eric Blake  <eblake@redhat.com>
16019
16020         docs: document recently fixed glibc printf bug
16021         * doc/posix-functions/fprintf.texi (fprintf): Document it.
16022         * doc/posix-functions/printf.texi (printf): Likewise.
16023         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16024         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16025
16026         closein-tests: convert to init.sh
16027         * modules/closein-tests (Files): Add init.sh
16028         * tests/test-closein.sh Use it.
16029
16030         yesno-tests: convert to init.sh
16031         * modules/yesno-tests (Files): Add init.sh.
16032         * tests/test-yesno.sh: Use it.
16033
16034         atexit-tests: ensure reliable exit status
16035         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
16036         Reported by Bruno Haible.
16037
16038 2011-05-24  Bruno Haible  <bruno@clisp.org>
16039
16040         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
16041         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
16042         gl_PREREQ_STRERROR_R invocations from here...
16043         * modules/strerror_r-posix (configure.ac): ... to here.
16044
16045 2011-05-24  Eric Blake  <eblake@redhat.com>
16046
16047         strerror_r: fix missing header
16048         * lib/strerror_r.c: Avoid compiler warning about snprintf.
16049
16050         strerror_r: fix AIX test failures
16051         * lib/strerror_r.c (strerror_r): Convert silent truncation to
16052         ERANGE failure.
16053
16054         strerror_r: fix Solaris test failures
16055         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
16056         failures.
16057         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16058
16059         strerror_r: enforce POSIX recommendations
16060         * lib/strerror_r.c (safe_copy): New helper method.
16061         (strerror_r): Guarantee a non-empty string.
16062         * tests/test-strerror_r.c (main): Enhance tests to incorporate
16063         recent POSIX rulings and to match our strerror guarantees.
16064         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
16065
16066 2011-05-24  Jim Meyering  <meyering@redhat.com>
16067
16068         test-perror2.c: avoid warning about unused variable
16069         * tests/test-perror2.c (main): Remove declaration of unused "fp".
16070
16071 2011-05-24  Eric Blake  <eblake@redhat.com>
16072
16073         perror: avoid spurious test failure on HP-UX
16074         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
16075
16076         tests: fix logic bug in init.sh
16077         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
16078         shell.
16079
16080 2011-05-24  Jim Meyering  <meyering@redhat.com>
16081
16082         utimensat: do not reference an out-of-scope buffer
16083         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
16084         declared in an inner scope, yet "times" would be dereferenced outside
16085         the scope in which "ts" was valid.
16086         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
16087         of ts[2] "out/up", so that the use of aliased "times" (via
16088         "times = ts;") does not end up referencing an out-of-scope "ts"
16089
16090         opendir-safer.c: don't clobber errno; don't close negative FD
16091         * lib/opendir-safer.c (opendir_safer):
16092         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
16093         file descriptor, and more importantly, don't clobber the
16094         offending errno value with EINVAL.  Before, upon failure
16095         of dup_safer, we would pass the negative file descriptor to
16096         fdopendir, which would clobber errno.
16097
16098 2011-05-23  Bruno Haible  <bruno@clisp.org>
16099
16100         idcache: Fix module description.
16101         * modules/idcache (Include): Set to "idcache.h".
16102
16103 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16104
16105         gnulib-tool: fix portability problem with MacOS sed
16106         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
16107         before the "}".  Problem reported by Leo in
16108         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
16109         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
16110         sed_extract_condition1, sed_extract_condition2.
16111
16112 2011-05-23  Bruno Haible  <bruno@clisp.org>
16113
16114         hash: Simplify autoconf macro.
16115         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
16116
16117 2011-05-23  Bruno Haible  <bruno@clisp.org>
16118
16119         getugroups: Fix module description.
16120         * modules/getugroups (Include): Set to "getugroups.h".
16121
16122 2011-05-23  Bruno Haible  <bruno@clisp.org>
16123
16124         linkat: Simplify autoconf macro.
16125         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
16126
16127 2011-05-23  Bruno Haible  <bruno@clisp.org>
16128             Eric Blake  <eblake@redhat.com>
16129
16130         linkat, renameat: Update dependencies.
16131         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
16132         * modules/linkat (Depends-on): Likewise. Remove also readlink,
16133         symlinkat.
16134
16135 2011-05-23  Jim Meyering  <meyering@redhat.com>
16136
16137         maint.mk: more tight_scope improvements
16138         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
16139         (_gl_TS_headers): Define only in if-0'd block.
16140         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
16141         sometimes we must *not* use it.  Adjust uses accordingly.
16142         (sc_tight_scope): Use much simpler grep-based test to determine
16143         whether we skip this rule.
16144
16145         maint.mk: generalize/improve the tight-scope rule
16146         * top/maint.mk: Emit a warning when the test is skipped.
16147         (_gl_TS_dir): Add $(srcdir)/ prefix.
16148         (_gl_TS_function_match): Simplify, rather than trying
16149         to enumerate common types.  Otherwise, it would fail to match an
16150         "extern unsigned char const *" declaration in idutils.
16151         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
16152         a way to support use of that type of macro.
16153         (_gl_TS_var_match): Simplify regexp.
16154         (_gl_TS_obj_files): New configurable variable.
16155         (_gl_TS_headers): Likewise.
16156
16157 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         verify: fix bug when gnulib <assert.h> is also included
16160         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
16161         is defined, not if _GL_STATIC_ASSERT_H is not defined.
16162         Perhaps there's a better way, but this fixes the immediate problem.
16163         Problem reported by Bruno Haible in
16164         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
16165
16166 2011-05-22  Bruno Haible  <bruno@clisp.org>
16167
16168         xgetcwd: Simplify autoconf macro.
16169         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
16170
16171 2011-05-22  Bruno Haible  <bruno@clisp.org>
16172
16173         New module 'mktime-internal'.
16174         * modules/mktime-internal: New file.
16175         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
16176         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
16177         mktime_internal as a C macro if libc has __mktime_internal.
16178         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
16179         conditions.
16180         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
16181
16182 2011-05-22  Bruno Haible  <bruno@clisp.org>
16183
16184         timegm: Correct mktime replacement statements.
16185         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
16186         defining mktime as a C macro. This completes a 2009-07-28 commit.
16187
16188 2011-05-22  Bruno Haible  <bruno@clisp.org>
16189
16190         timegm: Simplify autoconf macro.
16191         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
16192
16193 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
16194
16195         clock-time: change to LGPLv2+.
16196         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
16197         BSD-like but we have no mark for that; this is good enough for now.
16198
16199 2011-05-21  Bruno Haible  <bruno@clisp.org>
16200
16201         strerror_r: Fix comments.
16202         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
16203
16204 2011-05-21  Bruno Haible  <bruno@clisp.org>
16205
16206         relocatable-prog-wrapper: Fix possible link error.
16207         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
16208         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
16209         (gl_FUNC_SETENV): ... to here.
16210         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
16211         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
16212
16213 2011-05-21  Bruno Haible  <bruno@clisp.org>
16214
16215         relocatable-prog-wrapper: Assume strerror() exists.
16216         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
16217         m4/strerror.m4.
16218         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
16219         * lib/relocwrapper.c: Remove mention of strerror module.
16220         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
16221         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
16222         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
16223         C macro.
16224
16225 2011-05-21  Bruno Haible  <bruno@clisp.org>
16226
16227         select: Simplify replacement idiom.
16228         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
16229         Win32 platforms.
16230         * lib/sys_select.in.h (select): Simplify accordingly.
16231         * modules/select (Depends-on): Likewise.
16232
16233 2011-05-21  Bruno Haible  <bruno@clisp.org>
16234
16235         mkdir-p: Simplify autoconf macro.
16236         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
16237         gl_FUNC_LCHOWN.
16238
16239 2011-05-21  Eric Blake  <eblake@redhat.com>
16240
16241         strerror_r: avoid clobbering strerror on cygwin
16242         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
16243         fall back instead to sys_errlist.
16244         * modules/strerror (configure.ac): Add witness.
16245         * tests/test-strerror_r.c (main): Enhance test.
16246         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16247         * tests/test-perror2.c (main): Free memory before exit.
16248
16249 2011-05-21  Bruno Haible  <bruno@clisp.org>
16250
16251         mkdtemp: Use gnulib naming conventions.
16252         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
16253         * modules/mkdtemp (configure.ac): Update.
16254
16255 2011-05-20  Eric Blake  <eblake@redhat.com>
16256
16257         strerror_r: avoid corrupting errno on Solaris
16258         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
16259         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
16260
16261         strerror_r: avoid compiler warning
16262         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
16263
16264         strerror_r: simplify AIX code
16265         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
16266
16267         test-perror: avoid spurious failure on FreeBSD
16268         * modules/perror-tests (Depends-on): Add strerror, now that
16269         strerror_r no longer pulls it in.
16270
16271 2011-05-20  Bruno Haible  <bruno@clisp.org>
16272
16273         strerror_r-posix: Remove unused dependencies.
16274         * modules/strerror_r-posix (Depends-on): Remove strerror.
16275         Reported by Eric Blake.
16276
16277 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
16278
16279         intprops: remove assumption about A|B representation
16280         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
16281         is a valid integer if both A and B are.  Although this is true for
16282         all known practical hosts, the C standard doesn't guarantee it,
16283         and the code need not assume it.  Also, this change may work around
16284         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
16285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
16286
16287 2011-05-20  Eric Blake  <eblake@redhat.com>
16288
16289         perror: work around FreeBSD bug
16290         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
16291         is broken.  Move AC_LIBOBJ...
16292         * modules/perror (configure.ac): Here.
16293         * doc/posix-functions/perror.texi (perror): Document this.
16294         * tests/test-perror2.c (main): Enhance test.
16295
16296         test-perror: check for strerror interactions
16297         * tests/macros.h (STREQ): Add macro.
16298         * modules/perror-tests (Files): Add second test.
16299         * tests/test-perror2.c (main): New file.
16300         * doc/posix-functions/perror.texi (perror): Document glibc bug.
16301
16302         test-perror: rewrite to use init script
16303         * modules/perror-tests (Files): Add init.sh.
16304         * tests/test-perror.sh: Use temporary directory.
16305
16306 2011-05-20  Jim Meyering  <meyering@redhat.com>
16307
16308         maint: replace misused "a" with "an"
16309         * doc/intprops.texi: "a integer"
16310         * doc/regex.texi: "a explanation"
16311         * lib/alignof.h: "a object"
16312         * lib/argmatch.h: "a explanation"
16313         * lib/argp-help.c: "a option" and "a OPTION_DOC"
16314         * lib/stdint.in.h: "a integer"
16315         * lib/userspec.c: "a owner"
16316         * doc/gnulib.texi: Fix "a idea", and reword.
16317
16318 2011-05-19  Jim Meyering  <meyering@redhat.com>
16319
16320         maint: correct misuse of "a" and "an"
16321         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
16322         * lib/argp-help.c: "an docum...": s/an/a/
16323         * lib/argp-parse.c: "An vector": s/An/A/
16324         * lib/execute.c: "an native": s/an/a/
16325         * lib/spawn-pipe.c: Likewise.
16326         * lib/gc.h: "an Gc_rc": s/an/a/
16327         * lib/unigbrk.in.h: "an grapheme": s/an/a/
16328         * lib/fts.c: "an stat.st_dev": s/an/a/
16329
16330 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16331
16332         intprops-tests: work around HP-UX 11.23 cc bug with constants
16333         * tests/test-intprops.c (VERIFY): New macro.
16334         (main): Use it, instead of verify, to work around the compiler bug; see
16335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16336
16337         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
16338         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
16339         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
16340         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
16341         (_GL_REMAINDER_OVERFLOW): Use it.
16342
16343         intprops-tests: revert unsigned part of previous change
16344         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
16345         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
16346         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
16347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
16348
16349 2011-05-19  Bruno Haible  <bruno@clisp.org>
16350
16351         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
16352         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
16353         strerror_r() returned without filling the buffer.
16354         Reported by Eric Blake.
16355
16356 2011-05-19  Eric Blake  <eblake@redhat.com>
16357
16358         strerror_r: guarantee unchanged errno
16359         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
16360         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
16361         failure.
16362         * tests/test-strerror_r.c (main): Enhance test.
16363
16364 2011-05-19  Bruno Haible  <bruno@clisp.org>
16365
16366         strerror_r: Reorder #if blocks.
16367         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
16368         for consistency with the previous commit.
16369
16370 2011-05-19  Bruno Haible  <bruno@clisp.org>
16371
16372         perror: Avoid clobbering the strerror buffer when possible.
16373         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
16374         * lib/strerror.c: Include it.
16375         * modules/strerror (Files): Add lib/strerror-impl.h.
16376         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
16377         (my_strerror): New function, defined through lib/strerror-impl.h.
16378         (perror): Use it instead of strerror.
16379         * modules/perror (Files): Add lib/strerror-impl.h.
16380         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
16381
16382 2011-05-19  Eric Blake  <eblake@redhat.com>
16383
16384         strerror_r: fix on newer cygwin
16385         * lib/strerror_r.c (strerror_r): Cygwin now has
16386         __xpg_strerror_r, use it.
16387
16388 2011-05-19  Bruno Haible  <bruno@clisp.org>
16389
16390         strerror_r: Avoid clobbering the strerror buffer when possible.
16391         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
16392         (sys_nerr, sys_errlist): New declarations.
16393         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
16394         HP-UX, native Win32, IRIX, and 32-bit Solaris.
16395         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
16396
16397 2011-05-19  Bruno Haible  <bruno@clisp.org>
16398
16399         strerror_r: Fix test failure on mingw.
16400         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
16401         EXTEND_STRERROR_R.
16402         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
16403         macros from errno.in.h instead.
16404
16405 2011-05-19  Eric Blake  <eblake@redhat.com>
16406
16407         strerror: relax test for Solaris
16408         * tests/test-strerror.c (main): Permit Solaris behavior.
16409         * tests/test-strerror_r.c (main): Likewise.
16410
16411         strerror: enforce POSIX ruling on strerror(0)
16412         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
16413         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
16414         * lib/strerror_r.c (rpl_strerror_r): Work around it.
16415         * doc/posix-functions/strerror.texi (strerror): Document it.
16416         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
16417         * tests/test-strerror.c (main): Strengthen test.
16418         * tests/test-strerror_r.c (main): Likewise.
16419
16420 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
16421
16422         intprop-tests: port to older and more-pedantic compilers
16423         * modules/intprops-tests (Files): Add tests/macros.h.
16424         * tests/test-intprops.c: Include macros.h.
16425         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
16426         it's no longer documented to expand to an integer constant expression.
16427         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
16428         argument is floating point, as it's no longer documented to expand
16429         to an integer constant expression in that case.
16430         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
16431         compiler bugs reported by Bruno Haible.  See
16432         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16433         (U0, U1): New constants, to work around the same bugs.  Also,
16434         in tests, use e.g., "(unsigned int) 39" rather than "39u".
16435
16436         intprops: work around C compiler bugs
16437         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
16438         bug in Sun C 5.11 2010/08/13 and other compilers; see
16439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
16440
16441         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
16442         * doc/intprops.texi (Integer Type Determination): Fix
16443         documentation for TYPE_IS_INTEGER: it returns an constant
16444         expression, not an integer constant expression.  Fix doc for
16445         TYPE_SIGNED: it returns an integer constant expression only if its
16446         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
16447         hardly worth documented that way....)
16448
16449 2011-05-18  Bruno Haible  <bruno@clisp.org>
16450
16451         strerror_r: Avoid clobbering the strerror buffer when possible.
16452         * lib/strerror_r.c (strerror_r): Merge the three implementations.
16453         Handle gnulib defined errno values here. When strerror() returns NULL
16454         or an empty string, return EINVAL.
16455         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
16456         gnulib defined errno values here.
16457         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
16458
16459 2011-05-18  Eric Blake  <eblake@redhat.com>
16460
16461         fnmatch: avoid compiler warning
16462         * lib/fnmatch_loop.c (FCT): Use correct type.
16463         Reported by Matthias Bolte.
16464
16465 2011-05-13  Jim Meyering  <meyering@redhat.com>
16466
16467         maint.mk: three new prohibit_<HDR>_without_use rules
16468         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
16469         (sc_prohibit_stdio-safer_without_use): Likewise.
16470         (sc_prohibit_xfreopen_without_use): Likewise.
16471
16472 2011-05-17  Jim Meyering  <meyering@redhat.com>
16473
16474         announce-gen: fail if the NEWS delta is empty
16475         If there's nothing noteworthy in NEWS, then either you forgot
16476         or you shouldn't be releasing.
16477         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
16478
16479 2011-05-17  Pádraig Brady <P@draigBrady.com>
16480
16481         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
16482         reserved symbols starting with double underscore from the check.
16483
16484 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
16485
16486         intprops: add doc
16487         * doc/intprops.texi: New file, documenting intprops.
16488         * doc/gnulib.texi (Particular Modules): Include it.
16489
16490         verify: add doc to gnulib manual and fix example
16491         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
16492         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
16493         (Compile-time Assertions): Fix example so it can't overflow.
16494
16495 2011-05-17  Jim Meyering  <meyering@redhat.com>
16496
16497         warnings.m4: don't usurp save_CPPFLAGS variable name
16498         * m4/warnings.m4: Prefix local temporary variable name with gl_.
16499
16500         doc: fix typo
16501         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
16502
16503 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16504             Bruno Haible  <bruno@clisp.org>
16505
16506         doc: Tweak recent change.
16507         * README (Portability guidelines): Tweak new text.
16508         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
16509         Interix 6.1.
16510
16511 2011-05-16  Eric Blake  <eblake@redhat.com>
16512
16513         inttypes: avoid autoconf warning
16514         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
16515         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16516
16517 2011-05-16  Sam Steingold <sds@gnu.org>
16518         and Eric Blake  <eblake@redhat.com>
16519
16520         vc-list-files: accept multiple directory operands
16521         * build-aux/vc-list-files: Iterate over all remaining operands.
16522
16523 2011-05-16  Bruno Haible  <bruno@clisp.org>
16524
16525         Fix confusion regarding deprecated modules.
16526         * modules/calloc (Status, Notice): Mark module as deprecated, not
16527         obsolete.
16528         * modules/fnmatch-posix (Status, Notice): Likewise.
16529         * modules/getdate (Status, Notice): Likewise.
16530         * modules/getopt (Status, Notice): Likewise.
16531         * modules/malloc (Status, Notice): Likewise.
16532         * modules/pipe (Status, Notice): Likewise.
16533         * modules/realloc (Status, Notice): Likewise.
16534         * modules/rename-dest-slash (Status, Notice): Likewise.
16535         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
16536         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
16537         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
16538         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
16539         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
16540
16541 2011-05-16  Bruno Haible  <bruno@clisp.org>
16542
16543         doc: List the target platforms.
16544         * doc/gnulib-intro.texi (Target Platforms): New section.
16545         * doc/gnulib.texi (Introduction): Update menu.
16546         * README (Portability guidelines): Refer to the new section. Update
16547         statement about oldest supported environment. Remove rationale why
16548         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
16549         unportable C89 function.
16550         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
16551         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
16552
16553 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
16554
16555         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
16556
16557 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
16558
16559         intprops-tests: new module
16560         * modules/intprops-tests, tests/test-intprops.c: New files.
16561
16562         intprops: add safe, portable integer overflow checking
16563         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
16564         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
16565         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
16566         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
16567         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
16568         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
16569         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
16570         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
16571         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
16572         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
16573         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
16574
16575 2011-05-12  James Youngman  <jay@gnu.org>
16576
16577         Add a test for glibc's Bugzilla bug #12378.
16578         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
16579         doesn't allow the literal matching of a lone "[" (which is
16580         required by POSIX).
16581         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
16582
16583 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16584
16585         Sync glibc change fixing Bugzilla bug #12378.
16586         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
16587         beginning and fall back to matching as normal character if the
16588         string ends before the matching ']' is found.  This is what POSIX
16589         requires.
16590
16591 2011-05-13  Eric Blake  <eblake@redhat.com>
16592
16593         getcwd-lgpl: relax test for FreeBSD
16594         * doc/posix-functions/getcwd.texi (getcwd): Document portability
16595         issue.
16596         * tests/test-getcwd-lgpl.c (main): Relax test.
16597         Reported by Matthias Bolte.
16598
16599 2011-05-11  Eric Blake  <eblake@redhat.com>
16600
16601         test-fflush: silence compiler warning
16602         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
16603
16604 2011-05-11  Bruno Haible  <bruno@clisp.org>
16605
16606         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
16607         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
16608         * modules/canonicalize (Depends-on): Add 'nocrash'.
16609         * modules/canonicalize-lgpl (Depends-on): Likewise.
16610         * doc/posix-functions/realpath.texi: Update platforms list.
16611         Reported by Ryan Schmidt <ryandesign@macports.org>.
16612
16613 2011-05-11  Bruno Haible  <bruno@clisp.org>
16614
16615         group-member: Declare function in <unistd.h>.
16616         * lib/unistd.in.h (group_member): New declaration.
16617         * lib/group-member.h: Remove file.
16618         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
16619         * tests/test-unistd-c++.cc: Check signature of group_member.
16620         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
16621         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
16622         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
16623         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
16624         HAVE_GROUP_MEMBER.
16625         * modules/group-member (Files): Remove lib/group-member.h.
16626         (Depends-on): Add unistd. Specify conditions.
16627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
16628         (Include): Change to <unistd.h>.
16629         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
16630         HAVE_GROUP_MEMBER.
16631         * NEWS: Mention the change.
16632         * lib/euidaccess.c: Don't include group-member.h.
16633
16634 2011-05-11  Bruno Haible  <bruno@clisp.org>
16635
16636         group-member: Document module.
16637         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
16638         module.
16639
16640 2011-05-11  Bruno Haible  <bruno@clisp.org>
16641
16642         fclose: Fix mistake earlier today.
16643         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
16644
16645 2011-05-11  Eric Blake  <eblake@redhat.com>
16646
16647         fclose: preserve fflush errors
16648         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
16649         Reported by Jim Meyering.
16650
16651         bootstrap: support a prereq of 'rpcgen -' on RHEL5
16652         * build-aux/bootstrap (check_versions): When no specific version
16653         is required, merely check that the app produces an exit status
16654         that indicates its existence.
16655
16656         maint.mk: drop redundant check
16657         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
16658         the same but better.
16659
16660 2011-05-11  Bruno Haible  <bruno@clisp.org>
16661
16662         fclose: Fix possible link error.
16663         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
16664         unregister_shadow_fd. Improve comments.
16665         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
16666         Eric Blake.
16667
16668 2011-05-11  Jim Meyering  <meyering@redhat.com>
16669
16670         maint.mk: improve "can not" detection and generalize rule name
16671         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
16672         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
16673         Use the same technique as in sc_prohibit_doubled_word, so that
16674         we recognize "can not" also when the words are separated by a newline.
16675         Suggested by Eric Blake.
16676         (perl_filename_lineno_text_): Define.  Factored out of...
16677         (prohibit_doubled_word_): ...here.  Use the new definition.
16678         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
16679         (prohibit_undesirable_word_seq_RE_): New overridable variable.
16680         (ignore_undesirable_word_sequence_RE_): New overridable variable.
16681
16682 2011-05-10  Eric Blake  <eblake@redhat.com>
16683
16684         fclose: avoid double close race when possible
16685         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
16686         all but WINDOWS_SOCKETS.
16687
16688 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
16689
16690         openat: correct new comment
16691         * lib/openat-proc.c (openat_proc_name): Correct the comment.
16692
16693 2011-05-10  Jim Meyering  <meyering@redhat.com>
16694
16695         openat: add comments
16696         * lib/openat-proc.c (openat_proc_name): Add comments,
16697         mostly from Eric Blake.
16698
16699 2011-05-09  Eric Blake  <eblake@redhat.com>
16700
16701         openat: reduce syscalls in first probe of /proc
16702         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
16703         be a directory.  Simplify the probe for .. bugs.
16704         * modules/openat (Depends-on): Drop same-inode.
16705         Reported by Bastien ROUCARIES.
16706
16707 2011-05-09  Jim Meyering  <meyering@redhat.com>
16708
16709         maint.mk: change semantics/name of tight_scope variables
16710         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
16711         Rename variables to align with semantics that make them more useful.
16712
16713         maint.mk: tweak new rule's name not to impinge
16714         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
16715         (sc_tight_scope): Use new rule name rather than $@-0.
16716
16717         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
16718         * top/maint.mk (sc_tight_scope): New rule.
16719         (sc_tight_scope-0): New rule, ifdef'd out.
16720         (_gl_TS_dir): Default.
16721         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
16722         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
16723
16724 2011-05-09  Simon Josefsson  <simon@josefsson.org>
16725
16726         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
16727         Haible <bruno@clisp.org>.
16728
16729 2011-05-08  Bruno Haible  <bruno@clisp.org>
16730
16731         Comments.
16732         * m4/isnanf.m4: Add comment.
16733         * m4/isnanl.m4: Likewise.
16734
16735 2011-05-08  Bruno Haible  <bruno@clisp.org>
16736
16737         glob: Remove obsolete macro.
16738         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
16739
16740 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
16741
16742         intprops: Sun C 5.11 supports __typeof__
16743         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
16744         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
16745         which is new.
16746         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
16747
16748         intprops: switch to usual gnulib indenting and naming
16749         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
16750         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
16751
16752         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
16753
16754 2011-05-08  Jim Meyering  <meyering@redhat.com>
16755
16756         maint.mk: suppress "Entering/Leaving directory" diag in announcement
16757         * top/maint.mk (release-prep): Use make's --no-print-directory
16758         option when generating the announcement.  This eliminates the
16759         pesky "make[2]: Entering/Leaving directory" diagnostics in the
16760         generated announcement template.
16761
16762 2011-05-08  Bruno Haible  <bruno@clisp.org>
16763
16764         tzset: Fix gettimeofday wrapper on Solaris 2.6.
16765         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
16766         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
16767
16768 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
16769
16770         ignore-value, verify: Omit include files from lib_SOURCES.
16771         * modules/ignore-value, modules/verify (Makefile.am):
16772         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
16773         that leads Automake to duplicate use of am__objects_... variables
16774         in Makefile.in.  See
16775         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
16776
16777 2011-05-07  Bruno Haible  <bruno@clisp.org>
16778
16779         fclose: Simplify autoconf macro.
16780         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
16781         defined.
16782
16783 2011-05-07  Bruno Haible  <bruno@clisp.org>
16784
16785         canonicalize-lgpl: Fix autoconf macro ordering bug.
16786         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
16787         gl_STDLIB_H_DEFAULTS.
16788
16789 2011-05-06  Eric Blake  <eblake@redhat.com>
16790
16791         maintainer-makefile: make sc_po_check easier to tune
16792         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
16793         to probe for strings, such as an alternate location for gnulib.
16794
16795         fclose: guarantee behavior on seekable stdin
16796         * modules/fclose (Depends-on): Add fflush.
16797         * doc/posix-functions/fclose.texi (fclose): Document this.
16798         * tests/test-fclose.c (main): Make test for this unconditional.
16799
16800 2011-05-06  Bruno Haible  <bruno@clisp.org>
16801
16802         fflush, fpurge: Relicense under LGPLv2+.
16803         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
16804         * modules/fpurge (License): Likewise.
16805         With permission from Eric Blake and Jim Meyering.
16806         Suggested by Eric Blake.
16807
16808 2011-05-06  Karl Berry  <karl@gnu.org>
16809
16810         * MODULES.html.sh (func_all_modules): remove exit.
16811
16812 2011-05-06  Jim Meyering  <meyering@redhat.com>
16813
16814         maint.mk: use info-gnu@ as the default only for a stable release
16815         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16816         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16817         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16818         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16819
16820 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16821
16822         assert-h: new module, which supports C1X-style static_assert
16823         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16824         * lib/verify.h: Revamp so that this can be copied into assert.h,
16825         while retaining the ability to use it standalone as before.
16826         Rename private identifiers so as not to encroach on the
16827         standard C namespace, since this is now used by assert.h.
16828         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16829         the old verify_true.
16830         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16831         the old verify_true.  Use _GL_VERIFY_TYPE.
16832         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16833         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16834         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16835         defined when this file is copied into the replacement assert.h.
16836         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16837         and _Static_assert is not built in.
16838         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16839         defined, and use the new macros mentioned above.
16840         * doc/posix-headers/assert.texi: Document this.
16841
16842 2011-05-05  Bruno Haible  <bruno@clisp.org>
16843
16844         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16845         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16846         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16847         gl_REPLACE_FCLOSE here.
16848         * modules/fflush (Depends-on): Remove fclose.
16849         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16850         combination with module 'fclose'.
16851
16852 2011-05-05  Bruno Haible  <bruno@clisp.org>
16853
16854         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16855         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16856         gl_FUNC_FFLUSH.
16857         (gl_FUNC_FFLUSH): Use it.
16858         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16859         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16860         gl_REPLACE_FSEEKO here.
16861
16862 2011-05-05  Bruno Haible  <bruno@clisp.org>
16863
16864         tzset: Relicense under LGPL.
16865         * modules/tzset (License): Change to LGPL.
16866         No agreement needed; it's a no-op.
16867
16868         strtoimax, strtoumax: Relicense under LGPL.
16869         * modules/strtoimax (License): Change to LGPL.
16870         * modules/strtoumax (License): Likewise.
16871         With permission from Jim Meyering, Paul Eggert:
16872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16873         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16874
16875         getgroups: Relicense under LGPL.
16876         * modules/getgroups (License): Change to LGPL.
16877         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16878         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16881
16882         nanosleep: Relicense under LGPL.
16883         * modules/nanosleep (License): Change to LGPL.
16884         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16885         Haible:
16886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16887         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16890
16891         futimens: Relicense under LGPL.
16892         * modules/futimens (License): Change to LGPL.
16893         With permission from Eric Blake:
16894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16895
16896         fflush: Relicense under LGPL.
16897         * modules/fflush (License): Change to LGPL.
16898         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16902
16903         tmpfile: Relicense under LGPL.
16904         * modules/tmpfile (License): Change to LGPL.
16905         With permission from Ben Pfaff:
16906         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16907
16908         isfinite: Relicense under LGPL.
16909         * modules/isfinite (License): Change to LGPL.
16910         With permission from Ben Pfaff, Bruno Haible:
16911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16913
16914         acosl..tanl: Relicense under LGPL.
16915         * modules/acosl (License): Change to LGPL.
16916         * modules/asinl (License): Likewise.
16917         * modules/atanl (License): Likewise.
16918         * modules/cosl (License): Likewise.
16919         * modules/expl (License): Likewise.
16920         * modules/logl (License): Likewise.
16921         * modules/sinl (License): Likewise.
16922         * modules/sqrtl (License): Likewise.
16923         * modules/tanl (License): Likewise.
16924         Source code originally from glibc and Paolo Bonzini. Agreements:
16925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16927
16928 2011-05-05  Bruno Haible  <bruno@clisp.org>
16929
16930         signal: Define sighandler_t.
16931         * lib/signal.in.h (sighandler_t): New type.
16932         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16933         whether sighandler_t is defined.
16934         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16935         * modules/signal (Depends-on): Add extensions.
16936         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16937         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16938         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16939
16940 2011-05-05  Eric Blake  <eblake@redhat.com>
16941
16942         maint: remove useless REPLACE_*_H macros
16943         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16944         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16945         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16946         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16947         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16948         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16949         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16950         * m4/btowc.m4: Update callers.
16951         * m4/dirfd.m4: Likewise.
16952         * m4/duplocale.m4: Likewise.
16953         * m4/fchdir.m4: Likewise.
16954         * m4/fdopendir.m4: Likewise.
16955         * m4/inet_ntop.m4: Likewise.
16956         * m4/inet_pton.m4: Likewise.
16957         * m4/ioctl.m4: Likewise.
16958         * m4/mbrlen.m4: Likewise.
16959         * m4/mbrtowc.m4: Likewise.
16960         * m4/mbsinit.m4: Likewise.
16961         * m4/mbsnrtowcs.m4: Likewise.
16962         * m4/mbsrtowcs.m4: Likewise.
16963         * m4/poll.m4: Likewise.
16964         * m4/setlocale.m4: Likewise.
16965         * m4/wcrtomb.m4: Likewise.
16966         * m4/wcsnrtombs.m4: Likewise.
16967         * m4/wcsrtombs.m4: Likewise.
16968         * m4/wctob.m4: Likewise.
16969         * m4/wcwidth.m4: Likewise.
16970         * modules/posix_spawn: Likewise.
16971         * modules/posix_spawn_file_actions_addclose: Likewise.
16972         * modules/posix_spawn_file_actions_adddup2: Likewise.
16973         * modules/posix_spawn_file_actions_addopen: Likewise.
16974         * modules/posix_spawn_file_actions_destroy: Likewise.
16975         * modules/posix_spawn_file_actions_init: Likewise.
16976         * modules/posix_spawnattr_destroy: Likewise.
16977         * modules/posix_spawnattr_getflags: Likewise.
16978         * modules/posix_spawnattr_getpgroup: Likewise.
16979         * modules/posix_spawnattr_getschedparam: Likewise.
16980         * modules/posix_spawnattr_getschedpolicy: Likewise.
16981         * modules/posix_spawnattr_getsigdefault: Likewise.
16982         * modules/posix_spawnattr_getsigmask: Likewise.
16983         * modules/posix_spawnattr_init: Likewise.
16984         * modules/posix_spawnattr_setflags: Likewise.
16985         * modules/posix_spawnattr_setpgroup: Likewise.
16986         * modules/posix_spawnattr_setschedparam: Likewise.
16987         * modules/posix_spawnattr_setschedpolicy: Likewise.
16988         * modules/posix_spawnattr_setsigdefault: Likewise.
16989         * modules/posix_spawnattr_setsigmask: Likewise.
16990         * modules/posix_spawnp: Likewise.
16991
16992 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16993
16994         Add option to do-release-commit-and-tag to specify branch.
16995         * build-aux/do-release-commit-and-tag: Add --branch.
16996
16997 2011-05-03  Bruno Haible  <bruno@clisp.org>
16998
16999         Avoid unnecessary compilation units, through conditional dependencies.
17000         * modules/accept (Depends-on): Add conditions to the dependencies.
17001         * modules/acosl (Depends-on): Likewise.
17002         * modules/argz (Depends-on): Likewise.
17003         * modules/asinl (Depends-on): Likewise.
17004         * modules/atanl (Depends-on): Likewise.
17005         * modules/atoll (Depends-on): Likewise.
17006         * modules/bind (Depends-on): Likewise.
17007         * modules/btowc (Depends-on): Likewise.
17008         * modules/canonicalize-lgpl (Depends-on): Likewise.
17009         * modules/ceil (Depends-on): Likewise.
17010         * modules/ceilf (Depends-on): Likewise.
17011         * modules/ceill (Depends-on): Likewise.
17012         * modules/chdir-long (Depends-on): Likewise.
17013         * modules/chown (Depends-on): Likewise.
17014         * modules/close (Depends-on): Likewise.
17015         * modules/connect (Depends-on): Likewise.
17016         * modules/cosl (Depends-on): Likewise.
17017         * modules/dirfd (Depends-on): Likewise.
17018         * modules/dprintf (Depends-on): Likewise.
17019         * modules/dprintf-posix (Depends-on): Likewise.
17020         * modules/error (Depends-on): Likewise.
17021         * modules/euidaccess (Depends-on): Likewise.
17022         * modules/expl (Depends-on): Likewise.
17023         * modules/faccessat (Depends-on): Likewise.
17024         * modules/fchdir (Depends-on): Likewise.
17025         * modules/fclose (Depends-on): Likewise.
17026         * modules/fcntl (Depends-on): Likewise.
17027         * modules/fdopendir (Depends-on): Likewise.
17028         * modules/fflush (Depends-on): Likewise.
17029         * modules/floor (Depends-on): Likewise.
17030         * modules/floorf (Depends-on): Likewise.
17031         * modules/floorl (Depends-on): Likewise.
17032         * modules/fnmatch (Depends-on): Likewise.
17033         * modules/fopen (Depends-on): Likewise.
17034         * modules/fprintf-posix (Depends-on): Likewise.
17035         * modules/frexp (Depends-on): Likewise.
17036         * modules/frexp-nolibm (Depends-on): Likewise.
17037         * modules/frexpl (Depends-on): Likewise.
17038         * modules/frexpl-nolibm (Depends-on): Likewise.
17039         * modules/fseek (Depends-on): Likewise.
17040         * modules/fsusage (Depends-on): Likewise.
17041         * modules/ftell (Depends-on): Likewise.
17042         * modules/ftello (Depends-on): Likewise.
17043         * modules/futimens (Depends-on): Likewise.
17044         * modules/getcwd (Depends-on): Likewise.
17045         * modules/getcwd-lgpl (Depends-on): Likewise.
17046         * modules/getdelim (Depends-on): Likewise.
17047         * modules/getdomainname (Depends-on): Likewise.
17048         * modules/getgroups (Depends-on): Likewise.
17049         * modules/gethostname (Depends-on): Likewise.
17050         * modules/getline (Depends-on): Likewise.
17051         * modules/getlogin_r (Depends-on): Likewise.
17052         * modules/getopt-posix (Depends-on): Likewise.
17053         * modules/getpeername (Depends-on): Likewise.
17054         * modules/getsockname (Depends-on): Likewise.
17055         * modules/getsockopt (Depends-on): Likewise.
17056         * modules/getsubopt (Depends-on): Likewise.
17057         * modules/getusershell (Depends-on): Likewise.
17058         * modules/glob (Depends-on): Likewise.
17059         * modules/grantpt (Depends-on): Likewise.
17060         * modules/iconv_open (Depends-on): Likewise.
17061         * modules/iconv_open-utf (Depends-on): Likewise.
17062         * modules/inet_ntop (Depends-on): Likewise.
17063         * modules/inet_pton (Depends-on): Likewise.
17064         * modules/ioctl (Depends-on): Likewise.
17065         * modules/isapipe (Depends-on): Likewise.
17066         * modules/isfinite (Depends-on): Likewise.
17067         * modules/isinf (Depends-on): Likewise.
17068         * modules/lchown (Depends-on): Likewise.
17069         * modules/ldexpl (Depends-on): Likewise.
17070         * modules/link (Depends-on): Likewise.
17071         * modules/linkat (Depends-on): Likewise.
17072         * modules/listen (Depends-on): Likewise.
17073         * modules/logl (Depends-on): Likewise.
17074         * modules/lstat (Depends-on): Likewise.
17075         * modules/mbrlen (Depends-on): Likewise.
17076         * modules/mbrtowc (Depends-on): Likewise.
17077         * modules/mbsinit (Depends-on): Likewise.
17078         * modules/mbsnrtowcs (Depends-on): Likewise.
17079         * modules/mbsrtowcs (Depends-on): Likewise.
17080         * modules/mbtowc (Depends-on): Likewise.
17081         * modules/memcmp (Depends-on): Likewise.
17082         * modules/mkdir (Depends-on): Likewise.
17083         * modules/mkdtemp (Depends-on): Likewise.
17084         * modules/mkfifo (Depends-on): Likewise.
17085         * modules/mkfifoat (Depends-on): Likewise.
17086         * modules/mknod (Depends-on): Likewise.
17087         * modules/mkostemp (Depends-on): Likewise.
17088         * modules/mkostemps (Depends-on): Likewise.
17089         * modules/mkstemp (Depends-on): Likewise.
17090         * modules/mkstemps (Depends-on): Likewise.
17091         * modules/mktime (Depends-on): Likewise.
17092         * modules/nanosleep (Depends-on): Likewise.
17093         * modules/open (Depends-on): Likewise.
17094         * modules/openat (Depends-on): Likewise.
17095         * modules/perror (Depends-on): Likewise.
17096         * modules/poll (Depends-on): Likewise.
17097         * modules/popen (Depends-on): Likewise.
17098         * modules/posix_spawn (Depends-on): Likewise.
17099         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
17100         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
17101         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
17102         * modules/posix_spawnp (Depends-on): Likewise.
17103         * modules/pread (Depends-on): Likewise.
17104         * modules/printf-posix (Depends-on): Likewise.
17105         * modules/ptsname (Depends-on): Likewise.
17106         * modules/putenv (Depends-on): Likewise.
17107         * modules/pwrite (Depends-on): Likewise.
17108         * modules/readline (Depends-on): Likewise.
17109         * modules/readlink (Depends-on): Likewise.
17110         * modules/readlinkat (Depends-on): Likewise.
17111         * modules/recv (Depends-on): Likewise.
17112         * modules/recvfrom (Depends-on): Likewise.
17113         * modules/regex (Depends-on): Likewise.
17114         * modules/remove (Depends-on): Likewise.
17115         * modules/rename (Depends-on): Likewise.
17116         * modules/renameat (Depends-on): Likewise.
17117         * modules/rmdir (Depends-on): Likewise.
17118         * modules/round (Depends-on): Likewise.
17119         * modules/roundf (Depends-on): Likewise.
17120         * modules/roundl (Depends-on): Likewise.
17121         * modules/rpmatch (Depends-on): Likewise.
17122         * modules/select (Depends-on): Likewise.
17123         * modules/send (Depends-on): Likewise.
17124         * modules/sendto (Depends-on): Likewise.
17125         * modules/setenv (Depends-on): Likewise.
17126         * modules/setlocale (Depends-on): Likewise.
17127         * modules/setsockopt (Depends-on): Likewise.
17128         * modules/shutdown (Depends-on): Likewise.
17129         * modules/sigaction (Depends-on): Likewise.
17130         * modules/signbit (Depends-on): Likewise.
17131         * modules/sigprocmask (Depends-on): Likewise.
17132         * modules/sinl (Depends-on): Likewise.
17133         * modules/sleep (Depends-on): Likewise.
17134         * modules/snprintf (Depends-on): Likewise.
17135         * modules/snprintf-posix (Depends-on): Likewise.
17136         * modules/socket (Depends-on): Likewise.
17137         * modules/sprintf-posix (Depends-on): Likewise.
17138         * modules/sqrtl (Depends-on): Likewise.
17139         * modules/stat (Depends-on): Likewise.
17140         * modules/strchrnul (Depends-on): Likewise.
17141         * modules/strdup-posix (Depends-on): Likewise.
17142         * modules/strerror (Depends-on): Likewise.
17143         * modules/strerror_r-posix (Depends-on): Likewise.
17144         * modules/strndup (Depends-on): Likewise.
17145         * modules/strnlen (Depends-on): Likewise.
17146         * modules/strptime (Depends-on): Likewise.
17147         * modules/strsep (Depends-on): Likewise.
17148         * modules/strsignal (Depends-on): Likewise.
17149         * modules/strstr-simple (Depends-on): Likewise.
17150         * modules/strtod (Depends-on): Likewise.
17151         * modules/strtoimax (Depends-on): Likewise.
17152         * modules/strtok_r (Depends-on): Likewise.
17153         * modules/strtoumax (Depends-on): Likewise.
17154         * modules/symlink (Depends-on): Likewise.
17155         * modules/symlinkat (Depends-on): Likewise.
17156         * modules/tanl (Depends-on): Likewise.
17157         * modules/tcgetsid (Depends-on): Likewise.
17158         * modules/tmpfile (Depends-on): Likewise.
17159         * modules/trunc (Depends-on): Likewise.
17160         * modules/truncf (Depends-on): Likewise.
17161         * modules/truncl (Depends-on): Likewise.
17162         * modules/uname (Depends-on): Likewise.
17163         * modules/unlink (Depends-on): Likewise.
17164         * modules/unlockpt (Depends-on): Likewise.
17165         * modules/unsetenv (Depends-on): Likewise.
17166         * modules/usleep (Depends-on): Likewise.
17167         * modules/utimensat (Depends-on): Likewise.
17168         * modules/vasprintf (Depends-on): Likewise.
17169         * modules/vdprintf (Depends-on): Likewise.
17170         * modules/vdprintf-posix (Depends-on): Likewise.
17171         * modules/vfprintf-posix (Depends-on): Likewise.
17172         * modules/vprintf-posix (Depends-on): Likewise.
17173         * modules/vsnprintf (Depends-on): Likewise.
17174         * modules/vsnprintf-posix (Depends-on): Likewise.
17175         * modules/vsprintf-posix (Depends-on): Likewise.
17176         * modules/wcrtomb (Depends-on): Likewise.
17177         * modules/wcscasecmp (Depends-on): Likewise.
17178         * modules/wcscspn (Depends-on): Likewise.
17179         * modules/wcsdup (Depends-on): Likewise.
17180         * modules/wcsncasecmp (Depends-on): Likewise.
17181         * modules/wcsnrtombs (Depends-on): Likewise.
17182         * modules/wcspbrk (Depends-on): Likewise.
17183         * modules/wcsrtombs (Depends-on): Likewise.
17184         * modules/wcsspn (Depends-on): Likewise.
17185         * modules/wcsstr (Depends-on): Likewise.
17186         * modules/wcstok (Depends-on): Likewise.
17187         * modules/wcswidth (Depends-on): Likewise.
17188         * modules/wctob (Depends-on): Likewise.
17189         * modules/wctomb (Depends-on): Likewise.
17190         * modules/wctype (Depends-on): Likewise.
17191         * modules/wcwidth (Depends-on): Likewise.
17192         * modules/write (Depends-on): Likewise.
17193
17194 2011-05-03  Bruno Haible  <bruno@clisp.org>
17195
17196         Support for conditional dependencies.
17197         * doc/gnulib.texi (Module description): Document the syntax of
17198         conditional dependencies.
17199         * gnulib-tool: New option --conditional-dependencies.
17200         (func_usage): Document it.
17201         (cond_dependencies): New variable.
17202         (func_get_automake_snippet_conditional,
17203         func_get_automake_snippet_unconditional): New functions, extracted from
17204         func_get_automake_snippet.
17205         (func_get_automake_snippet): Use them.
17206         (sed_first_32_chars): New variable.
17207         (func_module_shellfunc_name): New function.
17208         (func_module_shellvar_name): New function.
17209         (func_module_conditional_name): New function.
17210         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
17211         func_cond_module_condition): New functions.
17212         (func_modules_transitive_closure): Add support for conditional
17213         dependencies.
17214         (func_emit_lib_Makefile_am): For a conditional module, enclose the
17215         conditional automake snippet in an automake conditional.
17216         (func_emit_autoconf_snippets): Emit shell functions that contain the
17217         code for conditional modules.
17218         (func_import, func_create_testdir): Update specification.
17219
17220 2011-05-03  Eric Blake  <eblake@redhat.com>
17221
17222         test-getaddrinfo: report error information
17223         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
17224
17225 2011-05-03  Jim Meyering  <meyering@redhat.com>
17226
17227         bootstrap: avoid build failure when $GZIP is set
17228         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
17229         program name.  If defined at all, it is supposed to list gzip options.
17230         Reported by Alan Curry in http://debbugs.gnu.org/8609
17231
17232 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
17233
17234         readme-release: new module with release instructions
17235         * modules/readme-release: New module.
17236         * top/README-release: New file, from coreutils, grep, diffutils.
17237         * MODULES.html.sh (Support for maintaining and releasing): Add it.
17238
17239 2011-05-02  Eric Blake  <eblake@redhat.com>
17240
17241         fflush: also replace fclose when fixing fflush
17242         * modules/fflush (Depends-on): Add fclose.
17243         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
17244         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
17245         memstreams with no backing fd.
17246         * doc/posix-functions/fclose.texi (fclose): Document the use of
17247         fflush module to fix the bug.
17248         * tests/test-fclose.c (main): Relax test when fclose is used in
17249         isolation.
17250
17251         fclose: add some tests
17252         * modules/fclose-tests: New test module.
17253         * tests/test-fclose.c: New file.
17254         * doc/posix-functions/fclose.texi (fclose): Document the bug.
17255
17256         fclose: reduced dependencies
17257         * modules/fclose (Depends-on): Switch from fflush/fseeko to
17258         simpler lseek.
17259         * lib/fclose.c (rpl_fclose): Likewise.
17260         Reported by Simon Josefsson.
17261
17262         exit: drop remaining clients
17263         * modules/argmatch (Depends-on): Replace exit with stdlib.
17264         * modules/copy-file (Depends-on): Likewise.
17265         * modules/execute (Depends-on): Likewise.
17266         * modules/exitfail (Depends-on): Likewise.
17267         * modules/obstack (Depends-on): Likewise.
17268         * modules/pagealign_alloc (Depends-on): Likewise.
17269         * modules/pipe-filter-gi (Depends-on): Likewise.
17270         * modules/pipe-filter-ii (Depends-on): Likewise.
17271         * modules/savewd (Depends-on): Likewise.
17272         * modules/spawn-pipe (Depends-on): Likewise.
17273         * modules/wait-process (Depends-on): Likewise.
17274         * modules/xsetenv (Depends-on): Likewise.
17275         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
17276         * modules/git-merge-changelog (Depends-on): Likewise.
17277         * modules/long-options (Depends-on): Likewise.
17278         * modules/pt_chown (Depends-on): Likewise.
17279         * modules/sysexits (Depends-on): Likewise.
17280
17281         freading: relax license from LGPLv3+ to LGPLv2+
17282         * modules/freading (License): Relax LGPL version.
17283
17284 2011-05-02  Bruno Haible  <bruno@clisp.org>
17285
17286         fchdir: Remove unused dependencies.
17287         * modules/fchdir (Depends-on): Remove include_next.
17288
17289 2011-05-02  Bruno Haible  <bruno@clisp.org>
17290
17291         gnulib-tool: Refactor.
17292         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
17293         from func_emit_autoconf_snippets.
17294         (func_emit_autoconf_snippets): Use it.
17295
17296 2011-05-02  Simon Josefsson  <simon@josefsson.org>
17297
17298         * NEWS: Document removal of 'exit'.
17299         * modules/exit: Remove file.
17300
17301 2011-05-01  Bruno Haible  <bruno@clisp.org>
17302
17303         Update DEPENDENCIES.
17304         * DEPENDENCIES (gettext): Recommend the newest release.
17305         Reported by Simon Josefsson.
17306
17307 2011-05-01  Bruno Haible  <bruno@clisp.org>
17308
17309         gnulib-tool: Reduce code duplication.
17310         * gnulib-tool (func_emit_autoconf_snippets): New function.
17311         (func_import, func_create_testdir): Use it.
17312
17313 2011-04-30  Eric Blake  <eblake@redhat.com>
17314
17315         fclose: don't fail on non-seekable input stream
17316         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
17317         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
17318         since fflush is allowed to fail in that case.
17319
17320 2011-04-30  Bruno Haible  <bruno@clisp.org>
17321
17322         dup3: cleanup
17323         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
17324
17325 2011-04-30  Bruno Haible  <bruno@clisp.org>
17326
17327         netdb: Make it work in C++ mode.
17328         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
17329         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
17330         module.
17331         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
17332         gl_MODULE_INDICATOR_FOR_TESTS.
17333         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
17334         * modules/netdb-c++-tests: New file.
17335         * tests/test-netdb-c++.cc: New file.
17336
17337 2011-04-30  Bruno Haible  <bruno@clisp.org>
17338
17339         New modules 'vfscanf', 'vscanf'.
17340         * modules/vfscanf: New file.
17341         * modules/vscanf: New file.
17342         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
17343         here.
17344         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
17345         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
17346
17347 2011-04-30  Bruno Haible  <bruno@clisp.org>
17348
17349         passfd: Add comments.
17350         * lib/passfd.c: Add comments about platforms.
17351
17352 2011-04-30  Bruno Haible  <bruno@clisp.org>
17353
17354         sys_uio: Make <sys/uio.h> self-contained.
17355         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
17356         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
17357
17358 2011-04-30  Bruno Haible  <bruno@clisp.org>
17359
17360         sys_socket: Ensure 'struct iovec' definition.
17361         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
17362         <sys/socket.h>.
17363         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
17364
17365 2011-04-30  Bruno Haible  <bruno@clisp.org>
17366
17367         sys_uio: Protect definition of 'struct iovec'.
17368         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
17369         it as a C struct.
17370
17371 2011-04-30  Bruno Haible  <bruno@clisp.org>
17372
17373         manywarnings: fix indentation
17374         * m4/manywarnings.m4: Indent by 2 spaces consistently.
17375
17376 2011-04-30  Pádraig Brady <P@draigBrady.com>
17377
17378         manywarnings: add -Wno-missing-field-initializers if needed.
17379         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
17380         option if it's needed to allow initialization with { 0, }
17381
17382 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
17383
17384         announce-gen: cosmetic improvement
17385         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
17386
17387 2011-04-29  Jim Meyering  <meyering@redhat.com>
17388
17389         vc-list-files: indent with spaces, not TABs
17390         * build-aux/vc-list-files: Convert leading TABs to spaces,
17391         to match the style of most other files in gnulib.
17392
17393         announce-gen: indent with spaces, not TABs
17394         * build-aux/announce-gen: Convert all TABs to spaces, to match
17395         the style of most other files in gnulib.
17396
17397 2011-04-29  Eric Blake  <eblake@redhat.com>
17398
17399         quotearg: avoid uninitialized variable use
17400         * lib/quotearg.c (quoting_options_from_style): Initialize
17401         remaining fields, and ensure that custom styles are only used via
17402         quoting_options rather than quoting_style.
17403
17404 2011-04-29  Jim Meyering  <meyering@redhat.com>
17405
17406         maint.mk: remove unused VC-tag variable
17407         * top/maint.mk (VC-tag): Remove unused variable.
17408
17409 2011-04-29  Bruno Haible  <bruno@clisp.org>
17410
17411         netdb: fix gai_strerror replacements
17412         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
17413         * modules/netdb: Substitute it.
17414
17415 2011-04-29  Jim Meyering  <meyering@redhat.com>
17416
17417         test-getcwd.c: avoid new set-but-not-used warning
17418         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
17419         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
17420         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
17421         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
17422
17423         test-hash.c: avoid a new shadowing warning
17424         * tests/test-hash.c (main): Don't shadow "dup".
17425
17426 2011-04-28  Eric Blake  <eblake@redhat.com>
17427
17428         getaddrinfo: fix gai_strerror signature
17429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
17430         and work around mingw with UNICODE defined.
17431         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
17432         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
17433         * modules/netdb (Makefile.am): Substitute it.
17434         * lib/netdb.in.h (gai_strerror): Declare replacement.
17435         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
17436         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
17437         the fix.
17438
17439         getsockopt: avoid compiler warning
17440         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
17441         Reported by Matthias Bolte.
17442
17443         tests: drop unused link dependency
17444         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
17445         * modules/dirent-safer-tests (Makefile.am): Likewise.
17446         * modules/fdopendir-tests (Makefile.am): Likewise.
17447         * modules/mkfifoat-tests (Makefile.am): Likewise.
17448         * modules/openat-safer-tests (Makefile.am): Likewise.
17449         * modules/openat-tests (Makefile.am): Likewise.
17450         * modules/readlinkat-tests (Makefile.am): Likewise.
17451         * modules/symlinkat-tests (Makefile.am): Likewise.
17452         * modules/linkat-tests (Makefile.am): Likewise.
17453         (Depends-on): Switch to filenamecat-lgpl.
17454         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
17455         LIBINTL.
17456         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
17457         * tests/test-linkat.c (main): Don't require xalloc.
17458
17459         hash, mgetgroups: drop xalloc dependency
17460         * lib/hash.c (includes): Adjust includes.
17461         * lib/mgetgroups.c (includes): Likewise.
17462         (xgetgroups): Move...
17463         * lib/xgetgroups.c: ...to new file.
17464         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
17465         * modules/xgetgroups: New file, split from...
17466         * modules/mgetgroups: ...here.
17467         (Depends-on): Add xalloc-oversized.
17468         * modules/hash (Depends-on): Likewise.
17469         * modules/hash-tests (Depends-on): Drop xalloc.
17470         (test_hash_LDADD): Drop unused library.
17471         * tests/test-hash.c (main): Break xalloc dependency.
17472         (includes): Drop unused include.
17473
17474         xalloc-oversized: new module
17475         * modules/xalloc-oversized: New module.
17476         * modules/xalloc (Depends-on): Add it.
17477         * lib/xalloc.h (xalloc_oversized): Move...
17478         * lib/xalloc-oversized.h: ...into new file.
17479
17480         utimecmp: drop dependency on xmalloc
17481         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
17482         due to memory pressure.
17483         * modules/utimecmp (Depends-on): Drop xalloc.
17484
17485 2011-04-27  Eric Blake  <eblake@redhat.com>
17486
17487         getcwd: fix mingw bugs
17488         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
17489         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
17490         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
17491
17492 2011-04-27  Bruno Haible  <bruno@clisp.org>
17493
17494         mkstemps: Ensure declaration on MacOS X 10.5.
17495         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
17496         * doc/glibc-functions/mkstemps.texi: Document header file problem on
17497         MacOS X.
17498
17499 2011-04-27  Bruno Haible  <bruno@clisp.org>
17500
17501         mkstemp: More documentation.
17502         * doc/posix-functions/mkstemp.texi: Document header file problem on
17503         MacOS X.
17504
17505 2011-04-27  Bruno Haible  <bruno@clisp.org>
17506
17507         mkstemp: Tweak configure message when cross-compiling.
17508         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
17509         result as a guess.
17510
17511 2011-04-27  Bruno Haible  <bruno@clisp.org>
17512
17513         clean-temp: Clarify what it does.
17514         * lib/clean-temp.h: Add more comments.
17515         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
17516         module.
17517         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
17518         * doc/glibc-functions/mkstemps.texi: Likewise.
17519         * doc/glibc-functions/mkostemps.texi: Likewise.
17520
17521 2011-04-27  Eric Blake  <eblake@redhat.com>
17522
17523         fchdir: avoid extra chdir and fix test
17524         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
17525         getcwd-lgpl.
17526         * lib/fchdir.c (get_name): Any absolute name will do; it does not
17527         have to be canonical.
17528         (canonicalize_file_name): Drop unused macro.
17529         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
17530
17531         filenamecat-lgpl: fix licence
17532         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
17533         when it was first created.
17534
17535         linkat, renameat: add missing dependency
17536         * modules/linkat (Depends-on): Require getcwd-lgpl.
17537         * modules/renameat (Depends-on): Likewise.
17538
17539         tests: reduce dependencies
17540         * tests/test-linkat.c (main): Use lighter-weight getcwd.
17541         * tests/test-renameat.c (main): Likewise.
17542         * modules/linkat-tests (Depends-on): Relax dependency.
17543         * modules/renameat-tests (Depends-on): Likewise.
17544         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
17545         dependency explicit.
17546
17547         save-cwd: reduce default dependency
17548         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
17549         * lib/save-cwd.c: Update comments.
17550         * NEWS: Document the semantic change.
17551
17552         getcwd: enhance tests
17553         * tests/test-getcwd-lgpl.c: New file, taken from...
17554         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
17555         repeat long path stress tests from m4 probe.
17556         * modules/getcwd-lgpl-tests: New module.
17557         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
17558         * m4/getcwd-abort-bug.m4: Update comment.
17559         * m4/getcwd-path-max.m4: Likewise.
17560
17561         getcwd-lgpl: new module
17562         * modules/getcwd-lgpl: New module.
17563         * lib/getcwd-lgpl.c: New file.
17564         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17565         * MODULES.html.sh (lacking POSIX:2008): Likewise.
17566         * modules/getcwd (configure.ac): Set C witness.
17567         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
17568
17569         getcwd: tweak comments
17570         * m4/getcwd-abort-bug.m4: Fix comments.
17571         * m4/getcwd-path-max.m4: Likewise.
17572         * m4/getcwd.m4: Likewise.
17573
17574 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17575         and Eric Blake  <eblake@redhat.com>
17576
17577         mkstemp: replace if system version uses wrong permissions
17578         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
17579         read/write mode bits set in file created by mkstemp.
17580         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
17581
17582 2011-04-27  Eric Blake  <eblake@redhat.com>
17583
17584         passfd: avoid compiler warning
17585         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
17586         Reported by Laine Stump.
17587
17588 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
17589
17590         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
17591         required by the NetBSD (and perhaps other 4.4BSD derived) join.
17592
17593 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
17594         and Eric Blake  <eblake@redhat.com>
17595
17596         mkstemp: mention clean-temp module
17597         * lib/mkstemp.c: Add comment.
17598         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
17599
17600 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
17601
17602         inttypes: also provide default values for 32-bit tests
17603         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
17604         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
17605
17606 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
17607
17608         strtoumax: remove dependency on strtoimax
17609         This is like the strtoull change of yesterday.
17610         * modules/strtoumax (Files): Add lib/strtoimax.c.
17611         (Depends-on): Remove strtoimax and add verify.
17612
17613         inttypes-incomplete: new module
17614         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
17615         all but the PRI* and SCN* parts of gl_INTTYPES_H.
17616         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
17617         of gl_INTTYPES_H.
17618         (gl_INTTYPES_H): Rewrite in terms of these new macros.
17619         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
17620         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
17621         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
17622         * modules/strtoumax, modules/xstrtol (Depends-on):
17623         Depend on inttypes-incomplete, not inttypes.
17624         * modules/inttypes-incomplete: New module, containing the contents
17625         of the old modules/inttypes module, except that the Files: section
17626         omits m4/inttypes-pri.m4, and the configure.ac section invokes
17627         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
17628         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
17629         (Depends-on): Depend only on inttypes-incomplete.
17630         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
17631
17632         inttypes: omit now-redundant strtoimax and strtoumax work
17633         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
17634         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
17635
17636         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
17637         This supports apps that need pointers to strtoimax and strtoumax,
17638         and ports to HP-UX 11.00 64.bit, which has macros that expand to
17639         nonexistent functions.  See
17640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
17641         et seq.
17642         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
17643         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
17644         a macro.
17645         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
17646
17647 2011-04-25  Simon Josefsson  <simon@josefsson.org>
17648
17649         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
17650
17651 2011-04-25  Bruno Haible  <bruno@clisp.org>
17652
17653         strtol, strtoul: Mark modules as obsolete.
17654         * modules/strtol (Status, Notice): New sections.
17655         * modules/strtoul (Status, Notice): New sections.
17656
17657 2011-04-25  Bruno Haible  <bruno@clisp.org>
17658
17659         strtod: Remove check for strtod, unless supporting old platforms.
17660         * modules/strtod-obsolete: New file.
17661         * m4/strtod-obsolete.m4: New file.
17662         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
17663         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
17664         * modules/strtod (Depends-on): Add strtod-obsolete.
17665         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
17666
17667 2011-04-25  Bruno Haible  <bruno@clisp.org>
17668
17669         strcase: Make module obsolete.
17670         * modules/strcase (Status, Notice): New sections.
17671
17672 2011-04-25  Bruno Haible  <bruno@clisp.org>
17673
17674         dup2: Remove check for dup2, unless supporting old obsolete platforms.
17675         * modules/dup2-obsolete: New file.
17676         * m4/dup2-obsolete.m4: New file.
17677         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
17678         gl_FUNC_DUP2_OBSOLETE is not also defined.
17679         * modules/dup2 (Depends-on): Add dup2-obsolete.
17680         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
17681
17682 2011-04-25  Bruno Haible  <bruno@clisp.org>
17683
17684         strnlen: Avoid memchr related link error on old obsolete platforms.
17685         * modules/memchr-obsolete: New file.
17686         * m4/memchr-obsolete.m4: New file.
17687         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
17688         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
17689         * modules/memchr (Depends-on): Add memchr-obsolete.
17690         * modules/strnlen (Depends-on): Likewise.
17691         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
17692
17693 2011-04-25  Jim Meyering  <meyering@redhat.com>
17694
17695         maint.mk: makefile_at_at_check extend and clean up
17696         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
17697         in addition to */Makefile.am.
17698         Exempt legitimate uses of @VAR@ notation, e.g.,
17699         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
17700         Remove obsolete coreutils-specific comment.
17701         Prompted by discussion here:
17702         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
17703
17704 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
17705
17706         strtoul: remove dependency on strtol
17707         This is so that 'configure' need not check for strtol merely because
17708         the application needs strtoul.
17709         * modules/strtoul (Files): Add lib/strtol.c.
17710         (Depends-on): Remove strtol.
17711
17712         strtoull: remove dependency on strtoul
17713         This is like the strtoll change.
17714         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
17715         (Depends-on): Remove strtoul.
17716
17717         strtoll: remove dependency on strtol
17718         This is so that 'configure' need not check for strtol merely because
17719         the application needs strtoll.
17720         * modules/strtoll (Files): Add lib/strtol.c.
17721         (Depends-on): Remove strtol.
17722
17723 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17724
17725         inttypes: Move some configure check to module 'imaxdiv'.
17726         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
17727         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
17728         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
17729
17730 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17731
17732         inttypes: Move some configure check to module 'imaxabs'.
17733         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
17734         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
17735         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
17736
17737 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17738
17739         inttypes: Remove configure tests that are not needed since 2009-12-31.
17740         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
17741         gl_cv_header_working_inttypes_h.
17742
17743 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
17744
17745         * modules/strnlen (Depends-on): Remove memchr.
17746         The strnlen implementation doesn't need the memchr module's fixes; see
17747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
17748
17749         strtol: remove dependency on wchar
17750         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
17751         * modules/strtol (Depends-on): Remove wchar.
17752
17753 2011-04-21  Eric Blake  <eblake@redhat.com>
17754
17755         passfd: fix test regression on Linux
17756         * modules/passfd-tests (configure.ac): Correct socketpair check.
17757
17758         passfd: speed up configure and drop unused code
17759         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
17760         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
17761         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
17762         Instead of probing at configure for unix_scm_rights_bsd44_way,
17763         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
17764         check to a struct member probe.
17765         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
17766         (sendfd, recvfd): Update preprocessor checks.
17767         * modules/passfd (Files): Reflect rename, and drop unused file.
17768         (Depends-on): Drop unused dependency.
17769
17770         passfd: allow compilation on mingw
17771         * modules/sys_socket (Depends-on): Add sys_uio.
17772         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
17773         iovec and a minimal struct msghdr.
17774         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
17775         * tests/test-sys_socket.c (main): Enhance test.
17776         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
17777         guaranteed to provide what we need.
17778         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
17779         * modules/passfd-tests (Depends-on): Add sys_wait.
17780         * tests/test-passfd.c (main): Skip test on mingw, for now.
17781         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
17782         partial 'struct msghdr' implementation.
17783
17784         sys_uio: new module
17785         * modules/sys_uio: New module.
17786         * modules/sys_uio-tests: Likewise.
17787         * lib/sys_uio.in.h: New file.
17788         * m4/sys_uio_h.m4: Likewise.
17789         * tests/test-sys_uio.c: Likewise.
17790         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
17791         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
17792
17793 2011-04-20  Jim Meyering  <meyering@redhat.com>
17794
17795         useless-if-before-free: avoid false-positive
17796         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
17797         disjunct so that it too requires a terminating ";".  Without that,
17798         this script would identify as useless one statement from gcc that
17799         was not:
17800           if (aligned_ptr)
17801             free (((void **) aligned_ptr) [-1]);
17802
17803 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
17804
17805         doc: update users.txt.
17806         * users.txt: Add barcode.
17807
17808 2011-04-19  Bruno Haible  <bruno@clisp.org>
17809
17810         ioctl: Remove link dependency on native Windows.
17811         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17812         (gl_close_fn, gl_ioctl_fn): New types.
17813         (struct fd_hook): Renamed from struct close_hook. Change type of
17814         private_close_fn field. Add private_ioctl_fn field.
17815         (close_hook_fn): Add parameter for primary close method.
17816         (execute_close_hooks, execute_all_close_hooks): Likewise.
17817         (ioctl_hook_fn): New type.
17818         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17819         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17820         argument.
17821         (unregister_fd_hook): Renamed from unregister_close_hook.
17822         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17823         Don't include <unistd.h>.
17824         (close): Remove undef.
17825         (anchor): Update.
17826         (execute_close_hooks): Add argument for primary close method.
17827         (execute_all_close_hooks): Likewise.
17828         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17829         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17830         argument. Allow each argument to be NULL.
17831         (unregister_fd_hook): Renamed from unregister_close_hook.
17832         * lib/close.c (rpl_close): Pass 'close' function pointer to
17833         execute_all_close_hooks.
17834         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17835         (primary_ioctl): New function.
17836         (ioctl): Don't call ioctlsocket here. Instead, call
17837         execute_all_ioctl_hooks.
17838         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17839         close method.
17840         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17841         (fd_sockets_hook): Renamed from close_sockets_hook.
17842         (gl_sockets_startup, gl_sockets_cleanup): Update.
17843         * modules/fd-hook: Renamed from modules/close-hook. Update.
17844         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17845         * modules/sockets (Depends-on): Likewise.
17846         * modules/ioctl (Depends-on): Add fd-hook.
17847         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17848         GNULIB_SOCKET.
17849
17850 2011-04-19  Bruno Haible  <bruno@clisp.org>
17851
17852         Move the support of O_NONBLOCK in open() to the 'open' module.
17853         * modules/nonblocking (Depends-on): Remove 'open'.
17854         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17855         gl_cv_have_open_O_NONBLOCK.
17856         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17857         O_NONBLOCK support.
17858         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17859
17860 2011-04-17  Bruno Haible  <bruno@clisp.org>
17861
17862         pipe2: Simplify code.
17863         * lib/pipe2.c (pipe2): Reduce code duplication.
17864
17865 2011-04-17  Bruno Haible  <bruno@clisp.org>
17866
17867         nonblocking: Add comment.
17868         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17869
17870 2011-04-17  Bruno Haible  <bruno@clisp.org>
17871
17872         nonblocking: Add tests for sockets.
17873         * tests/test-nonblocking-socket.sh: New file.
17874         * tests/test-nonblocking-socket-main.c: New file.
17875         * tests/test-nonblocking-socket-child.c: New file.
17876         * tests/test-nonblocking-socket.h: New file.
17877         * tests/socket-server.h: New file.
17878         * tests/socket-client.h: New file.
17879         * modules/nonblocking-socket-tests: New file.
17880         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17881
17882 2011-04-17  Bruno Haible  <bruno@clisp.org>
17883
17884         nonblocking: Add tests for pipes.
17885         * tests/test-nonblocking-pipe.sh: New file.
17886         * tests/test-nonblocking-pipe-main.c: New file.
17887         * tests/test-nonblocking-pipe-child.c: New file.
17888         * tests/test-nonblocking-pipe.h: New file.
17889         * tests/test-nonblocking-writer.h: New file.
17890         * tests/test-nonblocking-reader.h: New file.
17891         * tests/test-nonblocking-misc.h: New file.
17892         * modules/nonblocking-pipe-tests: New file.
17893         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17894
17895 2011-04-16  Bruno Haible  <bruno@clisp.org>
17896
17897         gettext: Clarify the needed programmer actions.
17898         * modules/gettext (Notice): New field.
17899         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17900
17901 2011-04-16  Bruno Haible  <bruno@clisp.org>
17902
17903         strchrnul: Tweak last commit.
17904         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17905         bug.
17906         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17907         as in _GL_FUNCDECL_SYS.
17908         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17909         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17910
17911 2011-04-15  Eric Blake  <eblake@redhat.com>
17912
17913         strchrnul: work around cygwin bug
17914         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17915         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17917         * modules/string (Makefile.am): Substitute it.
17918         * lib/string.in.h (strchrnul): Use it.
17919
17920 2011-04-15  Bruno Haible  <bruno@clisp.org>
17921
17922         Don't require lib/stdio-write.c when only module 'stdio' is used.
17923         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17924         invocation.
17925         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17926
17927 2011-04-14  Bruno Haible  <bruno@clisp.org>
17928
17929         Support non-blocking pipe I/O in read() on native Windows.
17930         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17931         (read): New declaration.
17932         * lib/read.c: New file.
17933         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17934         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17935         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17936         vscanf): New declarations.
17937         * lib/stdio-read.c: New file.
17938         * m4/read.m4: New file.
17939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17940         REPLACE_READ.
17941         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17942         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17943         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17944         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17945         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17946         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17947         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17948         * modules/read: New file.
17949         * modules/nonblocking (Files): Add lib/stdio-read.c.
17950         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17951         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17952         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17953         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17954         * modules/pread (Depends-on): Add read.
17955         * modules/safe-read (Depends-on): Likewise.
17956         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17957         gets, scanf, vfscanf, vscanf): Verify signatures.
17958         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17959         problem with non-blocking pipes.
17960         * doc/posix-functions/fgetc.texi: Likewise.
17961         * doc/posix-functions/fgets.texi: Likewise.
17962         * doc/posix-functions/fread.texi: Likewise.
17963         * doc/posix-functions/fscanf.texi: Likewise.
17964         * doc/posix-functions/getc.texi: Likewise.
17965         * doc/posix-functions/getchar.texi: Likewise.
17966         * doc/posix-functions/gets.texi: Likewise.
17967         * doc/posix-functions/scanf.texi: Likewise.
17968         * doc/posix-functions/vfscanf.texi: Likewise.
17969         * doc/posix-functions/vscanf.texi: Likewise.
17970
17971 2011-04-14  Bruno Haible  <bruno@clisp.org>
17972
17973         Support non-blocking pipe I/O in write() on native Windows.
17974         * lib/write.c (rpl_write): Split a write request that failed merely
17975         because the byte count was larger than the pipe buffer's size.
17976         * doc/posix-functions/write.texi: Mention the problem with large byte
17977         counts.
17978
17979 2011-04-14  Bruno Haible  <bruno@clisp.org>
17980
17981         wchar: Ensure that wchar_t gets defined on uClibc.
17982         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17983         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17984
17985 2011-04-13  Bruno Haible  <bruno@clisp.org>
17986
17987         safe-write, full-read: Avoid unnecessary compilation units.
17988         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17989         (Depends-on): Remove safe-read. Add ssize_t.
17990         * modules/full-read (Files): Add lib/full-write.c.
17991         (Depends-on): Add full-write.
17992
17993 2011-04-13  Bruno Haible  <bruno@clisp.org>
17994
17995         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17996         * modules/pwrite (Depends-on): Add 'write'.
17997
17998 2011-04-13  Bruno Haible  <bruno@clisp.org>
17999
18000         Support non-blocking pipe I/O in write() on native Windows.
18001         * lib/unistd.in.h (write): Enable replacement also if
18002         GNULIB_UNISTD_H_NONBLOCKING is 1.
18003         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
18004         (rpl_write): When failing to write on a non-blocking pipe, change
18005         errno from ENOSPC to EAGAIN.
18006         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
18007         putchar, puts, vfprintf, vprintf): Enable replacement also if
18008         GNULIB_STDIO_H_NONBLOCKING is 1.
18009         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
18010         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
18011         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
18012         CALL_WITH_SIGPIPE_EMULATION.
18013         (CALL_WITH_SIGPIPE_EMULATION): Use them.
18014         * m4/nonblocking.m4: New file.
18015         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
18016         for non-blocking I/O support.
18017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18018         GNULIB_UNISTD_H_NONBLOCKING.
18019         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
18020         required for non-blocking I/O support.
18021         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
18022         * modules/nonblocking (Files): Add m4/nonblocking.m4,
18023         lib/stdio-write.c, m4/asm-underscore.m4.
18024         (Depends-on): Add stdio, unistd.
18025         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
18026         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
18027         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
18028         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
18029         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
18030         problem with non-blocking pipes.
18031         * doc/posix-functions/fputc.texi: Likewise.
18032         * doc/posix-functions/fputs.texi: Likewise.
18033         * doc/posix-functions/fwrite.texi: Likewise.
18034         * doc/posix-functions/printf.texi: Likewise.
18035         * doc/posix-functions/putc.texi: Likewise.
18036         * doc/posix-functions/putchar.texi: Likewise.
18037         * doc/posix-functions/puts.texi: Likewise.
18038         * doc/posix-functions/vfprintf.texi: Likewise.
18039         * doc/posix-functions/vprintf.texi: Likewise.
18040         * doc/posix-functions/write.texi: Likewise.
18041
18042 2011-04-10  Jim Meyering  <meyering@redhat.com>
18043
18044         maint.mk: prohibit doubled words
18045         Detect them also when they're separated by a newline.
18046         There are 3 ways to customize it:
18047           - disable the test on a per file basis, as usual with rules using
18048             $(VC_LIST_EXCEPT)
18049           - replace the default doubled-word-selecting regexp (affects all files)
18050           - ignore a particular file-vs-doubled-word match
18051         I nearly used that last one to ignore the "is is" match in
18052         coreutils' NEWS file, since the text was "ls -is is ..."
18053         To do that, I would have added this line to cfg.mk:
18054           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
18055         but it would have ignored any "is is" match in NEWS.
18056         Low probability, but still...
18057         Instead, I changed the text, slightly:
18058           -  ls -is is now consistent with ls -lis in ignoring values returned
18059           +  "ls -is" is now consistent with ls -lis in ignoring values returned
18060         * top/maint.mk (prohibit_double_word_RE_): Provide default.
18061         (prohibit_doubled_word_): Define.
18062         (sc_prohibit_doubled_word): New rule.
18063         (sc_prohibit_the_the): Remove.  Subsumed by the above.
18064
18065 2011-04-10  Jim Meyering  <meyering@redhat.com>
18066
18067         maint: fix doubled-word typo in comment
18068         * m4/gethostname.m4: s/is is/it is/
18069         * m4/getdomainname.m4: Likewise.
18070
18071 2011-04-10  Jim Meyering  <meyering@redhat.com>
18072
18073         maint: remove doubled word: s/it it/it/
18074         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
18075
18076 2011-04-10  Jim Meyering  <meyering@redhat.com>
18077
18078         maint.mk: remove useless semicolon and backslash
18079         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
18080         semicolon and backslash.
18081
18082 2011-04-10  Bruno Haible  <bruno@clisp.org>
18083
18084         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
18085         * modules/stdint-tests (Depends-on): Add wchar.
18086
18087 2011-04-10  Jim Meyering  <meyering@redhat.com>
18088
18089         maint: remove doubled words in comments, e.g., s/a a/a/
18090         * lib/strptime.c (day_of_the_week): s/the the/the/
18091         * tests/test-chown.h (test_chown): s/a a/a/
18092
18093         test-chown.h: correct a cast
18094         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
18095         when the destination is a stat.st_gid.
18096
18097 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
18098
18099         getaddrinfo: Fix test for sa_len member.
18100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
18101         include <sys/types.h> before <sys/socket.h>.
18102
18103 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
18104
18105         maint: change "can not" to "cannot"
18106         * doc/posix-functions/iconv.texi (iconv): This one crossed line
18107         boundaries.
18108
18109 2011-04-09  Jim Meyering  <meyering@redhat.com>
18110
18111         maint: change "a a" to "a"
18112         * tests/test-lchown.h (test_lchown): s/a a/a/
18113
18114         maint.mk: prohibit \<the the\>
18115         * top/maint.mk (sc_prohibit_the_the): New rule.
18116
18117         maint: fix "the the" in comment
18118         * lib/count-one-bits.h: s/the the/the/
18119
18120         maint: change "can not" to "cannot"
18121         But do not change the occurrences in maintain.texi or in
18122         build-aux/po/Makefile.in.in, which I presume comes from gettext.
18123         * doc/gnulib-tool.texi: s/can not/cannot/
18124         * doc/posix-functions/accept.texi (accept): Likewise.
18125         * doc/posix-functions/socket.texi (socket): Likewise.
18126         * lib/mbrtowc.c: Likewise.
18127
18128         maint.mk: prohibit use of "can not"
18129         * top/maint.mk (sc_prohibit_can_not): New rule.
18130         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
18131
18132 2011-04-09  Bruno Haible  <bruno@clisp.org>
18133
18134         careadlinkat: Guard against misuse of careadlinkatcwd.
18135         * lib/careadlinkat.c: Include <stdlib.h>.
18136         (careadlinkatcwd): Check that the fd argument is as expected.
18137
18138 2011-04-09  Bruno Haible  <bruno@clisp.org>
18139
18140         careadlinkat: Use common coding style.
18141         * lib/careadlinkat.c: Move gnulib includes after system includes.
18142
18143 2011-04-09  Bruno Haible  <bruno@clisp.org>
18144
18145         careadlinkat: Clarify specification.
18146         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
18147         (careadlinkatcwd): Add comment.
18148         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
18149
18150 2011-04-09  Bruno Haible  <bruno@clisp.org>
18151
18152         areadlinkat: Avoid link error on many platforms.
18153         * modules/areadlinkat (Depends-on): Add areadlink.
18154
18155 2011-04-09  Bruno Haible  <bruno@clisp.org>
18156
18157         allocator, careadlinkat: Fix double-inclusion guard.
18158         * lib/allocator.h: Fix double-inclusion guard.
18159         * lib/careadlinkat.h: Likewise.
18160
18161 2011-04-09  Bruno Haible  <bruno@clisp.org>
18162
18163         relocatable-prog-wrapper: Update after module 'areadlink' changed.
18164         * lib/relocwrapper.c: Update dependencies hierarchy.
18165         * build-aux/install-reloc: Update list of files to be compiled.
18166         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
18167         lib/allocator.[hc].
18168
18169 2011-04-08  Eric Blake  <eblake@redhat.com>
18170
18171         strftime: silence gnulib-tool warning
18172         * modules/strftime-tests (Depends-on): Drop automatic dependency.
18173
18174 2011-04-08  Bruno Haible  <bruno@clisp.org>
18175
18176         verify: Fix syntax error with GCC 4.6 in C++ mode.
18177         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
18178         (HAVE_STATIC_ASSERT): New macro.
18179         (verify_true, verify): Use 'static_assert' if it is supported and
18180         '_Static_assert' is not supported.
18181
18182 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
18183
18184         allocator: New module.
18185         * modules/allocator, lib/allocator.c: New files.
18186         * lib/allocator.h (stdlib_allocator): New decl.
18187         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
18188         Remove.  Do not include <stdlib.h>.
18189         (careadlinkat): Use stdlib_allocator instead of rolling our own.
18190         * modules/careadlinkat (Files): Remove lib/allocator.h.
18191         (Depends-on): Add allocator.
18192
18193         stdlib: let modules use system malloc, realloc
18194         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
18195         if !_GL_USE_STDLIB_ALLOC.
18196         (malloc, realloc): Limit this change to a smaller scope.
18197
18198         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
18199         (malloc, realloc): Don't #undef; no longer needed.
18200         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18201         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18202         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18203         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18204         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18205         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18206         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
18207         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
18208
18209         careadlinkat: rename members to avoid problem
18210         * lib/allocator.h (struct allocator): Rename members from
18211         malloc/realloc to allocate/reallocate, to avoid problems if malloc
18212         and realloc are #define'd.  Reported by Eric Blake in
18213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
18214         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
18215
18216 2011-04-08  Eric Blake  <eblake@redhat.com>
18217
18218         nonblocking: reduce dependency
18219         * tests/test-nonblocking.c: Only test sockets when in use.
18220         * modules/nonblocking-tests (Depends-on): Drop socket.
18221         (Makefile.am): Link even if sockets are not present.
18222         * modules/pipe2-tests (Makefile.am): Likewise.
18223         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
18224
18225         pipe2: fix O_NONBLOCK support on mingw
18226         * modules/pipe2 (Depends-on): Add nonblocking.
18227         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
18228         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
18229         * tests/test-nonblocking.c (main): Likewise.
18230         * modules/pipe2-tests (Makefile.am): Avoid link failure.
18231
18232         fcntl-h: fix O_ACCMODE on cygwin
18233         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
18234         * lib/fcntl.in.h (O_ACCMODE): Fix it.
18235
18236         pipe-filter: drop O_NONBLOCK workarounds
18237         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
18238         * modules/pipe-filter-ii (Depends-on): Likewise.
18239         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
18240
18241         nonblocking: provide O_NONBLOCK for mingw
18242         * modules/nonblocking (Depends-on): Add open.
18243         (configure.ac): Set new witness macro.
18244         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
18245         * modules/fcntl-h (Makefile.am): Substitute it.
18246         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
18247         nonblocking module is in use.
18248         * lib/nonblocking.c: Adjust portability test.
18249         * lib/open.c (open): Don't let native open see gnulib flag.
18250         * tests/test-fcntl-h.c (main): Enhance test.
18251         * tests/test-open.h (test_open): Likewise.
18252         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
18253
18254         careadlinkat: fix compilation error on mingw
18255         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
18256         within struct allocator.
18257
18258 2011-04-06  Eric Blake  <eblake@redhat.com>
18259
18260         binary-io: relicense under LGPLv2+
18261         * modules/binary-io (License): Relax to LGPLv2+.
18262         Requested for libvirt, and required by pipe2.
18263
18264 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
18265
18266         verify: use _Static_assert if available
18267         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
18268         (verify_true, verify): Use it if available.  This generates better
18269         diagnostics with GCC 4.6.0 and later.
18270
18271 2011-04-05  Bruno Haible  <bruno@clisp.org>
18272
18273         Remove leftover generated .h files after config.status changed.
18274
18275         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
18276         GL_GENERATE_ALLOCA_H.
18277         * modules/alloca-opt (Makefile.am): Remove alloca.h if
18278         GL_GENERATE_ALLOCA_H evaluates to false.
18279
18280         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
18281         GL_GENERATE_ARGZ_H.
18282         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
18283         evaluates to false.
18284
18285         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
18286         GL_GENERATE_BYTESWAP_H.
18287         * modules/byteswap (Makefile.am): Remove byteswap.h if
18288         GL_GENERATE_BYTESWAP_H evaluates to false.
18289
18290         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
18291         GL_GENERATE_ERRNO_H.
18292         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
18293         evaluates to false.
18294
18295         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
18296         GL_GENERATE_FLOAT_H.
18297         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
18298         evaluates to false.
18299
18300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
18301         GL_GENERATE_FNMATCH_H.
18302         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
18303         GL_GENERATE_FNMATCH_H evaluates to false.
18304
18305         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
18306         GL_GENERATE_GLOB_H.
18307         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
18308         evaluates to false.
18309
18310         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
18311         automake conditional GL_GENERATE_ICONV_H.
18312         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
18313         evaluates to false.
18314
18315         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
18316         GL_GENERATE_NETINET_IN_H.
18317         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
18318         GL_GENERATE_NETINET_IN_H evaluates to false.
18319
18320         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
18321         conditional GL_GENERATE_PTHREAD_H.
18322         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
18323         * modules/pthread (Makefile.am): Remove pthread.h if
18324         GL_GENERATE_PTHREAD_H evaluates to false.
18325
18326         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
18327         GL_GENERATE_SCHED_H.
18328         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
18329         evaluates to false.
18330
18331         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
18332         conditional GL_GENERATE_SELINUX_CONTEXT_H.
18333         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
18334         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
18335
18336         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
18337         GL_GENERATE_STDARG_H.
18338         * modules/stdarg (Makefile.am): Remove stdarg.h if
18339         GL_GENERATE_STDARG_H evaluates to false.
18340
18341         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
18342         GL_GENERATE_STDBOOL_H.
18343         * modules/stdbool (Makefile.am): Remove stdbool.h if
18344         GL_GENERATE_STDBOOL_H evaluates to false.
18345
18346         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
18347         conditional GL_GENERATE_STDDEF_H.
18348         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
18349         * modules/stddef (Makefile.am): Remove stddef.h if
18350         GL_GENERATE_STDDEF_H evaluates to false.
18351
18352         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
18353         GL_GENERATE_STDINT_H.
18354         * modules/stdint (Makefile.am): Remove stdint.h if
18355         GL_GENERATE_STDINT_H evaluates to false.
18356
18357         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
18358         GL_GENERATE_SYSEXITS_H.
18359         * modules/sysexits (Makefile.am): Remove sysexits.h if
18360         GL_GENERATE_SYSEXITS_H evaluates to false.
18361
18362         Reported by Karl Berry and Ralf Wildenhues.
18363
18364 2011-04-05  Bruno Haible  <bruno@clisp.org>
18365
18366         Ensure to rebuild generated .h files when config.status has changed.
18367         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
18368         config.status.
18369         * modules/ctype (Makefile.am): Likewise.
18370         * modules/dirent (Makefile.am): Likewise.
18371         * modules/errno (Makefile.am): Likewise.
18372         * modules/fcntl-h (Makefile.am): Likewise.
18373         * modules/float (Makefile.am): Likewise.
18374         * modules/getopt-posix (Makefile.am): Likewise.
18375         * modules/glob (Makefile.am): Likewise.
18376         * modules/iconv-h (Makefile.am): Likewise.
18377         * modules/inttypes (Makefile.am): Likewise.
18378         * modules/langinfo (Makefile.am): Likewise.
18379         * modules/locale (Makefile.am): Likewise.
18380         * modules/math (Makefile.am): Likewise.
18381         * modules/netdb (Makefile.am): Likewise.
18382         * modules/netinet_in (Makefile.am): Likewise.
18383         * modules/poll-h (Makefile.am): Likewise.
18384         * modules/pthread (Makefile.am): Likewise.
18385         * modules/pty (Makefile.am): Likewise.
18386         * modules/sched (Makefile.am): Likewise.
18387         * modules/search (Makefile.am): Likewise.
18388         * modules/selinux-h (Makefile.am): Likewise.
18389         * modules/signal (Makefile.am): Likewise.
18390         * modules/spawn (Makefile.am): Likewise.
18391         * modules/stdarg (Makefile.am): Likewise.
18392         * modules/stdbool (Makefile.am): Likewise.
18393         * modules/stddef (Makefile.am): Likewise.
18394         * modules/stdint (Makefile.am): Likewise.
18395         * modules/stdio (Makefile.am): Likewise.
18396         * modules/stdlib (Makefile.am): Likewise.
18397         * modules/string (Makefile.am): Likewise.
18398         * modules/strings (Makefile.am): Likewise.
18399         * modules/sys_file (Makefile.am): Likewise.
18400         * modules/sys_ioctl (Makefile.am): Likewise.
18401         * modules/sys_select (Makefile.am): Likewise.
18402         * modules/sys_socket (Makefile.am): Likewise.
18403         * modules/sys_stat (Makefile.am): Likewise.
18404         * modules/sys_time (Makefile.am): Likewise.
18405         * modules/sys_times (Makefile.am): Likewise.
18406         * modules/sys_utsname (Makefile.am): Likewise.
18407         * modules/sys_wait (Makefile.am): Likewise.
18408         * modules/sysexits (Makefile.am): Likewise.
18409         * modules/termios (Makefile.am): Likewise.
18410         * modules/time (Makefile.am): Likewise.
18411         * modules/unistd (Makefile.am): Likewise.
18412         * modules/wchar (Makefile.am): Likewise.
18413         * modules/wctype-h (Makefile.am): Likewise.
18414         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
18415
18416 2011-04-05  Bruno Haible  <bruno@clisp.org>
18417
18418         pipe2: Relicense under LGPLv2+.
18419         * modules/pipe2 (License): Change to LGPLv2+.
18420         Requested by Eric Blake, for libvirt.
18421
18422 2011-04-05  Bruce Korb  <bkorb@gnu.org>
18423
18424         bootstrap: compute gnulib_extra_files after updating build_aux
18425         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
18426         change build_aux or also supply gnulib_extra_files.  Handle correctly.
18427
18428 2011-04-05  Eric Blake  <eblake@redhat.com>
18429
18430         bootstrap: preserve git whitelist item sorting
18431         * build-aux/bootstrap (sort_patterns): New function.
18432         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
18433
18434 2011-04-05  Simon Josefsson  <simon@josefsson.org>
18435
18436         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
18437         sc_space_tab check.
18438
18439 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
18440
18441         areadlink, areadlinkat: rewrite in terms of careadlinkat
18442         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
18443         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
18444         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
18445         (malloc, realloc): Remove #undefs.
18446         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
18447         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
18448         readlink, ssize_t, stdint, unistd.
18449         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
18450         areadlink, stdint.
18451
18452         careadlinkat: new module
18453         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
18454         * modules/careadlinkat: New files, written by me with
18455         a review and feedback from Ben Pfaff in
18456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
18457
18458 2011-04-01  Bruno Haible  <bruno@clisp.org>
18459
18460         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
18461         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
18462         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
18463         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
18464         Reported by Bruce Korb <bruce.korb@gmail.com>.
18465
18466 2011-04-01  Bruno Haible  <bruno@clisp.org>
18467
18468         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
18469         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
18470         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
18471         * modules/wcpcpy (Depends-on): Add extensions.
18472         * modules/wcpncpy (Depends-on): Likewise.
18473         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
18474         systems.
18475         * doc/posix-functions/wcpncpy.texi: Likewise.
18476         * doc/posix-functions/wcwidth.texi: Likewise.
18477
18478 2011-03-31  Eric Blake  <eblake@redhat.com>
18479
18480         nonblocking: fix mingw test failures
18481         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
18482         non-blocking flag on regular file.
18483         (get_nonblocking_flag): Set errno on invalid fd.
18484         * tests/test-nonblocking.c (main): Avoid test failure on
18485         directories if fchdir is not active.
18486         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
18487
18488 2011-03-31  Bruno Haible  <bruno@clisp.org>
18489
18490         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
18491         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
18492         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
18493         Reported by Simon Josefsson <simon@josefsson.org>.
18494
18495 2011-03-31  Bruno Haible  <bruno@clisp.org>
18496         and Eric Blake  <eblake@redhat.com>
18497
18498         nonblocking: new module
18499         * modules/nonblocking: New module.
18500         * modules/nonblocking-tests: Likewise.
18501         * lib/nonblocking.h: New file.
18502         * lib/nonblocking.c: Likewise.
18503         * tests/test-nonblocking.c: New test.
18504         * lib/ioctl.c (ioctl) [mingw]: Update comment.
18505
18506 2011-03-30  Bruno Haible  <bruno@clisp.org>
18507
18508         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
18509         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
18510         instead of 'printf' format for GCC >= 4.4.
18511         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
18512         (fprintf, printf, vfprintf, vprintf): Declare with
18513         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
18514         the system's vfprintf() function.
18515         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
18516
18517 2011-03-30  Eric Blake  <eblake@redhat.com>
18518
18519         passfd: fix scoping bug
18520         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
18521         before sendmsg/recvmsg.
18522
18523         passfd: standardize coding conventions
18524         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
18525         can be learned at compile time.
18526         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
18527         ifdefs.
18528         (sendfd, recvfd): Follow gnulib code conventions.
18529
18530         passfd: fix incorrect sendmsg arguments
18531         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
18532         incorrect msg_controllen value.
18533         * modules/passfd-tests (Depends-on): Check for alarm.
18534         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
18535         Reported by Bastien ROUCARIES.
18536
18537 2011-03-30  Bruno Haible  <bruno@clisp.org>
18538
18539         c-strcasestr: Relicense under LGPLv2+.
18540         * modules/c-strcasestr (License): Change to LGPLv2+.
18541         Requested by Eric Blake, for libvirt.
18542
18543 2011-03-30  Simon Josefsson  <simon@josefsson.org>
18544
18545         * users.txt: Add libidn2.  Fix libtasn1 link.
18546
18547 2011-03-30  Jim Meyering  <meyering@redhat.com>
18548
18549         tests: readlink* ("",... fails with EINVAL on newer kernels
18550         readlink and readlinkat have typically failed with ENOENT for
18551         the invalid, empty file name,  "".  However, with the advent
18552         of linux-2.6.39, they fail with EINVAL.
18553         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
18554         when operating on the empty file name.
18555         * tests/test-readlink.h (test_readlink): Likewise.
18556
18557 2011-03-29  Bruno Haible  <bruno@clisp.org>
18558
18559         Relicense some modules under LGPLv2+, for libidn2.
18560         * modules/array-mergesort (License): Change to LGPLv2+.
18561         * modules/c-strcaseeq (License): Likewise.
18562         * modules/striconveh (License): Likewise.
18563         * modules/striconveha (License): Likewise.
18564         * modules/uniconv/base (License): Likewise.
18565         * modules/uniconv/u8-conv-from-enc (License): Likewise.
18566         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
18567         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
18568         * modules/unictype/base (License): Likewise.
18569         * modules/unictype/bidiclass-of (License): Likewise.
18570         * modules/unictype/category-M (License): Likewise.
18571         * modules/unictype/category-none (License): Likewise.
18572         * modules/unictype/category-of (License): Likewise.
18573         * modules/unictype/category-test (License): Likewise.
18574         * modules/unictype/category-test-withtable (License): Likewise.
18575         * modules/unictype/combining-class (License): Likewise.
18576         * modules/unictype/joiningtype-of (License): Likewise.
18577         * modules/unictype/scripts (License): Likewise.
18578         * modules/uninorm/base (License): Likewise.
18579         * modules/uninorm/canonical-decomposition (License): Likewise.
18580         * modules/uninorm/composition (License): Likewise.
18581         * modules/uninorm/decompose-internal (License): Likewise.
18582         * modules/uninorm/decomposition-table (License): Likewise.
18583         * modules/uninorm/nfc (License): Likewise.
18584         * modules/uninorm/nfd (License): Likewise.
18585         * modules/uninorm/u32-normalize (License): Likewise.
18586         * modules/unistr/base (License): Likewise.
18587         * modules/unistr/u32-cpy (License): Likewise.
18588         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
18589         * modules/unistr/u32-to-u8 (License): Likewise.
18590         * modules/unistr/u32-uctomb (License): Likewise.
18591         * modules/unistr/u8-check (License): Likewise.
18592         * modules/unistr/u8-mblen (License): Likewise.
18593         * modules/unistr/u8-mbtouc (License): Likewise.
18594         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
18595         * modules/unistr/u8-mbtoucr (License): Likewise.
18596         * modules/unistr/u8-prev (License): Likewise.
18597         * modules/unistr/u8-strlen (License): Likewise.
18598         * modules/unistr/u8-to-u32 (License): Likewise.
18599         * modules/unistr/u8-uctomb (License): Likewise.
18600         * modules/unitypes (License): Likewise.
18601         Requested by Simon Josefsson.
18602
18603 2011-03-29  Simon Josefsson  <simon@josefsson.org>
18604
18605         lib-symbol-visibility: Add a notice.
18606         * modules/lib-symbol-visibility (Notice): New field.
18607
18608 2011-03-29  Bruno Haible  <bruno@clisp.org>
18609
18610         getaddrinfo: Doc fix.
18611         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
18612         section "fixed in Gnulib".
18613
18614 2011-03-28  Simon Josefsson  <simon@josefsson.org>
18615
18616         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
18617         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
18618
18619 2011-03-26  Bruno Haible  <bruno@clisp.org>
18620
18621         unictype/property-byname: Reduce the number of load-time relocations.
18622         * lib/unictype/pr_byname.c: Include <stdlib.h>.
18623         (UC_PROPERTY_INDEX_*): New enumeration values.
18624         (uc_property_byname): Convert an index from the lookup table to an
18625         uc_property_t.
18626         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
18627         values.
18628
18629 2011-03-26  Bruno Haible  <bruno@clisp.org>
18630
18631         unictype/property-byname: Allow omitted word separators and aliases.
18632         * lib/unictype/pr_byname.gperf: Add property names without word
18633         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
18634         for 'space'.
18635
18636 2011-03-26  Bruno Haible  <bruno@clisp.org>
18637
18638         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
18639         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
18640         also hyphens to space.
18641         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
18642         without spaces.
18643         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
18644
18645 2011-03-26  Bruno Haible  <bruno@clisp.org>
18646
18647         unictype/joiningtype-byname: Recognize long names as well.
18648         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
18649         a long name.
18650         * lib/unictype/joiningtype_byname.c: Include <string.h>,
18651         unictype/joiningtype_byname.h.
18652         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
18653         * lib/unictype/joiningtype_byname.gperf: New file.
18654         * modules/unictype/joiningtype-byname (Files): Add
18655         lib/unictype/joiningtype_byname.gperf.
18656         (Depends-on): Add gperf.
18657         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
18658         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
18659         long names.
18660
18661         Tests for module 'unictype/joiningtype-longname'.
18662         * modules/unictype/joiningtype-longname-tests: New file.
18663         * tests/unictype/test-joiningtype_longname.c: New file.
18664
18665         New module 'unictype/joiningtype-longname'.
18666         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
18667         * lib/unictype/joiningtype_longname.c: New file.
18668         * modules/unictype/joiningtype-longname: New file.
18669         * modules/unictype/joiningtype-all (Depends-on): Add
18670         unictype/joiningtype-longname.
18671
18672 2011-03-26  Bruno Haible  <bruno@clisp.org>
18673
18674         unictype/bidiclass-byname: Recognize long names as well.
18675         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
18676         name.
18677         * lib/unictype/bidi_byname.c: Include <string.h>,
18678         unictype/bidi_byname.h.
18679         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
18680         * lib/unictype/bidi_byname.gperf: New file.
18681         * modules/unictype/bidiclass-byname (Files): Add
18682         lib/unictype/bidi_byname.gperf.
18683         (Depends-on): Add gperf.
18684         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
18685         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
18686         long names.
18687
18688         Tests for module 'unictype/bidiclass-longname'.
18689         * modules/unictype/bidiclass-longname-tests: New file.
18690         * tests/unictype/test-bidi_longname.c: New file.
18691
18692         New module 'unictype/bidiclass-longname'.
18693         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
18694         * lib/unictype/bidi_longname.c: New file.
18695         * modules/unictype/bidiclass-longname: New file.
18696         * modules/unictype/bidiclass-all (Depends-on): Add
18697         unictype/bidiclass-longname.
18698
18699 2011-03-26  Bruno Haible  <bruno@clisp.org>
18700
18701         unictype/bidi*: Rename modules.
18702         * modules/unictype/bidiclass-all: Renamed from
18703         modules/unictype/bidicategory-all.
18704         * modules/unictype/bidiclass-name: Renamed from
18705         modules/unictype/bidiclass-name.
18706         (Description): Update.
18707         * modules/unictype/bidiclass-name-tests: Renamed from
18708         modules/unictype/bidicategory-name-tests.
18709         * modules/unictype/bidiclass-byname: Renamed from
18710         modules/unictype/bidicategory-byname.
18711         (Description): Update.
18712         * modules/unictype/bidiclass-byname-tests: Renamed from
18713         modules/unictype/bidicategory-byname-tests.
18714         * modules/unictype/bidiclass-of: Renamed from
18715         modules/unictype/bidicategory-of.
18716         (Description): Update.
18717         * modules/unictype/bidiclass-of-tests: Renamed from
18718         modules/unictype/bidicategory-of-tests.
18719         * modules/unictype/bidiclass-test: Renamed from
18720         modules/unictype/bidicategory-test.
18721         (Description): Update.
18722         * modules/unictype/bidiclass-test-tests: Renamed from
18723         modules/unictype/bidicategory-test-tests.
18724         * modules/unictype/bidicategory-all: New file, a simple redirection.
18725         * modules/unictype/bidicategory-name: Likewise.
18726         * modules/unictype/bidicategory-byname: Likewise.
18727         * modules/unictype/bidicategory-of: Likewise.
18728         * modules/unictype/bidicategory-test: Likewise.
18729         * modules/unictype/property-bidi-* (Dependencies): Update.
18730         * lib/unictype/bidi_*.c: Update comment.
18731
18732 2011-03-26  Bruno Haible  <bruno@clisp.org>
18733
18734         unictype/bidi*: Rename functions, part 2.
18735         * modules/unictype/bidicategory-name (configure.ac): Update required
18736         libunistring version.
18737         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
18738
18739 2011-03-25  Bruno Haible  <bruno@clisp.org>
18740
18741         New module 'unictype/combining-class-all'.
18742         * modules/unictype/combining-class-all: New file.
18743
18744         Tests for module 'unictype/combining-class-byname'.
18745         * modules/unictype/combining-class-byname-tests: New file.
18746         * tests/unictype/test-combiningclass_byname.c: New file.
18747
18748         New module 'unictype/combining-class-byname'.
18749         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
18750         * lib/unictype/combiningclass_byname.c: New file.
18751         * lib/unictype/combiningclass_byname.gperf: New file.
18752         * modules/unictype/combining-class-byname: New file.
18753
18754         Tests for module 'unictype/combining-class-longname'.
18755         * modules/unictype/combining-class-longname-tests: New file.
18756         * tests/unictype/test-combiningclass_longname.c: New file.
18757
18758         New module 'unictype/combining-class-longname'.
18759         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
18760         * lib/unictype/combiningclass_longname.c: New file.
18761         * modules/unictype/combining-class-longname: New file.
18762
18763         Tests for module 'unictype/combining-class-name'.
18764         * modules/unictype/combining-class-name-tests: New file.
18765         * tests/unictype/test-combiningclass_name.c: New file.
18766
18767         New module 'unictype/combining-class-name'.
18768         * lib/unictype.in.h (uc_combining_class_name): New declaration.
18769         * lib/unictype/combiningclass_name.c: New file.
18770         * modules/unictype/combining-class-name: New file.
18771
18772 2011-03-25  Bruno Haible  <bruno@clisp.org>
18773
18774         unictype/combining-class: Rename source files.
18775         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
18776         of unictype/combining.h.
18777         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
18778         Update.
18779         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
18780         * modules/unictype/combining-class (Description): Fix.
18781         (Files, Makefile.am): Update.
18782         * tests/unictype/test-combiningclass.c: Renamed from
18783         tests/unictype/test-combining.c.
18784         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
18785
18786 2011-03-25  Bruno Haible  <bruno@clisp.org>
18787
18788         unictype: Update list of canonical combining classes.
18789         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
18790
18791 2011-03-25  Bruno Haible  <bruno@clisp.org>
18792
18793         unictype/category-byname: Recognize long names as well.
18794         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
18795         a long name.
18796         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
18797         unictype/categ_byname.h.
18798         (UC_CATEGORY_INDEX_*): New enumeration values.
18799         (uc_general_category_byname): Use uc_general_category_lookup and
18800         convert from index to value.
18801         * lib/unictype/categ_byname.gperf: New file.
18802         * modules/unictype/category-byname (Files): Add
18803         lib/unictype/categ_byname.gperf.
18804         (Depends-on): Add gperf.
18805         (Makefile.am): Add rule for generating unictype/categ_byname.h.
18806         * tests/unictype/test-categ_byname.c (main): Test the recognition of
18807         long names.
18808
18809         Tests for module 'unictype/category-longname'.
18810         * modules/unictype/category-longname-tests: New file.
18811         * tests/unictype/test-categ_longname.c: New file.
18812
18813         New module 'unictype/category-longname'.
18814         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18815         * lib/unictype/categ_longname.c: New file.
18816         * modules/unictype/category-longname: New file.
18817         * modules/unictype/category-all (Depends-on): Add it.
18818
18819 2011-03-25  Bruno Haible  <bruno@clisp.org>
18820
18821         Tests for module 'unictype/category-LC'.
18822         * modules/unictype/category-LC-tests: New file.
18823         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18824
18825         New module 'unictype/category-LC'.
18826         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18827         (UC_CATEGORY_LC): New declaration.
18828         (UC_CASED_LETTER): New macro.
18829         * lib/gen-uni-tables.c (is_category_LC): New function.
18830         (output_categories): Also handle category LC.
18831         (UC_CATEGORY_MASK_LC): New enumeration value.
18832         (general_category_byname): Also handle category LC.
18833         * lib/unictype/categ_LC.c: New file.
18834         * lib/unictype/categ_LC.h: New file, automatically generated.
18835         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18836         category LC.
18837         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18838         * modules/unictype/category-LC: New file.
18839         * modules/unictype/category-byname (Depends-on): Add
18840         unictype/category-LC.
18841         * modules/unictype/category-all (Depends-on): Likewise.
18842
18843 2011-03-25  Eric Blake  <eblake@redhat.com>
18844
18845         xmalloc: revert yesterday's regression
18846         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18847         realloc's underlying behavior (allowing allocation of zero-size
18848         objects, especially if malloc-gnu is also in use).
18849
18850 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18851
18852         maint.mk: add missing version to VC-tag
18853         * top/maint.mk: git tag was missing actual tag name; add it.
18854
18855         valgrind: do leak checking, and exit with code 1 on error (not 0)
18856         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18857         to VALGRIND.
18858
18859 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18860
18861         posix-modules: say what it does.
18862         * posix-modules: Add a line to the --help output saying what it does.
18863
18864 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18865
18866         xmalloc: Do not leak if underlying realloc is C99 compatible.
18867         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18868         This avoids a leak on C99-based systems.  See
18869         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18870
18871 2011-03-24  Eric Blake  <eblake@redhat.com>
18872
18873         realloc: document portability problem
18874         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18875         passing 0 size to realloc.
18876
18877 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18878
18879         doc: update users.txt
18880         * users.txt: Add cvsps, tmpwatch
18881
18882 2011-03-23  Matt Rice  <ratmice@gmail.com>
18883
18884         doc: update users.txt
18885         * users.txt: Add gdb.
18886
18887 2011-03-23  Jim Meyering  <meyering@redhat.com>
18888
18889         doc: update users.txt
18890         Looking through matches up to the following URL (there are still
18891         several more pages), I found several projects that use gnulib:
18892         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18893         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18894         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18895
18896 2011-03-22  Bruno Haible  <bruno@clisp.org>
18897
18898         unictype/bidi*: Rename functions.
18899         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18900         uc_bidi_class, uc_is_bidi_class): New declarations.
18901         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18902         uc_bidi_category_byname.
18903         (uc_bidi_category_byname): New function.
18904         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18905         u_bidi_category_name.
18906         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18907         (uc_bidi_category_name): New function.
18908         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18909         uc_bidi_category.
18910         (uc_bidi_category): New function.
18911         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18912         uc_is_bidi_category. Invoke uc_bidi_class.
18913         (uc_is_bidi_category): New function.
18914         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18915         instead of uc_bidi_category_byname.
18916         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18917         instead of uc_bidi_category_name.
18918         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18919         uc_bidi_category.
18920         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18921         instead of uc_is_bidi_category.
18922
18923 2011-03-21  Bruno Haible  <bruno@clisp.org>
18924
18925         New module 'unictype/joininggroup-all'.
18926         * modules/unictype/joininggroup-all: New file.
18927
18928         Tests for module 'unictype/joininggroup-of'.
18929         * modules/unictype/joininggroup-of-tests: New file.
18930         * tests/unictype/test-joininggroup_of.c: New file.
18931         * tests/unictype/test-joininggroup_of.h: New file, automatically
18932         generated by gen-uni-tables.
18933
18934         New module 'unictype/joininggroup-of'.
18935         * modules/unictype/joininggroup-of: New file.
18936         * lib/unictype/joininggroup_of.c: New file.
18937         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18938         gen-uni-tables.
18939
18940         Tests for module 'unictype/joininggroup-byname'.
18941         * modules/unictype/joininggroup-byname-tests: New file.
18942         * tests/unictype/test-joininggroup_byname.c: New file.
18943
18944         New module 'unictype/joininggroup-byname'.
18945         * modules/unictype/joininggroup-byname: New file.
18946         * lib/unictype/joininggroup_byname.c: New file.
18947         * lib/unictype/joininggroup_byname.gperf: New file.
18948
18949         Tests for module 'unictype/joininggroup-name'.
18950         * modules/unictype/joininggroup-name-tests: New file.
18951         * tests/unictype/test-joininggroup_name.c: New file.
18952
18953         New module 'unictype/joininggroup-name'.
18954         * modules/unictype/joininggroup-name: New file.
18955         * lib/unictype/joininggroup_name.c: New file.
18956         * lib/unictype/joininggroup_name.h: New file.
18957
18958         New module 'unictype/joiningtype-all'.
18959         * modules/unictype/joiningtype-all: New file.
18960
18961         Tests for module 'unictype/joiningtype-of'.
18962         * modules/unictype/joiningtype-of-tests: New file.
18963         * tests/unictype/test-joiningtype_of.c: New file.
18964         * tests/unictype/test-joiningtype_of.h: New file, automatically
18965         generated by gen-uni-tables.
18966
18967         New module 'unictype/joiningtype-of'.
18968         * modules/unictype/joiningtype-of: New file.
18969         * lib/unictype/joiningtype_of.c: New file.
18970         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18971         gen-uni-tables.
18972
18973         Tests for module 'unictype/joiningtype-byname'.
18974         * modules/unictype/joiningtype-byname-tests: New file.
18975         * tests/unictype/test-joiningtype_byname.c: New file.
18976
18977         New module 'unictype/joiningtype-byname'.
18978         * modules/unictype/joiningtype-byname: New file.
18979         * lib/unictype/joiningtype_byname.c: New file.
18980
18981         Tests for module 'unictype/joiningtype-name'.
18982         * modules/unictype/joiningtype-name-tests: New file.
18983         * tests/unictype/test-joiningtype_name.c: New file.
18984
18985         New module 'unictype/joiningtype-name'.
18986         * modules/unictype/joiningtype-name: New file.
18987         * lib/unictype/joiningtype_name.c: New file.
18988
18989         unictype: Add support for Arabic shaping properties.
18990         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18991         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18992         declarations.
18993         (UC_JOINING_GROUP_*): New enumeration values.
18994         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18995         declarations.
18996         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18997         (unicode_joining_type): New variable.
18998         (UC_JOINING_GROUP_*): New enumeration values.
18999         (unicode_joining_group): New variable.
19000         (fill_arabicshaping, joining_type_as_c_identifier,
19001         output_joining_type_test, output_joining_type,
19002         joining_group_as_c_identifier, output_joining_group_test,
19003         output_joining_group): New functions.
19004         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
19005         fill_arabicshaping and output_joining_type_test, output_joining_type,
19006         output_joining_group_test, output_joining_group.
19007         Reported by Simon Josefsson.
19008
19009 2011-03-21  Jim Meyering  <meyering@redhat.com>
19010
19011         strftime: fix a bug in yesterday's change
19012         * lib/strftime.c (add): Accommodate width's initial value of -1.
19013         Otherwise, nstrftime would copy uninitialized data into
19014         the result buffer.
19015
19016 2011-03-21  Jim Meyering  <meyering@redhat.com>
19017
19018         tests: add strftime-tests module
19019         * tests/test-strftime.c: New file.
19020         * modules/strftime-tests: New module.
19021
19022 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19023
19024         strftime: don't assume a byte count fits in 'int'
19025         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
19026         found this problem by static analysis, using gcc -Wstrict-overflow
19027         (GCC 4.5.2, x86-64).  This reported an optimization that depended
19028         on an integer overflow having undefined behavior, but it turns out
19029         that the argument is a size, which might not fit in 'int' anyway,
19030
19031 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19032
19033         stdio: don't require ignore_value around fwrite
19034
19035         This patch works around libc bug 11959
19036         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
19037         Without this patch, applications must often write
19038         ignore_value (fwrite (...)) even though the ignore_value is
19039         not helpful here.  It's common to write many objects, using
19040         fwrite/printf/etc., and then use ferror to detect output error.
19041
19042         I considered making this patch optional, but decided against it,
19043         because libc is obviously being inconsistent here: there is no
19044         reason libc should insist that user code must inspect fwrite
19045         return's value without also insisting that it inspect printf's,
19046         putchar's, etc.  If user code wants to have a strict style where
19047         all these functions' values are checked (so that ferror need not
19048         be checked), we could add support for that style in a new gnulib
19049         module, but in the meantime it's better to be consistent and to
19050         support common usage.
19051
19052         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
19053         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
19054         that we are compiling in checking mode, and if not C++, and
19055         if not already wrapping fwrite for some other reason.
19056         (fwrite): #define to rpl_fwrite if the latter is defined.
19057
19058 2011-03-20  Bruno Haible  <bruno@clisp.org>
19059
19060         verror: Fix compilation error introduced on 2011-02-13.
19061         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
19062         instead of __attribute__.
19063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19064
19065 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
19066             Bruno Haible  <bruno@clisp.org>
19067
19068         socklen: do not depend on sys_socket
19069         While trying to modify Emacs to use gnulib's socklen module,
19070         I discovered a circular dependency: socklen depends on sys_socket
19071         and vice versa.  Emacs can use socklen, but it does not need
19072         sys_socket because it has its own substitute for sys/socket.h.
19073         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
19074         gl_TYPE_SOCKLEN_T.
19075         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
19076         gl_PREREQ_SYS_H_SOCKET.
19077         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
19078         gl_PREREQ_SYS_H_SOCKET.
19079         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
19080         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
19081         * modules/socklen (Depends-on): Do not depend on sys_socket.
19082         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
19083
19084 2011-03-20  Jim Meyering  <meyering@redhat.com>
19085
19086         maint.mk: sort file names *after* new transformation
19087         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
19088         prefix would have led to an unwarranted failure in GNU parted.
19089         Sort after that transformation.
19090
19091 2011-03-19  Jim Meyering  <meyering@redhat.com>
19092
19093         maint.mk: fix po-file syntax-check rule
19094         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
19095         Patch by Bruno Haible.
19096
19097 2011-03-19  Bruno Haible  <bruno@clisp.org>
19098
19099         socklen: Update comment.
19100         * m4/socklen.m4: Update comment about platforms.
19101
19102 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19103             Bruno Haible  <bruno@clisp.org>
19104
19105         inet_ntop, inet_pton: Simplify.
19106         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
19107         documented to provide socklen_t and we already depend on sys_socket.
19108         * modules/inet_pton (Depends-on): Likewise.
19109         * lib/arpa_inet.in.h: Adjust comment.
19110
19111 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19112             Bruno Haible  <bruno@clisp.org>
19113
19114         netdb: Simplify.
19115         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
19116         documented to provide socklen_t and we already depend on sys_socket.
19117         * lib/netdb.in.h: Adjust comment.
19118
19119 2011-03-19  Bruno Haible  <bruno@clisp.org>
19120
19121         sys_socket, netdb: Document problem with socklen_t.
19122         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
19123         platforms.
19124         * doc/posix-headers/netdb.texi: Likewise.
19125
19126 2011-03-18  Eric Blake  <eblake@redhat.com>
19127
19128         maint.mk: let po check work in VPATH build
19129         * top/maint.mk (po_file): Allow cfg.mk override.
19130         (sc_po_check): Allow VPATH use.
19131         Reported by Jiri Denemark.
19132
19133 2011-03-16  Jim Meyering  <meyering@redhat.com>
19134
19135         maint.mk: allow fine-grained syntax-check exclusion via Make variables
19136         Before, you would have had to create one .x-sc_ file per rule in order
19137         to exempt offending files.  Now, you may instead use a Make variable --
19138         usually defined in cfg.mk -- whose name identifies the affected rule.
19139         * top/maint.mk (_sc_excl): Define.
19140         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
19141         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
19142
19143 2011-03-13  Bruno Haible  <bruno@clisp.org>
19144
19145         ignore-value tests: Avoid warnings.
19146         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
19147         empty for gcc < 3.4.
19148
19149 2011-03-13  Bruno Haible  <bruno@clisp.org>
19150
19151         passfd: Fix link error on Solaris.
19152         * modules/passfd (Description): Correct.
19153         (Depends-on): Add socketlib.
19154         (Link): New section.
19155         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
19156
19157 2011-03-13  Bruno Haible  <bruno@clisp.org>
19158
19159         passfd: Fix link error on AIX 5.2.
19160         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
19161
19162 2011-03-13  Bruno Haible  <bruno@clisp.org>
19163
19164         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
19165         * lib/sys_socket.in.h: Include <stddef.h>.
19166         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
19167         CMSG_FIRSTHDR. Remove unused variable.
19168
19169 2011-03-13  Bruno Haible  <bruno@clisp.org>
19170
19171         passfd: Fix compilation error on OpenBSD.
19172         * lib/passfd.c: Include <sys/uio.h>.
19173
19174 2011-03-13  Bruno Haible  <bruno@clisp.org>
19175
19176         passfd test: Fix warnings.
19177         * tests/test-passfd.c: Include <sys/wait.h>.
19178         (main): Fix typo.
19179
19180 2011-03-13  Bruno Haible  <bruno@clisp.org>
19181
19182         passfd module, part 4, tweaks.
19183         * tests/test-passfd.c: Reorder includes.
19184         (main): Fix perror and printf calls.
19185
19186 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19187
19188         passfd module, part 4.
19189         * modules/passfd-tests: New file.
19190         * tests/test-passfd.c: New file.
19191
19192 2011-03-13  Jim Meyering  <meyering@redhat.com>
19193
19194         Makefile: rely on GNU make; derive syntax-check rule names
19195         Rather than requiring that each sc_ rule be listed as a dependent
19196         of "check", use features of GNU make to derive the list.
19197         * Makefile (syntax-check-rules): Define.
19198         (check): Depend on the new variable, not the hard-coded list.
19199
19200 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
19201             Bruno Haible  <bruno@clisp.org>
19202
19203         passfd module, part 3.
19204         * lib/passfd.h (recvfd): Add a flags argument.
19205         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
19206         (recvfd): Add a flags argument.
19207         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
19208         exists.
19209         * modules/passfd (Depends-on): Add cloexec.
19210         Suggested by Eric Blake.
19211
19212 2011-03-13  Bruno Haible  <bruno@clisp.org>
19213
19214         passfd module, part 2, tweaks.
19215         * modules/passfd (Files): Reorder.
19216         (Depends-on): Remove errno.
19217         (Include): Remove <sys/socket.h>, <sys/un.h>.
19218         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
19219         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
19220         specification header. Include <sys/socket.h> always. Don't include
19221         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
19222         (sendfd): Clarify that it sets errno when it fails.
19223         (recvfd): Fix specification.
19224
19225 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19226
19227         passfd module, part 2.
19228         * modules/passfd: New file.
19229         * lib/passfd.h: New file.
19230         * lib/passfd.c: New file.
19231
19232 2011-03-12  Bruno Haible  <bruno@clisp.org>
19233
19234         wcswidth, mbswidth: Avoid integer overflow.
19235         * lib/wcswidth.c: Include <limits.h>.
19236         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
19237         * lib/mbswidth.c: Include <limits.h>.
19238         (mbsnwidth): Avoid 'int' overflow.
19239         Reported by Jim Meyering.
19240
19241 2011-03-12  Bruno Haible  <bruno@clisp.org>
19242
19243         futimens, utimensat: Avoid endless recursion on Solaris 10.
19244         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
19245         Solaris.
19246         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
19247         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
19248
19249 2011-03-11  Jim Meyering  <meyering@redhat.com>
19250
19251         maint.mk: relax a regexp to accommodate other formatting styles
19252         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
19253         between "ngettext" and the following "(".
19254
19255 2011-03-11  Pádraig Brady <P@draigBrady.com>
19256
19257         maint.mk: suppress a false positive warning
19258         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
19259         diagnostics are marked with ngettext.
19260
19261 2011-03-10  Eric Blake  <eblake@redhat.com>
19262
19263         wchar: add explicit dependencies, for Tru64
19264         * modules/mbmemcasecoll (Depends-on): Add wchar.
19265         * modules/mbtowc (Depends-on): Likewise.
19266         * modules/vasnprintf (Depends-on): Likewise.
19267         * modules/unistdio/u-printf-args (Depends-on): Likewise.
19268         * modules/wctomb (Depends-on): Likewise.
19269         Reported by Peter O'Gorman.
19270
19271 2011-03-08  Bruno Haible  <bruno@clisp.org>
19272
19273         passfd module, part 1, tweaks.
19274         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
19275         Improve indentation. Improve AC_MSG_CHECKING messages.
19276         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
19277         gl_SOCKET_FAMILIES.
19278
19279 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
19280
19281         passfd module, part 1.
19282         * m4/afunix.m4: New file.
19283         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
19284         sockets.
19285
19286 2011-03-08  Bruno Haible  <bruno@clisp.org>
19287
19288         regex-quote: New API.
19289         * lib/regex-quote.h: Include <stdbool.h>.
19290         (struct regex_quote_spec): New type.
19291         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19292         New declarations.
19293         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19294         'const struct regex_quote_spec *' argument.
19295         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
19296         (pcre_special): New constant.
19297         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
19298         New functions.
19299         (regex_quote_length, regex_quote_copy, regex_quote): Take a
19300         'const struct regex_quote_spec *' argument.
19301         * modules/regex-quote (Depends-on): Add stdbool.
19302         * tests/test-regex-quote.c (check): Update for new API. Add test for
19303         anchored results.
19304         * NEWS: Mention the API change.
19305         Reported by Reuben Thomas and Eric Blake.
19306
19307 2011-03-06  Bruno Haible  <bruno@clisp.org>
19308
19309         regex-quote: Fix creation of POSIX extended regular expressions.
19310         * lib/regex-quote.c (ere_special): Add grouping and alternation
19311         operators.
19312
19313 2011-03-05  Bruno Haible  <bruno@clisp.org>
19314
19315         doc: Improve doc regarding autopoint vs. gnulib.
19316         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
19317         disable autopoint while running autoreconf.
19318         Suggested by Ralf Wildenhues.
19319
19320 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19321
19322         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
19323         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
19324
19325 2011-03-03  Bruce Korb  <bkorb@gnu.org>
19326
19327         parse-duration: remove xalloc.h dependency
19328         * lib/parse-duration.c (parse_period): handle NULL return from
19329         strdup instead of calling xstrdup().
19330         * modules/parse-duration: remove "xalloc" dependency
19331
19332 2011-03-03  Matthew Booth  <mbooth@redhat.com>
19333
19334         bootstrap: honor m4_base when running aclocal
19335         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
19336
19337 2011-03-02  Jim Meyering  <meyering@redhat.com>
19338
19339         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
19340         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
19341         on request from Matt Booth.
19342
19343 2011-03-01  Eric Blake  <eblake@redhat.com>
19344
19345         test-link: work on Hurd
19346         * tests/test-link.h (test_link): Hurd rejects linking directories
19347         with EISDIR instead of the POSIX-mandated EPERM.
19348
19349 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
19350
19351         stdio: simplify by moving files to printf-posix, sigpipe
19352         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
19353         since this symbol is needed only if printf is replaced.
19354         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
19355         Require gl_ASM_SYMBOL_PREFIX.
19356         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
19357         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
19358         (Depends-on): Add 'raise'.
19359         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
19360         * modules/stdio (Files): Remove lib/stdio-write.c,
19361         m4/asm-underscore.m4.
19362         (Depends-on): Remove 'raise'.
19363
19364         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
19365         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
19366         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
19367         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
19368
19369 2011-02-28  Bruno Haible  <bruno@clisp.org>
19370
19371         localcharset: Assume ANSI C behaviour of free().
19372         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
19373         calling free().
19374         Suggested by Simon Josefsson <simon@josefsson.org>.
19375
19376 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
19377             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
19378             Bruno Haible  <bruno@clisp.org>  (tiny change)
19379
19380         On Cygwin, use /proc file system instead of win32 API.
19381         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
19382         Win32 file names.
19383         (DllMain): Simplify by removing Cygwin specific code.
19384         (find_shared_library_fullname): Use Linux specific implementation also
19385         for Cygwin.
19386         (get_shared_library_fullname): Update accordingly.
19387         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
19388         Win32 file names.
19389         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
19390         Cygwin specific code.
19391
19392 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
19393             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
19394
19395         Fix OpenMP flag detection for various Fortran compilers.
19396         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
19397         OpenMP-conditional compilation construct, to force compile
19398         failure with missing OpenMP flag.
19399         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
19400
19401 2011-02-25  Eric Blake  <eblake@redhat.com>
19402
19403         strstr: expand test coverage
19404         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
19405         compilation.
19406         * tests/test-memmem.c (main): Duplicate tests.
19407         * tests/test-strcasestr.c (main): Likewise.
19408         * tests/test-c-strcasestr.c (main): Likewise.
19409
19410 2011-02-25  Jim Meyering  <meyering@redhat.com>
19411
19412         maint.mk: detect missing-NL-at-EOF, too
19413         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
19414         it also detects when a file lacks a newline at EOF.
19415         (require_exactly_one_NL_at_EOF_): Renamed from
19416         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
19417         since people may well have .x-sc_... file names tied to the
19418         existing name.  Suggested by Eric Blake.
19419
19420 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19421
19422         dirname: move m4/dos.m4 functionality into lib/dosname.h
19423
19424         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
19425         extracts symbols from it, puts them into config.h; but it's much
19426         easier to use the symbols directly.  filename.h already does this,
19427         but it disagrees with dos.m4 in some respects.  This patch
19428         introduces a different include file dosname.h that packages up
19429         dos.m4, and then later we can work on merging filename.h and
19430         dosname.h.  Applications that need only the easy-to-configure
19431         symbols should consider including dosname.h rather than dirname.h.
19432         * NEWS: Mention incompatible changes.
19433         * m4/dos.m4: Remove.
19434         * lib/dosname.h, modules/dosname: New files.
19435         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
19436         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
19437         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
19438         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
19439         Include dosname.h, not dirname.h.
19440         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
19441         Include dosname.h, for definitions of symbols like ISSLASH
19442         that used to be in config.h.
19443         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
19444         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19445         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19446         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19447         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
19448         * modules/rmdir (Files): Likewise.
19449         * modules/stat (Files): Likewise.
19450         * modules/unlink (Files): Likewise.
19451         * modules/dirname-lgpl (Depends-on): Add dosname.
19452         * modules/lstat (Depends-on): Likewise.
19453         * modules/openat (Depends-on): Likewise.
19454         * modules/rmdir (Depends-on): Likewise.
19455         * modules/savewd (Depends-on): Likewise.
19456         * modules/stat (Depends-on): Likewise.
19457         * modules/unlink (Depends-on): Likewise.
19458         * modules/openat (Depends-on): Remove dirname-lgpl.
19459         * modules/savewd (Depends-on): Likewise.
19460         * tests/test-dirname.c: Do not use removed symbols like
19461         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
19462         the remaining symbols, e.g., ISSLASH ('\\').
19463
19464 2011-02-25  Eric Blake  <eblake@redhat.com>
19465
19466         strstr: revert patches that introduced bug and pessimization
19467         * lib/str-two-way.h: Add another reference.
19468         (two_way_short_needle, two_way_long_needle): Revert changes from
19469         2011-02-24; they pessimize search speed.
19470         (critical_factorization): Partially revert changes from
19471         2010-06-22; they violate the requirement that the left half of the
19472         needle be smaller than the period of the needle.
19473
19474 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
19475
19476         filenamecat: remove unnecessary dependency on dirname-lgpl
19477         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
19478         is no direct dependency, just an indirect one via filenamecat-lgpl.
19479
19480         remove: remove unnecessary use of m4/dos.m4
19481         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
19482         * modules/remove (FILES): Remove m4/dos.m4.
19483
19484         * lib/openat-proc.c: Don't include dirname.h; not needed.
19485
19486         backupfile: remove unnecessary use of m4/dos.m4
19487         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
19488         of its symbols are used by the backupfile code.  backupfile.c does
19489         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
19490         for the rare case of programs that want all their backup file
19491         names to live within 8+3 limits, and dos.m4 doesn't address that.
19492         * modules/backupfile (Files): Remove m4/dos.m4.
19493
19494 2011-02-24  Jim Meyering  <meyering@redhat.com>
19495
19496         strstr: fix a bug whereby strstr would mistakenly return NULL
19497         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
19498         in period calculation.
19499         (two_way_long_needle): Likewise.
19500         The original problem was reported by Mike Stump in
19501         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
19502         Ralf Wildenhues provided the short needle and haystack.
19503         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
19504         Add a more involved test to trigger the bug in two_way_long_needle.
19505
19506 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19507
19508         gnulib-tool: remove use of bold display in help screen
19509         * gnulib-tool (func_usage): Do not use bold display anymore in the
19510         help screen.  That was just meant to be a temporary emphasis for a
19511         backward-incompatible change.
19512
19513 2011-02-23  Bruno Haible  <bruno@clisp.org>
19514
19515         Fix misindentation of preprocessor directives.
19516         * lib/argp-namefrob.h: Reindent preprocessor directives.
19517         * lib/getopt_int.h (struct _getopt_data): Likewise.
19518         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
19519         * lib/vasnprintf.c (decode_long_double): Likewise.
19520         * tests/test-argmatch.c: Insert blank lines, for clarity.
19521         * tests/test-exclude.c: Likewise.
19522
19523 2011-02-22  Bruno Haible  <bruno@clisp.org>
19524
19525         ioctl: Fix for MacOS X in 64-bit mode.
19526         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
19527         value.
19528         Suggested by Eric Blake.
19529         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
19530
19531 2011-02-22  Jim Meyering  <meyering@redhat.com>
19532
19533         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
19534         * Makefile (sc_cpp_indent_check): Don't limit the check to files
19535         in lib/.
19536
19537 2011-02-22  Eric Blake  <eblake@redhat.com>
19538
19539         maint: avoid any CDPATH issue
19540         * Makefile (sc_cpp_indent_check): Anchor cd argument.
19541
19542         maint: adjust cpp indentation for my modules, as well
19543         * Makefile (sc_cpp_indent_check): Add my name.
19544         * lib/fbufmode.c: Filter through cppi.
19545         * lib/fpurge.c: Likewise.
19546         * lib/freadable.c: Likewise.
19547         * lib/freading.c: Likewise.
19548         * lib/fwritable.c: Likewise.
19549         * lib/fwriting.c: Likewise.
19550         * lib/sigaction.c: Likewise.
19551
19552 2011-02-22  Jim Meyering  <meyering@redhat.com>
19553
19554         maint: adjust cpp indentation to reflect nesting depth
19555         I.e., in a block of code that begins with an unnested "#if",
19556         put one space between the "#" in column 1 and following token.
19557         For example,
19558         -#include <sys/vfs.h>
19559         +# include <sys/vfs.h>
19560         Do this only in .c files that are part of a module I maintain.
19561         * lib/linkat.c: Filter through cppi.
19562         * lib/nanosleep.c: Likewise.
19563         * lib/openat.c: Likewise.
19564         * lib/openat-die.c: Likewise.
19565         * lib/dup3.c: Likewise.
19566         * lib/fchownat.c: Likewise.
19567         * lib/flock.c: Likewise.
19568         * lib/fsync.c: Likewise.
19569         * lib/fts.c: Likewise.
19570         * lib/getpass.c: Likewise.
19571         * lib/gettimeofday.c: Likewise.
19572         * lib/userspec.c: Likewise.
19573         * Makefile (sc_cpp_indent_check): New rule, to check this.
19574
19575 2011-02-22  Bruno Haible  <bruno@clisp.org>
19576
19577         New module 'wctomb'.
19578         * lib/stdlib.in.h (wctomb): New declaration.
19579         * lib/wctomb.c: New file.
19580         * lib/wctomb-impl.h: New file.
19581         * m4/wctomb.m4: New file.
19582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
19583         REPLACE_WCTOMB.
19584         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
19585         REPLACE_WCTOMB.
19586         * modules/wctomb: New file.
19587         * tests/test-stdlib-c++.cc: Test signature of wctomb.
19588         * doc/posix-functions/wctomb.texi: Mention the new module.
19589         * modules/wctob (Depends-on): Add wctomb.
19590
19591 2011-02-22  Bruno Haible  <bruno@clisp.org>
19592
19593         New module 'mbtowc'.
19594         * lib/stdlib.in.h (mbtowc): New declaration.
19595         * lib/mbtowc.c: New file.
19596         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
19597         * m4/mbtowc.m4: New file.
19598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
19599         REPLACE_MBTOWC.
19600         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
19601         REPLACE_MBTOWC.
19602         * modules/mbtowc: New file.
19603         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
19604         * doc/posix-functions/mbtowc.texi: Mention the new module.
19605         * modules/btowc (Depends-on): Add mbtowc.
19606
19607 2011-02-22  Bruno Haible  <bruno@clisp.org>
19608
19609         wcrtomb: Add more tests for native Windows platforms.
19610         * tests/test-wcrtomb-w32-1.sh: New file.
19611         * tests/test-wcrtomb-w32-2.sh: New file.
19612         * tests/test-wcrtomb-w32-3.sh: New file.
19613         * tests/test-wcrtomb-w32-4.sh: New file.
19614         * tests/test-wcrtomb-w32-5.sh: New file.
19615         * tests/test-wcrtomb-w32.c: New file.
19616         * modules/wcrtomb-tests (Files): Add them.
19617         (Makefile.am): Arrange to run these tests.
19618         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
19619         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
19620
19621 2011-02-20  Bruno Haible  <bruno@clisp.org>
19622
19623         wcrtomb: Enhance test.
19624         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
19625
19626 2011-02-20  Bruno Haible  <bruno@clisp.org>
19627
19628         mbrtowc: Tiny optimization.
19629         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
19630
19631 2011-02-20  Jim Meyering  <meyering@redhat.com>
19632
19633         test-exclude.c: remove unmatched #endif
19634         * tests/test-exclude.c: Remove stray #endif, left over from
19635         the change of a week ago.
19636
19637 2011-02-19  Jim Meyering  <meyering@redhat.com>
19638
19639         git-version-gen: skip "-dirty" check when appropriate
19640         * build-aux/git-version-gen: Don't run any git commands when the
19641         version string comes from .tarball-version.  Prior to this, we
19642         would run git update-index --refresh even from a just-unpacked
19643         tarball directory, and that could affect a .git/ directory in a
19644         parent of the build directory.  Reported by Mike Frysinger.
19645
19646 2011-02-19  Bruno Haible  <bruno@clisp.org>
19647
19648         unictype/property-byname: Reduce the size of the 'data' segment.
19649         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
19650
19651 2011-02-19  Bruno Haible  <bruno@clisp.org>
19652
19653         unictype/scripts: Reduce the size of the 'data' segment.
19654         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
19655         '%pic'.
19656         * lib/unictype/scripts_byname.gperf: Regenerated.
19657
19658 2011-02-19  Bruno Haible  <bruno@clisp.org>
19659
19660         stdint: Update documentation.
19661         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
19662
19663 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
19664
19665         stdint: omit redundant check for wchar.h
19666         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
19667         always tests whether wchar.h exists, so remove the now-redundant test.
19668
19669 2011-02-18  Bruno Haible  <bruno@clisp.org>
19670
19671         stdint: Cut dependency to module 'wchar'.
19672         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
19673         include the necessary prerequisites.
19674         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
19675         * modules/stdint (Depends-on): Remove wchar.
19676         (Makefile.am): Substitute HAVE_WCHAR_H.
19677         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
19678
19679 2011-02-18  Eric Blake  <eblake@redhat.com>
19680
19681         longlong: skip, rather than fail, on cross-compilation
19682         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
19683         when cross-compiling; regression from 2011-02-16.
19684
19685 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19686
19687         * NEWS: Mention 2011-02-08 change to stdlib.
19688
19689 2011-02-17  Bruno Haible  <bruno@clisp.org>
19690
19691         getloadavg: Add comments about platforms.
19692         * m4/getloadavg.m4: Add comment.
19693         * lib/getloadavg.c: Likewise.
19694
19695 2011-02-17  Bruno Haible  <bruno@clisp.org>
19696
19697         getloadavg: Fix link error on Solaris 2.6.
19698         * modules/getloadavg (Link): New section.
19699         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
19700         linking test-getloadavg.
19701         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
19702         getloadavg.
19703
19704 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
19705
19706         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
19707         It was 'int', but this doesn't match the IRIX 6.5 manual.
19708         Suggested by Bruno Haible in
19709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
19710
19711 2011-02-17  Bruno Haible  <bruno@clisp.org>
19712
19713         havelib: Fix comments.
19714         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
19715         change.
19716
19717 2011-02-17  Bruno Haible  <bruno@clisp.org>
19718
19719         havelib: Update config.rpath.
19720         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
19721
19722 2011-02-17  Bruno Haible  <bruno@clisp.org>
19723
19724         getloadavg test: Add some plausibility checks.
19725         * tests/test-getloadavg.c (check_avg): Print a warning when the value
19726         is improbable.
19727
19728 2011-02-16  Eric Blake  <eblake@redhat.com>
19729
19730         maintainer-makefile: make syntax-check a no-op from tarballs
19731         * top/maint.mk (no-vc-detected): New rule.
19732         (local-checks-available): Use it to avoid hanging if someone tries
19733         'make syntax-check' from a tarball.  Also append to any non-syntax
19734         checks already defined in cfg.mk.
19735
19736 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
19737
19738         longlong: tune, particularly for common case of c99
19739
19740         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
19741         or running anything if c99, or if unsigned long long int does not
19742         work.  In either case, we know the answer without further tests.
19743         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
19744         it at most once, and use its results for both long long int and
19745         unsigned long long int.  This is more likely to be efficient in
19746         the common case where the program wants to check for both long
19747         long int and unsigned long long int.
19748         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
19749         since the answer is already known.
19750
19751 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
19752
19753         getloadavg: set errno
19754         * lib/getloadavg.c: Set errno when returning -1.  If no other
19755         error number looks appropriate, set it to ENOSYS if the getloadavg
19756         looks like it can't possibly ever work, ENOTSUP otherwise.
19757         Suggested by Bruno Haible in
19758         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
19759
19760         getloadavg: trim unused parts and speed up 'configure'
19761         * NEWS: Document this.
19762         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
19763         always compiled if getloadavg is absent.
19764         Move test code to ...
19765         * tests/test-getloadavg.c: New file, containing previous
19766         contents of test from lib/getloadavg.c.  It also contains
19767         suggestions by Bruno Haible in
19768         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
19769         * modules/getloadavg-tests: New file.
19770         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
19771         Do tests in the same order as they're needed for getloadavg.c.
19772         Omit setgid-related tests that generate symbols KMEM_GROUP,
19773         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
19774         Do only the tests that are needed to see whether the system has
19775         getloadavg, moving the other tests into ...
19776         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
19777         NLIST_NAME_UNION; nobody should be using it.  Do not define
19778         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
19779         relevant, as the user of this module shouldn't care how getloadavg
19780         is implemented.
19781
19782         getloadavg: omit unused var
19783         * lib/getloadavg.c (getloadavg): Omit unused local variable.
19784
19785 2011-02-15  Jim Meyering  <meyering@redhat.com>
19786
19787         doc: update users.txt
19788         * users.txt: Update iwhd's URL.
19789
19790 2011-02-13  Bruno Haible  <bruno@clisp.org>
19791
19792         Consistent macro naming for macros that use GCC __attribute__.
19793         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
19794         _ATTRIBUTE_NONNULL_.
19795         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
19796         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
19797         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
19798         ATTRIBUTE_DEPRECATED.
19799         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
19800         ATTRIBUTE_NORETURN.
19801         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19802         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19803         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19804         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
19805         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
19806         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
19807         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19808         ATTRIBUTE_SENTINEL.
19809         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19810         ATTRIBUTE_RETURN_CHECK.
19811         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19812         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19813         ATTRIBUTE_NORETURN.
19814         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19815         Reported by Paul Eggert.
19816
19817 2011-02-13  Bruno Haible  <bruno@clisp.org>
19818
19819         Don't interfere with a program's definition of __attribute__.
19820         * lib/argp.h (__attribute__): Remove definition.
19821         (_GL_ATTRIBUTE_FORMAT): New macro.
19822         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19823         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19824         (_GL_ATTRIBUTE_FORMAT): New macro.
19825         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19826         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19827         GCC 3 or newer.
19828         * lib/error.h (__attribute__): Remove definition.
19829         (_GL_ATTRIBUTE_FORMAT): New macro.
19830         (error, error_at_line): Use it.
19831         * lib/hash.h (__attribute__): Remove definition.
19832         (ATTRIBUTE_WUR): Update definition. Define always.
19833         * lib/openat.h (__attribute__): Remove definition.
19834         (ATTRIBUTE_NORETURN): Update definition. Define always.
19835         * lib/sigpipe-die.h (__attribute__): Remove definition.
19836         (ATTRIBUTE_NORETURN): Update definition. Define always.
19837         * lib/vasnprintf.h (__attribute__): Remove definition.
19838         (_GL_ATTRIBUTE_FORMAT): New macro.
19839         (asnprintf, vasnprintf): Use it.
19840         * lib/xalloc.h (__attribute__): Remove definition.
19841         (ATTRIBUTE_NORETURN): Update definition. Define always.
19842         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19843         * lib/xmemdup0.h (__attribute__): Remove definition.
19844         (ATTRIBUTE_NORETURN): Update definition. Define always.
19845         * lib/xprintf.h (__attribute__): Remove definition.
19846         (_GL_ATTRIBUTE_FORMAT): New macro.
19847         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19848         * lib/xstrtol.h (__attribute__): Remove definition.
19849         (ATTRIBUTE_NORETURN): Update definition. Define always.
19850         * lib/xvasprintf.h (__attribute__): Remove definition.
19851         (_GL_ATTRIBUTE_FORMAT): New macro.
19852         (xasprintf, xvasprintf): Use it.
19853         * tests/test-argmatch.c (__attribute__): Remove definition.
19854         (ATTRIBUTE_NORETURN): Update definition. Define always.
19855         * tests/test-exclude.c (__attribute__): Remove definition.
19856         (ATTRIBUTE_NORETURN): Update definition. Define always.
19857         Reported by Paul Eggert.
19858
19859 2011-02-13  Bruno Haible  <bruno@clisp.org>
19860
19861         mbrtowc: Add more tests for native Windows platforms.
19862         * tests/test-mbrtowc-w32-1.sh: New file.
19863         * tests/test-mbrtowc-w32-2.sh: New file.
19864         * tests/test-mbrtowc-w32-3.sh: New file.
19865         * tests/test-mbrtowc-w32-4.sh: New file.
19866         * tests/test-mbrtowc-w32-5.sh: New file.
19867         * tests/test-mbrtowc-w32.c: New file.
19868         * modules/mbrtowc-tests (Files): Add them.
19869         (Makefile.am): Arrange to run these tests.
19870         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19871         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19872
19873 2011-02-13  Bruno Haible  <bruno@clisp.org>
19874
19875         mbrtowc: Work around native Windows bug.
19876         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19877         guess when no suitable locale for testing was found.
19878         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19879
19880 2011-02-13  Bruno Haible  <bruno@clisp.org>
19881
19882         mbsinit: Work around mingw bug.
19883         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19884         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19885         Windows.
19886         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19887
19888 2011-02-13  Bruno Haible  <bruno@clisp.org>
19889
19890         mbsinit: Don't crash for a NULL argument.
19891         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19892         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19893
19894 2011-02-13  Bruno Haible  <bruno@clisp.org>
19895
19896         Don't interfere with a program's definition of __attribute__.
19897         * lib/stdio.in.h (__attribute__): Remove definition.
19898         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19899         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19900         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19901         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19902         * lib/string.in.h (__attribute__): Remove definition.
19903         Reported by Paul Eggert.
19904
19905 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19906
19907         stdlib: don't get in the way of non-GCC __attribute__
19908         See thread starting at
19909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19910         Revert previous stdlib change, installing the following instead:
19911         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19912         to get in the way of a non-GCC compiler that supports __attribute__.
19913         (_GL_ATTRIBUTE_RETURN): New macro.
19914         (_Exit): Use it instead of __attribute__.
19915
19916 2011-02-12  Bruno Haible  <bruno@clisp.org>
19917
19918         quotearg test: Avoid test failure on mingw.
19919         * tests/test-quotearg.sh: Convert the locale identifier from native
19920         Windows syntax to Unix syntax.
19921
19922 2011-02-12  Bruno Haible  <bruno@clisp.org>
19923
19924         setlocale: Prefer gnulib's override over libintl's override.
19925         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19926         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19927         GNULIB_defined_setlocale is set.
19928
19929 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19930
19931         stdlib: support non-GCC __attribute__
19932
19933         Fix a serious and tricky problem encountered when attempting to
19934         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19935         5.5, but it crashed due to memory corruption on Solaris 10 with
19936         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19937         bits that are otherwise zero.  This tagging is optional inside
19938         Emacs but is preferred and is used when __attribute__ ((__aligned
19939         (8))) works, as it does with both recent-enough GCC and with Sun C
19940         5.11.  However, Sun C 5.11 is not GCC and does not #define
19941         __GNUC__ and __GNUC_MINOR__.
19942
19943         When I added the getloadavg module to Emacs, it brought in
19944         stdlib.in.h, which contained this fragment:
19945
19946            #ifndef __attribute__
19947            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19948            #  define __attribute__(Spec)   /* empty */
19949            # endif
19950            #endif
19951
19952         When files that include <stdlib.h> were compiled with Sun C 5.11,
19953         the above code disabled __attribute__ ((__aligned (8))), which
19954         caused variables to not be properly aligned, which eventually led
19955         to the pointer corruption mentioned above.  (This was a bit hard
19956         to diagnose, unfortunately.)
19957
19958         Several "#define __attribute__(X) /* empty */" code snippets need
19959         to be eradicated from Gnulib to work with non-GCC compilers that
19960         support __attribute__.  The Autoconf way to do this is to test for
19961         each kind of attribute that we want support for, and selectively
19962         enable that in source code.
19963
19964         Fix this problem just for stdlib.h, by adding a test for the
19965         __noreturn__ attribute, and change stdlib.in.h to use that test
19966         when needed.  This technique can be easily generalized to the
19967         other *.in.h files and attributes, and a similar technique can be
19968         used for *.h and *.c files.  This patch is enough to solve the
19969         problem for Emacs + getloadavg, and I thought I'd publish it for
19970         feedback before undertaking further, similar fixes in other
19971         modules.
19972
19973         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19974         because it's not needed for stdlib.h.  It merely substitutes the
19975         value directly into stdlib.h.  We may well need to #define it, or
19976         similar symbols, for other modules, but it's nice to also have an
19977         option to not #define it for applications like Emacs that do not
19978         need it.
19979
19980         * lib/stdlib.in.h (__attribute__): Do not #define.
19981         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19982         be defined only if the _Exit module is also used.
19983         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19985         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19986         platforms.
19987         * modules/_Exit (Files): Add m4/attribute.m4.
19988         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19989         * m4/attribute.m4: New file.
19990
19991 2011-02-12  Bruno Haible  <bruno@clisp.org>
19992
19993         wcsrtombs: Work around bug on native Windows.
19994         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19995         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19996         instead of len.
19997         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19998
19999 2011-02-12  Bruno Haible  <bruno@clisp.org>
20000
20001         mbsrtowcs: Work around bug on native Windows.
20002         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
20003         against mingw bug.
20004         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
20005
20006 2011-02-12  Bruno Haible  <bruno@clisp.org>
20007
20008         Avoid setlocale bugs in tests.
20009         * modules/btowc (Dependencies): Add setlocale.
20010         * modules/c-strcase (Dependencies): Likewise.
20011         * modules/mbmemcasecmp (Dependencies): Likewise.
20012         * modules/mbmemcasecoll (Dependencies): Likewise.
20013         * modules/mbrtowc (Dependencies): Likewise.
20014         * modules/mbscasecmp (Dependencies): Likewise.
20015         * modules/mbscasestr (Dependencies): Likewise.
20016         * modules/mbschr (Dependencies): Likewise.
20017         * modules/mbscspn (Dependencies): Likewise.
20018         * modules/mbsinit (Dependencies): Likewise.
20019         * modules/mbsncasecmp (Dependencies): Likewise.
20020         * modules/mbsnrtowcs (Dependencies): Likewise.
20021         * modules/mbspbrk (Dependencies): Likewise.
20022         * modules/mbspcasecmp (Dependencies): Likewise.
20023         * modules/mbsrchr (Dependencies): Likewise.
20024         * modules/mbsrtowcs (Dependencies): Likewise.
20025         * modules/mbsspn (Dependencies): Likewise.
20026         * modules/mbsstr (Dependencies): Likewise.
20027         * modules/nl_langinfo (Dependencies): Likewise.
20028         * modules/quotearg (Dependencies): Likewise.
20029         * modules/unicase/locale-language (Dependencies): Likewise.
20030         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
20031         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
20032         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
20033         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
20034         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
20035         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
20036         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
20037         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
20038         * modules/vasnprintf-posix (Dependencies): Likewise.
20039         * modules/wcrtomb (Dependencies): Likewise.
20040         * modules/wcsnrtombs (Dependencies): Likewise.
20041         * modules/wcsrtombs (Dependencies): Likewise.
20042
20043 2011-02-12  Bruno Haible  <bruno@clisp.org>
20044
20045         setlocale: Workaround native Windows bug.
20046         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
20047         succeeds but sets LC_CTYPE to "C", report a failure.
20048         * tests/test-setlocale2.sh: New file.
20049         * tests/test-setlocale2.c: New file.
20050         * modules/setlocale-tests (Files): Add the new files.
20051         (Makefile.am): Enable test-setlocale2.sh test.
20052         * doc/posix-functions/setlocale.texi: Mention workaround.
20053
20054 2011-02-11  Bruno Haible  <bruno@clisp.org>
20055
20056         Tests for module 'setlocale'.
20057         * modules/setlocale-tests: New file.
20058         * tests/test-setlocale1.sh: New file.
20059         * tests/test-setlocale1.c: New file.
20060
20061         New module 'setlocale'.
20062         * lib/locale.in.h (setlocale): New declaration.
20063         * lib/setlocale.c: New file, based on
20064         gettext/gettext-runtime/intl/setlocale.c.
20065         * m4/setlocale.m4: New file.
20066         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
20067         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
20068         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
20069         REPLACE_SETLOCALE.
20070         * modules/setlocale: New file.
20071         * tests/test-locale-c++.cc: Test the declaration of setlocale.
20072         * doc/posix-functions/setlocale.texi: Mention the new module.
20073
20074 2011-02-11  Bruno Haible  <bruno@clisp.org>
20075
20076         Prepare for locale dependent tests on mingw.
20077         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
20078         because it has the wrong locale encoding.
20079         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
20080         French_France.1252 instead of "fr".
20081         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
20082         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
20083         because it has the wrong locale encoding.
20084         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
20085         native Windows, try Turkish_Turkey.65001.
20086         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
20087         Chinese_China.54936.
20088
20089         Prepare for locale dependent tests on mingw.
20090         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
20091         differently.
20092         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20093         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20094         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20095         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20096
20097 2011-02-11  Eric Blake  <eblake@redhat.com>
20098
20099         strptime: avoid compiler warnings
20100         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
20101         compiler warnings about dead code.
20102         Reported by Daniel P. Berrange.
20103
20104 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
20105
20106         doc: update users.txt
20107         * users.txt: Add rcs.
20108
20109 2011-02-10  John W. Eaton  <jwe@gnu.org>
20110
20111         doc: update users.txt
20112         * users.txt: Add octave.
20113
20114 2011-02-10  Jim Meyering  <meyering@redhat.com>
20115
20116         doc: update users.txt
20117         * users.txt: Add iwhd.
20118
20119 2011-02-09  Bruno Haible  <bruno@clisp.org>
20120
20121         gnulib-tool: Make copyright notice adjustment more robust.
20122         * gnulib-tool (func_import): In sed_transform_main_lib_file,
20123         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
20124         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
20125         License".
20126         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
20127
20128 2011-02-06  Bruno Haible  <bruno@clisp.org>
20129
20130         New module 'towctrans'.
20131         * modules/towctrans: New file.
20132         * lib/wctype.in.h (towctrans): New declaration.
20133         * lib/towctrans.c: New file.
20134         * lib/towctrans-impl.h: New file.
20135         * m4/towctrans.m4: New file.
20136         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
20137         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
20138         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
20139         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
20140         * doc/posix-functions/towctrans.texi: Mention the new module.
20141
20142 2011-02-06  Bruno Haible  <bruno@clisp.org>
20143
20144         New module 'wctrans'.
20145         * modules/wctrans: New file.
20146         * lib/wctype.in.h (wctrans): New declaration.
20147         * lib/wctrans.c: New file.
20148         * lib/wctrans-impl.h: New file.
20149         * m4/wctrans.m4: New file.
20150         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
20151         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
20152         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
20153         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
20154         * doc/posix-functions/wctrans.texi: Mention the new module.
20155
20156 2011-02-06  Bruno Haible  <bruno@clisp.org>
20157
20158         New module 'iswctype'.
20159         * modules/iswctype: New file.
20160         * lib/wctype.in.h (iswctype): New declaration.
20161         * lib/iswctype.c: New file.
20162         * lib/iswctype-impl.h: New file.
20163         * m4/iswctype.m4: New file.
20164         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
20165         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
20166         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
20167         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
20168         * doc/posix-functions/iswctype.texi: Mention the new module and the
20169         HP-UX 11.00 problem.
20170
20171 2011-02-06  Bruno Haible  <bruno@clisp.org>
20172
20173         New module 'wctype'.
20174         * modules/wctype: Change to represent the wctype() substitute.
20175         * lib/wctype.in.h (wctype): New declaration.
20176         * lib/wctype.c: New file.
20177         * lib/wctype-impl.h: New file.
20178         * m4/wctype.m4: New file.
20179         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
20180         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
20181         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
20182         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
20183         * doc/posix-functions/wctype.texi: Mention the new module and the
20184         HP-UX 11.00 problem.
20185
20186 2011-02-06  Bruno Haible  <bruno@clisp.org>
20187
20188         wctype-h: Ensure wctype_t and wctrans_t are defined.
20189         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
20190         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20191         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
20192         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
20193         HAVE_WCTRANS_T.
20194         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
20195
20196 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20197
20198         flock: fix license typo
20199
20200         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
20201         omitted.
20202
20203 2011-02-08  Bruno Haible  <bruno@clisp.org>
20204
20205         Split large sed scripts, for HP-UX sed.
20206         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
20207         to avoid HP-UX limit of 99 commands, in the near future.
20208         * modules/stdlib (Makefile.am): Likewise.
20209         * modules/unistd (Makefile.am): Likewise.
20210         * modules/wchar (Makefile.am): Likewise.
20211         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20212         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
20213         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
20214
20215 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20216             Bruno Haible  <bruno@clisp.org>
20217
20218         stdlib: improve random_r modularization
20219         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
20220         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
20221         you also need the random_r module to get this material right.
20222         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
20223         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
20224         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
20225
20226 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20227
20228         stdlib: don't depend on stdint
20229         * lib/stdlib.in.h: Don't include <stdint.h> merely because
20230         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
20231         be independent of whether stdint.h is needed.
20232         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
20233         here, instead of ...
20234         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
20235         struct random_data should be using the random_r module, not just
20236         the stdlib module (which wouldn't make sense: what package needs
20237         just struct random_data without also needing random_r?).
20238         * modules/stdlib (Depends-on): Remove stdint.
20239
20240         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
20241         See the thread rooted at
20242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
20243         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
20244         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
20245         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
20246         __VMS)); previously it was always included (via fcntl--.h).
20247         (getloadavg): Do not use c_strtod.  Instead, approximate it by
20248         hand; this is good enough for load averages.  Also, do not use
20249         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
20250         flags directly if available and don't bother otherwise.  (Packages
20251         that need the extra reliability should use the modules that define
20252         these flags on older platforms that lack them.)
20253         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
20254         fcntl-safer.
20255
20256 2011-02-08  Jim Meyering  <meyering@redhat.com>
20257
20258         di-set.h, ino-map.h: add multiple-inclusion guard
20259         Technically, the guard is required only for ino-map.h, due to its
20260         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
20261         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
20262         * lib/ino-map.h: Likewise.
20263
20264 2011-02-06  Bruno Haible  <bruno@clisp.org>
20265
20266         iswblank: Ensure declaration on glibc systems.
20267         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
20268         * modules/iswblank (Dependencies): Add 'extensions'.
20269         * doc/posix-functions/iswblank.texi: Document the glibc problem.
20270
20271 2011-02-06  Bruno Haible  <bruno@clisp.org>
20272
20273         New module 'iswblank'.
20274         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
20275         * modules/iswblank: New file.
20276         * modules/wctype-h (Files): Remove lib/iswblank.c.
20277         (Makefile.am): Substitute GNULIB_ISWBLANK.
20278         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
20279         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
20280         (gl_WCTYPE_H_DEFAULTS): New macro.
20281         (gl_WCTYPE_H): Require it. Remove iswblank related code.
20282         * modules/iswblank-tests: New file.
20283         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
20284         * tests/test-wctype-h.c (main): Remove iswblank tests.
20285         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
20286         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
20287         of 'wctype-h'.
20288         * NEWS: Mention the change.
20289         * modules/mbchar (Depends-on): Add iswblank.
20290
20291 2011-02-08  Bruno Haible  <bruno@clisp.org>
20292
20293         di-set tests: Refactor.
20294         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
20295         unnecessary includes.
20296         (ASSERT): Remove macro.
20297         (main): Make C90 compliant by avoiding variable declaration after
20298         statement.
20299         * modules/di-set-tests (Files): Add tests/macros.h.
20300
20301 2011-02-08  Bruno Haible  <bruno@clisp.org>
20302
20303         ino-map tests: Refactor.
20304         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
20305         unnecessary includes.
20306         (ASSERT): Remove macro.
20307         (main): Make C90 compliant by avoiding variable declaration after
20308         statement.
20309         * modules/ino-map-tests (Files): Add tests/macros.h.
20310
20311 2011-02-08  Jim Meyering  <meyering@redhat.com>
20312
20313         di-set: add "const" to a cast
20314         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
20315         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
20316
20317 2011-02-06  Bruno Haible  <bruno@clisp.org>
20318
20319         Rename module 'wctype' to 'wctype-h'.
20320         * modules/wctype-h: Renamed from modules/wctype.
20321         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
20322         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
20323         (Files, Depends-on, Makefile.am): Update.
20324         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
20325         (Files, Makefile.am): Update.
20326         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
20327         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
20328         * doc/posix-headers/wctype.texi: Update.
20329         * doc/posix-functions/iswalnum.texi: Update.
20330         * doc/posix-functions/iswalpha.texi: Update.
20331         * doc/posix-functions/iswblank.texi: Update.
20332         * doc/posix-functions/iswcntrl.texi: Update.
20333         * doc/posix-functions/iswdigit.texi: Update.
20334         * doc/posix-functions/iswgraph.texi: Update.
20335         * doc/posix-functions/iswlower.texi: Update.
20336         * doc/posix-functions/iswprint.texi: Update.
20337         * doc/posix-functions/iswpunct.texi: Update.
20338         * doc/posix-functions/iswspace.texi: Update.
20339         * doc/posix-functions/iswupper.texi: Update.
20340         * doc/posix-functions/iswxdigit.texi: Update.
20341         * doc/posix-functions/towlower.texi: Update.
20342         * doc/posix-functions/towupper.texi: Update.
20343         * NEWS: Mention the change.
20344         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
20345         * modules/mbchar (Dependencies): Likewise.
20346         * modules/mbswidth (Dependencies): Likewise.
20347         * modules/quotearg (Dependencies): Likewise.
20348         * modules/regex (Dependencies): Likewise.
20349         * modules/wcscasecmp (Dependencies): Likewise.
20350         * modules/wcsncasecmp (Dependencies): Likewise.
20351         * modules/wcwidth (Dependencies): Likewise.
20352
20353 2011-02-06  Bruno Haible  <bruno@clisp.org>
20354
20355         New module 'wcswidth'.
20356         * modules/wcswidth: New file.
20357         * lib/wchar.in.h (wcswidth): New declaration.
20358         * lib/wcswidth.c: New file.
20359         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
20360         * m4/wcswidth.m4: New file.
20361         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
20362         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
20363         REPLACE_WCSWIDTH.
20364         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
20365         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
20366         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
20367         * doc/posix-functions/wcswidth.texi: Mention the new module.
20368
20369 2011-02-06  Bruno Haible  <bruno@clisp.org>
20370
20371         New module 'wcstok'.
20372         * modules/wcstok: New file.
20373         * lib/wchar.in.h (wcstok): New declaration.
20374         * lib/wcstok.c: New file.
20375         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
20376         * m4/wcstok.m4: New file.
20377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
20378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
20379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
20380         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
20381         * doc/posix-functions/wcstok.texi: Mention the new module.
20382
20383 2011-02-06  Bruno Haible  <bruno@clisp.org>
20384
20385         New module 'wcsstr'.
20386         * modules/wcsstr: New file.
20387         * lib/wchar.in.h (wcsstr): New declaration.
20388         * lib/wcsstr.c: New file.
20389         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
20390         * m4/wcsstr.m4: New file.
20391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
20392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
20393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
20394         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
20395         * doc/posix-functions/wcsstr.texi: Mention the new module.
20396
20397 2011-02-06  Bruno Haible  <bruno@clisp.org>
20398
20399         New module 'wcspbrk'.
20400         * modules/wcspbrk: New file.
20401         * lib/wchar.in.h (wcspbrk): New declaration.
20402         * lib/wcspbrk.c: New file.
20403         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
20404         * m4/wcspbrk.m4: New file.
20405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
20406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
20407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
20408         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
20409         * doc/posix-functions/wcspbrk.texi: Mention the new module.
20410
20411 2011-02-06  Bruno Haible  <bruno@clisp.org>
20412
20413         New module 'wcsspn'.
20414         * modules/wcsspn: New file.
20415         * lib/wchar.in.h (wcsspn): New declaration.
20416         * lib/wcsspn.c: New file.
20417         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
20418         * m4/wcsspn.m4: New file.
20419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
20420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
20421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
20422         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
20423         * doc/posix-functions/wcsspn.texi: Mention the new module.
20424
20425 2011-02-06  Bruno Haible  <bruno@clisp.org>
20426
20427         New module 'wcscspn'.
20428         * modules/wcscspn: New file.
20429         * lib/wchar.in.h (wcscspn): New declaration.
20430         * lib/wcscspn.c: New file.
20431         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
20432         * m4/wcscspn.m4: New file.
20433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
20434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
20435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
20436         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
20437         * doc/posix-functions/wcscspn.texi: Mention the new module.
20438
20439 2011-02-06  Bruno Haible  <bruno@clisp.org>
20440
20441         New module 'wcsrchr'.
20442         * modules/wcsrchr: New file.
20443         * lib/wchar.in.h (wcsrchr): New declaration.
20444         * lib/wcsrchr.c: New file.
20445         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
20446         * m4/wcsrchr.m4: New file.
20447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
20448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
20449         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
20450         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
20451         * doc/posix-functions/wcsrchr.texi: Mention the new module.
20452
20453 2011-02-06  Bruno Haible  <bruno@clisp.org>
20454
20455         New module 'wcschr'.
20456         * modules/wcschr: New file.
20457         * lib/wchar.in.h (wcschr): New declaration.
20458         * lib/wcschr.c: New file.
20459         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
20460         * m4/wcschr.m4: New file.
20461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
20462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
20463         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
20464         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
20465         * doc/posix-functions/wcschr.texi: Mention the new module.
20466
20467 2011-02-06  Bruno Haible  <bruno@clisp.org>
20468
20469         New module 'wcsdup'.
20470         * modules/wcsdup: New file.
20471         * lib/wchar.in.h (wcsdup): New declaration.
20472         * lib/wcsdup.c: New file.
20473         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
20474         * m4/wcsdup.m4: New file.
20475         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
20476         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
20477         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
20478         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
20479         * doc/posix-functions/wcsdup.texi: Mention the new module.
20480
20481 2011-02-06  Bruno Haible  <bruno@clisp.org>
20482
20483         New module 'wcsxfrm'.
20484         * modules/wcsxfrm: New file.
20485         * lib/wchar.in.h (wcsxfrm): New declaration.
20486         * lib/wcsxfrm.c: New file.
20487         * lib/wcsxfrm-impl.h: New file.
20488         * m4/wcsxfrm.m4: New file.
20489         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
20490         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
20491         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
20492         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
20493         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
20494
20495 2011-02-06  Bruno Haible  <bruno@clisp.org>
20496
20497         New module 'wcscoll'.
20498         * modules/wcscoll: New file.
20499         * lib/wchar.in.h (wcscoll): New declaration.
20500         * lib/wcscoll.c: New file.
20501         * lib/wcscoll-impl.h: New file.
20502         * m4/wcscoll.m4: New file.
20503         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
20504         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
20505         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
20506         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
20507         * doc/posix-functions/wcscoll.texi: Mention the new module.
20508
20509 2011-02-06  Bruno Haible  <bruno@clisp.org>
20510
20511         New module 'wcsncasecmp'.
20512         * modules/wcsncasecmp: New file.
20513         * lib/wchar.in.h (wcsncasecmp): New declaration.
20514         * lib/wcsncasecmp.c: New file.
20515         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
20516         * m4/wcsncasecmp.m4: New file.
20517         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
20518         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
20519         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
20520         HAVE_WCSNCASECMP.
20521         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
20522         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
20523
20524 2011-02-06  Bruno Haible  <bruno@clisp.org>
20525
20526         New module 'wcscasecmp'.
20527         * modules/wcscasecmp: New file.
20528         * lib/wchar.in.h (wcscasecmp): New declaration.
20529         * lib/wcscasecmp.c: New file.
20530         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
20531         * m4/wcscasecmp.m4: New file.
20532         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
20533         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
20534         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
20535         HAVE_WCSCASECMP.
20536         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
20537         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
20538
20539 2011-02-05  Bruno Haible  <bruno@clisp.org>
20540
20541         New module 'wcsncmp'.
20542         * modules/wcsncmp: New file.
20543         * lib/wchar.in.h (wcsncmp): New declaration.
20544         * lib/wcsncmp.c: New file.
20545         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
20546         * m4/wcsncmp.m4: New file.
20547         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
20548         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
20549         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
20550         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
20551         * doc/posix-functions/wcsncmp.texi: Mention the new module.
20552
20553 2011-02-05  Bruno Haible  <bruno@clisp.org>
20554
20555         New module 'wcscmp'.
20556         * modules/wcscmp: New file.
20557         * lib/wchar.in.h (wcscmp): New declaration.
20558         * lib/wcscmp.c: New file.
20559         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
20560         * m4/wcscmp.m4: New file.
20561         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
20562         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
20563         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
20564         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
20565         * doc/posix-functions/wcscmp.texi: Mention the new module.
20566
20567 2011-02-05  Bruno Haible  <bruno@clisp.org>
20568
20569         New module 'wcsncat'.
20570         * modules/wcsncat: New file.
20571         * lib/wchar.in.h (wcsncat): New declaration.
20572         * lib/wcsncat.c: New file.
20573         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
20574         * m4/wcsncat.m4: New file.
20575         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
20576         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
20577         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
20578         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
20579         * doc/posix-functions/wcsncat.texi: Mention the new module.
20580
20581 2011-02-05  Bruno Haible  <bruno@clisp.org>
20582
20583         New module 'wcscat'.
20584         * modules/wcscat: New file.
20585         * lib/wchar.in.h (wcscat): New declaration.
20586         * lib/wcscat.c: New file.
20587         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
20588         * m4/wcscat.m4: New file.
20589         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
20590         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
20591         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
20592         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
20593         * doc/posix-functions/wcscat.texi: Mention the new module.
20594
20595 2011-02-05  Bruno Haible  <bruno@clisp.org>
20596
20597         New module 'wcpncpy'.
20598         * modules/wcpncpy: New file.
20599         * lib/wchar.in.h (wcpncpy): New declaration.
20600         * lib/wcpncpy.c: New file.
20601         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
20602         * m4/wcpncpy.m4: New file.
20603         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
20604         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
20605         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
20606         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
20607         * doc/posix-functions/wcpncpy.texi: Mention the new module.
20608
20609 2011-02-05  Bruno Haible  <bruno@clisp.org>
20610
20611         New module 'wcsncpy'.
20612         * modules/wcsncpy: New file.
20613         * lib/wchar.in.h (wcsncpy): New declaration.
20614         * lib/wcsncpy.c: New file.
20615         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
20616         * m4/wcsncpy.m4: New file.
20617         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
20618         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
20619         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
20620         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
20621         * doc/posix-functions/wcsncpy.texi: Mention the new module.
20622
20623 2011-02-05  Bruno Haible  <bruno@clisp.org>
20624
20625         New module 'wcpcpy'.
20626         * modules/wcpcpy: New file.
20627         * lib/wchar.in.h (wcpcpy): New declaration.
20628         * lib/wcpcpy.c: New file.
20629         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
20630         * m4/wcpcpy.m4: New file.
20631         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
20632         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
20633         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
20634         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
20635         * doc/posix-functions/wcpcpy.texi: Mention the new module.
20636
20637 2011-02-05  Bruno Haible  <bruno@clisp.org>
20638
20639         New module 'wcscpy'.
20640         * modules/wcscpy: New file.
20641         * lib/wchar.in.h (wcscpy): New declaration.
20642         * lib/wcscpy.c: New file.
20643         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
20644         * m4/wcscpy.m4: New file.
20645         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
20646         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
20647         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
20648         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
20649         * doc/posix-functions/wcscpy.texi: Mention the new module.
20650
20651 2011-02-05  Bruno Haible  <bruno@clisp.org>
20652
20653         New module 'wcsnlen'.
20654         * modules/wcsnlen: New file.
20655         * lib/wchar.in.h (wcsnlen): New declaration.
20656         * lib/wcsnlen.c: New file.
20657         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
20658         * m4/wcsnlen.m4: New file.
20659         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
20660         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
20661         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
20662         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
20663         * doc/posix-functions/wcsnlen.texi: Mention the new module.
20664
20665 2011-02-05  Bruno Haible  <bruno@clisp.org>
20666
20667         New module 'wcslen'.
20668         * modules/wcslen: New file.
20669         * lib/wchar.in.h (wcslen): New declaration.
20670         * lib/wcslen.c: New file.
20671         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
20672         * m4/wcslen.m4: New file.
20673         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
20674         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
20675         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
20676         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
20677         * doc/posix-functions/wcslen.texi: Mention the new module.
20678
20679 2011-02-05  Bruno Haible  <bruno@clisp.org>
20680
20681         New module 'wmemset'.
20682         * modules/wmemset: New file.
20683         * lib/wchar.in.h (wmemset): New declaration.
20684         * lib/wmemset.c: New file.
20685         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
20686         * m4/wmemset.m4: New file.
20687         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
20688         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
20689         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
20690         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
20691         * doc/posix-functions/wmemset.texi: Mention the new module.
20692
20693 2011-02-05  Bruno Haible  <bruno@clisp.org>
20694
20695         New module 'wmemmove'.
20696         * modules/wmemmove: New file.
20697         * lib/wchar.in.h (wmemmove): New declaration.
20698         * lib/wmemmove.c: New file.
20699         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
20700         * m4/wmemmove.m4: New file.
20701         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
20702         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
20703         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
20704         HAVE_WMEMMOVE.
20705         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
20706         * doc/posix-functions/wmemmove.texi: Mention the new module.
20707
20708 2011-02-05  Bruno Haible  <bruno@clisp.org>
20709
20710         New module 'wmemcpy'.
20711         * modules/wmemcpy: New file.
20712         * lib/wchar.in.h (wmemcpy): New declaration.
20713         * lib/wmemcpy.c: New file.
20714         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
20715         * m4/wmemcpy.m4: New file.
20716         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
20717         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
20718         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
20719         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
20720         * doc/posix-functions/wmemcpy.texi: Mention the new module.
20721
20722 2011-02-05  Bruno Haible  <bruno@clisp.org>
20723
20724         New module 'wmemcmp'.
20725         * modules/wmemcmp: New file.
20726         * lib/wchar.in.h (wmemcmp): New declaration.
20727         * lib/wmemcmp.c: New file.
20728         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
20729         * m4/wmemcmp.m4: New file.
20730         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
20731         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
20732         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
20733         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
20734         * doc/posix-functions/wmemcmp.texi: Mention the new module.
20735
20736 2011-02-07  Jim Meyering  <meyering@redhat.com>
20737
20738         di-set, ino-map: new modules, from coreutils
20739         * lib/di-set.c: New file.
20740         * lib/di-set.h: Likewise.
20741         * lib/ino-map.c: Likewise.
20742         * lib/ino-map.h: Likewise.
20743         * modules/di-set: Likewise.
20744         * modules/di-set-tests: Likewise.
20745         * modules/ino-map: Likewise.
20746         * modules/ino-map-tests: Likewise.
20747         * tests/test-di-set.c: Likewise.
20748         * tests/test-ino-map.c: Likewise.
20749
20750 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20751
20752         getloadavg: merge minor changes from Emacs
20753
20754         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
20755         (getloadavg): Use memset, not bzero.
20756
20757         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
20758         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
20759         clash (bug#86).
20760
20761 2010-11-14  Bruno Haible  <bruno@clisp.org>
20762
20763         Allow multiple gnulib generated replacements to coexist.
20764         * lib/getopt.in.h (struct option): Avoid identical redefinition.
20765         * lib/inttypes.in.h (imaxdiv_t): Likewise.
20766         * lib/langinfo.in.h (nl_item): Likewise.
20767         * lib/math.in.h (_NaN, NAN): Likewise.
20768         * lib/netdb.in.h (struct addrinfo): Likewise.
20769         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
20770         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
20771         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
20772         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
20773         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
20774         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
20775         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
20776         pthread_mutexattr_init, pthread_mutexattr_settype,
20777         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
20778         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
20779         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
20780         pthread_spin_trylock, pthread_spin_unlock): Likewise.
20781         * lib/sched.in.h (struct sched_param): Likewise.
20782         * lib/se-selinux.in.h (security_class_t, security_context_t,
20783         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
20784         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
20785         lsetfilecon, fsetfilecon, security_check_context,
20786         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
20787         Likewise.
20788         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
20789         Likewise.
20790         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
20791         _gl_function_taking_int_returning_void_t, union sigval,
20792         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
20793         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
20794         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20795         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
20796         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
20797         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
20798         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
20799         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
20800         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
20801         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
20802         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
20803         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
20804         socklen_t, rpl_fd_isset): Likewise.
20805         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
20806         * lib/sys_time.in.h (struct timeval): Likewise.
20807         * lib/sys_times.in.h (struct tms): Likewise.
20808         * lib/sys_utsname.in.h (struct utsname):
20809         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20810         * lib/unistd.in.h (getpagesize): Likewise.
20811         * lib/wchar.in.h (mbstate_t): Likewise.
20812         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20813         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20814         towlower, towupper): Likewise.
20815         Reported by Sam Steingold <sds@gnu.org>.
20816
20817 2011-02-05  Eric Blake  <eblake@redhat.com>
20818
20819         unsetenv: work around Haiku issues
20820         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20821         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20822
20823 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20824
20825         libposix: avoid calling error() within libposix
20826         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20827         is defined.
20828
20829 2011-02-05  Eric Blake  <eblake@redhat.com>
20830
20831         strerror_r-posix: port to cygwin
20832         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20833         implementation.
20834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20835         * tests/test-strerror_r.c (main): Fix test.
20836         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20837         issue.
20838
20839 2011-02-05  Bruno Haible  <bruno@clisp.org>
20840
20841         New module 'wmemchr'.
20842         * modules/wmemchr: New file.
20843         * lib/wchar.in.h (wmemchr): New declaration.
20844         * lib/wmemchr.c: New file.
20845         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20846         * m4/wmemchr.m4: New file.
20847         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20848         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20849         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20850         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20851         * doc/posix-functions/wmemchr.texi: Mention the new module.
20852
20853 2011-02-04  Eric Blake  <eblake@redhat.com>
20854
20855         fdopendir: detect FreeBSD bug
20856         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20857         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20858
20859 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20860
20861         stdbool: do not define HAVE_STDBOOL_H
20862         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20863         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20864         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20865         imported from the latest Autoconf git.  It was motivated by Emacs,
20866         which uses gnulib but does not need HAVE_STDBOOL_H.
20867
20868 2011-02-04  Bruno Haible  <bruno@clisp.org>
20869
20870         wcsnrtombs: Prepare for new module wwcsnrtombs.
20871         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20872         * lib/wcsnrtombs.c: Include it.
20873         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20874
20875         wcsrtombs: Prepare for new module wwcsrtombs.
20876         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20877         * lib/wcsrtombs.c: Include it.
20878         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20879
20880         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20881         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20882         * lib/mbsnrtowcs.c: Include it.
20883         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20884
20885         mbsrtowcs: Prepare for new module mbsrtowwcs.
20886         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20887         * lib/mbsrtowcs.c: Include it.
20888         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20889
20890 2011-02-04  Bruno Haible  <bruno@clisp.org>
20891
20892         vasnprintf: Reduce use of malloc for small format strings.
20893         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20894         (arguments): Add room for the first 7 arguments.
20895         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20896         (char_directives, u8_directives, u16_directives, u32_directives): Add
20897         room for the first 7 directives.
20898         * lib/printf-parse.c: Include <string.h>.
20899         (PRINTF_PARSE): Change memory handling code so that it uses the first
20900         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20901         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20902         Reported by Pádraig Brady <P@draigbrady.com>.
20903
20904 2011-01-31  Eric Blake  <eblake@redhat.com>
20905
20906         dup2: work around Haiku bug
20907         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20908         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20909         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20910         * tests/test-dup2.c (main): Enhance test.
20911
20912 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20913
20914         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20915         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20916         declared by eglibc 2.11.2.
20917         * lib/stdio.in.h: Likewise.
20918
20919 2011-01-31  Eric Blake  <eblake@redhat.com>
20920
20921         ignore-value: add missing test dependency
20922         * tests/test-ignore-value.c: Revert previous change; stdio.h
20923         provides off_t.
20924         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20925
20926 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20927
20928         mktime: clarify long_int width checking
20929         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20930         the top level, to make it clearer that the assumption about
20931         long_int width is being checked.  See
20932         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20933
20934 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20935
20936         ignore-value: Fix self-test.
20937         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20938
20939 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20940
20941         TYPE_MAXIMUM: avoid theoretically undefined behavior
20942         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20943         negative number, which the C Standard says has undefined behavior.
20944         In practice this is not a problem, but might as well do it by the book.
20945         Reported by Rich Felker and Eric Blake; see
20946         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20947         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20948         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20950         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20951         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20952         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20953
20954         mktime: #undef mktime before #defining it
20955         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20956
20957         mktime: systematically normalize tm_isdst comparisons
20958         * lib/mktime.c (isdst_differ): New function.
20959         (__mktime_internal): Use it systematically for all isdst comparisons.
20960         This completes the fix for libc BZ #6723, and removes the need for
20961         normalizing tm_isdst.  See
20962         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20963         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20964
20965         mktime: fix some integer overflow issues and sidestep the rest
20966
20967         This was prompted by a bug report by Benjamin Lindner for MinGW
20968         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20969         His bug is due to signed integer overflow (0 - INT_MIN), and I
20970         I scanned through mktime.c looking for other integer overflow
20971         problems, fixing all the bugs I found.
20972
20973         Although the C Standard says the resulting code is still not safe
20974         in the presence of integer overflow, in practice it should be good
20975         enough for all real-world two's-complement implementations, except
20976         for debugging environments that deliberately trap on integer
20977         overflow (e.g., gcc -ftrapv).
20978
20979         * lib/mktime.c (WRAPV): New macro.
20980         (SHR): Also check that long_int and time_t shift right in the
20981         usual way, before using the fast-but-unportable method.
20982         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20983         used.  The code already assumed two's complement, so there's
20984         no need to test for alternatives.  All uses removed.
20985         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20986         the C standard.  Problem reported by Rich Felker in
20987         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20988         (twos_complement_arithmetic): Also check long_int and time_t.
20989         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20990         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20991         (__mktime_internal): Avoid integer overflow with unary subtraction
20992         in two instances where -1 - X is an adequate replacement for -X,
20993         since the calculations are approximate.
20994
20995 2011-01-29  Eric Blake  <eblake@redhat.com>
20996
20997         mktime: avoid infinite loop
20998         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20999         type; behavior is still undefined but portable to all known targets.
21000         Reported by Rich Felker.
21001
21002 2011-01-29  Simon Josefsson  <simon@josefsson.org>
21003
21004         rename, unlink, same-inode: Relicense.
21005         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
21006         * modules/unlink (License): Likewise.
21007         * modules/same-inode (License): Likewise.
21008
21009 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
21010
21011         mktime: avoid problems on NetBSD 5 / i386
21012         * lib/mktime.c (long_int): New type.  This works around a problem
21013         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
21014         but time_t is 64 bits, and where I expect the existing code is
21015         wrong in some cases.
21016         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
21017         (ydhms_diff): Bring back the compile-time check for wide-enough
21018         year and yday.
21019
21020         mktime: fix misspelling in comment
21021         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
21022         This merges all recent glibc changes of importance.
21023
21024 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21025
21026         move-if-change: cope with concurrent mv of identical file.
21027         * build-aux/move-if-change (CMPPROG): Accept environment
21028         variable as an override for `cmp'.
21029         (usage): Document CMPPROG.
21030         Adjust comparison to drop stdout.  Cope with failure of mv if
21031         the target file exists and is identical to the source, for
21032         parallel builds.
21033         Report from H.J. Lu against binutils in PR binutils/12283.
21034
21035 2011-01-28  Bruce Korb  <bkorb@gnu.org>
21036
21037         * users.txt: Mention sharutils.
21038
21039 2011-01-28  Simon Josefsson  <simon@josefsson.org>
21040
21041         * users.txt: Mention OATH Toolkit.
21042
21043 2011-01-27  Bruno Haible  <bruno@clisp.org>
21044
21045         Prepare for supporting FreeBSD 10.
21046         * build-aux/config.libpath: Remove handling of freebsd1*.
21047
21048 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
21049
21050         Prepare for supporting FreeBSD 10.
21051         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
21052         match FreeBSD 10.0.
21053
21054 2011-01-27  Bruno Haible  <bruno@clisp.org>
21055
21056         vma-iter, get-rusage-as: Add OpenBSD support.
21057         * modules/vma-iter (configure.ac): Test for mquery.
21058         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
21059         * lib/vma-iter.c: Include <sys/mman.h>.
21060         (vma_iterate): Add an implementation based on mquery().
21061         * lib/resource-ext.h (get_rusage_as): Update comments.
21062         * lib/get-rusage-as.c: Likewise.
21063         * lib/get-rusage-data.c: Likewise.
21064
21065 2011-01-26  Karl Berry  <karl@gnu.org>
21066
21067         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
21068         variables to make it easier to override the makeinfo program used.
21069
21070 2011-01-26  Eric Blake  <eblake@redhat.com>
21071
21072         fcntl: work around Haiku F_DUPFD bugs
21073         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
21074         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
21075         cloexec bit on duplication.
21076         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
21077
21078 2011-01-26  Bruno Haible  <bruno@clisp.org>
21079
21080         Enable memory leak tests on AIX.
21081         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
21082         * tests/test-fprintf-posix3.c (main): Likewise.
21083
21084 2011-01-26  Bruno Haible  <bruno@clisp.org>
21085
21086         Tests for module 'get-rusage-data'.
21087         * modules/get-rusage-data-tests: New file.
21088         * tests/test-get-rusage-data.c: New file.
21089
21090         New module 'get-rusage-data'.
21091         * lib/resource-ext.h (get_rusage_data): New declaration.
21092         * lib/get-rusage-data.c: New file.
21093         * modules/get-rusage-data: New file.
21094
21095 2011-01-25  Bruno Haible  <bruno@clisp.org>
21096
21097         get-rusage-as: Allow for easier testing.
21098         * lib/resource-ext.h (get_rusage_as): Add comment.
21099         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
21100         (main): New function for interactive testing.
21101
21102 2011-01-25  Bruno Haible  <bruno@clisp.org>
21103
21104         vma-iter: Treat Haiku like BeOS.
21105         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
21106         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
21107
21108 2011-01-25  Eric Blake  <eblake@redhat.com>
21109
21110         c-stack: fix regression on cygwin when libsigsegv is present
21111         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
21112
21113 2011-01-24  Bruno Haible  <bruno@clisp.org>
21114
21115         vma-iter: Avoid empty intervals.
21116         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
21117         on an empty interval.
21118
21119 2011-01-24  Jim Meyering  <meyering@redhat.com>
21120
21121         u64: remove unnecessary #include
21122         * lib/u64.h: Don't include <stddef.h>.  It was not used.
21123
21124 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
21125
21126         Allow the user to avoid the HAVE_RAW_DECL_* macros.
21127         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
21128
21129 2011-01-23  Bruno Haible  <bruno@clisp.org>
21130
21131         New module 'vma-iter'.
21132         * lib/vma-iter.h: New file.
21133         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
21134         * modules/vma-iter: New file.
21135         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
21136         for get_rusage_as_via_iterator.
21137         (vma_iterate_callback): New function.
21138         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
21139         * modules/get-rusage-as (Depends-on): Add vma-iter.
21140
21141 2011-01-23  Bruno Haible  <bruno@clisp.org>
21142
21143         uninorm: Tweak includes.
21144         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
21145         Reported by Jim Meyering.
21146
21147 2011-01-23  Bruno Haible  <bruno@clisp.org>
21148
21149         get-rusage-as: Improve on NetBSD.
21150         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
21151         /proc, like on FreeBSD.
21152
21153 2011-01-23  Jim Meyering  <meyering@redhat.com>
21154
21155         xreadlink.h: remove unnecessary #include
21156         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
21157
21158         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
21159         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
21160
21161 2011-01-23  Bruno Haible  <bruno@clisp.org>
21162
21163         get-rusage-as: Fix bug.
21164         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
21165         original limit when aborting the first loop.
21166
21167 2011-01-23  Bruno Haible  <bruno@clisp.org>
21168
21169         wctype: Ensure valid C syntax.
21170         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
21171         unconditionally, instead of gl_NEXT_HEADERS conditionally.
21172
21173 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
21174
21175         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
21176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
21177         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
21178         as they are needed only for configure's test case.
21179         This removes two unnecessary symbols from config.h.
21180
21181         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
21182         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
21183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
21184         AC_CHECK_HEADERS_ONCE on a header that we also invoke
21185         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
21186         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
21187         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
21188         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
21189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
21190         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
21191         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
21192         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
21193         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
21194         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
21195         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
21196         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
21197         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
21198         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21199
21200 2011-01-21  Eric Blake  <eblake@redhat.com>
21201
21202         maintainer-makefile: work with older git for submodule check
21203         * top/maint.mk (public-submodule-commit): Rewrite to avoid
21204         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
21205         Reported by Matthias Bolte.
21206
21207         bootstrap: minor portability fixes
21208         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
21209         (usage): Omit leading capital and trailing . on help phrases, per
21210         GNU Coding Standards.
21211         (check_versions, top level): Prefix messages with script name.
21212
21213 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
21214
21215         bootstrap: support --no-git option
21216         * build-aux/bootstrap: Add --no-git option, to be used when
21217         --gnulib-srcdir points to the exact desired checkout.
21218
21219 2011-01-21  Eric Blake  <eblake@redhat.com>
21220
21221         strerror_r-posix: work with glibc 2.13
21222         * lib/strerror_r.c (strerror_r): Fix return type.
21223
21224 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21225             Bruno Haible  <bruno@clisp.org>
21226
21227         uN_strstr: New unit tests.
21228         * modules/unistr/u8-strstr-tests: New file.
21229         * modules/unistr/u16-strstr-tests: New file.
21230         * modules/unistr/u32-strstr-tests: New file.
21231         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
21232         * tests/unistr/test-u8-strstr.c: New file.
21233         * tests/unistr/test-u16-strstr.c: New file.
21234         * tests/unistr/test-u32-strstr.c: New file.
21235
21236 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21237             Bruno Haible  <bruno@clisp.org>
21238
21239         Make uN_strstr functions O(n) worst-case.
21240         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
21241         16-bit and 32-bit unit cases, use the unibyte algorithm from
21242         lib/mbsstr.c.
21243         * lib/unistr/u8-strstr.c: Include <string.h>.
21244         (UNIT_IS_UINT8_T): New macro.
21245         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
21246         (U_STRLEN, U_STRNLEN): New macros.
21247         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
21248         (U_STRLEN, U_STRNLEN): New macros.
21249         * modules/unistr/u8-strstr (Depends-on): Add strstr.
21250         (configure.ac): Update required libunistring version.
21251         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
21252         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
21253         malloca.
21254         (configure.ac): Update required libunistring version.
21255         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
21256         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
21257         malloca.
21258         (configure.ac): Update required libunistring version.
21259
21260 2011-01-21  Pádraig Brady  <P@draigBrady.com>
21261             Bruno Haible  <bruno@clisp.org>
21262
21263         Prepare for faster uN_strstr functions.
21264         * lib/str-kmp.h: Support definable UNITs.
21265         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
21266         needle_len argument.
21267         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
21268         * lib/mbscasestr.c (mbscasestr): Likewise.
21269
21270 2011-01-21  Pádraig Brady <P@draigBrady.com>
21271
21272         malloca-tests: make faster by unsetting MALLOC_PERTURB_
21273         * tests/test-malloca.c (main): Unset the environment variable
21274         to greatly speed up the test.
21275         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
21276         * modules/malloca-tests: Depend on unsetenv.
21277
21278 2011-01-21  Pádraig Brady <P@draigBrady.com>
21279
21280         ignore-value: remove stdint dependency
21281         * lib/ignore-value.h: Remove <stdint.h>
21282         * modules/ignore-value: Remove stdint dependency.
21283
21284 2011-01-21  Jim Meyering  <meyering@redhat.com>
21285
21286         maint.mk: adjust variable name to be consistent with other gl_ vars
21287         * top/maint.mk (gl_public_submodule_commit): Rename the variable
21288         to be lower case.
21289
21290 2011-01-20  Jim Meyering  <meyering@redhat.com>
21291
21292         maint.mk: make "check" depend on public-submodule-commit by default
21293         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
21294
21295 2011-01-20  Bruno Haible  <bruno@clisp.org>
21296
21297         mbfile, mbiter: Complete change from 2008-12-21.
21298         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
21299         * m4/mbiter.m4 (gl_MBITER): Likewise.
21300
21301 2011-01-20  Jim Meyering  <meyering@redhat.com>
21302
21303         init.sh: insert space between each function name and "()"
21304         * tests/init.sh: Make it a little easier to see that a function's
21305         name is "warn_", and not "warn" when looking at the first part of
21306         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
21307
21308 2011-01-20  Jim Meyering  <meyering@redhat.com>
21309
21310         mountlist: clean up code formatting
21311         * lib/mountlist.c (read_file_system_list): Split a long line,
21312         correct bracing style, use NULL in place of "(struct statfs *)0",
21313         don't parenthesize return value, add spaces around "=" and after
21314         ";-in-for-stmt".
21315
21316 2011-01-14  Markus Duft <mduft@gentoo.org>
21317
21318         mountlist: add support for Interix
21319         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
21320         Apply statvfs to all entries of /dev/fs.
21321         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
21322         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
21323
21324 2011-01-20  Jim Meyering  <meyering@redhat.com>
21325
21326         maint.mk: improve the public-submodule-commit rule
21327         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
21328         to suppress printing of its commands... unless V=1.
21329         Add git submodule's --quiet option to suppress printing of e.g.,
21330         "Entering gnulib" output.
21331         "cd" into $(srcdir) before running git submodule.
21332
21333 2011-01-20  Bruno Haible  <bruno@clisp.org>
21334
21335         include_next: Fix bug introduced on 2011-01-18.
21336         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
21337         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
21338         ac_cv_header_... variable if the second argument is not 'check'.
21339         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
21340         gl_NEXT_HEADERS_INTERNAL.
21341
21342 2011-01-20  Bruno Haible  <bruno@clisp.org>
21343
21344         Allow the user to avoid the GNULIB_TEST_* macros.
21345         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
21346         Suggested by Paul Eggert.
21347
21348 2011-01-14  Jim Meyering  <meyering@redhat.com>
21349
21350         bootstrap: avoid failure when there is no .gitmodules file
21351         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
21352         has been assigned to, even when its value is the empty string.
21353         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
21354         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
21355         Reported by John W. Eaton <jwe@gnu.org>.
21356
21357 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
21358
21359         assume <ctype.h>, ..., <time.h> exist
21360         For years gnulib has been assuming the existence of the headers
21361         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
21362         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
21363         them, since they don't appear to be needed.
21364         * README (Portability guidelines): Document this.
21365         * lib/flock.c: Assume <fcntl.h> exists.
21366         * lib/regex_internal.h: Assume <locale.h> exists.
21367         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
21368         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
21369         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
21370         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
21371         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
21372         * m4/regex.m4 (gl_REGEX): Likewise.
21373         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
21374         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
21375         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
21376         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
21377         * tests/test-argp.c: Likewise.
21378         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
21379
21380         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
21381         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
21382         AA_APPLE_UNIVERSAL_BUILD.  See
21383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
21384         * NEWS: Document this.
21385
21386 2011-01-19  Eric Blake  <eblake@redhat.com>
21387
21388         c-stack: assume stack overflow if SA_SIGINFO unsupported
21389         * lib/c-stack.c (SIGACTION_WORKS): Rename...
21390         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
21391         sigaction will work.
21392         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
21393         behavior match Linux.
21394         * tests/test-c-stack.c (main): Prefer NULL for pointers.
21395
21396         stdbool-tests: accomodate Haiku
21397         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
21398
21399         binary-io: fix O_TEXT on Haiku
21400         * modules/binary-io (Depends-on): Add fcntl-h.
21401         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
21402         than blindly undefining O_TEXT.
21403         Reported by Scott McCreary.
21404
21405 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21406
21407         include_next: do not check for standard headers like stddef.h
21408
21409         I found this problem when modifying Emacs to use gnulib.
21410         I noticed that it added HAVE_STDDEF_H to config.h, even though
21411         gnulib always assumes <stddef.h> exists as per README and this
21412         symbol is unnecessary.
21413         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
21414         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
21415         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
21416         faster for headers like stddef.h that are known to exist.
21417         (gl_CHECK_NEXT_HEADERS): Use it.
21418         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
21419         rather than gl_CHECK_NEXT_HEADERS.
21420         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
21421         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
21422
21423 2011-01-18  Eric Blake  <eblake@redhat.com>
21424
21425         ansi-c++-opt: skip C++ dependency style if C++ is unused
21426         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
21427         tests when we know C++ compilation is not desired.
21428         Reported by Scott McCreary.
21429
21430 2011-01-18  Bruno Haible  <bruno@clisp.org>
21431
21432         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
21433         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
21434         (main): Perform test also when getrlimit and setrlimit don't exist or
21435         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
21436         limiting the address space size using setrlimit, compare the address
21437         space size before and after the the test.
21438         * tests/test-dprintf-posix2.c: Likewise.
21439         * tests/test-fprintf-posix3.sh: Update skip messages.
21440         * tests/test-dprintf-posix2.sh: Likewise.
21441         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
21442         * modules/dprintf-posix-tests (Depends-on): Likewise.
21443         Reported by Bruce Korb <bkorb@gnu.org> and
21444         Gary V. Vaughan <gary@gnu.org>.
21445
21446 2011-01-18  Bruno Haible  <bruno@clisp.org>
21447
21448         get-rusage-as: Improvement for Cygwin.
21449         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
21450         areas that are merely reserved.
21451
21452 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
21453
21454         strftime: remove dependencies on multibyte modules
21455
21456         strftime depended on mbrlen, mbsinit, and wchar, but these modules
21457         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
21458         only if __osf__ is defined, and I suspect OSF doesn't need these
21459         other modules.  If my guess is wrong, we'll need to come up with a
21460         variant of strftime that doesn't need the multibyte modules.
21461
21462         I discovered this problem when attempting modify Emacs to use the
21463         strftime module.  With the previous gnulib, this caused Emacs to
21464         need 31 new files, ranging from lib/config.charset to
21465         m4/wint_t.m4.  This was overkill and I expect would be offputting
21466         to the Emacs maintainers.  After this change, only 6 new files are
21467         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
21468         stdbool.m4, and tm_gmtoff.m4.
21469
21470         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
21471         Suggested by Bruno Haible in
21472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
21473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
21474         and do not check for wchar.h.
21475         * modules/strftime (Files): Remove m4/mbstate_t.m4.
21476         (Depends-on): Remove mbrlen, mbsinit, wchar.
21477
21478 2011-01-18  Bruno Haible  <bruno@clisp.org>
21479
21480         Tests for module 'get-rusage-as'.
21481         * modules/get-rusage-as-tests: New file.
21482         * tests/test-get-rusage-as.c: New file.
21483
21484         New module 'get-rusage-as'.
21485         * modules/get-rusage-as: New file.
21486         * lib/resource-ext.h: New file.
21487         * lib/get-rusage-as.c: New file.
21488
21489 2011-01-17  Eric Blake  <eblake@redhat.com>
21490
21491         sigaction: relax license from LGPLv3+ to LGPLv2+
21492         * modules/sigaction (License): Relax to LGPLv2+.
21493
21494 2011-01-14  Bruno Haible  <bruno@clisp.org>
21495
21496         filemode: Make function declarations usable in C++ mode.
21497         * lib/filemode.h: Enclose function declarations in extern "C" block.
21498         Reported by John W. Eaton <jwe@gnu.org>.
21499
21500 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
21501
21502         save-cwd: no longer include "xgetcwd.h"
21503         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
21504         This avoids a compilation failure in projects that use save-cwd
21505         without also using the xgetcwd module.
21506
21507 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21508
21509         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
21510         This is so that a program like Emacs, which needs only dtoastr,
21511         does not have to bother with distributing and compiling ftoastr
21512         and ldtoastr.
21513         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
21514         * modules/dtoastr, modules/ldtoastr: New files.
21515         * modules/ftoastr: Now works just for 'float'.
21516         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
21517         (Makefile.am): Remove ftoastr.h (not needed and no effect),
21518         dtoastr.c, ldtoastr.c.
21519
21520 2011-01-11  Jim Meyering  <meyering@redhat.com>
21521
21522         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
21523         There is no need to work around the lack of the fchdir function,
21524         since gnulib can now provide a replacement when required.
21525         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
21526         * modules/save-cwd (Depends-on): Add fchdir.
21527
21528 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
21529
21530         openat, save-cwd: avoid xmalloc
21531
21532         This removes a direct (but undocumented) dependency of openat on
21533         xalloc, along with an indirect dependency via save-cwd.  It also
21534         removes a dependency of save-cwd on xgetcwd, and thereby
21535         indirectly on xalloc.  This change causes the openat substitute
21536         to fall back on save_cwd when memory is tight, and for save_cwd to
21537         fail instead of dying when memory is tight, but that's good enough.
21538         Problem and initial idea for fix reported by Bastien Roucaries in
21539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
21540
21541         * lib/openat-proc.c: Include stdlib.h (for malloc), not
21542         xalloc.h (for xmalloc).
21543         (openat_proc_name): Use malloc, not xmalloc.
21544         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
21545         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
21546
21547         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
21548         This avoids heap allocation for file names whose lengths are in
21549         the range 512..1023, with the upper bound increasing to at most
21550         4031 depending on the platform's PATH_MAX.  (We do not want
21551         pathmax.h here as it might supply a non-constant PATH_MAX.)
21552         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
21553         Perhaps they should be moved to malloca.h?
21554         (OPENAT_BUFFER_SIZE): Use them.
21555
21556 2011-01-10  Bruno Haible  <bruno@clisp.org>
21557
21558         doc: Update users.txt.
21559         * users.txt: Add recutils.
21560
21561 2011-01-09  Karl Berry  <karl@gnu.org>
21562
21563         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
21564
21565         * doc/configmake.texi: New file.
21566         * doc/gnulib.texi: Include it.
21567         * modules/configmake: Move documentation from here.
21568
21569 2011-01-09  Bruno Haible  <bruno@clisp.org>
21570
21571         Update to Unicode 6.0.0.
21572         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
21573         (get_lbp): Update for Unicode 6.0.0.
21574         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
21575         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
21576         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
21577         U+11001, U+11038..U+11046. Remove U+06DE.
21578         (uc_width): Fix bounds of planes.
21579         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21580         lib/uniwidth/width.c.
21581         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
21582         trailing whitespace removed.
21583         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
21584         without comments, but with the original copyright notice.
21585         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
21586         * lib/unicase/ignorable.h: Likewise.
21587         * lib/unicase/tocasefold.h: Likewise.
21588         * lib/unicase/tolower.h: Likewise.
21589         * lib/unicase/totitle.h: Likewise.
21590         * lib/unicase/toupper.h: Likewise.
21591         * lib/unictype/bidi_of.h: Likewise.
21592         * lib/unictype/blocks.h: Likewise.
21593         * lib/unictype/categ_C.h: Likewise.
21594         * lib/unictype/categ_Cn.h: Likewise.
21595         * lib/unictype/categ_L.h: Likewise.
21596         * lib/unictype/categ_Ll.h: Likewise.
21597         * lib/unictype/categ_Lm.h: Likewise.
21598         * lib/unictype/categ_Lo.h: Likewise.
21599         * lib/unictype/categ_Lu.h: Likewise.
21600         * lib/unictype/categ_M.h: Likewise.
21601         * lib/unictype/categ_Mc.h: Likewise.
21602         * lib/unictype/categ_Me.h: Likewise.
21603         * lib/unictype/categ_Mn.h: Likewise.
21604         * lib/unictype/categ_N.h: Likewise.
21605         * lib/unictype/categ_Nd.h: Likewise.
21606         * lib/unictype/categ_No.h: Likewise.
21607         * lib/unictype/categ_P.h: Likewise.
21608         * lib/unictype/categ_Po.h: Likewise.
21609         * lib/unictype/categ_S.h: Likewise.
21610         * lib/unictype/categ_Sc.h: Likewise.
21611         * lib/unictype/categ_Sk.h: Likewise.
21612         * lib/unictype/categ_Sm.h: Likewise.
21613         * lib/unictype/categ_So.h: Likewise.
21614         * lib/unictype/categ_of.h: Likewise.
21615         * lib/unictype/combining.h: Likewise.
21616         * lib/unictype/ctype_alnum.h: Likewise.
21617         * lib/unictype/ctype_alpha.h: Likewise.
21618         * lib/unictype/ctype_graph.h: Likewise.
21619         * lib/unictype/ctype_lower.h: Likewise.
21620         * lib/unictype/ctype_print.h: Likewise.
21621         * lib/unictype/ctype_punct.h: Likewise.
21622         * lib/unictype/ctype_upper.h: Likewise.
21623         * lib/unictype/decdigit.h: Likewise.
21624         * lib/unictype/digit.h: Likewise.
21625         * lib/unictype/numeric.h: Likewise.
21626         * lib/unictype/pr_alphabetic.h: Likewise.
21627         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21628         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21629         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21630         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21631         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21632         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21633         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21634         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21635         * lib/unictype/pr_case_ignorable.h: Likewise.
21636         * lib/unictype/pr_cased.h: Likewise.
21637         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
21638         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
21639         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
21640         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
21641         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
21642         * lib/unictype/pr_combining.h: Likewise.
21643         * lib/unictype/pr_composite.h: Likewise.
21644         * lib/unictype/pr_currency_symbol.h: Likewise.
21645         * lib/unictype/pr_decimal_digit.h: Likewise.
21646         * lib/unictype/pr_deprecated.h: Likewise.
21647         * lib/unictype/pr_format_control.h: Likewise.
21648         * lib/unictype/pr_grapheme_base.h: Likewise.
21649         * lib/unictype/pr_grapheme_extend.h: Likewise.
21650         * lib/unictype/pr_grapheme_link.h: Likewise.
21651         * lib/unictype/pr_id_continue.h: Likewise.
21652         * lib/unictype/pr_id_start.h: Likewise.
21653         * lib/unictype/pr_ideographic.h: Likewise.
21654         * lib/unictype/pr_lowercase.h: Likewise.
21655         * lib/unictype/pr_math.h: Likewise.
21656         * lib/unictype/pr_numeric.h: Likewise.
21657         * lib/unictype/pr_other_alphabetic.h: Likewise.
21658         * lib/unictype/pr_other_id_continue.h: Likewise.
21659         * lib/unictype/pr_other_math.h: Likewise.
21660         * lib/unictype/pr_punctuation.h: Likewise.
21661         * lib/unictype/pr_sentence_terminal.h: Likewise.
21662         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21663         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21664         * lib/unictype/pr_unified_ideograph.h: Likewise.
21665         * lib/unictype/pr_uppercase.h: Likewise.
21666         * lib/unictype/pr_xid_continue.h: Likewise.
21667         * lib/unictype/pr_xid_start.h: Likewise.
21668         * lib/unictype/scripts.h: Likewise.
21669         * lib/unictype/scripts_byname.gperf: Likewise.
21670         * lib/unictype/sy_java_ident.h: Likewise.
21671         * lib/unigbrk/gbrkprop.h: Likewise.
21672         * lib/unilbrk/lbrkprop1.h: Likewise.
21673         * lib/unilbrk/lbrkprop2.h: Likewise.
21674         * lib/uninorm/decomposition-table2.h: Likewise.
21675         * lib/uniwbrk/wbrkprop.h: Likewise.
21676         * tests/unicase/test-cased.c: Likewise.
21677         * tests/unicase/test-ignorable.c: Likewise.
21678         * tests/unicase/test-uc_tolower.c: Likewise.
21679         * tests/unicase/test-uc_totitle.c: Likewise.
21680         * tests/unicase/test-uc_toupper.c: Likewise.
21681         * tests/unictype/test-categ_C.c: Likewise.
21682         * tests/unictype/test-categ_Cn.c: Likewise.
21683         * tests/unictype/test-categ_L.c: Likewise.
21684         * tests/unictype/test-categ_Ll.c: Likewise.
21685         * tests/unictype/test-categ_Lm.c: Likewise.
21686         * tests/unictype/test-categ_Lo.c: Likewise.
21687         * tests/unictype/test-categ_Lu.c: Likewise.
21688         * tests/unictype/test-categ_M.c: Likewise.
21689         * tests/unictype/test-categ_Mc.c: Likewise.
21690         * tests/unictype/test-categ_Me.c: Likewise.
21691         * tests/unictype/test-categ_Mn.c: Likewise.
21692         * tests/unictype/test-categ_N.c: Likewise.
21693         * tests/unictype/test-categ_Nd.c: Likewise.
21694         * tests/unictype/test-categ_No.c: Likewise.
21695         * tests/unictype/test-categ_P.c: Likewise.
21696         * tests/unictype/test-categ_Po.c: Likewise.
21697         * tests/unictype/test-categ_S.c: Likewise.
21698         * tests/unictype/test-categ_Sc.c: Likewise.
21699         * tests/unictype/test-categ_Sk.c: Likewise.
21700         * tests/unictype/test-categ_Sm.c: Likewise.
21701         * tests/unictype/test-categ_So.c: Likewise.
21702         * tests/unictype/test-ctype_alnum.c: Likewise.
21703         * tests/unictype/test-ctype_alpha.c: Likewise.
21704         * tests/unictype/test-ctype_graph.c: Likewise.
21705         * tests/unictype/test-ctype_lower.c: Likewise.
21706         * tests/unictype/test-ctype_print.c: Likewise.
21707         * tests/unictype/test-ctype_punct.c: Likewise.
21708         * tests/unictype/test-ctype_upper.c: Likewise.
21709         * tests/unictype/test-decdigit.h: Likewise.
21710         * tests/unictype/test-digit.h: Likewise.
21711         * tests/unictype/test-numeric.h: Likewise.
21712         * tests/unictype/test-pr_alphabetic.c: Likewise.
21713         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21714         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
21715         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
21716         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21717         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21718         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21719         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21720         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21721         * tests/unictype/test-pr_case_ignorable.c: Likewise.
21722         * tests/unictype/test-pr_cased.c: Likewise.
21723         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
21724         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
21725         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
21726         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
21727         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
21728         * tests/unictype/test-pr_combining.c: Likewise.
21729         * tests/unictype/test-pr_composite.c: Likewise.
21730         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21731         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21732         * tests/unictype/test-pr_deprecated.c: Likewise.
21733         * tests/unictype/test-pr_format_control.c: Likewise.
21734         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21735         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21736         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21737         * tests/unictype/test-pr_id_continue.c: Likewise.
21738         * tests/unictype/test-pr_id_start.c: Likewise.
21739         * tests/unictype/test-pr_ideographic.c: Likewise.
21740         * tests/unictype/test-pr_lowercase.c: Likewise.
21741         * tests/unictype/test-pr_math.c: Likewise.
21742         * tests/unictype/test-pr_numeric.c: Likewise.
21743         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21744         * tests/unictype/test-pr_other_id_continue.c: Likewise.
21745         * tests/unictype/test-pr_other_math.c: Likewise.
21746         * tests/unictype/test-pr_punctuation.c: Likewise.
21747         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21748         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21749         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21750         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21751         * tests/unictype/test-pr_uppercase.c: Likewise.
21752         * tests/unictype/test-pr_xid_continue.c: Likewise.
21753         * tests/unictype/test-pr_xid_start.c: Likewise.
21754         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21755         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21756         changes.
21757         * lib/unictype/categ_Cc.h: Likewise.
21758         * lib/unictype/categ_Cf.h: Likewise.
21759         * lib/unictype/categ_Co.h: Likewise.
21760         * lib/unictype/categ_Cs.h: Likewise.
21761         * lib/unictype/categ_Lt.h: Likewise.
21762         * lib/unictype/categ_Nl.h: Likewise.
21763         * lib/unictype/categ_Pc.h: Likewise.
21764         * lib/unictype/categ_Pd.h: Likewise.
21765         * lib/unictype/categ_Pe.h: Likewise.
21766         * lib/unictype/categ_Pf.h: Likewise.
21767         * lib/unictype/categ_Pi.h: Likewise.
21768         * lib/unictype/categ_Ps.h: Likewise.
21769         * lib/unictype/categ_Z.h: Likewise.
21770         * lib/unictype/categ_Zl.h: Likewise.
21771         * lib/unictype/categ_Zp.h: Likewise.
21772         * lib/unictype/categ_Zs.h: Likewise.
21773         * lib/unictype/ctype_blank.h: Likewise.
21774         * lib/unictype/ctype_cntrl.h: Likewise.
21775         * lib/unictype/ctype_digit.h: Likewise.
21776         * lib/unictype/ctype_space.h: Likewise.
21777         * lib/unictype/ctype_xdigit.h: Likewise.
21778         * lib/unictype/mirror.h: Likewise.
21779         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21780         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21781         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21782         * lib/unictype/pr_bidi_control.h: Likewise.
21783         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21784         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21785         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21786         * lib/unictype/pr_bidi_pdf.h: Likewise.
21787         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21788         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21789         * lib/unictype/pr_dash.h: Likewise.
21790         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21791         * lib/unictype/pr_diacritic.h: Likewise.
21792         * lib/unictype/pr_extender.h: Likewise.
21793         * lib/unictype/pr_hex_digit.h: Likewise.
21794         * lib/unictype/pr_hyphen.h: Likewise.
21795         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21796         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21797         * lib/unictype/pr_ignorable_control.h: Likewise.
21798         * lib/unictype/pr_iso_control.h: Likewise.
21799         * lib/unictype/pr_join_control.h: Likewise.
21800         * lib/unictype/pr_left_of_pair.h: Likewise.
21801         * lib/unictype/pr_line_separator.h: Likewise.
21802         * lib/unictype/pr_logical_order_exception.h: Likewise.
21803         * lib/unictype/pr_non_break.h: Likewise.
21804         * lib/unictype/pr_not_a_character.h: Likewise.
21805         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21806         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21807         * lib/unictype/pr_other_id_start.h: Likewise.
21808         * lib/unictype/pr_other_lowercase.h: Likewise.
21809         * lib/unictype/pr_other_uppercase.h: Likewise.
21810         * lib/unictype/pr_paired_punctuation.h: Likewise.
21811         * lib/unictype/pr_paragraph_separator.h: Likewise.
21812         * lib/unictype/pr_pattern_syntax.h: Likewise.
21813         * lib/unictype/pr_pattern_white_space.h: Likewise.
21814         * lib/unictype/pr_private_use.h: Likewise.
21815         * lib/unictype/pr_quotation_mark.h: Likewise.
21816         * lib/unictype/pr_radical.h: Likewise.
21817         * lib/unictype/pr_soft_dotted.h: Likewise.
21818         * lib/unictype/pr_space.h: Likewise.
21819         * lib/unictype/pr_titlecase.h: Likewise.
21820         * lib/unictype/pr_variation_selector.h: Likewise.
21821         * lib/unictype/pr_white_space.h: Likewise.
21822         * lib/unictype/pr_zero_width.h: Likewise.
21823         * lib/unictype/sy_c_ident.h: Likewise.
21824         * lib/unictype/sy_c_whitespace.h: Likewise.
21825         * lib/unictype/sy_java_whitespace.h: Likewise.
21826         * lib/uninorm/composition-table.gperf: Likewise.
21827         * lib/uninorm/decomposition-table1.h: Likewise.
21828         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21829         LB8.
21830         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21831         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21832         * modules/unictype/*: Bump version number of expected libunistring
21833         version.
21834
21835 2011-01-09  Bruno Haible  <bruno@clisp.org>
21836
21837         Update to Unicode 5.2.0.
21838         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21839         trailing whitespace removed.
21840
21841 2011-01-09  Bruno Haible  <bruno@clisp.org>
21842
21843         New Unicode character properties, from Unicode 5.2.0.
21844         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21845         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21846         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21847         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21848         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21849         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21850         uc_is_property_cased, uc_is_property_case_ignorable,
21851         uc_is_property_changes_when_lowercased,
21852         uc_is_property_changes_when_uppercased,
21853         uc_is_property_changes_when_titlecased,
21854         uc_is_property_changes_when_casefolded,
21855         uc_is_property_changes_when_casemapped): New declarations.
21856         * lib/unictype/pr_byname.gperf: Add the new properties.
21857         * modules/unictype/property-byname (Depends-on): Depend on the new
21858         properties modules.
21859         * modules/unictype/property-all (Depends-on): Likewise.
21860         * MODULES.html.sh (Unicode string functions): Add
21861         unictype/property-case-ignorable, unictype/property-cased,
21862         unictype/property-changes-when-casefolded,
21863         unictype/property-changes-when-casemapped,
21864         unictype/property-changes-when-lowercased,
21865         unictype/property-changes-when-titlecased,
21866         unictype/property-changes-when-uppercased.
21867
21868         New module 'unictype/property-changes-when-casemapped'.
21869         * modules/unictype/property-changes-when-casemapped: New file.
21870         * lib/unictype/pr_changes_when_casemapped.c: New file.
21871         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21872         generated by gen-uni-tables.
21873         * modules/unictype/property-changes-when-casemapped-tests: New file.
21874         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21875         automatically generated by gen-uni-tables.
21876
21877         New module 'unictype/property-changes-when-casefolded'.
21878         * modules/unictype/property-changes-when-casefolded: New file.
21879         * lib/unictype/pr_changes_when_casefolded.c: New file.
21880         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21881         generated by gen-uni-tables.
21882         * modules/unictype/property-changes-when-casefolded-tests: New file.
21883         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21884         automatically generated by gen-uni-tables.
21885
21886         New module 'unictype/property-changes-when-titlecased'.
21887         * modules/unictype/property-changes-when-titlecased: New file.
21888         * lib/unictype/pr_changes_when_titlecased.c: New file.
21889         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21890         generated by gen-uni-tables.
21891         * modules/unictype/property-changes-when-titlecased-tests: New file.
21892         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21893         automatically generated by gen-uni-tables.
21894
21895         New module 'unictype/property-changes-when-uppercased'.
21896         * modules/unictype/property-changes-when-uppercased: New file.
21897         * lib/unictype/pr_changes_when_uppercased.c: New file.
21898         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21899         generated by gen-uni-tables.
21900         * modules/unictype/property-changes-when-uppercased-tests: New file.
21901         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21902         automatically generated by gen-uni-tables.
21903
21904         New module 'unictype/property-changes-when-lowercased'.
21905         * modules/unictype/property-changes-when-lowercased: New file.
21906         * lib/unictype/pr_changes_when_lowercased.c: New file.
21907         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21908         generated by gen-uni-tables.
21909         * modules/unictype/property-changes-when-lowercased-tests: New file.
21910         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21911         automatically generated by gen-uni-tables.
21912
21913         New module 'unictype/property-case-ignorable'.
21914         * modules/unictype/property-case-ignorable: New file.
21915         * lib/unictype/pr_case_ignorable.c: New file.
21916         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21917         by gen-uni-tables.
21918         * modules/unictype/property-case-ignorable-tests: New file.
21919         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21920         generated by gen-uni-tables.
21921
21922         New module 'unictype/property-cased'.
21923         * modules/unictype/property-cased: New file.
21924         * lib/unictype/pr_cased.c: New file.
21925         * lib/unictype/pr_cased.h: New file, automatically generated by
21926         gen-uni-tables.
21927         * modules/unictype/property-cased-tests: New file.
21928         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21929         gen-uni-tables.
21930
21931 2011-01-09  Bruno Haible  <bruno@clisp.org>
21932
21933         Update to Unicode 5.2.0.
21934         * lib/gen-uni-tables.c (output_predicate, output_category,
21935         output_combclass, output_bidi_category, output_decimal_digit_test,
21936         output_decimal_digit, output_digit_test, output_digit,
21937         output_numeric_test, output_numeric, output_mirror, output_scripts,
21938         output_scripts_byname, output_blocks, output_ident_category): Fix
21939         comment header.
21940         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21941         get_wbp.
21942         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21943         items.
21944         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21945         Changes_When_Lowercased, Changes_When_Uppercased,
21946         Changes_When_Titlecased, Changes_When_Casefolded,
21947         Changes_When_Casemapped.
21948         (is_property_alphabetic, is_property_default_ignorable_code_point):
21949         Update for Unicode 5.2.0.
21950         (is_property_cased, is_property_case_ignorable,
21951         is_property_changes_when_lowercased,
21952         is_property_changes_when_uppercased,
21953         is_property_changes_when_titlecased,
21954         is_property_changes_when_casefolded,
21955         is_property_changes_when_casemapped): New functions.
21956         (output_properties): Output also the properties cased, case_ignorable,
21957         changes_when_lowercased, changes_when_uppercased,
21958         changes_when_titlecased, changes_when_casefolded,
21959         changes_when_casemapped.
21960         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21961         Unicode TR#11 revision 17 -> 19.
21962         (LBP_CP): New enumeration value.
21963         (LBP_*): Adjust values accordingly.
21964         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21965         TR#14 revision 22 -> 24.
21966         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21967         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21968         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21969         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21970         is_WBP_MIDLETTER.
21971         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21972         the code1 and code2 of each composition rule.
21973         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21974         * lib/unicase/ignorable.h: Likewise.
21975         * lib/unicase/tocasefold.h: Likewise.
21976         * lib/unicase/tolower.h: Likewise.
21977         * lib/unicase/totitle.h: Likewise.
21978         * lib/unicase/toupper.h: Likewise.
21979         * lib/unictype/bidi_of.h: Likewise.
21980         * lib/unictype/blocks.h: Likewise.
21981         * lib/unictype/categ_C.h: Likewise.
21982         * lib/unictype/categ_Cf.h: Likewise.
21983         * lib/unictype/categ_Cn.h: Likewise.
21984         * lib/unictype/categ_L.h: Likewise.
21985         * lib/unictype/categ_Ll.h: Likewise.
21986         * lib/unictype/categ_Lm.h: Likewise.
21987         * lib/unictype/categ_Lo.h: Likewise.
21988         * lib/unictype/categ_Lu.h: Likewise.
21989         * lib/unictype/categ_M.h: Likewise.
21990         * lib/unictype/categ_Mc.h: Likewise.
21991         * lib/unictype/categ_Mn.h: Likewise.
21992         * lib/unictype/categ_N.h: Likewise.
21993         * lib/unictype/categ_Nd.h: Likewise.
21994         * lib/unictype/categ_Nl.h: Likewise.
21995         * lib/unictype/categ_No.h: Likewise.
21996         * lib/unictype/categ_P.h: Likewise.
21997         * lib/unictype/categ_Pd.h: Likewise.
21998         * lib/unictype/categ_Po.h: Likewise.
21999         * lib/unictype/categ_S.h: Likewise.
22000         * lib/unictype/categ_Sc.h: Likewise.
22001         * lib/unictype/categ_So.h: Likewise.
22002         * lib/unictype/categ_of.h: Likewise.
22003         * lib/unictype/combining.h: Likewise.
22004         * lib/unictype/ctype_alnum.h: Likewise.
22005         * lib/unictype/ctype_alpha.h: Likewise.
22006         * lib/unictype/ctype_graph.h: Likewise.
22007         * lib/unictype/ctype_lower.h: Likewise.
22008         * lib/unictype/ctype_print.h: Likewise.
22009         * lib/unictype/ctype_punct.h: Likewise.
22010         * lib/unictype/ctype_upper.h: Likewise.
22011         * lib/unictype/decdigit.h: Likewise.
22012         * lib/unictype/digit.h: Likewise.
22013         * lib/unictype/numeric.h: Likewise.
22014         * lib/unictype/pr_alphabetic.h: Likewise.
22015         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
22016         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
22017         * lib/unictype/pr_bidi_european_digit.h: Likewise.
22018         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
22019         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
22020         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
22021         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
22022         * lib/unictype/pr_combining.h: Likewise.
22023         * lib/unictype/pr_composite.h: Likewise.
22024         * lib/unictype/pr_currency_symbol.h: Likewise.
22025         * lib/unictype/pr_dash.h: Likewise.
22026         * lib/unictype/pr_decimal_digit.h: Likewise.
22027         * lib/unictype/pr_deprecated.h: Likewise.
22028         * lib/unictype/pr_diacritic.h: Likewise.
22029         * lib/unictype/pr_extender.h: Likewise.
22030         * lib/unictype/pr_grapheme_base.h: Likewise.
22031         * lib/unictype/pr_grapheme_extend.h: Likewise.
22032         * lib/unictype/pr_grapheme_link.h: Likewise.
22033         * lib/unictype/pr_id_continue.h: Likewise.
22034         * lib/unictype/pr_id_start.h: Likewise.
22035         * lib/unictype/pr_ideographic.h: Likewise.
22036         * lib/unictype/pr_ignorable_control.h: Likewise.
22037         * lib/unictype/pr_logical_order_exception.h: Likewise.
22038         * lib/unictype/pr_lowercase.h: Likewise.
22039         * lib/unictype/pr_numeric.h: Likewise.
22040         * lib/unictype/pr_other_alphabetic.h: Likewise.
22041         * lib/unictype/pr_punctuation.h: Likewise.
22042         * lib/unictype/pr_sentence_terminal.h: Likewise.
22043         * lib/unictype/pr_terminal_punctuation.h: Likewise.
22044         * lib/unictype/pr_unassigned_code_value.h: Likewise.
22045         * lib/unictype/pr_unified_ideograph.h: Likewise.
22046         * lib/unictype/pr_uppercase.h: Likewise.
22047         * lib/unictype/pr_xid_continue.h: Likewise.
22048         * lib/unictype/pr_xid_start.h: Likewise.
22049         * lib/unictype/pr_zero_width.h: Likewise.
22050         * lib/unictype/scripts.h: Likewise.
22051         * lib/unictype/scripts_byname.gperf: Likewise.
22052         * lib/unictype/sy_java_ident.h: Likewise.
22053         * lib/unigbrk/gbrkprop.h: Likewise.
22054         * lib/unilbrk/lbrkprop1.h: Likewise.
22055         * lib/unilbrk/lbrkprop2.h: Likewise.
22056         * lib/unilbrk/lbrktables.h: Likewise.
22057         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
22058         LBP_CP. Implement rule LB30.
22059         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
22060         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
22061         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
22062         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
22063         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
22064         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
22065         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
22066         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
22067         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
22068         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
22069         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
22070         bits instead of 16 bits in the code1 and code2 of each composition
22071         rule.
22072         (uc_composition): Update for Unicode 5.2.0.
22073         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
22074         * lib/uninorm/decomposition-table2.h: Likewise.
22075         * lib/uniwbrk/wbrkprop.h: Likewise.
22076         * tests/unicase/test-cased.c: Likewise.
22077         * tests/unicase/test-ignorable.c: Likewise.
22078         * tests/unicase/test-uc_tolower.c: Likewise.
22079         * tests/unicase/test-uc_totitle.c: Likewise.
22080         * tests/unicase/test-uc_toupper.c: Likewise.
22081         * tests/unictype/test-categ_C.c: Likewise.
22082         * tests/unictype/test-categ_Cf.c: Likewise.
22083         * tests/unictype/test-categ_Cn.c: Likewise.
22084         * tests/unictype/test-categ_L.c: Likewise.
22085         * tests/unictype/test-categ_Ll.c: Likewise.
22086         * tests/unictype/test-categ_Lm.c: Likewise.
22087         * tests/unictype/test-categ_Lo.c: Likewise.
22088         * tests/unictype/test-categ_Lu.c: Likewise.
22089         * tests/unictype/test-categ_M.c: Likewise.
22090         * tests/unictype/test-categ_Mc.c: Likewise.
22091         * tests/unictype/test-categ_Mn.c: Likewise.
22092         * tests/unictype/test-categ_N.c: Likewise.
22093         * tests/unictype/test-categ_Nd.c: Likewise.
22094         * tests/unictype/test-categ_Nl.c: Likewise.
22095         * tests/unictype/test-categ_No.c: Likewise.
22096         * tests/unictype/test-categ_P.c: Likewise.
22097         * tests/unictype/test-categ_Pd.c: Likewise.
22098         * tests/unictype/test-categ_Po.c: Likewise.
22099         * tests/unictype/test-categ_S.c: Likewise.
22100         * tests/unictype/test-categ_Sc.c: Likewise.
22101         * tests/unictype/test-categ_So.c: Likewise.
22102         * tests/unictype/test-ctype_alnum.c: Likewise.
22103         * tests/unictype/test-ctype_alpha.c: Likewise.
22104         * tests/unictype/test-ctype_graph.c: Likewise.
22105         * tests/unictype/test-ctype_lower.c: Likewise.
22106         * tests/unictype/test-ctype_print.c: Likewise.
22107         * tests/unictype/test-ctype_punct.c: Likewise.
22108         * tests/unictype/test-ctype_upper.c: Likewise.
22109         * tests/unictype/test-decdigit.h: Likewise.
22110         * tests/unictype/test-digit.h: Likewise.
22111         * tests/unictype/test-numeric.h: Likewise.
22112         * tests/unictype/test-pr_alphabetic.c: Likewise.
22113         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22114         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22115         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22116         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22117         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22118         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22119         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22120         * tests/unictype/test-pr_combining.c: Likewise.
22121         * tests/unictype/test-pr_composite.c: Likewise.
22122         * tests/unictype/test-pr_currency_symbol.c: Likewise.
22123         * tests/unictype/test-pr_dash.c: Likewise.
22124         * tests/unictype/test-pr_decimal_digit.c: Likewise.
22125         * tests/unictype/test-pr_deprecated.c: Likewise.
22126         * tests/unictype/test-pr_diacritic.c: Likewise.
22127         * tests/unictype/test-pr_extender.c: Likewise.
22128         * tests/unictype/test-pr_grapheme_base.c: Likewise.
22129         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22130         * tests/unictype/test-pr_grapheme_link.c: Likewise.
22131         * tests/unictype/test-pr_id_continue.c: Likewise.
22132         * tests/unictype/test-pr_id_start.c: Likewise.
22133         * tests/unictype/test-pr_ideographic.c: Likewise.
22134         * tests/unictype/test-pr_ignorable_control.c: Likewise.
22135         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22136         * tests/unictype/test-pr_lowercase.c: Likewise.
22137         * tests/unictype/test-pr_numeric.c: Likewise.
22138         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22139         * tests/unictype/test-pr_punctuation.c: Likewise.
22140         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22141         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22142         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22143         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22144         * tests/unictype/test-pr_uppercase.c: Likewise.
22145         * tests/unictype/test-pr_xid_continue.c: Likewise.
22146         * tests/unictype/test-pr_xid_start.c: Likewise.
22147         * tests/unictype/test-pr_zero_width.c: Likewise.
22148         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
22149         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
22150         changed behaviour: line breaking is now disallowed between a letter
22151         or '=' and '('.
22152         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22153         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22154         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22155         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
22156         * tests/uniwidth/test-uc_width2.sh: Same updates as in
22157         lib/uniwidth/width.c.
22158         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
22159         without comments, but with the original copyright notice.
22160         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
22161         changes.
22162         * lib/unictype/categ_Cc.h: Likewise.
22163         * lib/unictype/categ_Co.h: Likewise.
22164         * lib/unictype/categ_Cs.h: Likewise.
22165         * lib/unictype/categ_Lt.h: Likewise.
22166         * lib/unictype/categ_Me.h: Likewise.
22167         * lib/unictype/categ_Pc.h: Likewise.
22168         * lib/unictype/categ_Pe.h: Likewise.
22169         * lib/unictype/categ_Pf.h: Likewise.
22170         * lib/unictype/categ_Pi.h: Likewise.
22171         * lib/unictype/categ_Ps.h: Likewise.
22172         * lib/unictype/categ_Sk.h: Likewise.
22173         * lib/unictype/categ_Sm.h: Likewise.
22174         * lib/unictype/categ_Z.h: Likewise.
22175         * lib/unictype/categ_Zl.h: Likewise.
22176         * lib/unictype/categ_Zp.h: Likewise.
22177         * lib/unictype/categ_Zs.h: Likewise.
22178         * lib/unictype/ctype_blank.h: Likewise.
22179         * lib/unictype/ctype_cntrl.h: Likewise.
22180         * lib/unictype/ctype_digit.h: Likewise.
22181         * lib/unictype/ctype_space.h: Likewise.
22182         * lib/unictype/ctype_xdigit.h: Likewise.
22183         * lib/unictype/mirror.h: Likewise.
22184         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
22185         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
22186         * lib/unictype/pr_bidi_block_separator.h: Likewise.
22187         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
22188         * lib/unictype/pr_bidi_common_separator.h: Likewise.
22189         * lib/unictype/pr_bidi_control.h: Likewise.
22190         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
22191         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
22192         * lib/unictype/pr_bidi_pdf.h: Likewise.
22193         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
22194         * lib/unictype/pr_bidi_whitespace.h: Likewise.
22195         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
22196         * lib/unictype/pr_format_control.h: Likewise.
22197         * lib/unictype/pr_hex_digit.h: Likewise.
22198         * lib/unictype/pr_hyphen.h: Likewise.
22199         * lib/unictype/pr_ids_binary_operator.h: Likewise.
22200         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
22201         * lib/unictype/pr_iso_control.h: Likewise.
22202         * lib/unictype/pr_join_control.h: Likewise.
22203         * lib/unictype/pr_left_of_pair.h: Likewise.
22204         * lib/unictype/pr_line_separator.h: Likewise.
22205         * lib/unictype/pr_math.h: Likewise.
22206         * lib/unictype/pr_non_break.h: Likewise.
22207         * lib/unictype/pr_not_a_character.h: Likewise.
22208         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
22209         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
22210         * lib/unictype/pr_other_id_continue.h: Likewise.
22211         * lib/unictype/pr_other_id_start.h: Likewise.
22212         * lib/unictype/pr_other_lowercase.h: Likewise.
22213         * lib/unictype/pr_other_math.h: Likewise.
22214         * lib/unictype/pr_other_uppercase.h: Likewise.
22215         * lib/unictype/pr_paired_punctuation.h: Likewise.
22216         * lib/unictype/pr_paragraph_separator.h: Likewise.
22217         * lib/unictype/pr_pattern_syntax.h: Likewise.
22218         * lib/unictype/pr_pattern_white_space.h: Likewise.
22219         * lib/unictype/pr_private_use.h: Likewise.
22220         * lib/unictype/pr_quotation_mark.h: Likewise.
22221         * lib/unictype/pr_radical.h: Likewise.
22222         * lib/unictype/pr_soft_dotted.h: Likewise.
22223         * lib/unictype/pr_space.h: Likewise.
22224         * lib/unictype/pr_titlecase.h: Likewise.
22225         * lib/unictype/pr_variation_selector.h: Likewise.
22226         * lib/unictype/pr_white_space.h: Likewise.
22227         * lib/unictype/sy_c_ident.h: Likewise.
22228         * lib/unictype/sy_c_whitespace.h: Likewise.
22229         * lib/unictype/sy_java_whitespace.h: Likewise.
22230         * modules/uni*/*: Bump version number of expected libunistring version.
22231         Reported by Simon Josefsson.
22232
22233 2011-01-09  Karl Heuer  <kwzh@gnu.org>
22234
22235         useless-if-before-free: fix typo in --help and make the internal,
22236         automatic version date update process work once again.
22237         --help output contained a NUL character instead of the
22238         backslash-zero that was intended.  Also, the "must lie within
22239         the first 8 lines" line is on line 9, and hence not getting
22240         automatically updated.
22241         * build-aux/useless-if-before-free: Fix the former by adding a
22242         backslash, and the latter by condensing the three lines of what-it-does
22243         to a single line, leaving one line of slack for the future.
22244
22245 2011-01-09  Bruno Haible  <bruno@clisp.org>
22246
22247         uniwidth/width: Fix width of U+1D173..U+1D17A.
22248         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
22249         symbolic_width, output_width_property_test): New functions.
22250         (main): Invoke output_nonspacing_property, output_width_property_test.
22251         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
22252         U+1D173..U+1D17A.
22253         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
22254         1.
22255         * modules/uniwidth/*: Bump version number of expected libunistring
22256         version.
22257         * modules/unilbrk/*: Likewise.
22258
22259 2011-01-08  Bruno Haible  <bruno@clisp.org>
22260
22261         uninorm tests: Preserve copyright of Unicode data file.
22262         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
22263         Mention modifications.
22264
22265 2011-01-08  Bruno Haible  <bruno@clisp.org>
22266
22267         gen-uni-tables: Prepare for Unicode 5.2.0.
22268         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
22269         (debug_output_lbp, output_lbp): Update.
22270
22271 2011-01-08  Bruno Haible  <bruno@clisp.org>
22272
22273         unilbrk: Clarify gen-uni-tables.c code.
22274         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
22275         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
22276         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
22277
22278 2011-01-07  Bruno Haible  <bruno@clisp.org>
22279
22280         strtod: Restore errno when successfully parsing Infinity or NaN.
22281         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
22282         restore the original errno.
22283
22284 2011-01-07  Bruno Haible  <bruno@clisp.org>
22285
22286         remove test: Avoid failure on HP-UX 11.
22287         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
22288
22289 2011-01-07  Bruno Haible  <bruno@clisp.org>
22290
22291         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
22292         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
22293         error code.
22294
22295 2011-01-07  Pádraig Brady <P@draigBrady.com>
22296
22297         ignore-value: fixup comments, and add Eric Blake
22298         as an author since he rewrote the macros.
22299         * lib/ignore-value.h (ignore_value):  State that
22300         we now support aggregates.  Also specify exactly
22301         when the GCC warn_unused_result feature was added.
22302
22303 2011-01-06  Eric Blake  <eblake@redhat.com>
22304
22305         ignore-value: support aggregate types
22306         * lib/ignore-value.h (ignore_value): Provide separate gcc
22307         definition.
22308         * modules/ignore-value-tests: New test module.
22309         * tests/test-ignore-value.c: New test.
22310
22311         maint.mk: improve sc_prohibit_strcmp regex
22312         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
22313         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
22314         definition of STRNEQ.
22315
22316         signal: work around Haiku issue with SIGBUS
22317         * lib/siglist.h: Add comment.
22318         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
22319         strsignal's favoring of SIGSEGV.
22320         * tests/test-signal.c (main): Avoid test failure.
22321         * doc/posix-headers/signal.texi (signal.h): Document the issue.
22322         Reported by Scott McCreary.
22323
22324         maint.mk: add pre-release check to ensure submodule commits are public
22325         * top/maint.mk (public-submodule-commit): New rule.
22326         (submodule-checks): New variable.
22327         (alpha beta stable): Depend on the variable.
22328
22329 2011-01-05  Pádraig Brady <P@draigBrady.com>
22330         and Jim Meyering  <meyering@redhat.com>
22331
22332         ignore-value: make ignore_value more generic; deprecate ignore_ptr
22333         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
22334         (ATTRIBUTE_DEPRECATED): Define.
22335         (_ignore_case): New function.
22336         (ignore_value): New macro, to replace the old function.
22337         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
22338         * modules/ignore-value (Depends-on): Add stdint.
22339
22340 2011-01-04  Eric Blake  <eblake@redhat.com>
22341
22342         doc: regenerate INSTALL
22343         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
22344         @firstparagraphindent support, now that autoconf dropped it.
22345         (INSTALL_PRELUDE): Reinstate old macro.
22346         * doc/install.texi: Resync from autoconf.
22347         * doc/INSTALL: Reflect recent autoconf update.
22348         * doc/INSTALL.ISO: Likewise.
22349         * doc/INSTALL.UTF-8: Likewise.
22350         Reported by Karl Berry.
22351
22352 2011-01-04  Bruce Korb  <address@hidden>
22353
22354         git-version-gen: avoid a sub-shell
22355         * build-aux/git-version-gen: Redirect stderr in `...` via
22356         "exec 2>...", rather than via an added sub-shell.
22357
22358 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
22359
22360         git-version-gen: use (...) rather than sh -c '...'
22361         * build-aux/git-version-gen: Rather than hard-coding a shell's name
22362         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
22363
22364 2011-01-03  Jim Meyering  <meyering@redhat.com>
22365
22366         git-version-gen: convert leading TABs to spaces
22367         * build-aux/git-version-gen: Expand leading TABs.
22368
22369         git-version-gen: handle failed "git rev-list"
22370         * build-aux/git-version-gen: Rather than leaking a "fatal" error
22371         from git and proceeding as if it had succeeded but printed no SHA1
22372         checksums, suppress the diagnostic and handle the failure.
22373         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
22374
22375         git-version-gen: include command name in one more diagnostic
22376         * build-aux/git-version-gen: When the required .tarball-version file
22377         was missing or unreadable, you might see the diagnostic from "cat",
22378         but no trace of the name of the invoking script.  Now, you still see
22379         the diagnostic from cat, but also get one from "git-version-gen: ".
22380         Inspired by a patch from Bruce Korb.
22381
22382         update-copyright: adjust test to match changed code
22383         * tests/test-update-copyright.sh: Change test's expected output
22384         to match new actual output.
22385
22386 2011-01-02  Bruno Haible  <bruno@clisp.org>
22387
22388         getlogin_r: Avoid test failure on HP-UX 11.
22389         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
22390         ERANGE when the second argument is zero.
22391         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
22392         portability problem.
22393
22394 2011-01-02  Bruce Korb  <bkorb@gnu.org>
22395
22396         * build-aux/update-copyright: doc Simon's changes
22397
22398 2011-01-02  Simon Josefsson  <simon@josefsson.org>
22399
22400         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
22401         environment variable.
22402
22403 2011-01-02  Bruno Haible  <bruno@clisp.org>
22404
22405         unigbrk: Avoid gcc warnings.
22406         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
22407         unused variable.
22408         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
22409         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
22410         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
22411         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
22412         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
22413         Change type of first argument to 'const char *'.
22414         (main): Remove unused variable.
22415         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
22416         type of first argument to 'const char *'.
22417         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
22418         Likewise.
22419         (main): Change type of variable 's'.
22420         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
22421         to 'int'.
22422
22423 2011-01-02  Bruno Haible  <bruno@clisp.org>
22424
22425         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
22426         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
22427         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
22428         bug.
22429         * lib/pwrite.c: Undo 2010-12-31 patch.
22430         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
22431
22432 2011-01-02  Bruno Haible  <bruno@clisp.org>
22433
22434         pread: Fix test whether it works.
22435         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
22436
22437 2011-01-02  Bruno Haible  <bruno@clisp.org>
22438
22439         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
22440         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
22441         ends in "6". Don't require a specific month name. Try also the locale
22442         names found on HP-UX 11 and Solaris 7.
22443
22444 2011-01-02  Bruno Haible  <bruno@clisp.org>
22445
22446         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
22447         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
22448         C linkage.
22449         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
22450
22451 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22452
22453         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
22454         for consistency, since the "cluster" term is not used elsewhere.
22455         * lib/unigbrk.in.h: Update name.
22456         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
22457         * lib/unigbrk/u16-grapheme-next.c: Update name.
22458         * lib/unigbrk/u16-grapheme-prev.c: Update name.
22459         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
22460         * lib/unigbrk/u32-grapheme-next.c: Update name.
22461         * lib/unigbrk/u32-grapheme-prev.c: Update name.
22462         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
22463         * lib/unigbrk/u8-grapheme-next.c: Update name.
22464         * lib/unigbrk/u8-grapheme-prev.c: Update name.
22465         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
22466         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
22467         Suggested by Bruno Haible.
22468
22469 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22470
22471         Remove module 'u8-grapheme-len' as too redundant with
22472         'u8-grapheme-next'.
22473         * modules/unigbrk/u8-grapheme-len: Delete file.
22474         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
22475         * lib/unigbrk.in.h: Remove prototype for deleted function.
22476         * lib/unigbrk/u8-grapheme-len.c: Delete file.
22477         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
22478
22479         Remove module 'u16-grapheme-len' as too redundant with
22480         'u16-grapheme-next'.
22481         * modules/unigbrk/u16-grapheme-len: Delete file.
22482         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
22483         * lib/unigbrk.in.h: Remove prototype for deleted function.
22484         * lib/unigbrk/u16-grapheme-len.c: Delete file.
22485         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
22486
22487         Remove module 'u32-grapheme-len' as too redundant with
22488         'u32-grapheme-next'.
22489         * modules/unigbrk/u32-grapheme-len: Delete file.
22490         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
22491         * lib/unigbrk.in.h: Remove prototype for deleted function.
22492         * lib/unigbrk/u32-grapheme-len.c: Delete file.
22493         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
22494
22495         Suggested by Bruno Haible.
22496
22497 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
22498
22499         * unigbrk.in.h: Fix typo: "ben" => "been".
22500         Reported by Bruno Haible.
22501
22502 2011-01-01  Jim Meyering  <meyering@redhat.com>
22503
22504         maint: update almost all copyright ranges to include 2011
22505         Run the new "make update-copyright" rule.
22506
22507 2011-01-01  Jim Meyering  <meyering@redhat.com>
22508
22509         maint: update-copyright: exempt doc/INSTALL*
22510         * Makefile (update-copyright): Also exclude doc/INSTALL*,
22511         since they are generated.  Suggested by Bruno Haible.
22512
22513 2011-01-01  Jim Meyering  <meyering@redhat.com>
22514
22515         maint: refine the update-copyright rule
22516         * Makefile (update-copyright): Also exclude any file that includes
22517         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
22518         code that merely generates the comment.
22519
22520 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22521
22522         New module 'u8-grapheme-len'.
22523         * modules/unigbrk/u8-grapheme-len: New file.
22524         * modules/unigbrk/u8-grapheme-len-tests: New file.
22525         * lib/unigbrk.in.h: Add prototype for new function.
22526         * lib/unigbrk/u8-grapheme-len.c: New file.
22527         * tests/unigbrk/test-u8-grapheme-len.c: New file.
22528
22529         New module 'u16-grapheme-len'.
22530         * modules/unigbrk/u16-grapheme-len: New file.
22531         * modules/unigbrk/u16-grapheme-len-tests: New file.
22532         * lib/unigbrk.in.h: Add prototype for new function.
22533         * lib/unigbrk/u16-grapheme-len.c: New file.
22534         * tests/unigbrk/test-u16-grapheme-len.c: New file.
22535
22536         New module 'u32-grapheme-len'.
22537         * modules/unigbrk/u32-grapheme-len: New file.
22538         * modules/unigbrk/u32-grapheme-len-tests: New file.
22539         * lib/unigbrk.in.h: Add prototype for new function.
22540         * lib/unigbrk/u32-grapheme-len.c: New file.
22541         * tests/unigbrk/test-u32-grapheme-len.c: New file.
22542
22543         New module 'u8-grapheme-next'.
22544         * modules/unigbrk/u8-grapheme-next: New file.
22545         * modules/unigbrk/u8-grapheme-next-tests: New file.
22546         * lib/unigbrk.in.h: Add prototype for new function.
22547         * lib/unigbrk/u8-grapheme-next.c: New file.
22548         * tests/unigbrk/test-u8-grapheme-next.c: New file.
22549
22550         New module 'u16-grapheme-next'.
22551         * modules/unigbrk/u16-grapheme-next: New file.
22552         * modules/unigbrk/u16-grapheme-next-tests: New file.
22553         * lib/unigbrk.in.h: Add prototype for new function.
22554         * lib/unigbrk/u16-grapheme-next.c: New file.
22555         * tests/unigbrk/test-u16-grapheme-next.c: New file.
22556
22557         New module 'u32-grapheme-next'.
22558         * modules/unigbrk/u32-grapheme-next: New file.
22559         * modules/unigbrk/u32-grapheme-next-tests: New file.
22560         * lib/unigbrk.in.h: Add prototype for new function.
22561         * lib/unigbrk/u32-grapheme-next.c: New file.
22562         * tests/unigbrk/test-u32-grapheme-next.c: New file.
22563
22564         New module 'u8-grapheme-prev'.
22565         * modules/unigbrk/u8-grapheme-prev: New file.
22566         * modules/unigbrk/u8-grapheme-prev-tests: New file.
22567         * lib/unigbrk.in.h: Add prototype for new function.
22568         * lib/unigbrk/u8-grapheme-prev.c: New file.
22569         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
22570
22571         New module 'u16-grapheme-prev'.
22572         * modules/unigbrk/u16-grapheme-prev: New file.
22573         * modules/unigbrk/u16-grapheme-prev-tests: New file.
22574         * lib/unigbrk.in.h: Add prototype for new function.
22575         * lib/unigbrk/u16-grapheme-prev.c: New file.
22576         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
22577
22578         New module 'u32-grapheme-prev'.
22579         * modules/unigbrk/u32-grapheme-prev: New file.
22580         * modules/unigbrk/u32-grapheme-prev-tests: New file.
22581         * lib/unigbrk.in.h: Add prototype for new function.
22582         * lib/unigbrk/u32-grapheme-prev.c: New file.
22583         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
22584
22585         New module 'u8-grapheme-breaks'.
22586         * modules/unigbrk/u8-grapheme-breaks: New file.
22587         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
22588         * lib/unigbrk.in.h: Add prototype for new function.
22589         * lib/unigbrk/u8-grapheme-breaks.c: New file.
22590         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
22591
22592         New module 'u16-grapheme-breaks'.
22593         * modules/unigbrk/u16-grapheme-breaks: New file.
22594         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
22595         * lib/unigbrk.in.h: Add prototype for new function.
22596         * lib/unigbrk/u16-grapheme-breaks.c: New file.
22597         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
22598
22599         New module 'u32-grapheme-breaks'.
22600         * modules/unigbrk/u32-grapheme-breaks: New file.
22601         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
22602         * lib/unigbrk.in.h: Add prototype for new function.
22603         * lib/unigbrk/u32-grapheme-breaks.c: New file.
22604         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
22605
22606         New module 'ulc-grapheme-breaks'.
22607         * modules/unigbrk/ulc-grapheme-breaks: New file.
22608         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
22609         * m4/locale-ar.m4: New file.
22610         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
22611         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
22612         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
22613
22614 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
22615
22616         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
22617         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
22618         modified how this file was generated before I initially submitted
22619         the module, but failed to regenerate it.  This meant that several
22620         of the level2 entries were wrong.
22621         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
22622         Remove the division-by-2 that is folded into the table now that
22623         gbrkprop.h has been regenerated properly.  Now -1 entries are
22624         handled correctly.
22625
22626         New module 'unigbrk/uc-gbrk-prop-tests'.
22627         * modules/unigbrk/uc-gbrk-prop-tests: New file.
22628         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
22629         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
22630         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
22631
22632 2011-01-01  Bruno Haible  <bruno@clisp.org>
22633
22634         Avoid use of hexadecimal escapes.
22635         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
22636         instead of hexadecimal escapes.
22637
22638 2011-01-01  Jim Meyering  <meyering@redhat.com>
22639
22640         maint: new rule to update copyright year ranges
22641         * Makefile (update-copyright): New rule.
22642
22643         maint: indent with TABs in Makefile
22644         * Makefile: Expand leading sequences of spaces to TABs
22645
22646         version-etc: update the copyright year it reports
22647         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
22648
22649 2010-12-31  Bruno Haible  <bruno@clisp.org>
22650
22651         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
22652         * lib/isfinite.c (zerof, zerod, zerol): New variables.
22653         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
22654         zero.
22655
22656 2010-12-31  Bruno Haible  <bruno@clisp.org>
22657
22658         pwrite: Work around HP-UX 11.11 bug.
22659         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
22660         works and set REPLACE_PWRITE if not.
22661         * lib/pwrite.c (pwrite): Add an implementation that uses the system
22662         function.
22663         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
22664
22665 2010-12-31  Bruno Haible  <bruno@clisp.org>
22666
22667         pread: Work around HP-UX 11 bugs.
22668         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
22669         and set REPLACE_PREAD if not.
22670         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
22671
22672 2010-12-31  Eric Blake  <eblake@redhat.com>
22673
22674         nl_langinfo: fix YESEXPR on Irix 6.5
22675         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
22676         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
22677         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
22678         it.
22679
22680 2010-12-31  Bruno Haible  <bruno@clisp.org>
22681
22682         iconv: Document HP-UX 11 bug.
22683         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
22684
22685 2010-12-31  Bruno Haible  <bruno@clisp.org>
22686
22687         ldexpl: Fix link error on HP-UX 11.
22688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
22689         LDEXPL_LIBM, using $ISNANL_LIBM.
22690
22691 2010-12-31  Eric Blake  <eblake@redhat.com>
22692
22693         ftello: avoid compilation failure with SunStudio c89
22694         * lib/ftello.c (ftello): Use lseek, not llseek.
22695
22696         tests: avoid failing coreutils tests on cygwin
22697         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
22698         (create_exe_shims_): Return 0 when skipping.
22699
22700 2010-12-31  Bruno Haible  <bruno@clisp.org>
22701
22702         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
22703         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
22704
22705 2010-12-31  Bruno Haible  <bruno@clisp.org>
22706
22707         waitpid: Fix link error in C++ mode.
22708         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
22709
22710 2010-12-31  Bruno Haible  <bruno@clisp.org>
22711
22712         isnan: Use GCC built-ins when possible.
22713         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
22714         __builtin_isnan.
22715         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
22716         (isnan): Define using GCC built-ins for GCC >= 4.0.
22717
22718 2010-12-31  Bruno Haible  <bruno@clisp.org>
22719
22720         isnand: Fix mistake.
22721         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
22722         __builtin_isnand.
22723
22724 2010-12-31  Bruno Haible  <bruno@clisp.org>
22725
22726         open: Avoid C++ error on HP-UX 11.
22727         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
22728
22729 2010-12-31  Bruno Haible  <bruno@clisp.org>
22730
22731         time_r: Add missing declarations on HP-UX 11.
22732         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
22733         instead of HAVE_LOCALTIME_R.
22734         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
22735         HAVE_LOCALTIME_R always.
22736         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
22737         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
22738         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
22739         HAVE_LOCALTIME_R.
22740         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
22741         * doc/posix-functions/localtime_r.texi: Likewise.
22742
22743 2010-12-29  Eric Blake  <eblake@redhat.com>
22744
22745         mountlist: tweak previous commit
22746         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
22747         Reported by Paul Eggert.
22748
22749         mountlist: fix local drive detection on cygwin
22750         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
22751         that works for cygwin.
22752
22753 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
22754
22755         ftoastr, snprintf: ftoastr + snprintf module
22756         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
22757         since the snprintf module now should be good enough here.
22758         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
22759         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
22760         and gl_MODULE_INDICATOR([snprintf]), but the former enables
22761         GNULIB_SNPRINTF only for the test directory, and the latter
22762         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
22763         seems to suffice by itself.
22764
22765 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
22766
22767         alloca: one step towards thread-safety
22768         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
22769         need for a static variable.  All callers changed.  This does not
22770         make the alloca replacement thread-safe, but it's one step.
22771
22772         tests: minor indenting change
22773         * tests/init.sh: Sync from coreutils housekeeping patch
22774         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
22775         to keep lines within 80 columns.
22776
22777 2010-12-28  Jim Meyering  <meyering@redhat.com>
22778
22779         regex: don't infloop on persistent failing calloc
22780         * lib/regexec.c (build_trtable): Return failure indication upon
22781         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
22782         In glibc, this was fixed for version 2.13:
22783         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
22784
22785 2010-12-28  Bruno Haible  <bruno@clisp.org>
22786             Paul Eggert <eggert@cs.ucla.edu>
22787
22788         linkat: Make implementation robust against system behaviour variations.
22789         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
22790         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
22791         way, and to -2 if it needs a generic runtime test.
22792         * lib/linkat.c (solaris_optimized_link_immediate,
22793         solaris_optimized_link_follow): New functions.
22794         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
22795         (check_same_link): Use it.
22796
22797 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
22798
22799         New module 'unigbrk/base'.
22800         * modules/unigbrk/base: New file.
22801         * lib/unigbrk.in.h: New file.
22802
22803         New module 'unigbrk/uc-gbrk-prop'.
22804         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
22805         * modules/unigbrk/uc-gbrk-prop: New file.
22806         * lib/unigbrk/gbrkprop.h: New file.
22807         * lib/unigbrk/uc-gbrk-prop.c: New file.
22808
22809         New module 'unigbrk/uc-is-grapheme-break'.
22810         * modules/unigbrk/uc-is-grapheme-break: New file.
22811         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22812         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22813         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22814         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22815         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22816
22817         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22818
22819 2010-12-27  Bruno Haible  <bruno@clisp.org>
22820
22821         linkat test: Avoid failure on Solaris 11 2010-11.
22822         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22823
22824 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22825
22826         utimens: work around glibc rounding bug on more platforms
22827         * lib/utimens.c (fdutimens): Work around rounding bug even if
22828         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22829         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22830
22831 2010-12-27  Bruno Haible  <bruno@clisp.org>
22832
22833         select tests: Improve comments.
22834         * tests/test-select.c (do_select): Add comments.
22835
22836 2010-12-27  Bruno Haible  <bruno@clisp.org>
22837
22838         select tests: Safer way of handling timeout.
22839         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22840         at every invocation.
22841
22842 2010-12-27  Bruno Haible  <bruno@clisp.org>
22843
22844         select tests: Use 'bool' where appropriate.
22845         * tests/test-select.c (connect_to_socket): Change argument type to
22846         'bool'.
22847
22848 2010-12-27  Bruno Haible  <bruno@clisp.org>
22849
22850         select tests: Use existing modules.
22851         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22852         (configure.ac): Don't test for unistd.h.
22853         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22854         declared in <unistd.h>.
22855
22856 2010-12-27  Bruno Haible  <bruno@clisp.org>
22857
22858         mbrtowc: Work around a Solaris 7 bug.
22859         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22860         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22861         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22862         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22863         MBRTOWC_NULL_ARG1_BUG.
22864         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22865         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22866         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22867         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22868
22869 2010-12-27  Jim Meyering  <meyering@redhat.com>
22870
22871         read-file.c: tweak syntax
22872         * lib/read-file.c (fread_file): Remove space after "*" in function
22873         definitions.
22874
22875 2010-12-27  Bruno Haible  <bruno@clisp.org>
22876
22877         times test: Avoid gcc warnings on OSF/1.
22878         * tests/test-times.c (main): Cast printf arguments from clock_t to
22879         'long int'.
22880
22881 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22882
22883         utimens: work around glibc rounding bug on older Linux kernels
22884         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22885         on Linux with a glibc whose utimes might not work, then work
22886         around a longstanding glibc bug involving rounding rather than
22887         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22888         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22889
22890 2010-12-26  Bruno Haible  <bruno@clisp.org>
22891
22892         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22893         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22894         _GL_CXXALIAS_SYS.
22895         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22896
22897 2010-12-26  Bruno Haible  <bruno@clisp.org>
22898
22899         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22900         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22901         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22902         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22903         looking for the declaration.
22904         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22905         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22906         problem.
22907         * doc/posix-functions/inet_pton.texi: Likewise.
22908
22909 2010-12-26  Bruno Haible  <bruno@clisp.org>
22910
22911         arpa_inet: Use the common idioms with C++ support.
22912         * lib/arpa_inet.in.h: Include c++defs.h.
22913         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22914         support.
22915         * modules/arpa_inet (Depends-on): Add c++defs.
22916         (Makefile.am): Substitute the contents of c++defs.h.
22917         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22918         * modules/arpa_inet-c++-tests: New file.
22919         * tests/test-arpa_inet-c++.cc: New file.
22920
22921 2010-12-25  Bruno Haible  <bruno@clisp.org>
22922
22923         Fix more C++ link errors on Solaris 8.
22924         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22925         $(LIB_EACCESS).
22926         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22927         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22928         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22929         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22930         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22931
22932 2010-12-25  Bruno Haible  <bruno@clisp.org>
22933
22934         printf-posix: Fix link error when a non-GCC compiler is used.
22935         * lib/stdio.in.h (printf): When not using GCC, override printf
22936         correctly.
22937         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22938
22939 2010-12-25  Bruno Haible  <bruno@clisp.org>
22940
22941         strerror_r-posix: Update doc.
22942         * doc/posix-functions/strerror_r.texi: Update doc about the return
22943         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22944
22945 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22946
22947         utimens: simplify the logic of the previous change
22948         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22949         This should not affect whether the test succeeds or fails.
22950
22951         utimens: configure better on hosts with NFS clock skew
22952         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22953         uses the clock of the local host.  It might use the clock of the
22954         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22955         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22956
22957 2010-12-25  Bruno Haible  <bruno@clisp.org>
22958
22959         ptsname test: Avoid failure on Solaris.
22960         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22961         open a pseudo-terminal; don't use BSD-style ptys.
22962         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22963
22964 2010-12-25  Bruno Haible  <bruno@clisp.org>
22965
22966         ptsname: Avoid ERANGE failure on some systems.
22967         * lib/ptsname.c (buffer): Increase size.
22968
22969 2010-12-25  Bruno Haible  <bruno@clisp.org>
22970
22971         rename, renameat: Avoid test failures at NFS mounted locations.
22972         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22973         so that subsequent mkdir calls succeed.
22974
22975 2010-12-25  Bruno Haible  <bruno@clisp.org>
22976
22977         iswblank: Fix C++ link error on Solaris 8.
22978         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22979         _GL_FUNCDECL_SYS.
22980
22981 2010-12-25  Bruno Haible  <bruno@clisp.org>
22982
22983         unistd: Fix C++ link error on Solaris 8.
22984         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22985
22986 2010-12-25  Bruno Haible  <bruno@clisp.org>
22987
22988         readlink doc: Mention an old glibc bug.
22989         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22990
22991 2010-12-25  Bruno Haible  <bruno@clisp.org>
22992
22993         fcntl-h: Fix for use of C++ on glibc systems.
22994         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22995         also on glibc systems in C++ mode.
22996         Reported by Gary V. Vaughan <gary@gnu.org>.
22997
22998 2010-12-25  Bruno Haible  <bruno@clisp.org>
22999
23000         roundl-ieee: Make it work on OSF/1 5.1 with cc.
23001         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
23002
23003 2010-12-25  Bruno Haible  <bruno@clisp.org>
23004
23005         truncl-ieee: Make it work on OSF/1 5.1 with cc.
23006         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
23007         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
23008         test whether truncl works according to ISO C 99 with IEC 60559.
23009         * m4/truncl-ieee.m4: New file.
23010         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
23011         m4/signbit.m4.
23012         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23013
23014 2010-12-25  Bruno Haible  <bruno@clisp.org>
23015
23016         ceill-ieee: Make it work on OSF/1 5.1 with cc.
23017         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
23018         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
23019         test whether ceill works according to ISO C 99 with IEC 60559.
23020         * m4/ceill-ieee.m4: New file.
23021         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
23022         m4/signbit.m4.
23023         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
23024
23025 2010-12-25  Bruno Haible  <bruno@clisp.org>
23026
23027         Ensure all prerequisites of <wchar.h> are included.
23028         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
23029         before <wchar.h>.
23030         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23031         gl_MBRLEN_NUL_RETVAL): Likewise.
23032         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23033         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
23034         AC_FUNC_MBRTOWC): Likewise.
23035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23036         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23038         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
23039         Likewise.
23040         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23041         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
23042         (gl_WCHAR_H): Improve comments.
23043         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23044
23045 2010-12-25  Bruno Haible  <bruno@clisp.org>
23046
23047         strtok_r: Fix C syntax error in autoconf macro.
23048         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
23049         characters in test program.
23050
23051 2010-12-24  Bruno Haible  <bruno@clisp.org>
23052
23053         ceil, trunc, round: Fix gcc warnings.
23054         * lib/ceil.c (MIN): Undefine before redefining.
23055         * lib/trunc.c (MIN): Likewise.
23056         * lib/round.c (MIN): Likewise.
23057         Include <math.h> first.
23058
23059 2010-12-24  Bruno Haible  <bruno@clisp.org>
23060
23061         select tests: Avoid failures on OSF/1 5.1.
23062         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
23063         failure of closing the last socket; it may fail with ECONNRESET.
23064
23065 2010-12-24  Eric Blake  <eblake@redhat.com>
23066
23067         stdint: avoid HP-UX 10.20 preprocessor bug
23068         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
23069         than #if.
23070         * tests/test-floor2.c (main): Likewise.
23071         Reported by Peter O'Gorman.
23072
23073         pipe: make obsoletion transition easier
23074         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
23075         * modules/pipe (Files): Include revived file.
23076         (Include): Drop reference, to mirror getdate's behavior.
23077
23078 2010-12-24  Bruno Haible  <bruno@clisp.org>
23079
23080         sys_socket: Hide mismatch of declarations on NonStop Kernel.
23081         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
23082         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
23083         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23084
23085 2010-12-24  Bruno Haible  <bruno@clisp.org>
23086
23087         gethostname: Ensure declaration on NonStop Kernel.
23088         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
23089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23090
23091 2010-12-24  Bruno Haible  <bruno@clisp.org>
23092
23093         sys_select: Ensure all necessary types on NonStop Kernel.
23094         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
23095         include <sys/time.h>.
23096         * doc/posix-headers/sys_select.texi: Mention that it's missing on
23097         NonStop Kernel.
23098         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23099
23100 2010-12-24  Bruno Haible  <bruno@clisp.org>
23101
23102         sys_select: Remove unneeded include.
23103         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
23104         have <sys/select.h>.
23105
23106 2010-12-24  Bruno Haible  <bruno@clisp.org>
23107
23108         gethostname: Provide a fallback for HOST_NAME_MAX.
23109         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
23110         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
23111         instead.
23112         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23113
23114 2010-12-24  Bruno Haible  <bruno@clisp.org>
23115
23116         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
23117         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
23118         (SA_RESTART): Likewise.
23119         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23120
23121 2010-12-24  Bruno Haible  <bruno@clisp.org>
23122
23123         signal: Define NSIG.
23124         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
23125         * tests/test-signal.c (nsig): New variable.
23126         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23127
23128 2010-12-24  Bruno Haible  <bruno@clisp.org>
23129
23130         rename, renameat: Avoid test failures on OSF/1 5.1.
23131         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
23132         alternative error codes.
23133         * tests/test-renameat.c (main): Likewise.
23134
23135 2010-12-24  Bruno Haible  <bruno@clisp.org>
23136
23137         *printf: Detect large precisions bug on Solaris 10/SPARC.
23138         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
23139         by Paul Eggert.
23140         * tests/test-snprintf-posix.h (test_function): Add this test code here
23141         too.
23142         * tests/test-sprintf-posix.h (test_function): Likewise.
23143         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23144         * tests/test-vasprintf-posix.c (test_function): Likewise.
23145         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
23146         around by gnulib.
23147         * doc/posix-functions/printf.texi: Likewise.
23148         * doc/posix-functions/snprintf.texi: Likewise.
23149         * doc/posix-functions/sprintf.texi: Likewise.
23150         * doc/posix-functions/vfprintf.texi: Likewise.
23151         * doc/posix-functions/vprintf.texi: Likewise.
23152         * doc/posix-functions/vsnprintf.texi: Likewise.
23153         * doc/posix-functions/vsprintf.texi: Likewise.
23154         * doc/posix-functions/dprintf.texi: Undo last commit.
23155         * doc/posix-functions/vdprintf.texi: Likewise.
23156
23157 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
23158
23159         tests: port test-fdutimensat.c to Solaris 8
23160         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
23161         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
23162         On Solaris 8, it fails with errno == ENOSYS, because there is no
23163         futimens (so it can't use the fd), and there is no lutimens (so it
23164         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
23165
23166         vsnprintf: make more consistent with snprintf; doc fixes
23167
23168         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
23169         the byte count return problem was promoted from the snprintf-posix
23170         to the snprintf module.
23171         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
23172         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
23173         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
23174         * tests/test-snprintf.c (main): Check the byte count returned.
23175         * tests/test-vsnprintf.c (main): Likewise.
23176
23177 2010-12-23  Eric Blake  <eblake@redhat.com>
23178
23179         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
23180         * modules/sigpipe (License): Relax license.
23181
23182 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23183
23184         doc: document Solaris printf bug with large float precisions
23185         * doc/posix-functions/dprintf.texi (dprintf):
23186         * doc/posix-functions/fprintf.texi (fprintf):
23187         * doc/posix-functions/printf.texi (printf):
23188         * doc/posix-functions/snprintf.texi (snprintf):
23189         * doc/posix-functions/sprintf.texi (sprintf):
23190         * doc/posix-functions/vdprintf.texi (vdprintf):
23191         * doc/posix-functions/vfprintf.texi (vfprintf):
23192         * doc/posix-functions/vprintf.texi (vprintf):
23193         * doc/posix-functions/vsnprintf.texi (vsnprintf):
23194         * doc/posix-functions/vsprintf.texi (vsprintf):
23195         Mention that these functions mishandle large floating point
23196         precisions on Solaris 10.  The same bug is also present in Solaris
23197         8, and I assume earlier.  This causes "cd gnulib-tests; make
23198         check" to fail on Solaris 8 (and I assume, later) when building
23199         the latest coreutils, in test-vasprintf-posix's call to
23200         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
23201         the wide flavors (e.g., wprintf) so this patch just updates the
23202         documentation for the narrow ones.
23203
23204         test-posixtm.c: add two tests
23205         * tests/test-posixtm.c: Add two tests, to highlight the
23206         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
23207         around this bug; this is merely to document it.
23208
23209 2010-12-22  Bruno Haible  <bruno@clisp.org>
23210
23211         getlogin_r: Work around portability problem on OSF/1.
23212         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
23213         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
23214         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
23215         test for a truncated result.
23216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
23217         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
23218         * modules/getlogin_r (Depends-on): Add memchr.
23219         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
23220
23221 2010-12-22  Bruno Haible  <bruno@clisp.org>
23222
23223         ptsname: Avoid test failure on OSF/1 5.1.
23224         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
23225         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
23226         (same_slave): New function.
23227         (main): Use it to compare ptsname's result with the expected file name.
23228
23229 2010-12-22  Bruno Haible  <bruno@clisp.org>
23230
23231         Port extended stdio modules to HP NonStop Kernel.
23232         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
23233         macros.
23234         * lib/fbufmode.c: Update comments.
23235         * lib/fflush.c: Likewise.
23236         * lib/fpurge.c: Likewise.
23237         * lib/freadable.c: Likewise.
23238         * lib/freadahead.c: Likewise.
23239         * lib/freading.c: Likewise.
23240         * lib/freadptr.c: Likewise.
23241         * lib/freadseek.c: Likewise.
23242         * lib/fseeko.c: Likewise.
23243         * lib/fseterr.c: Likewise.
23244         * lib/fwritable.c: Likewise.
23245         * lib/fwriting.c: Likewise.
23246         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
23247
23248 2010-12-22  Bruno Haible  <bruno@clisp.org>
23249
23250         ttyname_r: Work around bug on OSF/1 5.1.
23251         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
23252         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
23253         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
23254         present.
23255         * lib/ttyname_r.c (ttyname_r): Update comments.
23256
23257 2010-12-22  Bruno Haible  <bruno@clisp.org>
23258
23259         round: Implement result sign according to IEEE 754.
23260         * lib/round.c (MIN, MINUS_ZERO): New macros.
23261         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
23262         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
23263         * tests/test-round-ieee.c (main): Likewise.
23264         * tests/test-roundl-ieee.c (main): Likewise.
23265
23266         trunc: Implement result sign according to IEEE 754.
23267         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
23268         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
23269         * tests/test-trunc2.c: Include minus-zero.h.
23270         (MINUS_ZERO): New macro.
23271         (trunc_reference): Keep in sync with lib/trunc.c.
23272         * tests/test-truncf2.c: Include minus-zero.h.
23273         (MINUS_ZERO): New macro.
23274         (truncf_reference): Keep in sync with lib/trunc.c.
23275         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
23276         * tests/test-trunc-ieee.c (main): Likewise.
23277         * tests/test-truncl-ieee.c (main): Likewise.
23278
23279         ceil: Implement result sign according to IEEE 754.
23280         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
23281         (FUNC): Return -0.0 for -1 < x < 0.
23282         * tests/test-ceil2.c: Include minus-zero.h.
23283         (MINUS_ZERO): New macro.
23284         (ceil_reference): Keep in sync with lib/ceil.c.
23285         * tests/test-ceilf2.c: Include minus-zero.h.
23286         (MINUS_ZERO): New macro.
23287         (ceilf_reference): Keep in sync with lib/ceil.c.
23288         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
23289         * tests/test-ceil-ieee.c (main): Likewise.
23290         * tests/test-ceill-ieee.c (main): Likewise.
23291
23292         floor: Implement result sign according to IEEE 754.
23293         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
23294         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
23295         * tests/test-floorf2.c (floorf_reference): Likewise.
23296         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
23297         * tests/test-floor-ieee.c (main): Likewise.
23298         * tests/test-floorl-ieee.c (main): Likewise.
23299
23300 2010-12-22  Bruno Haible  <bruno@clisp.org>
23301
23302         getaddrinfo: Update doc.
23303         * doc/posix-functions/gai_strerror.texi: Return type is also different
23304         on AIX and HP-UX.
23305
23306 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
23307
23308         getaddrinfo, inet_ntop: Update doc for Solaris.
23309         * doc/posix-functions/gai_strerror.texi: Return type is also an
23310         issue on Solaris 9 and earlier.
23311         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
23312         on Solaris 10 and earlier.
23313
23314 2010-12-21  Bruno Haible  <bruno@clisp.org>
23315
23316         New module 'roundl-ieee'.
23317         * modules/roundl-ieee: New file.
23318         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
23319         test whether roundl works according to ISO C 99 with IEC 60559.
23320         * m4/roundl-ieee.m4: New file.
23321         * modules/roundl-ieee-tests: New file.
23322         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
23323         * tests/test-roundl.c (main): Remove signbit tests.
23324         * modules/roundl-tests (Depends-on): Remove signbit.
23325         * doc/posix-functions/roundl.texi: Mention the new module.
23326
23327 2010-12-21  Bruno Haible  <bruno@clisp.org>
23328
23329         New module 'truncl-ieee'.
23330         * modules/truncl-ieee: New file.
23331         * modules/truncl-ieee-tests: New file.
23332         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
23333         * tests/test-truncl.c (main): Remove signbit tests.
23334         * modules/truncl-tests (Depends-on): Remove signbit.
23335         * doc/posix-functions/truncl.texi: Mention the new module.
23336
23337 2010-12-21  Bruno Haible  <bruno@clisp.org>
23338
23339         New module 'ceill-ieee'.
23340         * modules/ceill-ieee: New file.
23341         * modules/ceill-ieee-tests: New file.
23342         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
23343         * tests/test-ceill.c (main): Remove signbit tests.
23344         * modules/ceill-tests (Depends-on): Remove signbit.
23345         * doc/posix-functions/ceill.texi: Mention the new module.
23346
23347 2010-12-21  Bruno Haible  <bruno@clisp.org>
23348
23349         New module 'floorl-ieee'.
23350         * modules/floorl-ieee: New file.
23351         * modules/floorl-ieee-tests: New file.
23352         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
23353         * tests/test-floorl.c (main): Remove signbit tests.
23354         * modules/floorl-tests (Depends-on): Remove signbit.
23355         * doc/posix-functions/floorl.texi: Mention the new module.
23356
23357 2010-12-21  Bruno Haible  <bruno@clisp.org>
23358
23359         New module 'round-ieee'.
23360         * modules/round-ieee: New file.
23361         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
23362         whether round works according to ISO C 99 with IEC 60559.
23363         * m4/round-ieee.m4: New file.
23364         * modules/round-ieee-tests: New file.
23365         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
23366         * tests/test-round1.c (main): Remove signbit tests.
23367         * modules/round-tests (Depends-on): Remove 'signbit'.
23368         * doc/posix-functions/round.texi: Mention the new module.
23369
23370 2010-12-21  Bruno Haible  <bruno@clisp.org>
23371
23372         New module 'trunc-ieee'.
23373         * modules/trunc-ieee: New file.
23374         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
23375         whether trunc works according to ISO C 99 with IEC 60559.
23376         * m4/trunc-ieee.m4: New file.
23377         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
23378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
23379         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
23380         * modules/trunc-ieee-tests: New file.
23381         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
23382         * tests/test-trunc1.c (main): Remove signbit tests.
23383         * modules/trunc-tests (Depends-on): Remove 'signbit'.
23384         * doc/posix-functions/trunc.texi: Mention the new module.
23385
23386 2010-12-21  Bruno Haible  <bruno@clisp.org>
23387
23388         New module 'ceil-ieee'.
23389         * modules/ceil-ieee: New file.
23390         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
23391         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
23392         ISO C 99 with IEC 60559.
23393         * m4/ceil-ieee.m4: New file.
23394         * modules/ceil (Files): Add lib/ceil.c.
23395         (Depends-on): Add 'float'.
23396         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23397         * lib/math.in.h (ceil): New declaration.
23398         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
23399         REPLACE_CEIL.
23400         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
23401         * modules/ceil-ieee-tests: New file.
23402         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
23403         * tests/test-math-c++.cc: Check the signature of 'ceil'.
23404         * doc/posix-functions/ceil.texi: Mention the new module.
23405
23406 2010-12-21  Bruno Haible  <bruno@clisp.org>
23407
23408         New module 'floor-ieee'.
23409         * modules/floor-ieee: New file.
23410         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
23411         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
23412         ISO C 99 with IEC 60559.
23413         * m4/floor-ieee.m4: New file.
23414         * modules/floor (Files): Add lib/floor.c.
23415         (Depends-on): Add 'float'.
23416         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
23417         * lib/math.in.h (floor): New declaration.
23418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
23419         REPLACE_FLOOR.
23420         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
23421         * modules/floor-ieee-tests: New file.
23422         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
23423         * tests/test-math-c++.cc: Check the signature of 'floor'.
23424         * doc/posix-functions/floor.texi: Mention the new module.
23425
23426 2010-12-21  Bruno Haible  <bruno@clisp.org>
23427
23428         New module 'roundf-ieee'.
23429         * modules/roundf-ieee: New file.
23430         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
23431         test whether roundf works according to ISO C 99 with IEC 60559.
23432         * m4/roundf-ieee.m4: New file.
23433         * modules/roundf-ieee-tests: New file.
23434         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
23435         * tests/test-roundf1.c (main): Remove signbit tests.
23436         * modules/roundf-tests (Depends-on): Remove 'signbit'.
23437         * doc/posix-functions/roundf.texi: Mention the new module.
23438
23439 2010-12-21  Bruno Haible  <bruno@clisp.org>
23440
23441         New module 'truncf-ieee'.
23442         * modules/truncf-ieee: New file.
23443         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
23444         test whether truncf works according to ISO C 99 with IEC 60559.
23445         * m4/truncf-ieee.m4: New file.
23446         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
23447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
23448         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
23449         * modules/truncf-ieee-tests: New file.
23450         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
23451         * tests/test-truncf1.c (main): Remove signbit tests.
23452         * modules/truncf-tests (Depends-on): Remove 'signbit'.
23453         * doc/posix-functions/truncf.texi: Mention the new module.
23454
23455 2010-12-21  Bruno Haible  <bruno@clisp.org>
23456
23457         New module 'ceilf-ieee'.
23458         * modules/ceilf-ieee: New file.
23459         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
23460         test whether ceilf works according to ISO C 99 with IEC 60559.
23461         * m4/ceilf-ieee.m4: New file.
23462         * modules/ceilf-ieee-tests: New file.
23463         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
23464         * tests/test-ceilf1.c (main): Remove signbit tests.
23465         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
23466         * doc/posix-functions/ceilf.texi: Mention the new module.
23467
23468 2010-12-21  Bruno Haible  <bruno@clisp.org>
23469
23470         New module 'floorf-ieee'.
23471         * modules/floorf-ieee: New file.
23472         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
23473         test whether floorf works according to ISO C 99 with IEC 60559.
23474         * m4/floorf-ieee.m4: New file.
23475         * modules/floorf-ieee-tests: New file.
23476         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
23477         * tests/test-floorf1.c (main): Remove signbit tests.
23478         * modules/floorf-tests (Depends-on): Remove 'signbit'.
23479         * doc/posix-functions/floorf.texi: Mention the new module.
23480
23481 2010-12-21  Bruno Haible  <bruno@clisp.org>
23482
23483         Support for minus zero in autoconf macros.
23484         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
23485         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
23486         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
23487         * tests/minus-zero.h: Update comments.
23488
23489 2010-12-21  Bruno Haible  <bruno@clisp.org>
23490
23491         Tests for module 'ceil'.
23492         * modules/ceil-tests: New file.
23493         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
23494         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
23495
23496 2010-12-21  Bruno Haible  <bruno@clisp.org>
23497
23498         Tests for module 'floor'.
23499         * modules/floor-tests: New file.
23500         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
23501         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
23502
23503 2010-12-21  Bruno Haible  <bruno@clisp.org>
23504
23505         math: Fix indentation.
23506         * lib/math.in.h (floorf): Fix indentation.
23507
23508 2010-12-21  Bruno Haible  <bruno@clisp.org>
23509
23510         Fix cross-compilation guesses on Solaris.
23511         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
23512         not match "solaris2.10".
23513         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23514         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
23515         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
23516
23517 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
23518
23519         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
23520         This fixes a problem observed with the latest coreutils snapshot
23521         that caused a test to fail on Solaris 8.  src/csplit.c's call
23522         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
23523         earlier, instead of returning the number of bytes that would have
23524         been generated; this causes csplit to incorrectly report memory
23525         exhaustion.
23526         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
23527         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
23528         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
23529         comments to match.
23530         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
23531         Fix typo in matching older versions of Solaris: "solaris2.10"
23532         is matched by the shell pattern "solaris2.[0-9]*".  This matters
23533         only for guessing while cross-compiling.
23534         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
23535
23536 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
23537
23538         ftoastr: fix comment again
23539         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23540         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
23541         Also, simplify example a bit by using flags = 0.
23542
23543 2010-12-20  Bruno Haible  <bruno@clisp.org>
23544
23545         round*, trunc*: Update documentation regarding glibc.
23546         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
23547         * doc/posix-functions/round.texi: Likewise.
23548         * doc/posix-functions/roundl.texi: Likewise.
23549         * doc/posix-functions/truncf.texi: Likewise.
23550         * doc/posix-functions/trunc.texi: Likewise.
23551         * doc/posix-functions/truncl.texi: Likewise.
23552
23553 2010-12-20  Bruno Haible  <bruno@clisp.org>
23554
23555         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
23556         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
23557         * doc/posix-functions/round.texi: Likewise.
23558         * doc/posix-functions/roundl.texi: Likewise.
23559
23560 2010-12-20  Bruno Haible  <bruno@clisp.org>
23561
23562         ttyname_r: Add missing declaration on HP-UX 11.
23563         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
23564         HAVE_TTYNAME_R.
23565         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
23566         declared. Set HAVE_TTYNAME_R always.
23567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23568         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
23569         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
23570         HAVE_TTYNAME_R.
23571         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
23572
23573 2010-12-20  Bruno Haible  <bruno@clisp.org>
23574
23575         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
23576         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
23577         * doc/posix-functions/getlogin_r.texi: Likewise.
23578         * tests/test-getlogin.c: Include <errno.h>.
23579         (main): Avoid test failure on HP-UX 11.11.
23580         * tests/test-getlogin_r.c (main): Likewise.
23581
23582 2010-12-20  Bruno Haible  <bruno@clisp.org>
23583
23584         getlogin_r: Add missing declaration on HP-UX 11.
23585         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
23586         declared also when it exists as a function.
23587         * doc/posix-functions/getlogin_r.texi: Document this workaround.
23588
23589 2010-12-20  Bruno Haible  <bruno@clisp.org>
23590
23591         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
23592         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
23593         through wcrtomb.
23594
23595 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
23596
23597         ftoastr: fix comment
23598         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
23599         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
23600
23601 2010-12-19  Bruno Haible  <bruno@clisp.org>
23602
23603         isnan: Ensure it is a macro.
23604         * lib/math.in.h (isnan): Define as a macro if not already a macro.
23605         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
23606         Solaris.
23607
23608 2010-12-19  Bruno Haible  <bruno@clisp.org>
23609
23610         ldexpl test: Fix link error on OSF/1 5.1.
23611         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
23612
23613 2010-12-19  Bruno Haible  <bruno@clisp.org>
23614
23615         wctype: Make it work in C++ mode on OSF/1 5.1.
23616         * lib/wctype.in.h (iswblank): Declare but not define here.
23617         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
23618         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
23619         * modules/wctype (Files): Add lib/iswblank.c.
23620
23621 2010-12-19  Bruno Haible  <bruno@clisp.org>
23622
23623         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
23624         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
23625         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
23626
23627 2010-12-19  Bruno Haible  <bruno@clisp.org>
23628
23629         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
23630         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
23631         _POSIX_PII_SOCKET.
23632         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
23633         * doc/posix-functions/recvfrom.texi: Likewise.
23634         * doc/posix-functions/send.texi: Likewise.
23635         * doc/posix-functions/sendto.texi: Likewise.
23636
23637 2010-12-19  Bruno Haible  <bruno@clisp.org>
23638
23639         tcgetsid: Add missing declaration on OSF/1 5.1.
23640         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
23641         HAVE_TCGETSID.
23642         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
23643         Don't set HAVE_TCGETSID.
23644         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
23645         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
23646         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
23647         HAVE_TCGETSID.
23648         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
23649
23650 2010-12-19  Bruno Haible  <bruno@clisp.org>
23651
23652         stdio: Fix problem with popen() declaration on OSF/1 5.1.
23653         * lib/stdio.in.h: During the include_next statement, let recursive
23654         includes of this file include only the system header file.
23655
23656 2010-12-19  Bruno Haible  <bruno@clisp.org>
23657
23658         iconv_open: Fix regression from 2010-12-04.
23659         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
23660         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
23661
23662 2010-12-19  Bruno Haible  <bruno@clisp.org>
23663
23664         stdbool test: Avoid a gcc warning.
23665         * tests/test-stdbool.c (main): Fail if e1 is false.
23666         Reported by Jim Meyering.
23667
23668 2010-12-19  Jim Meyering  <meyering@redhat.com>
23669
23670         setenv: restore to working order
23671         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
23672         mistakenly removed.
23673         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
23674         HAVE_SETENV.
23675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
23676         HAVE_SETENV.
23677
23678 2010-12-19  Bruno Haible  <bruno@clisp.org>
23679
23680         Document some different function declarations on OSF/1 5.1.
23681         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
23682         * doc/posix-functions/inet_ntop.texi: Likewise.
23683         * doc/posix-functions/gethostname.texi: Likewise.
23684         * lib/unistd.in.h (gethostname): Update comment.
23685
23686 2010-12-19  Bruno Haible  <bruno@clisp.org>
23687
23688         doc: Mention vasprintf-posix module.
23689         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
23690         the 'vasprintf-posix' module.
23691         * doc/glibc-functions/vasprintf.texi: Likewise.
23692
23693 2010-12-19  Bruno Haible  <bruno@clisp.org>
23694
23695         unsetenv: Add missing declaration on OSF/1 5.1.
23696         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
23697         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
23698         Don't set HAVE_UNSETENV. In the test program, set _BSD.
23699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
23700         not HAVE_UNSETENV.
23701         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
23702         HAVE_UNSETENV.
23703         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
23704
23705 2010-12-19  Bruno Haible  <bruno@clisp.org>
23706
23707         setenv: Add missing declaration on OSF/1 5.1.
23708         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
23709         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
23710         declared. Don't set HAVE_SETENV.
23711         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
23712         not HAVE_SETENV.
23713         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
23714         HAVE_SETENV.
23715         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
23716
23717 2010-12-19  Bruno Haible  <bruno@clisp.org>
23718
23719         nl_langinfo tests: Avoid gcc warning.
23720         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
23721
23722 2010-12-19  Bruno Haible  <bruno@clisp.org>
23723
23724         mknod: Avoid error in C++ mode on OSF/1 with GCC.
23725         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
23726         _GL_CXXALIAS_SYS.
23727
23728 2010-12-19  Bruno Haible  <bruno@clisp.org>
23729
23730         stdbool: Relax test.
23731         * tests/test-stdbool.c (e): Don't require that casts from a variable's
23732         address to 'bool' work in static initializer, for compilers other than
23733         GCC.
23734
23735 2010-12-19  Bruno Haible  <bruno@clisp.org>
23736
23737         ftello: Add missing declaration on OSF/1 5.1.
23738         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
23739         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
23740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
23741         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
23742         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
23743
23744 2010-12-19  Bruno Haible  <bruno@clisp.org>
23745
23746         fseeko: Add missing declaration on OSF/1 5.1.
23747         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
23748         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
23749         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
23750         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
23751         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
23752
23753 2010-12-19  Bruno Haible  <bruno@clisp.org>
23754
23755         fchdir: Add missing declaration on OSF/1 5.1.
23756         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
23757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
23758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
23759         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
23760         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
23761
23762 2010-12-19  Bruno Haible  <bruno@clisp.org>
23763
23764         relocatable-prog-wrapper: Separate from relocatable-prog.
23765         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
23766         uninstall-relocwrapper rule here.
23767         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
23768         Reported by Ian Beckwith <ianb@erislabs.net>.
23769
23770 2010-12-19  Bruno Haible  <bruno@clisp.org>
23771
23772         unistr/u8-mbsnlen: Add missing dependency.
23773         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
23774         Reported by Ian Beckwith <ianb@erislabs.net>.
23775
23776 2010-12-19  Bruno Haible  <bruno@clisp.org>
23777
23778         iconv: Make it possible again to use this module without 'iconv-h'.
23779         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
23780         if it is not defined.
23781         Reported by Ian Beckwith <ianb@erislabs.net>.
23782
23783 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
23784
23785         acl: port to Solaris 8 when copying from tmpfs to ufs
23786         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
23787         error number.  Problem observed on Solaris 8 with latest
23788         coreutils, with "mv A B", where A is on a tmpfs file system and B
23789         is on a ufs file system.  This caused coreutils' mv/part-symlink
23790         test to fail.
23791
23792         tests: set fail=0 at start
23793         * tests/init.sh (setup_): Move fail=0 initialization here ...
23794         (mktempd_): ... from here, so that tests can rely on fail being
23795         set to 0 initially.  This fixes a problem in coreutils; see:
23796         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
23797
23798 2010-12-18  Bruno Haible  <bruno@clisp.org>
23799
23800         memmem-simple: Stylistic changes.
23801         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
23802         Fix preprocessor directive indentation.
23803
23804 2010-12-15  Pádraig Brady <P@draigBrady.com>
23805
23806         memmem, memmem-simple: reorganize and expand empty needle check
23807         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23808         functional checks to memmem-simple so that one has a fully functional
23809         memmem by using just this module.
23810         Restrict the performance only check to the memmem module.
23811         Also expand the empty needle check to ensure the correct
23812         pointer is returned, not just a non NULL pointer.
23813         * doc/glibc-functions/memmem.texi: Rearrange the portability
23814         documentation to correlate with the rearranged checks.
23815         Clarify exactly how the memmem and memmem-simple modules
23816         relate to each other.
23817
23818 2010-12-15  Pádraig Brady <P@draigBrady.com>
23819             Bruno Haible  <bruno@clisp.org>
23820
23821         Improve cross-compilation guesses for uClibc.
23822         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23823         that uClibc does not have the glibc bug.
23824         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23825         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23826
23827 2010-12-14  Eric Blake  <eblake@redhat.com>
23828
23829         configmake: provide fallbacks for oldest supported autotools
23830         * m4/configmake.m4: New file.
23831         * modules/configmake (Files): Ship it.
23832         (configure.ac): Use it to guarantee fallbacks.
23833
23834 2010-12-13  Pádraig Brady <P@draigBrady.com>
23835
23836         read-file: Improve handling of large files
23837         * lib/read-file.c (fread_file): Minimize realloc()s
23838         for regular files, and better manage sizes around SIZE_MAX.
23839
23840 2010-12-13  Eric Blake  <eblake@redhat.com>
23841
23842         cloexec, fcntl: relax license
23843         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23844         consent from all contributors.
23845         * modules/fcntl (License): Likewise.
23846
23847 2010-12-10  Bruno Haible  <bruno@clisp.org>
23848
23849         Tests for module 'pipe-posix'.
23850         * modules/pipe-posix-tests: New file.
23851         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23852
23853 2010-12-10  Bruno Haible  <bruno@clisp.org>
23854
23855         pipe-posix: Make it work in C++ mode.
23856         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23857         (pipe): Use common idiom, not a macro definition.
23858         * lib/pipe.c: New file.
23859         * m4/pipe.m4: New file.
23860         * modules/pipe-posix (Description): Enhance.
23861         (Files): Add lib/pipe.c, m4/pipe.m4.
23862         (configure.ac): Invoke gl_FUNC_PIPE.
23863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23864         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23865         * tests/test-unistd-c++.cc: Check the signature of pipe.
23866
23867 2010-12-10  Bruno Haible  <bruno@clisp.org>
23868
23869         Rename module 'pipe' to 'spawn-pipe'.
23870         * modules/spawn-pipe: New file, renamed from modules/pipe.
23871         (Files, configure.ac, Makefile.am): Update.
23872         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23873         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23874         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23875         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23876         "spawn-pipe.h" instead of "pipe.h".
23877         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23878         to gl_SPAWN_PIPE.
23879         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23880         (Files, Makefile.am): Update.
23881         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23882         Update.
23883         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23884         Include "spawn-pipe.h" instead of "pipe.h".
23885         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23886         * lib/javacomp.c: Likewise.
23887         * lib/javaversion.c: Likewise.
23888         * lib/pipe-filter-gi.c: Likewise.
23889         * lib/pipe-filter-ii.c: Likewise.
23890         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23891         * modules/javacomp (Depends-on): Likewise.
23892         * modules/javaversion (Depends-on): Likewise.
23893         * modules/pipe-filter-gi (Depends-on): Likewise.
23894         * modules/pipe-filter-ii (Depends-on): Likewise.
23895         * MODULES.html.sh (Executing programs): Update.
23896         * NEWS: Mention the change.
23897
23898 2010-12-10  Eric Blake  <eblake@redhat.com>
23899
23900         pipe-posix: new module
23901         * modules/pipe-posix: New file.
23902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23903         (gl_UNISTD_H): Check for declaration.
23904         * modules/unistd (Makefile.am): Substitute it.
23905         * lib/unistd.in.h (pipe): Provide it for mingw.
23906         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23907         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23908
23909 2010-12-07  Bruno Haible  <bruno@clisp.org>
23910
23911         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23912         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23913         u8_strcmp_gnu.
23914         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23915
23916 2010-12-06  Bruno Haible  <bruno@clisp.org>
23917
23918         Update internal documentation.
23919         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23920
23921 2010-12-04  Bruno Haible  <bruno@clisp.org>
23922
23923         Put more information about failed tests into the test return codes.
23924         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23925         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23926         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23927         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23928         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23929         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23930         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23931         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23932         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23933         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23934         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23935         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23936         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23937         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23938         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23939         returns a bit mask.
23940         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23941         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23942         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23943         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23944         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23945         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23946         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23947         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23948         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23949         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23950         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23951         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23952         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23953         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23954         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23955         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23956         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23957         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23958         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23959         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23961         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23962         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23963         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23964         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23965         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23966         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23967         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23968         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23969         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23970         gl_PRINTF_PRECISION): Likewise.
23971         * m4/regex.m4 (gl_REGEX): Likewise.
23972         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23973         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23974         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23975         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23976         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23978         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23979         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23980         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23981         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23982         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23983         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23984         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23985         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23986         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23987         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23988         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23989         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23990         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23991         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23992         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23993         enumerated value.
23994         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23995
23996 2010-12-04  Bruno Haible  <bruno@clisp.org>
23997
23998         Update for Solaris 11 2010-11.
23999         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
24000         Express, released in November 2010.
24001
24002 2010-12-04  Bruno Haible  <bruno@clisp.org>
24003
24004         nproc: Relax license.
24005         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
24006         and Paul Eggert.
24007         Requested by Ludovic Courtès <ludo@gnu.org>.
24008
24009 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
24010
24011         utimecmp: fine-grained src to nearby coarse-grained dest
24012
24013         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
24014         and the source is on a file system with higher-resolution time
24015         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
24016         not work, and the time stamps are close together, the algorithm to
24017         determine the exact resolution from the read-back mtime was buggy:
24018         it had a "!=" where it should have had an "==".  This bug has been
24019         in the code ever since it was introduced to gnulib.
24020         Problem reported by Dan Jacobson in
24021         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
24022
24023 2010-11-30  Bruno Haible  <bruno@clisp.org>
24024
24025         strerror_r-posix: Fix autoconf test.
24026         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
24027
24028 2010-11-28  Bruno Haible  <bruno@clisp.org>
24029             Paul Eggert  <eggert@cs.ucla.edu>
24030
24031         Tests for module 'getdomainname'.
24032         * modules/getdomainname-tests: New file.
24033         * tests/test-getdomainname.c: New file, based on
24034         tests/test-gethostname.c.
24035
24036 2010-11-28  Bruno Haible  <bruno@clisp.org>
24037             Paul Eggert  <eggert@cs.ucla.edu>
24038
24039         getdomainname: Use the system function when possible.
24040         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
24041         (getdomainname): Replace if needed. Provide the declaration if it is
24042         missing. Don't use _GL_CXXALIAS_SYS_CAST.
24043         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
24044         (getdomainname): When the system has getdomainname, call the system
24045         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
24046         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
24047         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
24048         found in libnsl. Look for the declaration also in <netdb.h>. Replace
24049         the function if its second argument is of type 'int' or if it is found
24050         in libnsl.
24051         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
24052         <sys/systeminfo.h> and sysinfo().
24053         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
24054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
24055         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
24056         HAVE_GETDOMAINNAME.
24057         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
24058         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
24059         * doc/glibc-functions/getdomainname.texi: Document the problems with
24060         the getdomainname declaration.
24061
24062 2010-11-28  Bruno Haible  <bruno@clisp.org>
24063
24064         sys_socket: Ensure ss_family field on AIX.
24065         * lib/sys_socket.in.h (ss_family): New macro definition.
24066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
24067         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
24068         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
24069         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24070         * modules/sys_socket (Makefile.am): Substitute
24071         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
24072         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
24073
24074 2010-11-27  Bruno Haible  <bruno@clisp.org>
24075
24076         readline: Improve configure output.
24077         * m4/readline.m4 (gl_FUNC_READLINE): Make the
24078         "checking for readline..." result understandable.
24079
24080 2010-11-27  Bruno Haible  <bruno@clisp.org>
24081
24082         *printf-posix: Detect a bug on Solaris 10/x86.
24083         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
24084         for floating-point output.
24085         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
24086         directive.
24087         * tests/test-snprintf-posix.h (test_function): Likewise.
24088         * tests/test-sprintf-posix.h (test_function): Likewise.
24089         * tests/test-vasprintf-posix.c (test_function): Likewise.
24090         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
24091         * doc/posix-functions/printf.texi: Likewise.
24092         * doc/posix-functions/snprintf.texi: Likewise.
24093         * doc/posix-functions/sprintf.texi: Likewise.
24094         * doc/posix-functions/vfprintf.texi: Likewise.
24095         * doc/posix-functions/vprintf.texi: Likewise.
24096         * doc/posix-functions/vsnprintf.texi: Likewise.
24097         * doc/posix-functions/vsprintf.texi: Likewise.
24098         * doc/glibc-functions/obstack_printf.texi: Likewise.
24099         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
24100
24101 2010-11-27  Bruno Haible  <bruno@clisp.org>
24102
24103         Fix link error when module libunistring-optional is in use.
24104         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
24105         * modules/striconveha-tests (Makefile.am): Likewise.
24106
24107 2010-11-27  Bruno Haible  <bruno@clisp.org>
24108
24109         regex: Mention link dependencies.
24110         * modules/regex (Link): New section.
24111         * modules/rpmatch (Link): Likewise.
24112         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
24113
24114 2010-11-27  Bruno Haible  <bruno@clisp.org>
24115
24116         ftoastr: Fix compilation error on Solaris.
24117         * lib/ftoastr.c: Include <config.h>.
24118
24119 2010-11-27  Bruno Haible  <bruno@clisp.org>
24120
24121         getloadavg: Update documentation.
24122         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
24123
24124 2010-11-27  Bruno Haible  <bruno@clisp.org>
24125
24126         sys_socket: Fix test whether the functions are declared.
24127         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
24128         not <sys/select.h>.
24129
24130 2010-11-27  Bruno Haible  <bruno@clisp.org>
24131
24132         getpass: Make sure to get system declaration on some platforms.
24133         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
24134         gl_USE_SYSTEM_EXTENSIONS.
24135         * modules/getpass (Depends-on): Add extensions.
24136
24137 2010-11-26  Bruno Haible  <bruno@clisp.org>
24138
24139         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
24140         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
24141         'iconv' module is present.
24142         (ICONV_CONST): New macro.
24143         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
24144         ICONV_CONST.
24145         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
24146         set ICONV_CONST.
24147         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
24148         here.
24149         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
24150         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
24151         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
24152         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
24153         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
24154         present.
24155
24156 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
24157
24158         ftoastr: comment fix
24159         * lib/ftoastr.c: "little" -> "little or no" in comment
24160
24161 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
24162
24163         stdint: port to GCC 4.3 + OSX + Octave
24164         On this platform, stdint.h is buggy and defines int64_t to long
24165         long int.  The replacement defined it to long int, causing
24166         problems with C++ style name mangling.  Instead, trust the system
24167         definition if INT64_MAX is defined, and likewise for the unsigned
24168         variant.   Problem reported by Jarno Rajahalme in
24169         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
24170         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
24171         and don't mess with int64_t and INT64_MAX in this case.
24172         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
24173
24174 2010-11-24  Bruno Haible  <bruno@clisp.org>
24175
24176         doc: Corrections regarding MacOS X 10.4 and 10.5.
24177         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
24178         MacOS X.
24179         Reported by Simon Josefsson.
24180
24181 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
24182
24183         Uninstall ".bin" files installed by relocwrapper.
24184         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
24185         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
24186         unless it is already there.
24187
24188 2010-11-21  Bruno Haible  <bruno@clisp.org>
24189
24190         Update for NetBSD 5.0.
24191         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24192         NetBSD; the test fails on NetBSD 5.0.
24193         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24194         about NetBSD.
24195
24196 2010-11-21  Bruno Haible  <bruno@clisp.org>
24197
24198         Update for HP-UX 11.23 and HP-UX 11.31.
24199         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
24200         HP-UX.
24201
24202 2010-11-21  Bruno Haible  <bruno@clisp.org>
24203
24204         Update for MacOS X 10.5.
24205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
24206         MacOS X; the test fails on MacOS X 10.5.8.
24207         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
24208         about MacOS X.
24209
24210 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
24211
24212         bootstrap: add bootstrap_sync option.
24213         See discussion at
24214         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
24215         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
24216         * build-aux/bootstrap: Accept --bootstrap-sync to update
24217         bootstrap if it is not identical to the local gnulib's
24218         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
24219         enable this by default.  Accept --no-bootstrap-sync to disable
24220         it.
24221
24222 2010-11-20  Bruno Haible  <bruno@clisp.org>
24223
24224         Ensure that <features.h> is included before __GLIBC__ is tested.
24225         * lib/printf-parse.h: Include <features.h>.
24226         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
24227         Reported by Mike Frysinger <vapier@gentoo.org>.
24228
24229         Ensure that <features.h> is included before __GLIBC__ is tested.
24230         * lib/wchar.in.h: Include <features.h>.
24231         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
24232         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
24233         Reported by Mike Frysinger <vapier@gentoo.org>.
24234
24235         Ensure that <features.h> is included before __GLIBC__ is tested.
24236         * lib/arpa_inet.in.h: Include <features.h>.
24237         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
24238         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
24239         Reported by Mike Frysinger <vapier@gentoo.org>.
24240
24241         Ensure that <features.h> is included before __GLIBC__ is tested.
24242         * build-aux/link-warning.h: Include <features.h>.
24243         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
24244         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
24245         Reported by Mike Frysinger <vapier@gentoo.org>.
24246
24247         Ensure that <features.h> is included before __GLIBC__ is tested.
24248         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
24249         Reported by Mike Frysinger <vapier@gentoo.org>.
24250
24251 2010-11-20  Bruno Haible  <bruno@clisp.org>
24252
24253         memmem: Fix autoconf test.
24254         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
24255
24256 2010-11-20  Bruno Haible  <bruno@clisp.org>
24257
24258         Port to uClibc.
24259         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
24260         * lib/fcntl.in.h: Likewise.
24261         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
24262         * lib/mbrtowc.c (mbrtowc): Likewise.
24263         * lib/relocatable.c (find_shared_library_fullname): Likewise.
24264         * lib/strerror_r.c: Likewise.
24265         * lib/unistr/u8-strnlen.c: Likewise.
24266         * lib/vasnprintf.c (decimal_point_char): Likewise.
24267         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24268         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
24269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
24270         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
24271         * tests/test-sigaction.c (handler, main): Likewise.
24272         * lib/freading.h: Treat uClibc like a non-glibc platform.
24273         * lib/freading.c: Likewise.
24274         * lib/gettext.h: Likewise.
24275         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
24276         Likewise.
24277         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
24278         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
24279         * lib/propername.c (proper_name_utf8): Likewise.
24280         * lib/spawn.in.h: Likewise.
24281         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
24282         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
24283         mem_cd_iconveh_internal): Likewise.
24284         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
24285         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
24286         strstr, strcasestr): Likewise.
24287         * lib/unicodeio.c (unicode_to_mb): Likewise.
24288         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
24289         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
24290         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
24291         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
24292         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
24293         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
24294         * lib/unistr/u8-stpncpy.c: Likewise.
24295         * lib/vasnprintf.c (VASNPRINTF): Likewise.
24296         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
24297         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
24298         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
24299         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
24300         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
24301         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
24302         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
24303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
24304         Likewise.
24305         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24306         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
24307         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24308         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24309         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24310         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24311         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24312         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24313         * tests/test-getopt.h (OPTIND_MIN): Likewise.
24314         * tests/test-striconveha.c (main): Likewise.
24315         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24316         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
24317         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
24318         * doc/posix-functions/getline.texi: Likewise.
24319         Reported by Mike Frysinger <vapier@gentoo.org>.
24320
24321 2010-11-20  Bruno Haible  <bruno@clisp.org>
24322
24323         nproc: Fix condition.
24324         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
24325         HAVE_PTHREAD_AFFINITY_NP.
24326
24327 2010-11-20  Bruno Haible  <bruno@clisp.org>
24328
24329         Fix a comment.
24330         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
24331
24332 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         ftoastr: don't assume snprintf
24335         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
24336         Implement a subset of snprintf here, by using sprintf safely.
24337         * modules/ftoastr (Depends-on): Remove snprintf.
24338
24339 2010-11-19  Jim Meyering  <meyering@redhat.com>
24340
24341         test-rename.h: fix compilation failure
24342         * tests/test-rename.h (test_rename): Add omitted "}".
24343
24344 2010-11-17  Jim Meyering  <meyering@redhat.com>
24345
24346         maint.mk: add a URL discussing the no-@acronym policy
24347         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
24348
24349 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
24350
24351         ftoastr: depend on snprintf, improve comments
24352         * lib/ftoastr.c: Also mention Loitsch's draft.
24353         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
24354         needed in the current implementation, but it might simplify
24355         speeding up the code later.
24356         * modules/ftoastr: Depend on snprintf; this improves portability.
24357         Suggested by Bruno Haible in the same email.
24358
24359         ftoastr: port to hosts lacking strtof and strtold
24360         Problem reported by Bruno Haible in
24361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
24362         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
24363         environment and strtold (and presumably strtof) are not available.
24364         * modules/ftoastr (Files): Add m4/c-strtod.m4.
24365         (configure.ac): Require gl_C99_STRTOLD.
24366
24367 2010-11-18  Bruno Haible  <bruno@clisp.org>
24368
24369         c-strtold: Avoid link error on AIX 7.
24370         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
24371         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
24372         (gl_C_STRTOLD): Test whether strtold_l exists.
24373         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24374
24375 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
24376
24377         intprops: new macro INT_BITS_STRLEN_BOUND
24378         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
24379         ftoastr.h.  This exposes an internal of intprops.h that was formerly
24380         not exposed.  Also, it uses a slightly tighter bound than before;
24381         though this makes no practical difference, we might as well be as
24382         tight as we easily can.
24383
24384         ftoastr: new module, for lossless conversion of floats to short strings
24385         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
24386         * modules/ftoastr: New files.
24387
24388 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         bootstrap: port to Solaris sed
24391         * build-aux/bootstrap (get_version): Port to Solaris sed.
24392         See Ralf Wildenhues's note in
24393         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
24394
24395 2010-11-14  Jim Meyering  <meyering@redhat.com>
24396
24397         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
24398         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
24399         and move definition closer to sole use.
24400
24401 2010-11-13  Jim Meyering  <meyering@redhat.com>
24402
24403         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
24404         Now we require at least autoconf-2.59, which means the work-around
24405         is no longer needed.
24406         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
24407         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
24408         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
24409         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24410         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24411
24412 2010-11-13  Bruno Haible  <bruno@clisp.org>
24413
24414         rename, renameat: Avoid test failures at NFS mounted locations.
24415         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
24416         functions.
24417         (test_rename): Use assert_nonexistent.
24418         * tests/test-rename.c: Include <dirent.h>.
24419         * tests/test-renameat.c: Likewise.
24420         Reported by Gary V. Vaughan <gary@gnu.org>.
24421
24422         rename, renameat: Document Linux bug with NFS
24423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
24424         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
24425         * doc/posix-functions/renameat.texi: Likewise.
24426         Suggested by Eric Blake.
24427
24428 2010-11-13  Bruno Haible  <bruno@clisp.org>
24429
24430         rename test: Add comments.
24431         * tests/test-rename.h (test_rename): Add structure and comments.
24432
24433 2010-11-13  Eric Blake  <eblake@redhat.com>
24434
24435         maintainer-makefile: cover a few more files
24436         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
24437         scripts generated within C files, for libvirt.
24438
24439 2010-11-13  Bruno Haible  <bruno@clisp.org>
24440
24441         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
24442         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
24443         character, return the number of bytes that belong together, not always
24444         1.
24445         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
24446         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
24447         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
24448         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
24449         number of bytes of an invalid character.
24450         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
24451         (main): Invoke it.
24452         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
24453         results.
24454         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
24455         malformed byte sequences.
24456         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
24457         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
24458         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
24459         Reported by Ben Pfaff and Paolo Bonzini.
24460
24461 2010-11-13  Bruno Haible  <bruno@clisp.org>
24462
24463         openat: Work around glibc bug with fchownat() and empty file names.
24464         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
24465         (gl_FUNC_FCHOWNAT): Invoke it.
24466         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
24467         * doc/posix-functions/fchownat.texi: Document the glibc bug.
24468         Reported by Gary V. Vaughan <gary@gnu.org>.
24469
24470 2010-11-13  Bruno Haible  <bruno@clisp.org>
24471
24472         openat: Ensure autoconf macro ordering.
24473         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
24474         gl_USE_SYSTEM_EXTENSIONS.
24475         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
24476
24477 2010-11-13  Bruno Haible  <bruno@clisp.org>
24478
24479         Update comments.
24480         * lib/unistr/u8-check.c: Update file name in comments.
24481         * lib/unistr/u8-mblen.c: Likewise.
24482         * lib/unistr/u8-prev.c: Likewise.
24483         * lib/unistr/u8-strmblen.c: Likewise.
24484         * lib/unistr/u8-strmbtouc.c: Likewise.
24485
24486 2010-11-13  Jim Meyering  <meyering@redhat.com>
24487
24488         tests: avoid test failure on Solaris 10 due to lack of PATH export
24489         * tests/test-update-copyright.sh: Don't forget to export PATH.
24490
24491         init.sh: ensure that IFS is defined, just in case...
24492         * tests/init.sh (setup_): Ensure that IFS is defined,
24493         so that saving and restoring it works as expected.  This
24494         appears to be useful at least for an old version of dash
24495         from a long time ago (RH 6).  See here for details:
24496         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
24497
24498         maint.mk: tighten "test a == b" check
24499         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
24500         test to files that contain something like #!/bin/sh.
24501         Without this, coreutils would get two false positives in
24502         the comments of C source files.
24503
24504 2010-11-12  Eric Blake  <eblake@redhat.com>
24505
24506         bootstrap: fix typo in previous attempt
24507         * build-aux/bootstrap (buildreq): Correct the grouping.
24508         Reported by Paul Eggert.
24509
24510         maintainer-makefile: prohibit test x == x
24511         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
24512         Based on a report by Matthias Bolte.
24513
24514         bootstrap: allow FreeBSD gzip
24515         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
24516         which has no '.' and goes to stderr.
24517         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
24518         Reported by Matthias Bolte.
24519
24520         maintainer-makefile: check for i18n setup
24521         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
24522         will likely work.
24523
24524 2010-11-12  Bruno Haible  <bruno@clisp.org>
24525
24526         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
24527         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
24528         * lib/nanosleep.c (nanosleep): Likewise.
24529
24530 2010-11-11  Bruno Haible  <bruno@clisp.org>
24531
24532         fcntl-h: Fix for use of C++ on glibc systems.
24533         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24534         also on glibc systems in C++ mode.
24535         Reported by Gary V. Vaughan <gary@gnu.org>.
24536
24537 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24538
24539         mknod: avoid false failure with dash
24540         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
24541
24542 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
24543
24544         unlink: Fix "is it should" typo in diagnostic.
24545         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
24546         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
24547
24548 2010-11-11  Bruno Haible  <bruno@clisp.org>
24549
24550         Tests for module 'strerror_r-posix'.
24551         * modules/strerror_r-posix-tests: New file.
24552         * tests/test-strerror_r.c: New file.
24553         * tests/test-string-c++.cc: Check the signature of strerror_r.
24554
24555         New module 'strerror_r-posix'.
24556         * lib/string.in.h (strerror_r): New declaration.
24557         * lib/strerror_r.c: New file.
24558         * m4/strerror_r.m4: New file.
24559         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
24560         of strerror_r.
24561         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
24562         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24563         * modules/strerror_r-posix: New file.
24564         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
24565         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
24566         * doc/posix-functions/strerror_r.texi: Mention the new module and the
24567         portability problems.
24568
24569 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
24570
24571         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
24572         line is also considered for output. Quoted function name in shell
24573         command, so temporary files for functions like MyClass::operator()
24574         are removed correctly without errors.
24575
24576 2010-11-09  Bruno Haible  <bruno@clisp.org>
24577
24578         * doc/posix-functions/strerror.texi: List more failing platforms.
24579
24580         * doc/posix-functions/strerror.texi: Add a comment.
24581
24582 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
24583
24584         fdopendir: fix bug on MacOS X when low on file descriptors
24585
24586         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
24587         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
24588         All callers changed.
24589         (fdopendir): Invoke save_cwd at the top level, not after using
24590         multiple dup() calls to use up file descriptors.  Then retry
24591         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
24592         less than the maximum number of open file descriptors, because
24593         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
24594         on Mac OS X 10.6.4 for tar 1.24
24595         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
24596         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
24597         and for tar 1.25
24598         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
24599
24600 2010-11-07  Bruno Haible  <bruno@clisp.org>
24601
24602         vasnprintf: Support I flag on glibc systems.
24603         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
24604         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
24605         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
24606         snprintf function.
24607         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
24608         glibc systems.
24609         * tests/test-vasnprintf-posix3.c: New file.
24610         * modules/vasnprintf-posix-tests (Files): Add it.
24611         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
24612
24613 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24614
24615         [html] Fix copy/paste bug: Use unique name for compiler warnings.
24616         * MODULES.html.sh: For compiler warnings, use name
24617         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
24618
24619 2010-11-05  Eric Blake  <eblake@redhat.com>
24620
24621         ceil, floor: avoid spurious failure with icc
24622         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
24623         [denormals-as-zero] when optimizing without -mieee-fp option.
24624         * tests/test-floorf2.c (floorf_reference): Likewise.
24625         * tests/test-ceilf1.c (dummy): New function.
24626         (main): Use it to outsmart icc's optimization.
24627         * tests/test-floorf1.c (dummy, main): Likewise.
24628
24629         tests: require working signbit
24630         * modules/ceilf-tests (Depends-on): Add signbit.
24631         * modules/ceill-tests (Depends-on): Likewise.
24632         * modules/floorf-tests (Depends-on): Likewise.
24633         * modules/floorl-tests (Depends-on): Likewise.
24634         * modules/round-tests (Depends-on): Likewise.
24635         * modules/roundf-tests (Depends-on): Likewise.
24636         * modules/roundl-tests (Depends-on): Likewise.
24637         * modules/trunc-tests (Depends-on): Likewise.
24638         * modules/truncf-tests (Depends-on): Likewise.
24639         * modules/truncl-tests (Depends-on): Likewise.
24640
24641         strtod: work around icc bug
24642         * lib/strtod.c (minus_zero): Define to working value.
24643         (strtod): Use it to avoid icc bug.
24644
24645         copysign: enhance tests
24646         * modules/copysign-tests (Files): Add minus-zero.h.
24647         * tests/test-copysign.c (main): Also test zeros.
24648
24649 2010-11-04  Eric Blake  <eblake@redhat.com>
24650
24651         ceil, floor, round, trunc: enhance tests of -0
24652         * tests/test-ceilf1.c (main): Ensure correct sign of result.
24653         * tests/test-ceill.c (main): Likewise.
24654         * tests/test-floorf1.c (main): Likewise.
24655         * tests/test-floorl.c (main): Likewise.
24656         * tests/test-round1.c (main): Likewise.
24657         * tests/test-roundf1.c (main): Likewise.
24658         * tests/test-roundl.c (main): Likewise.
24659         * tests/test-trunc1.c (main): Likewise.
24660         * tests/test-truncf1.c (main): Likewise.
24661         * tests/test-truncl.c (main): Likewise.
24662
24663 2010-11-04  Eric Blake  <eblake@redhat.com>
24664
24665         frexp, tests: work around ICC bug with -zero
24666         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
24667         works with more compilers.
24668         * tests/minus-zero.h: New file.
24669         * modules/ceilf-tests (Files): Include it.
24670         * modules/ceill-tests (Files): Likewise.
24671         * modules/floorf-tests (Files): Likewise.
24672         * modules/floorl-tests (Files): Likewise.
24673         * modules/frexp-nolibm-tests (Files): Likewise.
24674         * modules/frexp-tests (Files): Likewise.
24675         * modules/frexpl-nolibm-tests (Files): Likewise.
24676         * modules/frexpl-tests (Files): Likewise.
24677         * modules/isnan-tests (Files): Likewise.
24678         * modules/isnand-nolibm-tests (Files): Likewise.
24679         * modules/isnand-tests (Files): Likewise.
24680         * modules/isnanf-nolibm-tests (Files): Likewise.
24681         * modules/isnanf-tests (Files): Likewise.
24682         * modules/isnanl-nolibm-tests (Files): Likewise.
24683         * modules/isnanl-tests (Files): Likewise.
24684         * modules/round-tests (Files): Likewise.
24685         * modules/roundf-tests (Files): Likewise.
24686         * modules/roundl-tests (Files): Likewise.
24687         * modules/ldexpl-tests (Files): Likewise.
24688         * modules/signbit-tests (Files): Likewise.
24689         * modules/snprintf-posix-tests (Files): Likewise.
24690         * modules/sprintf-posix-tests (Files): Likewise.
24691         * modules/strtod-tests (Files): Likewise.
24692         * modules/trunc-tests (Files): Likewise.
24693         * modules/truncf-tests (Files): Likewise.
24694         * modules/truncl-tests (Files): Likewise.
24695         * modules/vsnprintf-posix-tests (Files): Likewise.
24696         * modules/vsprintf-posix-tests (Files): Likewise.
24697         * modules/vasnprintf-posix-tests (Files): Likewise.
24698         * modules/vasprintf-posix-tests (Files): Likewise.
24699         * tests/test-ceilf1.c (main): Use it.
24700         * tests/test-ceill.c (main): Likewise.
24701         * tests/test-floorf1.c (main): Likewise.
24702         * tests/test-floorl.c (main): Likewise.
24703         * tests/test-frexp.c (main): Likewise.
24704         * tests/test-frexpl.c (main): Likewise.
24705         * tests/test-isnan.c (main): Likewise.
24706         * tests/test-isnand.h (main): Likewise.
24707         * tests/test-isnanf.h (main): Likewise.
24708         * tests/test-isnanl.h (main): Likewise.
24709         * tests/test-ldexpl.c (main): Likewise.
24710         * tests/test-round.c (main): Likewise.
24711         * tests/test-roundf.c (main): Likewise.
24712         * tests/test-roundl.c (main): Likewise.
24713         * tests/test-signbit.c (test_signbitf, test_signbitd)
24714         (test_signbitl): Likewise.
24715         * tests/test-snprintf-posix.h (test_function): Likewise.
24716         * tests/test-sprintf-posix.h (test_function): Likewise.
24717         * tests/test-strtod.c (main): Likewise.
24718         * tests/test-trunc1.c (main): Likewise.
24719         * tests/test-truncf1.c (main): Likewise.
24720         * tests/test-truncl.c (main): Likewise.
24721
24722         isnanl: work around icc bug
24723         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
24724
24725 2010-11-03  Eric Blake  <eblake@redhat.com>
24726
24727         tests: fix compiler warnings
24728         * tests/test-getopt.h (test_getopt): Fix condition.
24729         * tests/test-getopt_long.h (test_getopt_long): Likewise.
24730         * tests/test-pipe2.c (main): Likewise.
24731         * tests/test-quotearg-simple.c (main): Avoid icc warning.
24732
24733         utimens: fix broken m4 test
24734         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
24735
24736 2010-10-28  Bruno Haible  <bruno@clisp.org>
24737
24738         posix_spawn*, getdtablesize: Relax license.
24739         * modules/posix_spawn (License): Change to LGPLv2+.
24740         * modules/posix_spawnp (License): Likewise.
24741         * modules/posix_spawn-internal (License): Likewise.
24742         * modules/posix_spawnattr_init (License): Likewise.
24743         * modules/posix_spawnattr_getflags (License): Likewise.
24744         * modules/posix_spawnattr_setflags (License): Likewise.
24745         * modules/posix_spawnattr_getpgroup (License): Likewise.
24746         * modules/posix_spawnattr_setpgroup (License): Likewise.
24747         * modules/posix_spawnattr_getschedparam (License): Likewise.
24748         * modules/posix_spawnattr_setschedparam (License): Likewise.
24749         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
24750         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
24751         * modules/posix_spawnattr_getsigdefault (License): Likewise.
24752         * modules/posix_spawnattr_setsigdefault (License): Likewise.
24753         * modules/posix_spawnattr_getsigmask (License): Likewise.
24754         * modules/posix_spawnattr_setsigmask (License): Likewise.
24755         * modules/posix_spawnattr_destroy (License): Likewise.
24756         * modules/posix_spawn_file_actions_init (License): Likewise.
24757         * modules/posix_spawn_file_actions_addclose (License): Likewise.
24758         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
24759         * modules/posix_spawn_file_actions_addopen (License): Likewise.
24760         * modules/posix_spawn_file_actions_destroy (License): Likewise.
24761         * modules/getdtablesize (License): Likewise.
24762         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
24763
24764 2010-10-26  Bruno Haible  <bruno@clisp.org>
24765
24766         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
24767         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
24768         Cygwin and mingw.
24769         Suggested by Eric Blake.
24770
24771 2010-10-26  Bruno Haible  <bruno@clisp.org>
24772
24773         stdio: Work around compilation error due to renameat() on Solaris 10.
24774         * lib/stdio.in.h: Include <unistd.h> on Solaris.
24775         * lib/renameat.c: Don't include <unistd.h> here.
24776         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
24777         Reported by Paul Eggert and Eric Blake.
24778
24779 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
24780
24781         renameat: port to Solaris 10, which declares renameat in unistd.h
24782
24783         * lib/renameat.c: Include unistd.h before stdio.h, because
24784         Solaris 10 declares renameat in unistd.h.  Problem encountered
24785         when building GNU tar 1.24 on Solaris 10.
24786
24787 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24788
24789         fdopendir: fix C89 compilation
24790         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
24791         compilers.
24792
24793 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
24794
24795         inttostr: simplify by removing unnecessary redundancy
24796         * lib/anytostr.c: Don't include verify.h.
24797         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
24798         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
24799         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
24800         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
24801         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
24802         Likewise.
24803         * modules/inttostr (Depends-on): Remove 'verify'.
24804
24805 2010-10-23  Bruno Haible  <bruno@clisp.org>
24806
24807         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24808         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24809         Reported by Eric Blake.
24810
24811 2010-10-23  Bruno Haible  <bruno@clisp.org>
24812
24813         Tests: Fix LOCALE_JA on MirBSD 10.
24814         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24815         to an UTF-8 locale.
24816         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24818         Reported by Eric Blake.
24819
24820 2010-10-21  Bruno Haible  <bruno@clisp.org>
24821
24822         nl_langinfo test: Avoid test failure on NetBSD 5.
24823         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24824         Reported by Eric Blake.
24825
24826 2010-10-21  Eric Blake  <eblake@redhat.com>
24827
24828         c-stack: work around libsigsegv 2.8 bug
24829         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24830         overflow on at least PowerPC64.
24831
24832 2010-10-17  Bruno Haible  <bruno@clisp.org>
24833
24834         userspec: Drop redundant file.
24835         * modules/userspec (Files): Remove lib/inttostr.h.
24836
24837 2010-10-17  Bruno Haible  <bruno@clisp.org>
24838
24839         nl_langinfo tests: Silence some warnings.
24840         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24841         Reported by Jim Meyering.
24842
24843 2010-10-17  Bruno Haible  <bruno@clisp.org>
24844
24845         Make use of GCC's attribute __alloc_size__.
24846         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24847         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24848         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24849         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24850         __alloc_size__.
24851         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24852         Suggested by Jim Meyering.
24853
24854 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24855
24856         bootstrap: anchor .gitignore entries.
24857         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24858         with...
24859         (insert_vc_ignore): ... this new function, which prepends `/' to
24860         all .gitignore entries before passing them to
24861         insert_sorted_if_absent.
24862
24863 2010-10-16  Bruno Haible  <bruno@clisp.org>
24864
24865         nextafter: Fix configure check.
24866         * modules/nextafter (configure.ac): Correct expected prototype.
24867
24868 2010-10-16  Bruno Haible  <bruno@clisp.org>
24869
24870         termios: Update documentation.
24871         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24872
24873 2010-10-16  Bruno Haible  <bruno@clisp.org>
24874
24875         tests: Make them compile with TinyCC.
24876         * tests/test-strstr.c (main): Remove parentheses around array
24877         initializer.
24878
24879 2010-10-15  Eric Blake  <eblake@redhat.com>
24880
24881         ignore-value: make header idempotent
24882         * lib/ignore-value.h: Add double-inclusion guards.
24883         Reported by Stefan Berger.
24884
24885 2010-10-15  Jim Meyering  <meyering@redhat.com>
24886
24887         GNUmakefile: handle "stable" target, not "major"
24888         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24889         lists in maint.mk and announce-gen.  Without this, "make stable"
24890         would fail to ensure that $(VERSION) is up to date.
24891
24892 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24893
24894         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24895         & co.
24896
24897 2010-10-14  Bruno Haible  <bruno@clisp.org>
24898
24899         vasnprintf: Don't set errno to 0.
24900         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24901         block that sets it to 0.
24902         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24903
24904 2010-10-14  Bruno Haible  <bruno@clisp.org>
24905
24906         socketlib: Fix.
24907         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24908         gl_PREREQ_SYS_H_WINSOCK2.
24909         Reported by Ian Beckwith <ianb@erislabs.net>.
24910
24911 2010-10-13  Jim Meyering  <meyering@redhat.com>
24912
24913         test-select-stdin.c: avoid warn_unused_result warnings
24914         * tests/test-select-stdin.c: Include "macros.h".
24915         ASSERT that read and fflush succeed.
24916
24917 2010-10-13  Jim Meyering  <meyering@redhat.com>
24918
24919         git-version-gen: do require git-VC'd files in cwd
24920         * build-aux/git-version-gen: Reject a git version string
24921         if there are no commits associated with the current directory.
24922         This avoids an unlikely false-positive (unrelated dir whose parent
24923         repository also contains a tag matching v*), as pointed out
24924         by Giuseppe Scrivano in
24925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24926
24927 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24928
24929         argv-iter: omit nonconforming declaration
24930         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24931         enum arg_iter_err declaration, which doesn't conform to C99.
24932         Solaris 10 cc warns about this.
24933
24934 2010-10-13  Eric Blake  <eblake@redhat.com>
24935
24936         termios: fix compilation on mingw
24937         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24938         (gl_TERMIOS_H): Adjust it on mingw.
24939         * modules/termios (Makefile.am): Substitute new key.
24940         * lib/termios.in.h (includes): Make include_next conditional.
24941         * doc/posix-headers/termios.texi (termios.h): Update
24942         documentation.
24943         Reported by Daniel P. Berrange.
24944
24945 2010-10-13  Jim Meyering  <meyering@redhat.com>
24946
24947         git-version-gen: don't require that .git/ be in the current dir
24948         * build-aux/git-version-gen: Adjust this script so that it works
24949         when run from any working directory beneath the top-level .git/-
24950         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24951         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24952
24953         test-select: avoid warn_unused_result warnings
24954         * tests/test-select.c: Include "macros.h".
24955         ASSERT that each call to read, write, and pipe succeeds.
24956         While not technically required, also check each "close".
24957         * modules/select-tests (Files): Add tests/macros.h.
24958
24959         test-symlinkat: remove declaration of unused local
24960         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24961
24962         test-inttostr: avoid shadowing warnings
24963         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24964         and use malloc rather than the stack for the same reason as
24965         mentioned in the comment justifying the other allocation.
24966
24967 2010-10-11  Bruno Haible  <bruno@clisp.org>
24968
24969         stdlib: Allow multiple gnulib generated replacements to coexist.
24970         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24971         Reported by Sam Steingold <sds@gnu.org>.
24972
24973 2010-10-11  Jim Meyering  <meyering@redhat.com>
24974
24975         fix a documentation typo
24976         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24977
24978 2010-10-11  Eric Blake  <eblake@redhat.com>
24979
24980         futimens: work around Solaris 11 bug
24981         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24982         * tests/test-futimens.h (test_futimens): Enhance, rather than
24983         weaken test.
24984         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24985
24986 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24987
24988         Indentation.
24989         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24990         higher-level operators more to the left.
24991
24992 2010-10-11  Jim Meyering  <meyering@redhat.com>
24993
24994         test-futimens: avoid unwarranted test failure on Solaris 5.11
24995         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24996         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24997         because it tries to dereference the NULL name argument.
24998
24999 2010-10-11  Bruno Haible  <bruno@clisp.org>
25000
25001         Indentation.
25002         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
25003         indentation.
25004
25005 2010-10-11  Jim Meyering  <meyering@redhat.com>
25006
25007         spawn.in.h: make indentation consistent with parentheses
25008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
25009         Make indentation consistent with parentheses.
25010
25011 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
25012
25013         Fix mismatched parens in previous commit
25014         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
25015         parens.
25016
25017 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
25018
25019         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
25020
25021         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
25022         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
25023         * lib/malloca.c: Include "verify.h".
25024         (verify1): Remove, replacing with a verify call.
25025         * lib/relocwrapper.c (verify1): Likewise.
25026         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
25027         Likewise.
25028         * modules/malloca (Depends-on): Add 'verify'.
25029         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
25030         * modules/vasnprintf (Depends-on): Add 'verify'.
25031         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25032         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25033         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25034         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25035         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25036         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25037         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25038
25039         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
25040
25041         Formerly the style was sometimes 2*X - 1, because the C standard
25042         was wrongly thought to disallow ?: in integral constant expressions.
25043         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
25044         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
25045         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
25046         * lib/stdint.in.h (_verify_intmax_size): Likewise.
25047         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
25048         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
25049         verify that time_t cannot be floating.
25050
25051 2010-10-08  Eric Blake  <eblake@redhat.com>
25052
25053         time: enforce recent POSIX ruling that time_t is integral
25054         * lib/time.in.h (__time_t_must_be_integral): Detect any
25055         problematic systems, allowing the rest of gnulib to assume POSIX.
25056
25057 2010-10-08  Jim Meyering  <meyering@redhat.com>
25058
25059         fdopendir: fix a bug on systems lacking openat and /proc support
25060         OpenBSD 4.7 is one such system.  The most noticeable effect was
25061         failure of any application making nontrivial use of fts: rm, du,
25062         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
25063           ./rm: traversal failed: `a': Bad file descriptor
25064         Debugging that, you see that even though FD 6 was closed just
25065         prior to the opendir call in fd_clone_opendir, its resulting
25066         dir->dd_fd was 8, rather than the expected value of 6:
25067
25068         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
25069         93                close (fd);
25070         (gdb) n
25071         94                dir = fd_clone_opendir (dupfd);
25072         (gdb) n
25073         95                saved_errno = errno;
25074         (gdb) p dir->dd_fd
25075         $11 = 8
25076
25077         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
25078         The problem is that on OpenBSD, fd_clone_opendir has to resort
25079         to using the old-style save/restore CWD mechanism, due to its
25080         lack of openat/proc support, and *that* would steal the FD (6)
25081         that opendir was supposed to use.
25082
25083         The fix is to squirrel away the desired FD so that save_cwd uses a
25084         different one, and then free the dest FD right before calling opendir.
25085         That guarantees opendir will use the required file descriptor.
25086
25087         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
25088
25089 2010-10-08  Bruno Haible  <bruno@clisp.org>
25090
25091         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
25092         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
25093
25094 2010-10-08  Bruno Haible  <bruno@clisp.org>
25095
25096         nanosleep: Make replacement POSIX compliant.
25097         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
25098         is out of range.
25099         Reported by Jim Meyering.
25100
25101 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
25102
25103         bootstrap: add hook for altering gnulib.mk, for Bison
25104         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
25105         the Bison bootstrapping process can rewrite file names and variables
25106         in this file before later parts of 'bootstrap' use the file.
25107         Bison wants to include lib/gnulib.mk from the top-level makefile,
25108         so it needs the file names in this file to be relative to the top
25109         level, not relative to lib; plus it needs variable names to be
25110         rewritten.
25111         (slurp): Use the new function.
25112
25113         bootstrap: reformat for readability
25114         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
25115
25116 2010-10-08  Eric Blake  <eblake@redhat.com>
25117
25118         docs: update cygwin progress
25119         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
25120         1.7.7.
25121         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
25122         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
25123         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
25124         * doc/posix-functions/carg.texi (carg): Likewise.
25125         * doc/posix-functions/cargf.texi (cargf): Likewise.
25126         * doc/posix-functions/casin.texi (casin): Likewise.
25127         * doc/posix-functions/casinf.texi (casinf): Likewise.
25128         * doc/posix-functions/casinh.texi (casinh): Likewise.
25129         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
25130         * doc/posix-functions/catan.texi (catan): Likewise.
25131         * doc/posix-functions/catanf.texi (catanf): Likewise.
25132         * doc/posix-functions/catanh.texi (catanh): Likewise.
25133         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
25134         * doc/posix-functions/ccos.texi (ccos): Likewise.
25135         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
25136         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
25137         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
25138         * doc/posix-functions/cexp.texi (cexp): Likewise.
25139         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
25140         * doc/posix-functions/cimag.texi (cimag): Likewise.
25141         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
25142         * doc/posix-functions/clog.texi (clog): Likewise.
25143         * doc/posix-functions/clogf.texi (clogf): Likewise.
25144         * doc/posix-functions/conj.texi (conj): Likewise.
25145         * doc/posix-functions/conjf.texi (conjf): Likewise.
25146         * doc/posix-functions/cpow.texi (cpow): Likewise.
25147         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
25148         * doc/posix-functions/cproj.texi (cproj): Likewise.
25149         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
25150         * doc/posix-functions/creal.texi (creal): Likewise.
25151         * doc/posix-functions/crealf.texi (crealf): Likewise.
25152         * doc/posix-functions/csin.texi (csin): Likewise.
25153         * doc/posix-functions/csinf.texi (csinf): Likewise.
25154         * doc/posix-functions/csinh.texi (csinh): Likewise.
25155         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
25156         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
25157         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
25158         * doc/posix-functions/ctan.texi (ctan): Likewise.
25159         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
25160         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
25161         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
25162         * doc/posix-headers/complex.texi (complex.h): Likewise.
25163
25164 2010-10-07  Jim Meyering  <meyering@redhat.com>
25165
25166         parse-datetime: avoid compilation failure on OpenBSD 4.7
25167         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
25168         This works around a compilation failure on OpenBSD 4.7:
25169         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
25170
25171 2010-10-07  Eric Blake  <eblake@redhat.com>
25172
25173         docs: update cygwin progress
25174         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
25175         1.7.6.
25176         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
25177         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
25178         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
25179         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
25180         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
25181         Likewise.
25182         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
25183         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
25184         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
25185         Likewise.
25186         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
25187         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
25188         Likewise.
25189         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
25190         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
25191         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
25192         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
25193         Likewise.
25194         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
25195         Likewise.
25196         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
25197
25198         docs: update parse-datetime history
25199         * doc/parse-datetime.texi (Authors of parse_datetime): Better
25200         documentation of this function's history and alternatives.
25201
25202         cygwin: use more robust version check
25203         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
25204         exclude an eventual cygwin 1.9.1.
25205         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25206         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25207         (gl_FUNC_STRCASESTR): Likewise.
25208         Reported by Bruno Haible.
25209
25210 2010-10-06  Bruno Haible  <bruno@clisp.org>
25211
25212         string, sys_select: Avoid #including large headers unless necessary.
25213         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
25214         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
25215         OSF/1, BeOS, Haiku.
25216         Reported by Jim Meyering.
25217
25218 2010-10-05  Eric Blake  <eblake@redhat.com>
25219
25220         memmem, strstr, strcasestr: fix bug with long periodic needle
25221         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
25222         periodic needle having false positive.
25223         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
25224         and cygwin 1.7.7.
25225         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
25226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
25227         (gl_FUNC_STRCASESTR): Likewise.
25228         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25229         * tests/test-memmem.c (main): Expose the bug.
25230         * tests/test-strcasestr.c (main): Likewise.
25231         * tests/test-strstr.c (main): Likewise.
25232         * tests/test-c-strcasestr.c (main): Likewise.
25233         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
25234         * doc/posix-functions/strstr.texi (strstr): Likewise.
25235         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
25236         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
25237
25238 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25239
25240         parse-datetime: do some more renaming
25241         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
25242         parse_datetime, not get_date.  Mention the renaming.
25243         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
25244         in comments.
25245         * m4/bison.m4: Likewise.
25246
25247 2010-10-05  Eric Blake  <eblake@redhat.com>
25248
25249         parse-datetime: better name than get_date
25250         * NEWS: Reword the deprecation notice.
25251         * modules/get_date: Rename to modules/parse-datetime.
25252         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
25253         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
25254         * lib/get_date.y: Rename to lib/parse-datetime.y.
25255         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
25256         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
25257         * doc/getdate.texi: Provide fallback wrapper.
25258         * lib/getdate.h: Move guts, and wrap...
25259         * lib/parse-datetime.h: ...new file.
25260         * lib/parse-datetime.y (get_date): Rename...
25261         (parse_datetime): ...to this.
25262         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
25263         (gl_PARSE_DATETIME): ...to this.
25264         * doc/posix-functions/getdate.texi (get_date): Provide fallback
25265         documentation.
25266         * modules/getdate (Files): Provide fallback docs and header.
25267         (Notice, Depends-on): Update references.
25268         * tests/test-parse-datetime.c: Likewise.
25269         * DEPENDENCIES: Likewise.
25270         * MODULES.html.sh (Date and time <time.h>): Likewise.
25271         * doc/parse-datetime.texi (Date input formats)
25272         (Authors of parse_datetime): Likewise.
25273         * modules/parse-datetime (Files, configure.ac, Makefile.am)
25274         (Include): Likewise.
25275         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
25276         * gnulib-tool: Likewise.
25277         * m4/bison.m4 (gl_BISON): Likewise.
25278         Suggested by Bruno Haible.
25279
25280 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
25281
25282         more ports to Solaris tr, which needs [] around ranges
25283         * gnulib-tool: Solaris tr needs [] around ranges.
25284         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25285         * tests/test-pipe-filter-gi1.c (main): Likewise.
25286         * tests/test-pipe-filter-ii1.c (main): Likewise.
25287
25288 2010-10-05  Eric Blake  <eblake@redhat.com>
25289
25290         bootstrap: fix Solaris regression
25291         * build-aux/bootstrap (check_versions): Solaris tr still needs []
25292         around ranges.
25293         Reported by Pádraig Brady.
25294
25295         bootstrap: work with pkg-config
25296         * build-aux/bootstrap (check_versions): Also transliterate - in
25297         prerequisite name.
25298         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
25299         prerequisites that were already found, to avoid confusion.
25300         Reported by Justin Clift.
25301
25302         faccessat: remove unused wrappers
25303         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
25304         presence of these wrappers dragged in -lgen on Solaris.
25305         Reported by Clemens Brogi; fix suggested by Paul Eggert.
25306
25307 2010-10-05  Jim Meyering  <meyering@redhat.com>
25308
25309         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
25310         * Makefile (sc_pragma_columns): New syntax-check rule.
25311
25312 2010-10-04  Bruno Haible  <bruno@clisp.org>
25313
25314         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
25315         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
25316         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
25317         Reported by Bruce Korb and Eric Blake.
25318
25319 2010-10-04  Bruno Haible  <bruno@clisp.org>
25320
25321         threadlib: Make option --with-libpth-prefix work.
25322         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
25323         use $LIBPTH, not just -lpth.
25324
25325 2010-10-04  Bruno Haible  <bruno@clisp.org>
25326
25327         Avoid line length limitation from HP NonStop system header files.
25328         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
25329         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
25330         * lib/ctype.in.h: Likewise.
25331         * lib/dirent.in.h: Likewise.
25332         * lib/errno.in.h: Likewise.
25333         * lib/fcntl.in.h: Likewise.
25334         * lib/float.in.h: Likewise.
25335         * lib/getopt.in.h: Likewise.
25336         * lib/iconv.in.h: Likewise.
25337         * lib/inttypes.in.h: Likewise.
25338         * lib/langinfo.in.h: Likewise.
25339         * lib/locale.in.h: Likewise.
25340         * lib/math.in.h: Likewise.
25341         * lib/netdb.in.h: Likewise.
25342         * lib/netinet_in.in.h: Likewise.
25343         * lib/poll.in.h: Likewise.
25344         * lib/pthread.in.h: Likewise.
25345         * lib/pty.in.h: Likewise.
25346         * lib/sched.in.h: Likewise.
25347         * lib/se-selinux.in.h: Likewise.
25348         * lib/search.in.h: Likewise.
25349         * lib/signal.in.h: Likewise.
25350         * lib/spawn.in.h: Likewise.
25351         * lib/stdarg.in.h: Likewise.
25352         * lib/stddef.in.h: Likewise.
25353         * lib/stdint.in.h: Likewise.
25354         * lib/stdio.in.h: Likewise.
25355         * lib/stdlib.in.h: Likewise.
25356         * lib/string.in.h: Likewise.
25357         * lib/strings.in.h: Likewise.
25358         * lib/sys_file.in.h: Likewise.
25359         * lib/sys_ioctl.in.h: Likewise.
25360         * lib/sys_select.in.h: Likewise.
25361         * lib/sys_socket.in.h: Likewise.
25362         * lib/sys_stat.in.h: Likewise.
25363         * lib/sys_time.in.h: Likewise.
25364         * lib/sys_times.in.h: Likewise.
25365         * lib/sys_utsname.in.h: Likewise.
25366         * lib/sys_wait.in.h: Likewise.
25367         * lib/sysexits.in.h: Likewise.
25368         * lib/termios.in.h: Likewise.
25369         * lib/time.in.h: Likewise.
25370         * lib/unistd.in.h: Likewise.
25371         * lib/wchar.in.h: Likewise.
25372         * lib/wctype.in.h: Likewise.
25373         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
25374         * modules/ctype (Makefile.am): Likewise.
25375         * modules/dirent (Makefile.am): Likewise.
25376         * modules/errno (Makefile.am): Likewise.
25377         * modules/fcntl-h (Makefile.am): Likewise.
25378         * modules/float (Makefile.am): Likewise.
25379         * modules/getopt-posix (Makefile.am): Likewise.
25380         * modules/iconv-h (Makefile.am): Likewise.
25381         * modules/inttypes (Makefile.am): Likewise.
25382         * modules/langinfo (Makefile.am): Likewise.
25383         * modules/locale (Makefile.am): Likewise.
25384         * modules/math (Makefile.am): Likewise.
25385         * modules/netdb (Makefile.am): Likewise.
25386         * modules/netinet_in (Makefile.am): Likewise.
25387         * modules/poll-h (Makefile.am): Likewise.
25388         * modules/pthread (Makefile.am): Likewise.
25389         * modules/pty (Makefile.am): Likewise.
25390         * modules/sched (Makefile.am): Likewise.
25391         * modules/search (Makefile.am): Likewise.
25392         * modules/selinux-h (Makefile.am): Likewise.
25393         * modules/signal (Makefile.am): Likewise.
25394         * modules/spawn (Makefile.am): Likewise.
25395         * modules/stdarg (Makefile.am): Likewise.
25396         * modules/stddef (Makefile.am): Likewise.
25397         * modules/stdint (Makefile.am): Likewise.
25398         * modules/stdio (Makefile.am): Likewise.
25399         * modules/stdlib (Makefile.am): Likewise.
25400         * modules/string (Makefile.am): Likewise.
25401         * modules/strings (Makefile.am): Likewise.
25402         * modules/sys_file (Makefile.am): Likewise.
25403         * modules/sys_ioctl (Makefile.am): Likewise.
25404         * modules/sys_select (Makefile.am): Likewise.
25405         * modules/sys_socket (Makefile.am): Likewise.
25406         * modules/sys_stat (Makefile.am): Likewise.
25407         * modules/sys_time (Makefile.am): Likewise.
25408         * modules/sys_times (Makefile.am): Likewise.
25409         * modules/sys_utsname (Makefile.am): Likewise.
25410         * modules/sys_wait (Makefile.am): Likewise.
25411         * modules/sysexits (Makefile.am): Likewise.
25412         * modules/termios (Makefile.am): Likewise.
25413         * modules/time (Makefile.am): Likewise.
25414         * modules/unistd (Makefile.am): Likewise.
25415         * modules/wchar (Makefile.am): Likewise.
25416         * modules/wctype (Makefile.am): Likewise.
25417
25418 2010-10-04  Bruno Haible  <bruno@clisp.org>
25419
25420         read-file tests: Avoid a test failure on NonStop Kernel.
25421         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
25422         a regular file.
25423         Reported by Joachim Schmitz <schmitz@hp.com>.
25424
25425 2010-10-03  Bruno Haible  <bruno@clisp.org>
25426
25427         gnulib-tool: Fixes for --create-testdir with --libtool.
25428         * gnulib-tool (func_get_automake_snippet): Don't augment
25429         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
25430         an executable.
25431         (func_create_testdir): Handle module 'alloca' like func_import.
25432         Reported by Bruce Korb <bruce.korb@gmail.com>.
25433
25434 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
25435
25436         Avoid some lines longer than 80 characters.
25437         * lib/stdint.in.h: Break long comment lines.
25438         * lib/math.in.h: Likewise.
25439         (_GL_NUM_UINT_WORDS): New macro, for readability.
25440         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
25441         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
25442         * lib/stdlib.in.h: Likewise.
25443         * lib/spawn.in.h: Likewise.
25444         * lib/sys_socket.in.h: Update an URL.
25445         * lib/sys_stat.in.h: Break long line.
25446
25447 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
25448
25449         Improve pmccabe2html.
25450         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
25451         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
25452         when the sources change. Remove the line in the HTML about "Used
25453         ranges" (which implied that there might be other unused ranges),
25454         rename "Resume" to "Summary" (easier to understand for more users).
25455         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
25456         styles, and some unnecessary blank lines.
25457
25458 2010-10-03  Bruno Haible  <bruno@clisp.org>
25459             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
25460
25461         acl: Add support for ACLs on NonStop Kernel.
25462         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
25463         Check whether the function aclsort() exists.
25464         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
25465         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
25466         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25467         (acl_nontrivial [HAVE_ACLSORT]: New function.
25468         (file_has_acl): Implement for NonStop Kernel.
25469         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25470         (qset_acl): Implement for NonStop Kernel.
25471         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
25472         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
25473         (main): Implement for NonStop Kernel.
25474         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
25475         Kernel. Handle this flavor.
25476         * tests/test-set-mode-acl.sh: Likewise.
25477         * tests/test-copy-acl.sh: Likewise.
25478         * tests/test-copy-file.sh: Likewise.
25479
25480 2010-10-03  Bruno Haible  <bruno@clisp.org>
25481
25482         Info about ACLs on NonStop Kernel.
25483         * doc/acl-resources.txt: Add info about NonStop Kernel.
25484         References by Joachim Schmitz <schmitz@hp.com>.
25485
25486 2010-10-02  Bruno Haible  <bruno@clisp.org>
25487
25488         Define missing EDQUOT on NonStop Kernel.
25489         * lib/errno.in.h (EDQUOT): Assign a value if missing.
25490         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
25491         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
25492         missing.
25493         * doc/posix-headers/errno.texi: Mention the NSK bug.
25494         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
25495         Reported by Joachim Schmitz <schmitz@hp.com>.
25496
25497 2010-10-02  Bruno Haible  <bruno@clisp.org>
25498
25499         Update doc for POSIX:2008.
25500         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
25501         Update URL of POSIX specification.
25502
25503 2010-10-02  Bruno Haible  <bruno@clisp.org>
25504
25505         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
25506         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
25507         from gnulib, not from Automake.
25508
25509 2010-10-02  Bruno Haible  <bruno@clisp.org>
25510
25511         New module 'system-posix'.
25512         * modules/system-posix: New file.
25513         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
25514         module is present.
25515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25516         GNULIB_SYSTEM_POSIX.
25517         * modules/stdlib (Depends-on): Remove sys_wait.
25518         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
25519         * doc/posix-functions/system.texi: Mention the new module.
25520         * doc/posix-headers/stdlib.texi: Likewise.
25521         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
25522         define test_sys_wait_macros to a no-op.
25523         Reported by Sam Steingold <sds@gnu.org>.
25524
25525 2010-09-30  Bruno Haible  <bruno@clisp.org>
25526
25527         More renaming from 'getdate' to 'get_date'.
25528         * doc/get_date.texi: Renamed from doc/getdate.texi.
25529         * modules/get_date (Files): Update.
25530         * MODULES.html.sh (Date and time <time.h>): Update.
25531         * DEPENDENCIES: Update.
25532         * gnulib-tool: Update comment.
25533         * m4/bison.m4 (gl_BISON): Likewise.
25534         * m4/get_date.m4 (gl_GET_DATE): Likewise.
25535
25536 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
25537
25538         bootstrap: support ACLOCAL_FLAGS during aclocal
25539         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
25540         can add additional -I dir for third-party .m4 files.
25541
25542 2010-09-30  Eric Blake  <eblake@redhat.com>
25543
25544         bootstrap: use glibtoolize on MacOS
25545         * build-aux/bootstrap (check_versions): Convert libtool into
25546         libtoolize.
25547         (tool search): Move libtool check earlier, and look for
25548         glibtoolize for MacOS.
25549         (gnulib_tool_options): Auto-add --libtool when appropriate.
25550         Reported by Justin Clift.
25551
25552         poll: fix typo that broke test on MacOS
25553         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
25554         Reported by Justin Clift.
25555
25556         getdate: rename to get_date
25557         Note: getdate.h is not renamed, to minimize client impact.
25558         * modules/getdate: Mark obsolete.  Move old contents...
25559         * modules/get_date: ...to new module name.
25560         * modules/getdate-tests: Move...
25561         * modules/get_date-tests: ...here.
25562         * m4/getdate.m4: Move...
25563         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
25564         * lib/getdate.y: Move...
25565         * lib/get_date.y: ...here.
25566         * tests/test-getdate.c: Move...
25567         * tests/test-get_date.c: ...here.
25568         * doc/posix-functions/getdate.texi (getdate): Update name.
25569         * NEWS: Mention the change.
25570
25571 2010-09-29  Bruno Haible  <bruno@clisp.org>
25572
25573         Separate the module 'waitpid' from the module 'sys_wait'.
25574         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
25575         present.
25576         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
25577         gl_MODULE_INDICATOR_FOR_TESTS.
25578         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
25579         * modules/sys_wait (Depends-on): Remove waitpid.
25580         (Makefile.am): Substitute GNULIB_WAITPID.
25581         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
25582         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
25583         signature only if the 'waitpid' module is present.
25584         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
25585         * NEWS: Mention the change.
25586         * modules/grantpt (Depends-on): Add waitpid.
25587         * modules/wait-process (Depends-on): Likewise.
25588
25589 2010-09-29  Bruno Haible  <bruno@clisp.org>
25590
25591         More tests for module 'sys_wait'.
25592         * modules/sys_wait-c++-tests: New file.
25593         * tests/test-sys_wait-c++.cc: New file.
25594         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
25595         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25596
25597 2010-09-29  Bruno Haible  <bruno@clisp.org>
25598
25599         New module 'waitpid'.
25600         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
25601         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
25602         Don't include <process.h>.
25603         (waitpid): Declare only, using modern idiom.
25604         * m4/waitpid.m4: New file.
25605         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
25606         * modules/waitpid: New file.
25607         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
25608         (Makefile.am): Update.
25609         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
25610
25611 2010-09-28  Bruno Haible  <bruno@clisp.org>
25612
25613         poll: Assume ANSI C.
25614         * lib/poll.c (poll): Use an ANSI C declaration.
25615
25616 2010-09-28  Bruno Haible  <bruno@clisp.org>
25617
25618         poll-h: Create poll.h on all platforms.
25619         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
25620         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
25621         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
25622         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
25623         (gl_REPLACE_POLL_H): Don't set POLL_H.
25624         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
25625         * modules/poll-h (Depends-on): Add include_next.
25626         (Makefile.am): Create poll.h unconditionally. Substitute also
25627         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
25628
25629 2010-09-28  Bruno Haible  <bruno@clisp.org>
25630
25631         Tests for module 'poll-h'.
25632         * modules/poll-h-c++-tests: New file.
25633         * tests/test-poll-h-c++.cc: New file.
25634
25635         Tests for module 'poll-h'.
25636         * modules/poll-h-tests: New file.
25637         * tests/test-poll-h.c: New file.
25638
25639 2010-09-28  Bruno Haible  <bruno@clisp.org>
25640
25641         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
25642         * modules/poll-h (Depends-on): Add 'extensions'.
25643
25644 2010-09-28  Bruno Haible  <bruno@clisp.org>
25645
25646         New module 'poll-h'.
25647         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
25648         (poll): Use modern idiom.
25649         * modules/poll-h: New file.
25650         * modules/poll (Files): Remove lib/poll.in.h.
25651         (Depends-on): Add poll-h.
25652         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
25653         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
25654         * m4/poll_h.m4: New file.
25655         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
25656         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
25657         and invoke gl_REPLACE_POLL_H.
25658         * lib/poll.c: Use common idiom.
25659         * tests/test-poll.c: Likewise.
25660         * doc/posix-headers/poll.texi: Mention the poll-h module.
25661         Suggested by Eric Blake.
25662
25663 2010-09-26  Bruno Haible  <bruno@clisp.org>
25664
25665         sys_wait: Implement WSTOPSIG.
25666         * lib/sys_wait.in.h (WSTOPSIG): New macro.
25667         Reported by Simon Josefsson.
25668
25669 2010-09-26  Simon Josefsson  <simon@josefsson.org>
25670
25671         stdlib, sys_wait: Avoid compilation error on mingw.
25672         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
25673
25674 2010-09-26  Bruno Haible  <bruno@clisp.org>
25675
25676         stdlib tests: Avoid code duplication.
25677         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
25678         * modules/sys_wait-tests (Files): Likewise.
25679         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
25680         * tests/test-stdlib.c: Include test-sys_wait.h.
25681         (main): Invoke test_sys_wait_macros.
25682         * tests/test-sys_wait.c: Include test-sys_wait.h.
25683         (main): Invoke test_sys_wait_macros.
25684
25685 2010-09-25  Simon Josefsson  <simon@josefsson.org>
25686
25687         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
25688         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
25689         sure Windows sockets are working before calling getaddrinfo.
25690         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
25691         * doc/gnulib.texi (Windows sockets): Fix typo.
25692
25693 2010-09-25  Bruno Haible  <bruno@clisp.org>
25694
25695         Tests for module 'regex-quote'.
25696         * modules/regex-quote-tests: New file.
25697         * tests/test-regex-quote.c: New file.
25698
25699         New module 'regex-quote'.
25700         * lib/regex-quote.h: New file.
25701         * lib/regex-quote.c: New file.
25702         * modules/regex-quote: New file.
25703         Suggested by Reuben Thomas <rrt@sc3d.org>.
25704
25705 2010-09-24  Bruno Haible  <bruno@clisp.org>
25706
25707         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
25708         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
25709
25710 2010-09-23  Bruno Haible  <bruno@clisp.org>
25711
25712         setenv: Relax license.
25713         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
25714         Blake.
25715         Requested by Eric Blake.
25716
25717 2010-09-22  Bruno Haible  <bruno@clisp.org>
25718
25719         termios: Relax license.
25720         * modules/termios (License): Change to LGPLv2+.
25721         Requested by Eric Blake.
25722
25723 2010-09-22  Bruno Haible  <bruno@clisp.org>
25724
25725         threadlib: Allow the package to change the default to 'no'.
25726         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
25727         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
25728         Reported by Paul Eggert.
25729
25730 2010-09-22  Pádraig Brady  <P@draigbrady.com>
25731             Bruno Haible  <bruno@clisp.org>
25732
25733         Fix endless loop in mbmemcasecoll.
25734         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
25735         byte.
25736         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
25737
25738 2010-09-22  Bruno Haible  <bruno@clisp.org>
25739
25740         Tests for module 'memcoll'.
25741         * modules/memcoll-tests: New file.
25742         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
25743
25744         memcoll, xmemcoll: Clarify size vs. length.
25745         * modules/memcoll.c (memcoll0): Clarify specification.
25746         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
25747         passed to collate_error.
25748
25749 2010-09-22  Bruno Haible  <bruno@clisp.org>
25750
25751         Tests for module 'memcasecmp'.
25752         * modules/memcasecmp-tests: New file.
25753         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
25754
25755 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
25756
25757         * lib/pthread.in.h: Add split double-inclusion guard, and include
25758         system <pthread.h> if there is one.  Use @@-style as in other
25759         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
25760         pthread.h doesn't.
25761         (pthread_mutexattr_destroy, pthread_mutexattr_init):
25762         (pthread_mutexattr_settype, pthread_mutex_trylock):
25763         New static inline functions, if there's no system <pthread.h>.
25764         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
25765         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
25766         Approximate with mutexes if the system lacks spinlocks, as in
25767         MacOS.
25768         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
25769         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
25770         @@-style.  Check for spinlocks separately.
25771         (gl_PTHREAD_DEFAULTS): New macro.
25772         * modules/pthread: Redo to use a more typical style for in.h files.
25773
25774 2010-09-21  Eric Blake  <eblake@redhat.com>
25775
25776         net_if: enhance tests
25777         * tests/test-net_if.c (main): Move signature checks earlier.
25778         Print failures to stderr.
25779         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
25780         Document the bug that we do not yet fix.
25781
25782 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25783
25784         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
25785         about gnulib, not GSS.
25786
25787 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
25788
25789         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
25790         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
25791         for Emacs.
25792         * build-aux/pmccabe2html: Make Makefile.am example code more
25793         cut-and-paste friendly.
25794
25795 2010-09-21  Simon Josefsson  <simon@josefsson.org>
25796
25797         * tests/test-net_if.c: New file.
25798         * modules/net_if-tests: New file.
25799
25800 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
25801
25802         pthread: add pthread_spin_destroy
25803         * lib/pthread.in.h (pthread_spin_destroy): New function.
25804
25805 2010-09-19  Bruno Haible  <bruno@clisp.org>
25806
25807         gnulib-tool: Fix --help output.
25808         * gnulib-tool (func_usage): Fix help message.
25809         Reported by Reuben Thomas <rrt@sc3d.org>.
25810
25811 2010-09-18  Jim Meyering  <meyering@redhat.com>
25812
25813         maint.mk: avoid unexpanded \n in two diagnostics
25814         * top/maint.mk (sc_prohibit_always_true_header_tests):
25815         Don't use a literal \n in a halt=... assignment.  It would not be
25816         expanded, and the two \n bytes would appear in the diagnostic output
25817         rather than the desired newline.  Use halt=$$(printf ... instead.
25818         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25819
25820 2010-09-18  Bruno Haible  <bruno@clisp.org>
25821
25822         netinet_in: Doc tweak.
25823         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25824         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25825
25826 2010-09-18  Jim Meyering  <meyering@redhat.com>
25827
25828         init.sh: correct an outdated comment
25829         * tests/init.sh (create_exe_shims_):  s/function/alias/
25830
25831         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25832         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25833         a file named "*.exe" is removed between the glob expansion and the
25834         processing of that oddly named file.
25835
25836 2010-09-17  Eric Blake  <eblake@redhat.com>
25837
25838         mirbsd: add some more support
25839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25840         in BSD family.
25841         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25842         devices as OpenBSD.
25843         * m4/host-os.m4 (mirbsd): Add MirBSD.
25844
25845         tests: fix unportable assumption on sys/wait.h
25846         * tests/test-sys_wait.c (main): Relax test.
25847         * tests/test-stdlib.c (main): Likewise.
25848
25849         init.sh: accomodate directory with no .exes
25850         * tests/init.sh: Accomodate directory containing only scripts.
25851
25852         tests: avoid compiler warning
25853         * tests/test-stdlib.c (main): Use the variable.
25854
25855         fdutimens, fdutimensat: update signature, again
25856         * lib/utimens.h (gl_futimens): Delete, and move signature...
25857         (fdutimens): ...here.
25858         (fdutimensat): Rearrange signature.
25859         (lutimensat): Rename variable for clarity.
25860         * lib/fdutimensat.c (fdutimensat): Update signature.
25861         * lib/utimens.c (fdutimens): Likewise.
25862         (gl_futimens): Delete.
25863         (utimens, lutimens): Update callers.
25864         * lib/futimens.c (futimens): Likewise.
25865         * tests/test-fdutimensat.c: Likewise.
25866         * tests/test-utimens.c: Likewise.
25867         * tests/test-futimens.h: Update comment.
25868         * NEWS: Mention this.
25869         Suggested by Paul Eggert.
25870
25871 2010-09-17  Bruno Haible  <bruno@clisp.org>
25872
25873         Take over the maintenance of some older macros from Autoconf.
25874         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25875         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25876         GNU Autoconf.
25877         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25878         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25879
25880 2010-09-17  Eric Blake  <eblake@redhat.com>
25881
25882         fdutimensat: drop atflag validation
25883         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25884         with valid fd, to close a race scenario where futimens is
25885         unsupported and FILE was replaced by a symlink.
25886         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25887         accordingly.
25888         Suggested by Paul Eggert.
25889
25890 2010-09-16  Bruno Haible  <bruno@clisp.org>
25891
25892         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25893         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25894
25895 2010-09-16  Bruno Haible  <bruno@clisp.org>
25896
25897         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25898         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25899         login_tty exists.
25900         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25901
25902 2010-09-16  Bruno Haible  <bruno@clisp.org>
25903
25904         login_tty: Make the replacement code work on BSD systems.
25905         * lib/login_tty.c: Include <sys/ioctl.h>.
25906         (login_tty): Use ioctl TIOCSCTTY when available.
25907         * modules/login_tty (Depends-on): Add sys_ioctl.
25908         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25909
25910 2010-09-16  Bruno Haible  <bruno@clisp.org>
25911
25912         login_tty: Stricter unit test.
25913         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25914         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25915         and tcgetsid() after login_tty.
25916         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25917
25918 2010-09-16  Bruno Haible  <bruno@clisp.org>
25919
25920         New module 'tcgetsid'.
25921         * lib/tcgetsid.c: New file.
25922         * m4/tcgetsid.m4: New file.
25923         * modules/tcgetsid: New file.
25924         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25925         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25926         GNULIB_TCGETSID, HAVE_TCGETSID.
25927         * lib/termios.in.h: Include <sys/types.h>.
25928         (tcgetsid): New declaration.
25929         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25930         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25931         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25932         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25933
25934 2010-09-16  Bruno Haible  <bruno@clisp.org>
25935
25936         Tests for module 'termios'.
25937         * modules/termios-c++-tests: New file.
25938         * modules/termios-tests: New file.
25939         * tests/test-termios-c++.cc: New file.
25940         * tests/test-termios.c: New file.
25941
25942         New module 'termios'.
25943         * modules/termios: New file.
25944         * lib/termios.in.h: New file.
25945         * m4/termios_h.m4: New file.
25946         * doc/posix-headers/termios.texi: Mention the new module.
25947
25948 2010-09-16  Eric Blake  <eblake@redhat.com>
25949
25950         fdutimensat: add an atflag parameter
25951         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25952         * lib/utimens.h (fdutimensat): Update prototype.
25953         * tests/test-fdutimensat.c: Adjust test to match.
25954         * NEWS: Document the change.
25955         Suggested by Paul Eggert.
25956
25957 2010-09-16  Bruno Haible  <bruno@clisp.org>
25958
25959         Fix typos in comments.
25960         * lib/striconveh.h: Fix typo in comment.
25961         * lib/login_tty.c (login_tty): Likewise.
25962
25963 2010-09-15  Bruno Haible  <bruno@clisp.org>
25964
25965         stdlib: clarify MirBSD WEXITSTATUS bug
25966         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25967         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25968
25969 2010-09-15  Eric Blake  <eblake@redhat.com>
25970
25971         stdlib: work around MirBSD WEXITSTATUS bug
25972         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25973         * modules/stdlib (Depends-on): Add sys_wait.
25974         * tests/test-sys_wait.c (main): Enhance test.
25975         * tests/test-stdlib.c (main): Likewise.
25976         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25977
25978         docs: mention MacOS issue with WEXITSTATUS(constant)
25979         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25980         issue.
25981         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25982
25983         strnlen: add tests
25984         * modules/strnlen-tests: New file.
25985         * tests/test-strnlen.c: Likewise.
25986
25987 2010-09-14  Bruno Haible  <bruno@clisp.org>
25988
25989         unistr/base: Avoid link errors when module 'libunistring' is also used.
25990         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25991         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25992         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25993         Declare also when HAVE_LIBUNISTRING is set.
25994         Reported by Pádraig Brady <P@draigbrady.com>.
25995
25996 2010-09-14  Eric Blake  <eblake@redhat.com>
25997
25998         test-rawmemchr: make more robust
25999         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
26000         (Depends-on, configure.ac): Add needed prerequisites to use it.
26001         * modules/memchr-tests (Files, Depends-on, configure.ac):
26002         Likewise, to avoid implicit reliance on memchr module prereqs.
26003         * tests/test-memchr.c (main): Ensure proper masking.
26004         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
26005         reads.
26006
26007         memchr: detect glibc Alpha bug
26008         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
26009         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
26010         Alpha.
26011         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
26012         * tests/test-memchr.c (main): Enhance test.
26013         Reported by Nelson H. F. Beebe.
26014
26015 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26016
26017         fts, getcwd, glob: audit for dirfd returning -1
26018         * lib/fts.c (opendir): Remove #define; no longer used.
26019         (opendirat): New arg PDIR_FD.  All callers changed.
26020         (fts_build, _opendir2): Use new opendirat to avoid the need for
26021         dirfd, or for checking whether dirfd returns a negative value.
26022         Don't use opendir; always use openat followed by fdopendir.
26023         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
26024         it.
26025         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
26026         returns -1 here.
26027         * modules/fts (Depends-on): Remove dirfd.
26028         * modules/getcwd (Depends-on): Likewise.
26029
26030 2010-09-13  Eric Blake  <eblake@redhat.com>
26031
26032         float: fix broken MirBSD header
26033         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
26034         * doc/posix-headers/float.texi (float.h): Document it.
26035
26036 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
26037
26038         fts: use O_NOFOLLOW to avoid race condition when opening a directory
26039         * lib/fts.c (opendirat): New arg extra_flags.
26040         (__opendir2): Use it to avoid following symlinks when opening
26041         a directory, if symlinks are not supposed to be followed.  See
26042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
26043
26044         fdopendir: preserve argument fd before returning
26045         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
26046         (fdopendir_with_dup, fd_clone_opendir): New static functions.
26047         (fdopendir): Use them, arranging for FD to be open to the same
26048         directory that it was when it started.  (It might be temporarily
26049         closed while fdopendir is running, so this not thread- or
26050         signal-safe.)  Be careful to do the right thing even when file
26051         descriptors are scarce and dup fails with errno == EMFILE.  See
26052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
26053
26054 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
26055
26056         regex: Pass the system regex if its only problem is 32-bit regoff_t.
26057         * NEWS: Document change.
26058         * m4/regex.m4: Disable test for regoff_t size.
26059
26060 2010-09-13  Jim Meyering  <meyering@redhat.com>
26061
26062         fts: don't operate on an invalid file descriptor after failed dup
26063         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
26064         negative file descriptor.
26065
26066 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
26067
26068         savedir: add streamsavedir, deprecate fdsavedir
26069         * NEWS: Mention deprecation of fdsavedir.
26070         * lib/savedir.c (streamsavedir): New extern function, whose name
26071         ends in "savedir" to be consistent with the others.  This differs
26072         from savedirstream in that it doesn't close its argument.  The
26073         next version of GNU tar will use this instead of fdsavedir, to
26074         avoid some race conditions and conserve file descriptors.
26075         (savedirstream): Reimplement as a wrapper around streamsavedir.
26076         (fdsavedir): Add a comment deprecating this function.  As far as
26077         I know, only GNU tar used it, and GNU tar doesn't need it any more.
26078         * lib/savedir.h (streamsavedir): New decl.
26079         (fdsavedir): Add a comment deprecating this.
26080
26081 2010-09-10  Bruno Haible  <bruno@clisp.org>
26082
26083         langinfo: Fix last commit.
26084         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
26085         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
26086         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26087
26088 2010-09-10  Bruno Haible  <bruno@clisp.org>
26089
26090         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
26091         * lib/progreloc.c (O_EXEC): Define fallback.
26092
26093 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
26094
26095         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
26096         * NEWS: Document recent changes to fcntl-h.
26097         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
26098         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
26099         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
26100         Similarly for O_SEARCH; this last was already true, but not documented.
26101         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
26102         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
26103         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
26104         Likewise.
26105         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
26106         is zero, not whether it is defined.
26107         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
26108         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
26109         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
26110
26111 2010-09-10  Bruno Haible  <bruno@clisp.org>
26112
26113         langinfo, nl_langinfo: Fix for IRIX 5.3.
26114         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
26115         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
26116         HAVE_LANGINFO_YESEXPR.
26117         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
26118         HAVE_LANGINFO_YESEXPR.
26119         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
26120         HAVE_LANGINFO_T_FMT_AMPM is 0.
26121         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
26122         HAVE_LANGINFO_YESEXPR is 0.
26123         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
26124         NOEXPR.
26125         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
26126         * doc/posix-functions/nl_langinfo.texi: Likewise.
26127         Reported by Eric Blake.
26128
26129 2010-09-10  Bruno Haible  <bruno@clisp.org>
26130
26131         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
26132         * doc/glibc-functions/login_tty.texi: Mention the include file problem
26133         on FreeBSD 8.0 and OpenBSD 4.6.
26134         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
26135         * m4/pty_h.m4 (gl_PTY_H): Likewise.
26136         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
26137         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
26138         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
26139         ac_includes_default.
26140         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
26141
26142 2010-09-09  Eric Blake  <eblake@redhat.com>
26143
26144         strsignal: work around NetBSD bug
26145         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
26146         * lib/string.in.h (includes): Likewise.
26147         * doc/posix-functions/strsignal.texi (strsignal): Document the
26148         bug.
26149         Reported by Nelson H. F. Beebe.
26150
26151         gnulib-tool: work with NetBSD /bin/sh
26152         * gnulib-tool (func_cache_var, func_cache_lookup_module)
26153         (func_get_description, func_get_comment, func_get_status)
26154         (func_get_notice, func_get_applicability, func_get_filelist)
26155         (func_get_dependencies, func_get_autoconf_early_snippet)
26156         (func_get_autoconf_snippet, func_get_automake_snippet)
26157         (func_get_include_directive, func_get_link_directive)
26158         (func_get_license, func_get_maintainer, func_import): Avoid
26159         shell syntax errors from parsing syntax extensions.
26160
26161 2010-09-09  Bruno Haible  <bruno@clisp.org>
26162
26163         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26164         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
26165         a reliable way to determine whether the 'alias' command works.
26166
26167 2010-09-08  Jim Meyering  <meyering@redhat.com>
26168
26169         init.sh: penalize a set-x-impaired shell; don't disqualify it
26170         * tests/init.sh: Too many shells corrupt application stderr when
26171         you set -x, so we can't afford to disqualify them, since at least
26172         on Irix-6.5, that would disqualify all bourne shells.
26173         Instead, use a two-pass approach.
26174         On the first pass, try to find a shell that meets the stricter
26175         condition that set -x does not corrupt stderr.
26176         If no shell meets the stricter condition, retest each candidate
26177         shell, but without that extra condition.  Finally, when
26178         VERBOSE=yes is requested and set -x might cause trouble, simply
26179         issue a warning and refrain from enabling debug output.
26180
26181 2010-09-08  Eric Blake  <eblake@redhat.com>
26182
26183         unsetenv: fix OpenBSD bug
26184         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
26185         * doc/posix-functions/unsetenv.texi (unsetenv): Update
26186         documentation.
26187         Reported by Jim Meyering.
26188
26189         strtod: work around IRIX 6.5 bug
26190         * lib/strtod.c (strtod): Reparse number on shorter string if
26191         exponent parse was invalid.
26192         * tests/test-strtod.c (main): Add check for "0x1p 2".
26193         Reported by Tom G. Christensen.
26194
26195         getopt: optimize previous patch
26196         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
26197         empty variable.  Speed up awk script.
26198         Reported by Paolo Bonzini.
26199
26200 2010-09-08  Jim Meyering  <meyering@redhat.com>
26201
26202         test.sh: disqualify shells for which set -x corrupts stderr
26203         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
26204         and OpenBSD 4.7.  They make it so with "set -x", environment settings
26205         appear in stderr output.  For example, this command:
26206             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
26207         prints "P=1" on those two systems:
26208
26209 2010-09-08  Bruno Haible  <bruno@clisp.org>
26210
26211         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
26212         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
26213         commands, because some shells ignore redirections when there is an
26214         error in the command lookup.
26215         Reported by Eric Blake.
26216
26217 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
26218
26219         * lib/regex.h: Fix a mention of `regex_compile' (should be
26220         `re_compile_pattern').
26221         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
26222         (re_set_registers): Correct name of parameter in comment.
26223
26224         * doc/regex.texi: Add documentation for missing syntax flags.
26225         Remove commented-out documentation of defunct syntax option
26226         RE_NO_EMPTY_ALTS.
26227         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
26228         Add documentation of re_set_registers.
26229         Document trick to re-use a pattern buffer by setting fastmap manually.
26230         Update documentation of struct re_pattern_buffer per public members.
26231         Uncomment documentation of equivalence class operators and
26232         collating symbol operators, since they are now implemented,
26233         Explain leftmost-longest matching in relation to alternatives.
26234         Tidy documentation of substring matching.
26235         Remove POSIX documentation, which is done better in
26236         glibc, and refer the reader there. Keep BSD API documentation, as
26237         that is not readily available elsewhere.
26238
26239 2010-09-07  Eric Blake  <eblake@redhat.com>
26240
26241         getopt: handle POSIXLY_CORRECT set but not exported
26242         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
26243         export state of POSIXLY_CORRECT, due to bash set -o posix.
26244         Reported by Dustin J. Mitchell.
26245
26246 2010-09-05  Bruno Haible  <bruno@clisp.org>
26247
26248         gnulib-tool: Highlight the changed options.
26249         * gnulib-tool (func_usage): Display the --import, --add-import,
26250         --remove-import explanations in bold font.
26251
26252 2010-09-06  Karl Berry  <karl@gnu.org>
26253
26254         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
26255
26256 2010-09-05  Bruno Haible  <bruno@clisp.org>
26257
26258         uniwidth/width: Update comment.
26259         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
26260         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
26261
26262 2010-09-05  Bruno Haible  <bruno@clisp.org>
26263
26264         isinf, isnan: Relax license.
26265         * modules/isinf (License): Change from GPL to LGPL, with consent from
26266         Ben Pfaff.
26267         * modules/isnan (License): Likewise.
26268         Requested by Ludovic Courtès.
26269
26270 2010-09-04  Bruno Haible  <bruno@clisp.org>
26271
26272         gnulib-tool: Help migration from --import to --add-import or --update.
26273         * gnulib-tool: Emit a verbose error message when --import is used
26274         without any module name.
26275
26276 2010-09-04  Bruno Haible  <bruno@clisp.org>
26277
26278         Update doc about gnulib-tool.
26279         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
26280         'gnulib-tool --update' in more detail.
26281         Reported by Eric Blake.
26282
26283 2010-09-04  Bruno Haible  <bruno@clisp.org>
26284
26285         gnulib-tool: Change --import. New options --add/remove-import.
26286         * gnulib-tool: New options --add-import, --remove-import.
26287         (func_usage): Document them.
26288         (have_associative): Define always.
26289         (func_import): In import mode, don't merge the specified settings with
26290         the cached settings. Implement remove-import mode.
26291         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
26292         Explain when to use them versus --import.
26293         (Simple update): Use --add-import instead of --import.
26294         * NEWS: Mention the change.
26295
26296 2010-09-04  Bruno Haible  <bruno@clisp.org>
26297
26298         * doc/gnulib-tool.texi (Initial import): Update paragraph about
26299         separate gnulib.mk.
26300
26301 2010-09-04  Bruno Haible  <bruno@clisp.org>
26302
26303         gnulib-tool: Don't talk about CVS any more.
26304         * gnulib-tool (func_usage, func_import): Write "version control"
26305         instead of CVS.
26306
26307 2010-09-04  Jim Meyering  <meyering@redhat.com>
26308
26309         maint.mk: avoid obscure sc_copyright_check failure in coreutils
26310         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
26311         false positives (whose names may be ill-chosen) when searching
26312         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
26313         would cause a false-positive.
26314
26315         avoid coreutils "make distcheck" failure
26316         Coreutils tests with an absolute build directory name that contains
26317         a space.  Not quoting this directory name caused a failure.
26318         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
26319         * tests/test-vc-list-files-cvs.sh: Likewise.
26320
26321 2010-09-04  Bruno Haible  <bruno@clisp.org>
26322
26323         gnulib-tool: Avoid error when run in a package without Makefile.am.
26324         * gnulib-tool: When collecting the m4dirs in a package that does not
26325         have a Makefile.am, eliminate those directories that contain no
26326         gnulib-cache.m4. Fix expression that counts these directories.
26327
26328 2010-09-04  Bruno Haible  <bruno@clisp.org>
26329
26330         update-copyright test: Improve output when perl is missing or too old.
26331         * tests/test-update-copyright.sh: Move test of Perl version down after
26332         the test whether Perl exists. Provide an explanation relating Perl's
26333         error message to Automake's SKIP: message.
26334
26335 2010-09-04  Bruno Haible  <bruno@clisp.org>
26336
26337         Don't augment PATH in TESTS_ENVIRONMENT.
26338         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
26339         set abs_aux_dir instead of augmenting PATH.
26340         * modules/vc-list-files-tests (Makefile.am): Likewise.
26341         * tests/test-update-copyright.sh: Augment PATH here.
26342         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
26343         path_prepend_.
26344         * tests/test-vc-list-files-git.sh: Likewise.
26345
26346 2010-09-04  Jim Meyering  <meyering@redhat.com>
26347
26348         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
26349         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
26350
26351 2010-09-04  Bruno Haible  <bruno@clisp.org>
26352
26353         strdup: Fix compilation error in C++ mode.
26354         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
26355         the macro.
26356
26357 2010-09-04  Bruno Haible  <bruno@clisp.org>
26358
26359         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
26360         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
26361         macro into a function.
26362         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26363
26364 2010-09-04  Bruno Haible  <bruno@clisp.org>
26365
26366         Set PATH_SEPARATOR the same way autoconf does.
26367         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
26368         the value of PATH_SEPARATOR the same way autoconf-generated configure
26369         scripts do.
26370         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
26371         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
26372
26373 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
26374
26375         Set PATH_SEPARATOR the same way autoconf does.
26376         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
26377         the same way autoconf-generated configure scripts do.
26378         * posix-modules: Likewise.
26379
26380 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
26381
26382         hash: fix safe_hasher const typo
26383         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
26384         const; otherwise, there is a type error later.
26385
26386 2010-09-02  Jim Meyering  <meyering@redhat.com>
26387
26388         test-update-copyright.sh: require perl 5.8.0
26389         * tests/test-update-copyright.sh: Require 5.8.0,
26390         which Tom G. Christensen has confirmed is adequate,
26391         while 5.6.1 is not.
26392
26393 2010-09-02  Eric Blake  <eblake@redhat.com>
26394
26395         tests: init.sh improvements for re-exec'ing with zsh
26396         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
26397         -vx through shell re-exec.
26398         Reported by Tom G. Christensen.
26399
26400         wctype: fix typo in previous commit
26401         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
26402         Reported by Ludovic Courtès.
26403
26404 2010-09-02  Jim Meyering  <meyering@redhat.com>
26405
26406         test-update-copyright.sh: skip test if Perl is too old
26407         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
26408         Reported by Tom G. Christensen.
26409
26410 2010-09-02  Bruno Haible  <bruno@clisp.org>
26411
26412         wctype: Avoid compilation error on IRIX 6.5.30.
26413         * lib/wctype.in.h (iswblank): Declare with a replacement if
26414         REPLACE_ISWBLANK is set.
26415         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
26416         declared. Set REPLACE_ISWBLANK.
26417         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
26418         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
26419         * doc/posix-headers/wctype.texi: Likewise.
26420         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26421
26422 2010-09-01  Bruno Haible  <bruno@clisp.org>
26423
26424         New module 'socketlib'.
26425         * modules/socketlib: New file.
26426         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
26427         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
26428         * modules/sockets (Depends-on): Add socketlib.
26429         Suggested by Sam Steingold <sds@gnu.org>.
26430
26431 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
26432
26433         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
26434
26435         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
26436         when one needs search access to a directory but not read access.
26437         On systems where it is available, it works in some cases where
26438         O_RDONLY does not, namely on directories that are searchable but
26439         not readable, and which need only to be searchable.  If O_SEARCH
26440         is not available, fall back to the traditional method of using
26441         O_RDONLY.
26442
26443         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
26444         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
26445         when opening a directory that needs only to be searchable.
26446         * lib/chdir-safer.c (chdir_no_follow): Likewise.
26447         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
26448         * lib/openat-proc.c (openat_proc_name): Likewise.
26449         * lib/openat.c (openat_needs_fchdir): Likewise.
26450         * lib/save-cwd.c (save_cwd): Likewise.
26451         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
26452
26453 2010-08-28  Bruno Haible  <bruno@clisp.org>
26454
26455         New module 'host-cpu-c-abi'.
26456         * modules/host-cpu-c-abi: New file.
26457         * m4/host-cpu-c-abi.m4: New file, based on part of
26458         clisp/src/m4/general.m4.
26459         Requested by Sam Steingold <sds@gnu.org>.
26460
26461 2010-08-31  Eric Blake  <eblake@redhat.com>
26462         and Jim Meyering  <meyering@redhat.com>
26463
26464         hash: factor, and guard against misbehaving hasher function
26465         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
26466         of table->hasher's return value.  Also protect against a hash value
26467         so large that adding it to table->bucket results in a NULL pointer.
26468         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
26469         Use it in place of open-coded check-and-abort.
26470
26471 2010-08-30  Bruno Haible  <bruno@clisp.org>
26472
26473         hash: silence spurious clang warning
26474         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
26475         Reported by Eric Blake.
26476
26477 2010-08-30  Eric Blake  <eblake@redhat.com>
26478
26479         strstr, memmem, strcasestr: avoid leaked shell message
26480         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
26481         FreeBSD.
26482         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26483         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26484
26485         tests: silence clang warning
26486         * tests/test-malloca.c (do_allocation): Avoid dead store.
26487
26488 2010-08-29  Bruno Haible  <bruno@clisp.org>
26489
26490         gettext: Fix recent mistake.
26491         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
26492
26493 2010-08-29  Bruno Haible  <bruno@clisp.org>
26494
26495         selinux-h: Offer a --without-selinux option.
26496         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
26497         --without-selinux was specified, skip all tests and define
26498         HAVE_SELINUX_SELINUX_H to 0.
26499         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
26500         set LIB_SELINUX to empty.
26501         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
26502         gl_LIBSELINUX. If --without-selinux was specified, replace
26503         selinux/context.h.
26504         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
26505
26506 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26507             Bruno Haible  <bruno@clisp.org>
26508
26509         Make the module 'realloc-gnu' work again on AIX and OSF/1.
26510         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
26511         of HAVE_REALLOC.
26512         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
26513         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
26514         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
26515         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26516
26517 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26518             Bruno Haible  <bruno@clisp.org>
26519
26520         Make the module 'calloc-gnu' work again on AIX and OSF/1.
26521         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
26522         HAVE_CALLOC.
26523         * lib/xmalloc.c: Update accordingly.
26524         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
26525         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
26526         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
26527
26528 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26529             Bruno Haible  <bruno@clisp.org>
26530
26531         Make the module 'malloc-gnu' work again on AIX and OSF/1.
26532         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
26533         HAVE_MALLOC.
26534         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
26535         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
26536         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
26537
26538 2010-08-29  Bruno Haible  <bruno@clisp.org>
26539
26540         Update modules list.
26541         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
26542         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
26543         (String handling <string.h>): Add astrxfrm.
26544         (File system functions): Add readlinkat.
26545
26546 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26547
26548         Tests for module 'realloc-gnu'.
26549         * modules/realloc-gnu-tests: New file.
26550         * tests/test-realloc-gnu.c: New file.
26551
26552         Tests for module 'calloc-gnu'.
26553         * modules/calloc-gnu-tests: New file.
26554         * tests/test-calloc-gnu.c: New file.
26555
26556         Tests for module 'malloc-gnu'.
26557         * modules/malloc-gnu-tests: New file.
26558         * tests/test-malloc-gnu.c: New file.
26559
26560 2010-08-28  Bruno Haible  <bruno@clisp.org>
26561
26562         Rename module 'realloc' -> 'realloc-gnu'.
26563         * modules/realloc-gnu: New file, copied from modules/realloc.
26564         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
26565         obsolete.
26566         * modules/mgetgroups (Depends-on): Update.
26567         * doc/posix-functions/realloc.texi: Update.
26568         * NEWS: Mention the change.
26569
26570         Rename module 'calloc' -> 'calloc-gnu'.
26571         * modules/calloc-gnu: New file, copied from modules/calloc.
26572         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
26573         obsolete.
26574         * doc/posix-functions/calloc.texi: Update.
26575         * NEWS: Mention the change.
26576
26577         Rename module 'malloc' -> 'malloc-gnu'.
26578         * modules/malloc-gnu: New file, copied from modules/malloc.
26579         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
26580         obsolete.
26581         * modules/argp (Depends-on): Update.
26582         * modules/regex (Depends-on): Update.
26583         * doc/posix-functions/malloc.texi: Update.
26584         * NEWS: Mention the change.
26585
26586 2010-08-28  Eric Blake  <eblake@redhat.com>
26587
26588         pread, pwrite: add missing dependency
26589         * modules/pread (Depends-on): Add extensions.
26590         * modules/pwrite (Depends-on): Likewise.
26591
26592 2010-08-28  Bruno Haible  <bruno@clisp.org>
26593
26594         unistr/u*-strchr: Fix tests dependencies.
26595         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
26596         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
26597         Reported by Ian Beckwith <ianb@erislabs.net>.
26598
26599 2010-08-28  Bruno Haible  <bruno@clisp.org>
26600
26601         read-file: Don't occupy too much unused memory.
26602         * lib/read-file.c (fread_file): Shrink the buffer at the end.
26603
26604 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
26605             Eric Blake  <eblake@redhat.com>
26606             Bruno Haible  <bruno@clisp.org>
26607
26608         read-file: Avoid memory reallocations with regular files.
26609         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
26610         (fread_file): With regular files, use the remaining length as the
26611         initial buffer size.  Check against overflow.
26612         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
26613         sys_stat.
26614
26615 2010-08-28  Bruno Haible  <bruno@clisp.org>
26616
26617         ftello: Relax license.
26618         * modules/ftello (License): Relax to LGPLv2+.
26619         Reported by Eric Blake.
26620
26621 2010-08-28  Bruno Haible  <bruno@clisp.org>
26622
26623         Avoid relocwrapper link errors due to gnulib replacement functions.
26624         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
26625         function.
26626         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26627
26628 2010-08-28  Bruno Haible  <bruno@clisp.org>
26629
26630         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
26631         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
26632         defined.
26633         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
26634         Suggested by Eric Blake.
26635
26636 2010-08-28  Bruno Haible  <bruno@clisp.org>
26637
26638         sys_socket, netdb: Ensure socklen_t gets defined.
26639         * modules/sys_socket (Depends-on): Add socklen.
26640         * modules/netdb (Depends-on): Likewise.
26641         * modules/getaddrinfo (Depends-on): Remove socklen.
26642         * modules/getsockopt (Depends-on): Likewise.
26643         * modules/setsockopt (Depends-on): Likewise.
26644         * tests/test-sys_socket.c: Check that socklen_t is defined.
26645         * tests/test-netdb.c: Likewise.
26646         * m4/socklen.m4: Update comments.
26647         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
26648
26649 2010-08-27  Eric Blake  <eblake@redhat.com>
26650
26651         login_tty: add missing dependency
26652         * modules/login_tty (Depends-on): Add pty.
26653
26654 2010-08-26  Eric Blake  <eblake@redhat.com>
26655
26656         lib-symbol-versions: fix m4 quoting
26657         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
26658         format for AC_LINK_IFELSE.
26659
26660         glob: fix compile test
26661         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
26662
26663         btowc: fix missing file
26664         * modules/btowc (Files): Also ship locale-fr.m4.
26665
26666         lseek: fix link test
26667         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
26668         AC_LINK_IFELSE.
26669
26670         include_next: silence autoconf 2.68 warning
26671         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
26672         AC_COMPILE_IFELSE as special.
26673         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
26674         autoconf < 2.68.
26675
26676         acl: fix compilation test
26677         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
26678         AC_COMPILE_IFELSE.
26679
26680 2010-08-26  Bruno Haible  <bruno@clisp.org>
26681
26682         Modernize AC_TRY_RUN invocations.
26683         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
26684         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26685         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
26686         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
26687         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
26688         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26689         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26690         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26691         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26692         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26693         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26694         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26695         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26696         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26698         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26699         gl_MBRLEN_NUL_RETVAL): Likewise.
26700         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26701         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
26702         Likewise.
26703         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26704         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26705         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26706         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26707         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
26708         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
26709         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
26710         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
26711         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
26712         Likewise.
26713         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
26714         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
26715         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26716         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26717         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26718         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26719         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26720         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
26721         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26722         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26723
26724 2010-08-26  Bruno Haible  <bruno@clisp.org>
26725
26726         Modernize AC_TRY_LINK invocations.
26727         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
26728         AC_TRY_LINK.
26729         * m4/argp.m4 (gl_ARGP): Likewise.
26730         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
26731         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
26732         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
26733         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
26734         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
26735         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
26736         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
26737         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
26738         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
26739         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
26740         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
26741         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
26742         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
26743         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26744         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
26745         * m4/hostent.m4 (gl_HOSTENT): Likewise.
26746         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26747         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
26748         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
26749         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
26750         Likewise.
26751         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
26752         Likewise.
26753         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
26754         Likewise.
26755         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
26756         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
26757         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
26758         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
26759         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
26760         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26761         * m4/servent.m4 (gl_SERVENT): Likewise.
26762         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
26763         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
26764         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
26765         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
26766         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
26767         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
26768         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26769         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26770         * modules/tsearch-tests (configure.ac): Likewise.
26771
26772 2010-08-26  Bruno Haible  <bruno@clisp.org>
26773
26774         Modernize AC_TRY_COMPILE invocations.
26775         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
26776         AC_TRY_COMPILE.
26777         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
26778         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
26779         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
26780         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
26781         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
26782         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
26783         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
26784         * m4/lock.m4 (gl_LOCK): Likewise.
26785         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
26786         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26787         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
26788         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
26789         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
26790         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
26791         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
26792         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
26793         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
26794         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
26795         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
26796         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
26797         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
26798         extraneous semicolon.
26799
26800 2010-08-26  Jim Meyering  <meyering@redhat.com>
26801
26802         stat-time: relax license LGPL
26803         * modules/stat-time (License): Change from GPL to LGPL,
26804         with consent from all contributors, for use in libguile.
26805         Requested by Ludovic Courtès.
26806
26807 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26808
26809         poll: return immediately on POLLHUP.
26810         * lib/poll.c (poll): Always set timeout before wait_timeout is
26811         computed.
26812
26813 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26814
26815         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26816         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26817         rmdir ("dir/.//"), unlinkat.
26818
26819 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26820
26821         stdbool: avoid spurious failure with modern xlc
26822         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26823
26824 2010-08-24  Bruno Haible  <bruno@clisp.org>
26825
26826         getloadavg: simplify code
26827         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26828         gl_have_func. Update comments.
26829
26830 2010-08-24  Eric Blake  <eblake@redhat.com>
26831
26832         getloadavg: don't define SVR4 on cygwin
26833         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26834         only define SVR4 when -lkvm is required.
26835         Reported by Yaakov Selkowitz.
26836
26837 2010-08-24  Bruno Haible  <bruno@clisp.org>
26838
26839         priv-set: fix comment
26840         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26841
26842 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26843
26844         priv-set: fix comments
26845         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26846         to match code, as suggested by David Bartley in:
26847         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26848
26849 2010-08-23  Eric Blake  <eblake@redhat.com>
26850
26851         stdbool: avoid rejecting clang
26852         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26853         * tests/test-stdbool.c: Enable more tests if using the system
26854         <stdbool.h> instead of the gnulib replacement.
26855         (main): Move xlc bug test to a runtime test for all compilers.
26856         Reported by Anders Kaseorg.
26857
26858         argz: fix shell quoting issue
26859         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26860         Reported by Charles Wilson.
26861
26862 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26863             Erik Faye-Lund <kusmabite@gmail.com>
26864
26865         poll, select: handle ERROR_BROKEN_PIPE.
26866         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26867         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26868         * lib/select.c (win32_compute_revents): Do not mark a pipe
26869         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26870
26871 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26872
26873         fts: allow compilation with C++
26874         * lib/fts_.h: Specify extern "C" linkage with C++.
26875
26876 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26877
26878         Fix gnulib-tool sed script de-commentation for AIX sed.
26879         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26880         sed.
26881
26882 2010-08-17  Eric Blake  <eblake@redhat.com>
26883
26884         test-stddef: test for (some) offsetof bugs
26885         * tests/test-stddef.c: Enhance test to ensure correct type of
26886         offsetof.
26887         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26888         that we are not fixing at this time.
26889
26890 2010-08-15  Bruno Haible  <bruno@clisp.org>
26891
26892         stpncpy: Allow stpncpy to be defined as a macro.
26893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26894         if it's already correctly declared.
26895         * lib/string.in.h (stpncpy): Undefine before redefining.
26896         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26897
26898 2010-08-14  Bruno Haible  <bruno@clisp.org>
26899
26900         Rename module 'memxfrm' to 'amemxfrm'.
26901         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26902         (amemxfrm): Renamed from memxfrm.
26903         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26904         (amemxfrm): Renamed from memxfrm.
26905         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26906         * NEWS: Mention the change.
26907         * MODULES.html.sh (String handling <string.h>): Update.
26908         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26909         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26910         * lib/unicase/u16-casexfrm.c: Likewise.
26911         * lib/unicase/u32-casexfrm.c: Likewise.
26912         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26913         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26914         * lib/uninorm/u16-normxfrm.c: Likewise.
26915         * lib/uninorm/u32-normxfrm.c: Likewise.
26916         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26917         memxfrm.
26918         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26919         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26920         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26921         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26922         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26923         Suggested by Paul Eggert.
26924
26925 2010-08-14  Bruno Haible  <bruno@clisp.org>
26926
26927         Tests for module 'astrxfrm'.
26928         * modules/astrxfrm-tests: New file.
26929         * tests/test-astrxfrm.c: New file.
26930
26931         New module 'astrxfrm'.
26932         * lib/astrxfrm.h: New file.
26933         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26934         * modules/astrxfrm: New file.
26935
26936 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26937
26938         regex: Tweak doc.
26939         * doc/regex.texi (Overview): Don't mention regex.c.
26940         (GNU Regular Expression Compiling): Likewise.
26941         (Match-end-of-line Operator): Mention 'not_eol'.
26942
26943 2010-08-14  Brian Gough  <bjg@gnu.org>
26944             Bruno Haible  <bruno@clisp.org>
26945
26946         git-merge-changelog: add doc relating to use with bzr and hg.
26947         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26948
26949 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26950
26951         pthread: fix pthread.h creation for srcdir != builddir
26952         * modules/pthread (Makefile.am): Fix the rule to work also in a
26953         non-srcdir build.
26954
26955 2010-08-13  Karl Berry  <karl@gnu.org>
26956
26957         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26958         * doc/posix-*/*: force line break before @url of POSIX
26959         specifications.
26960         Suggested by Werner Lemberg.
26961
26962 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26963
26964         strtod: fix const diagnostic
26965         * lib/strtod.c (strtod): Don't assign const char * to char *,
26966         as this elicits a warning from GCC when warnings are enabled.
26967
26968 2010-08-10  Pádraig Brady <P@draigbrady.com>
26969         and Eric Blake  <eblake@redhat.com>
26970
26971         copy-acl: ignore ENOTSUP on HP-UX
26972         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26973         so that it is available for HP-UX.
26974         * lib/copy-acl.c (qcopy_acl): Use it.
26975         Reported by Patrick M. Callahan.
26976
26977 2010-08-10  Eric Blake  <eblake@redhat.com>
26978
26979         open, chown: relax license
26980         * modules/open (License): Change to LGPLv2+, with consent by all
26981         authors, for use in augeas.
26982         * modules/chown (License): Likewise.
26983         * modules/lchown (Likewise): Likewise.
26984         Requested by Adam Stokes.
26985
26986 2010-08-09  Karl Berry  <karl@gnu.org>
26987
26988         * build-aux/ar-lib: new file, import from Automake.
26989         * config/srclist.txt: autocheck for updates.
26990
26991 2010-08-09  Eric Blake  <eblake@redhat.com>
26992
26993         readlinkat: adjust client modules
26994         * modules/areadlinkat (Depends-on): Use readlinkat, not
26995         symlinkat.
26996         * modules/areadlinkat-with-size (Depends-on): Likewise.
26997
26998         mknod: be more vocal about danger of running tests as root
26999         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
27000         root, since that is just asking for problems.
27001         Suggested by Bruno Haible, based on a report by Rainer Tammer.
27002
27003         readlinkat: split into its own module
27004         * modules/symlinkat: Split readlinkat...
27005         * modules/readlinkat: ...into separate module.
27006         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
27007         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
27008         * lib/symlinkat.c (readlinkat): Move...
27009         * lib/readlinkat.c: ...into new file.
27010         * modules/symlinkat-tests: Split readlinkat test...
27011         * modules/readlinkat-tests: ...into separate module.
27012         * tests/test-symlinkat.c: Split...
27013         * tests/test-readlinkat.c: ...into new file.
27014         * NEWS: Document the split.
27015         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
27016         * lib/unistd.in.h (readlinkat): Likewise.
27017         Suggested by Bruno Haible.
27018
27019 2010-08-08  Bruno Haible  <bruno@clisp.org>
27020
27021         memxfrm: Speed up.
27022         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
27023         that usually only one call to strxfrm is necessary for each string
27024         part.
27025         Reported by Paul Eggert <eggert@cs.ucla.edu>.
27026
27027 2010-08-07  Karl Berry  <karl@gnu.org>
27028
27029         * doc/posix-headers/limits.texi,
27030         * doc/posix-functions/malloc.texi,
27031         * doc/posix-functions/strsignal.texi: missing @item.
27032         * doc/ld-version-script.texi: spurious leading i.
27033         * doc/regex.texi (Interval Operators): no commas inside @var.
27034
27035 2010-08-01  Bruno Haible  <bruno@clisp.org>
27036
27037         Integrate the regex documentation.
27038         * doc/gnulib.texi: Define 'cn' index.
27039         (Regular expressions): New a chapter that includes regex.texi and
27040         regexprops-generic.texi.
27041         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
27042         syntax.
27043
27044         Whitespace cleanup.
27045         * doc/regex.texi: Remove trailing spaces.
27046
27047         Add regex documentation.
27048         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
27049         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
27050         Written by Kathy A. Hargreaves and Karl Berry.
27051
27052 2010-08-01  Bruno Haible  <bruno@clisp.org>
27053
27054         link: Update documentation.
27055         * doc/posix-functions/link.texi: Update regarding Solaris.
27056
27057 2010-07-31  Bruno Haible  <bruno@clisp.org>
27058
27059         Update modules list.
27060         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
27061         (String handling <string.h>): Add memcmp2, memxfrm.
27062         (Container data structures): Add xlist, xsublist, xoset.
27063         (Core language properties): Add alignof, unused-parameter.
27064         (Process control, Numeric conversion functions <stdlib.h>): Renamed
27065         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
27066         (Unibyte characters <ctype.h>): New section.
27067         (String handling <string.h>): New section.
27068         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
27069         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
27070         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
27071         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
27072         tan, tanh, tanl, y0, y1, yn.
27073         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
27074         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
27075         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
27076         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
27077         unlockpt, vdprintf, vdprintf-posix.
27078         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
27079         (File system functions): Add concat-filename, sys_file, sys_ioctl,
27080         xconcat-filename.
27081         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
27082         getdtablesize, pipe2, pipe2-safer.
27083         (Security): New section.
27084         (Networking functions): Add accept4.
27085         (Signal handling): Add sigpipe.
27086         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
27087         mbmemcasecoll.
27088         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
27089         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
27090         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
27091         pipe-filter-ii.
27092         (Misc): Add argp-version-etc, login_tty, parse-duration.
27093
27094 2010-07-31  Bruno Haible  <bruno@clisp.org>
27095
27096         Improve doc in MODULES.html.
27097         * modules/linkat (Description): Add the word "function".
27098         * modules/mkfifo (Description): Likewise.
27099         * modules/mknod (Description): Likewise.
27100         * modules/remove (Description): Likewise.
27101         * modules/renameat (Description): Likewise.
27102         * modules/stat (Description): Likewise.
27103         * modules/symlink (Description): Likewise.
27104         * modules/unlink (Description): Likewise.
27105
27106 2010-07-31  Bruno Haible  <bruno@clisp.org>
27107
27108         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
27109         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
27110         option --enable/disable-c++ instead of --enable/disable-cxx.
27111         * NEWS: Mention the change.
27112
27113 2010-07-31  Bruno Haible  <bruno@clisp.org>
27114
27115         readlink, areadlink: Relax test a bit.
27116         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
27117         alternative to ENOTDIR.
27118         * tests/test-areadlink.h (test_areadlink): Likewise.
27119         Reported by Rainer Tammer.
27120
27121 2010-07-31  Bruno Haible  <bruno@clisp.org>
27122
27123         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
27124         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
27125         character, perform the search using U_STRCHR.
27126         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
27127         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
27128         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
27129         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
27130         Suggested by Paolo Bonzini.
27131
27132 2010-07-31  Bruno Haible  <bruno@clisp.org>
27133
27134         unistr/u*-strstr: Fix dependencies.
27135         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
27136         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
27137         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
27138
27139 2010-07-31  Bruno Haible  <bruno@clisp.org>
27140
27141         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
27142         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
27143         the beginning of the loop.
27144         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
27145         cases in 'switch' statement.
27146
27147         unistr/u8-strchr: Fix several bugs.
27148         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
27149         the string. When not found, return NULL, not a pointer near the end.
27150
27151         More tests for unistr/u8-strchr.
27152         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
27153         that the function does not read past the first occurrence of the byte
27154         being searched.
27155         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
27156         * tests/unistr/test-u16-strchr.c (main): New function.
27157         * tests/unistr/test-u32-strchr.c (main): New function.
27158
27159 2010-07-31  Bruno Haible  <bruno@clisp.org>
27160
27161         posix-modules: Ignore backup files of documentation files.
27162         * posix-modules: grep only through files named *.texi.
27163
27164 2010-07-31  Bruno Haible  <bruno@clisp.org>
27165
27166         symlinkat: Fix documentation.
27167         * doc/posix-functions/readlinkat.texi: Fix module name.
27168
27169 2010-07-31  Bruno Haible  <bruno@clisp.org>
27170
27171         fchownat: Replace also when chown has the trailing slash bug.
27172         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
27173         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
27174         introduced on 2010-04-10.
27175         Reported by Rainer Tammer.
27176
27177 2010-07-31  Bruno Haible  <bruno@clisp.org>
27178
27179         linkat: Work around AIX 7.1 bug.
27180         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
27181         whether linkat handles trailing slash correctly. If not, replace linkat
27182         and define LINKAT_TRAILING_SLASH_BUG.
27183         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
27184         check whether (fd1,file1) points to a directory if file1 or file2 ends
27185         in a slash. Code taken from lib/link.c.
27186         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
27187         Reported by Rainer Tammer.
27188
27189 2010-07-31  Bruno Haible  <bruno@clisp.org>
27190
27191         Correctly determine whether pow is available in libc on AIX 7 with xlc.
27192         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
27193         This disables an xlc optimization that was causing wrong test results.
27194         Reported by Rainer Tammer.
27195
27196 2010-07-31  Bruno Haible  <bruno@clisp.org>
27197
27198         iconv: Work around AIX 6.1..7.1 bug.
27199         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
27200         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
27201         cross-compiling, guess no on all versions of AIX.
27202         Reported by Rainer Tammer.
27203
27204 2010-07-31  Bruno Haible  <bruno@clisp.org>
27205
27206         readlink: Relax test a bit.
27207         * tests/test-readlink.h (test_readlink): Allow different errno value
27208         when readlink is called with a file name that ends in / and refers to
27209         a file.
27210         Suggested by Eric Blake.
27211         Reported by Rainer Tammer.
27212
27213 2010-07-31  Bruno Haible  <bruno@clisp.org>
27214
27215         copysign: Does not require -lm on glibc systems.
27216         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
27217         gl_COMMON_DOUBLE_MATHFUNC.
27218         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
27219
27220 2010-07-31  Bruno Haible  <bruno@clisp.org>
27221
27222         duplocale: Work around AIX 7.1 bug.
27223         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
27224         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
27225         * lib/duplocale.c (rpl_duplocale): Update comment.
27226         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
27227         Reported by Rainer Tammer.
27228
27229 2010-07-30  Bruno Haible  <bruno@clisp.org>
27230
27231         dirfd: Avoid link error on AIX 7.1.
27232         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
27233         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
27234         exist, set REPLACE_DIRFD.
27235         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
27236         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
27237         * doc/posix-functions/dirfd.texi: Update.
27238         Reported by Rainer Tammer.
27239
27240 2010-07-30  Eric Blake  <eblake@redhat.com>
27241
27242         strtod: next round of AIX fixes
27243         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
27244         exponent.
27245         * tests/test-strtod.c (main): Enhance tests.
27246         * doc/posix-functions/strtod.texi (strtod): Document next bug.
27247         Reported by Rainer Tammer.
27248
27249         futimens: fix configure check
27250         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
27251         Reported by Bruno Haible.
27252
27253 2010-07-30  Bruno Haible  <bruno@clisp.org>
27254
27255         getline: Update regarding AIX.
27256         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
27257         Reported by Rainer Tammer.
27258
27259 2010-07-30  Bruno Haible  <bruno@clisp.org>
27260
27261         wcwidth: Drop replacement on AIX 7.
27262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
27263         AIX 7.
27264         Reported by Rainer Tammer.
27265
27266 2010-07-30  Bruno Haible  <bruno@clisp.org>
27267
27268         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
27269         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
27270         a 'char *'.
27271         Reported by Rainer Tammer.
27272
27273 2010-07-30  Bruno Haible  <bruno@clisp.org>
27274
27275         unlink: Update regarding AIX.
27276         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
27277         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
27278         Reported by Rainer Tammer.
27279
27280 2010-07-30  Bruno Haible  <bruno@clisp.org>
27281
27282         symlink: Update regarding AIX.
27283         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
27284         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
27285         Reported by Rainer Tammer.
27286
27287 2010-07-30  Bruno Haible  <bruno@clisp.org>
27288
27289         strndup: Update regarding AIX.
27290         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
27291         AIX 7.
27292         Reported by Rainer Tammer.
27293
27294 2010-07-30  Bruno Haible  <bruno@clisp.org>
27295
27296         stat: Update regarding AIX.
27297         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
27298         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
27299         Reported by Rainer Tammer.
27300
27301 2010-07-30  Bruno Haible  <bruno@clisp.org>
27302
27303         truncl: Fix autoconf test.
27304         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
27305         whether truncl works.
27306         Reported by Rainer Tammer.
27307
27308 2010-07-30  Bruno Haible  <bruno@clisp.org>
27309
27310         round: Update regarding AIX.
27311         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
27312         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
27313         Reported by Rainer Tammer.
27314
27315 2010-07-30  Bruno Haible  <bruno@clisp.org>
27316
27317         rename: Update regarding AIX.
27318         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
27319         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
27320         Reported by Rainer Tammer.
27321
27322 2010-07-30  Bruno Haible  <bruno@clisp.org>
27323
27324         printf.m4: Update regarding AIX.
27325         * m4/printf.m4: Update comments regarding AIX.
27326         Reported by Rainer Tammer.
27327
27328 2010-07-30  Bruno Haible  <bruno@clisp.org>
27329
27330         iconv: Update regarding AIX.
27331         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
27332         AIX 7.
27333         Reported by Rainer Tammer.
27334
27335 2010-07-30  Bruno Haible  <bruno@clisp.org>
27336
27337         getopt: Update regarding AIX.
27338         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
27339         no on AIX.
27340         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
27341         Reported by Rainer Tammer.
27342
27343 2010-07-30  Bruno Haible  <bruno@clisp.org>
27344
27345         ldexpl; Update regarding AIX.
27346         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
27347         on AIX 7.
27348         Reported by Rainer Tammer.
27349
27350 2010-07-30  Bruno Haible  <bruno@clisp.org>
27351
27352         frexpl: Update regarding AIX.
27353         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
27354         on AIX 7.
27355         Reported by Rainer Tammer.
27356
27357 2010-07-30  Bruno Haible  <bruno@clisp.org>
27358
27359         open, fopen: Update regarding AIX.
27360         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
27361         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
27362         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
27363         * doc/posix-functions/fopen.texi: Likewise.
27364         Reported by Rainer Tammer.
27365
27366 2010-07-30  Bruno Haible  <bruno@clisp.org>
27367
27368         chown: Update doc regarding AIX.
27369         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
27370         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
27371         Reported by Rainer Tammer.
27372
27373 2010-07-30  Eric Blake  <eblake@redhat.com>
27374
27375         strtod: fix bug in replacement function on AIX
27376         * lib/strtod.c (strtod): Special case broken "0x" parse in
27377         underlying strtod.
27378         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
27379         * doc/posix-functions/strtod.texi (strtod): Likewise.
27380         Reported by Rainer Tammer.
27381
27382 2010-07-30  Bruno Haible  <bruno@clisp.org>
27383
27384         mbrlen: Fix cross-compilation guess for AIX.
27385         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
27386         guess. Leftover from 2008-12-22.
27387
27388 2010-07-30  Bruno Haible  <bruno@clisp.org>
27389
27390         mbrtowc: Fix cross-compilation guess for AIX.
27391         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
27392         guess. Leftover from 2008-12-21.
27393
27394 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
27395
27396         init.sh: work around trap limitation of some shells
27397         * tests/init.sh (setup_): Move exit trap outside of shell function.
27398
27399 2010-07-29  Eric Blake  <eblake@redhat.com>
27400
27401         strtod: aid debugging
27402         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
27403         understanding why strtod is rejected.
27404
27405 2010-07-28  Bruno Haible  <bruno@clisp.org>
27406
27407         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
27408         * lib/unistr/u8-chr.c: Include <string.h>.
27409         * tests/unistr/test-u8-chr.c: Likewise.
27410         * tests/unistr/test-u16-chr.c: Likewise.
27411         * tests/unistr/test-u32-chr.c: Likewise.
27412         * tests/unistr/test-u8-strchr.c: Likewise.
27413         * tests/unistr/test-u16-strchr.c: Likewise.
27414         * tests/unistr/test-u32-strchr.c: Likewise.
27415         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
27416         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
27417         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
27418         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
27419
27420 2010-07-28  Bruno Haible  <bruno@clisp.org>
27421
27422         Use spaces for indentation, not tabs.
27423         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27424
27425 2010-07-27  Bruno Haible  <bruno@clisp.org>
27426
27427         mbspcasecmp: Fix function specification.
27428         * lib/string.in.h (mbspcasecmp): Fix specification comment.
27429         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
27430         Reported by Eric Blake <eblake@redhat.com>.
27431
27432 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
27433
27434         timespec: use cast and not conditional, as truncation isn't possible
27435         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
27436         instead of a conditional.  Comment about the situation in more detail.
27437         This undoes most of the 2009-10-29 patch.
27438
27439 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
27440
27441         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
27442         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
27443         * lib/unistr/u8-strchr.c: Likewise.
27444         * modules/unistr/u8-chr: Depend on memchr.
27445
27446         unistr/u*-strchr: add tests
27447         * modules/unistr/u8-strchr-tests: New file.
27448         * modules/unistr/u16-strchr-tests: New file.
27449         * modules/unistr/u32-strchr-tests: New file.
27450         * tests/unistr/test-strchr.h: New file.
27451         * tests/unistr/test-u8-strchr.c: New file.
27452         * tests/unistr/test-u16-strchr.c: New file.
27453         * tests/unistr/test-u32-strchr.c: New file.
27454
27455         unistr/u*-chr: test multibyte sequences more
27456         * tests/unistr/test-chr.h: Do complete testing of the characters in the
27457         test vector.
27458         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
27459         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
27460         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
27461
27462         unistr/u*-chr: test multibyte sequences
27463         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
27464
27465         unistr/u*-chr: prepare for multibyte tests
27466         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
27467         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
27468         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
27469         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
27470         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
27471         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
27472
27473 2010-07-18  Bruno Haible  <bruno@clisp.org>
27474
27475         unistr/u8-strchr: Optimize non-ASCII argument case.
27476         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
27477         because the first byte often matches anyway.
27478         Reported by Pádraig Brady <P@draigbrady.com>.
27479
27480 2010-07-15  Karl Berry  <karl@gnu.org>
27481
27482         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
27483
27484 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
27485
27486         getcwd: on Solaris, work better if ancestors are inaccessible
27487         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
27488         buffer and size, try again with a large buffer.  This works better
27489         on Solaris, since its getcwd succeeds even if the path to the root
27490         is inaccessible, and this is helpful in common cases such as .zfs
27491         hidden directories.  Problem reported by J Chapman Flack in
27492         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
27493         Use system getcwd if it's declared, not merely if it's partly
27494         working; use the partly-working test only to avoid needless effort
27495         if the system getcwd fails.
27496         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
27497         comment that was already obsolete and is now even more obsolete.
27498         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
27499         now might call strdup.
27500
27501 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
27502
27503         pthread: Add enough so that coreutils/src/sort.c compiles.
27504         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
27505         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
27506         gnulib. Include <sched.h> and <time.h>, as per POSIX.
27507         Include <sys/types.h>, in case it defines pthread_t.
27508         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
27509         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
27510         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
27511         (pthread_rwlockattr_t, pthread_spinlock_t):
27512         New typedefs, if HAVE_PTHREAD_T is not defined.
27513         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
27514         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
27515         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
27516         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
27517         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
27518         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
27519         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
27520         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
27521         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
27522         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
27523         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
27524         New macros.
27525         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
27526         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
27527         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
27528         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
27529         (pthread_spin_unlock): New dummy functions.
27530         (pthread_create): Return EAGAIN; don't set errno.
27531         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
27532         require AC_C_INLINE.
27533         * modules/pthread (Depends-on): Add sched, time.
27534         (pthread.h): Use AM_V_GEN.
27535
27536 2010-07-13  Bruno Haible  <bruno@clisp.org>
27537
27538         striconveh: Don't malloc memory if the result buffer is sufficient.
27539         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
27540         buffer if its size is sufficient.
27541         Reported by Ludovic Courtès <ludo@gnu.org>.
27542
27543 2010-07-13  Bruno Haible  <bruno@clisp.org>
27544
27545         strtod: Add safety check.
27546         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
27547
27548 2010-07-12  Bruno Haible  <bruno@clisp.org>
27549
27550         Unify tests that set gl_cv_func_ldexpl_no_libm.
27551         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
27552         gl_FUNC_LDEXPL.
27553         (gl_FUNC_LDEXPL): Invoke it.
27554         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27555
27556 2010-07-12  Bruno Haible  <bruno@clisp.org>
27557
27558         Unify tests that set gl_cv_func_ldexp_no_libm.
27559         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
27560         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
27561         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
27562         (configure.ac): Simply invoke gl_FUNC_LDEXP.
27563         * modules/strtod (Files): Add m4/ldexp.m4.
27564
27565 2010-07-12  Bruno Haible  <bruno@clisp.org>
27566
27567         Unify tests that set gl_cv_func_frexpl_no_libm.
27568         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
27569         gl_FUNC_FREXPL_NO_LIBM.
27570         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
27571         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
27572
27573 2010-07-12  Bruno Haible  <bruno@clisp.org>
27574
27575         Unify tests that set gl_cv_func_frexp_no_libm.
27576         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
27577         gl_FUNC_FREXP_NO_LIBM.
27578         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
27579         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
27580
27581 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27582
27583         memcoll: clarify sizes versus lengths, document better, and tweak perf
27584         * lib/memcoll.c (strcoll_loop, memcoll0):
27585         Improve quality of descriptive comments.  Name variables
27586         consistently as to whether they are lengths (which do not include
27587         terminating null) versus sizes (which do).
27588         * lib/xmemcoll.c (xmemcoll0): Likewise.
27589         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
27590         returned when s1size == 0; this is easier to compile and saves
27591         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
27592
27593 2010-07-12  Bruno Haible  <bruno@clisp.org>
27594
27595         Tests for module '_Exit'.
27596         * modules/_Exit-tests: New file.
27597         * tests/test-_Exit.sh: New file.
27598         * tests/test-_Exit.c: New file.
27599
27600         New module '_Exit'.
27601         * lib/stdlib.in.h (__attribute__): New macro.
27602         (_Exit): New declaration.
27603         * lib/_Exit.c: New file.
27604         * m4/_Exit.m4: New file.
27605         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
27606         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
27607         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
27608         * modules/_Exit: New file.
27609         * tests/test-stdlib-c++.cc (_Exit): Check signature.
27610         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
27611
27612 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
27613
27614         strtod: make it more-accurate typically, and don't require libm
27615         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
27616         Include limits.h.  Don't include string.h.
27617         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
27618         (locale_isspace): New function, so that no casts are needed to
27619         check whether *s is a space.
27620         (ldexp): Provide an unused dummy if not available.
27621         (scale_radix_exp, parse_number, underlying_strtod): New functions.
27622         (strtod): Use them.  This implementation prefers to use the
27623         underlying strtod if available, falling back on our own code
27624         only to fix known bugs.  This is more likely to produce an
27625         accurate result.  Also, it avoids the use of libm functions.
27626         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
27627         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
27628         was absent, but it caused a test failure with coreutils.
27629         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
27630         with libm.
27631         * modules/strtod (Makefile.am, Link): libm is no longer needed.
27632         * modules/strtod-tests (Makefile.am): Likewise.
27633
27634 2010-07-11  Pádraig Brady  <P@draigBrady.com>
27635             Bruno Haible  <bruno@clisp.org>
27636
27637         unistr/u8-strchr: Optimize ASCII argument case.
27638         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
27639
27640 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
27641
27642         (x)memcoll: minor tweaks
27643         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
27644         is after the type that it qualifies.
27645         (memcoll0): Likewise.
27646         * lib/memcoll.h (memcoll0): Likewise.
27647         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
27648         * lib/xmemcoll.h (xmemcoll0): Likewise.
27649         * lib/memcoll.c (memcoll0): Correct the comment.  This function
27650         differs from memcoll in that the NUL byte is part of the argument.
27651         Omit the abort-checks, as performance is a real issue here.  Plus,
27652         the checks were wrong anyway (an off-by-one error).  Omit local
27653         variable 'diff', as it's a bit clearer that way.
27654         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
27655         no longer needed.
27656
27657 2010-07-08  Chen Guo <chenguo4@yahoo.com>
27658
27659         (x)memcoll: speedup when input is known to be NUL delimited
27660         * lib/memcoll.c: Include stdlib.
27661         (memcoll0): New function.
27662         (strcoll_loop): New function, refactored for use in both memcoll
27663         and memcoll0.
27664         * lib/memcoll.h (memcoll0): Add prototype.
27665         * lib/xmemcoll.c (xmemcoll0): New function.
27666         (collate_error): New function, refactored for use in both xmemcoll
27667         and xmemcoll0.
27668         * lib/xmemcoll.h (xmemcoll0): Add prototype.
27669         * m4/memcoll.m4: add inline invocation.
27670
27671 2010-07-06  Pádraig Brady  <P@draigBrady.com>
27672
27673         * build-aux/bootstrap: Remove any local translations
27674         from the translation project synchronization directory,
27675         so that local only translations are not distributed.
27676
27677 2010-07-04  Bruno Haible  <bruno@clisp.org>
27678
27679         fsusage: Clarify which code applies to which platforms.
27680         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
27681         platform.
27682         * lib/fsusage.c (get_fs_usage): Likewise.
27683
27684 2010-07-04  Bruno Haible  <bruno@clisp.org>
27685
27686         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
27687         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
27688         Reported by Martin Lambers <marlam@marlam.de>.
27689
27690 2010-07-04  Jim Meyering  <meyering@redhat.com>
27691
27692         hash: once again explicitly disallow insertion of NULL
27693         * lib/hash.c (hash_insert0): Reinstate just-removed test:
27694         inserting a NULL pointer cannot work with these functions.
27695         Add a comment with details.
27696         This reverts part of the 2010-07-01 commit, 5bef1a35
27697         "hash: extend module to deal with non-pointer keys".
27698
27699 2010-07-01  Bruno Haible  <bruno@clisp.org>
27700
27701         stdbool: Update doc.
27702         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
27703         Info from Christian Weisgerber <naddy@mips.inka.de>.
27704
27705 2010-07-01  Jim Meyering  <meyering@redhat.com>
27706
27707         hash: extend module to deal with non-pointer keys
27708         * lib/hash.c (hash_insert0): New interface, much like hash_insert
27709         but that allows insertion of non-pointer entries.
27710         Do not disallow an ENTRY value of NULL.
27711         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
27712         * lib/hash.h (hash_insert0): Declare.
27713
27714 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27715
27716         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
27717         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
27718         not present (i.e. with autoconf 2.59 and when using gettextize, not
27719         gnulib), require AC_GNU_SOURCE instead.
27720
27721 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
27722
27723         idpriv-drop: Fix tests.
27724         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
27725         not to the test-idpriv-droptemp program.
27726
27727 2010-06-29  Bruno Haible  <bruno@clisp.org>
27728
27729         string: Fix syntax error with g++ 2.96.
27730         * lib/string.in.h (__pure__): Remove definition.
27731         (_GL_ATTRIBUTE_PURE): New macro.
27732         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
27733         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
27734         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27735
27736 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
27737
27738         unitypes: Fix bug introduced on 2010-05-18.
27739         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
27740
27741 2010-06-22  Eric Blake  <eblake@redhat.com>
27742
27743         memmem: slight optimization
27744         * lib/str-two-way.h (critical_factorization): Update comments.
27745         Reduce work during factorization phase.
27746         Reported by Carlos Bueno <carlos@bueno.org>.
27747
27748 2010-06-21  Bruno Haible  <bruno@clisp.org>
27749
27750         Fix HAVE_CALLOC_POSIX misnomer.
27751         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
27752         !HAVE_CALLOC_POSIX.
27753         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
27754         HAVE_CALLOC_POSIX.
27755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
27756         instead of HAVE_CALLOC_POSIX.
27757         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
27758         HAVE_CALLOC_POSIX.
27759
27760         Use modern idiom for calloc() replacement.
27761         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
27762         AC_FUNC_CALLOC.
27763         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
27764         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
27765         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27766         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
27767         (gl_REPLACE_CALLOC): New macro.
27768
27769 2010-06-21  Bruno Haible  <bruno@clisp.org>
27770
27771         Fix HAVE_REALLOC_POSIX misnomer.
27772         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
27773         !HAVE_REALLOC_POSIX.
27774         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
27775         HAVE_REALLOC_POSIX.
27776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
27777         instead of HAVE_REALLOC_POSIX.
27778         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
27779         HAVE_REALLOC_POSIX.
27780
27781         Use modern idiom for realloc() replacement.
27782         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
27783         AC_FUNC_REALLOC.
27784         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
27785         Autoconf's AC_FUNC_REALLOC.
27786         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27787         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
27788         (gl_REPLACE_REALLOC): New macro.
27789         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27790
27791 2010-06-21  Bruno Haible  <bruno@clisp.org>
27792
27793         Fix HAVE_MALLOC_POSIX misnomer.
27794         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
27795         !HAVE_MALLOC_POSIX.
27796         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
27797         HAVE_MALLOC_POSIX.
27798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
27799         instead of HAVE_MALLOC_POSIX.
27800         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
27801         HAVE_MALLOC_POSIX.
27802
27803         Use modern idiom for malloc() replacement.
27804         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
27805         AC_FUNC_MALLOC.
27806         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
27807         Autoconf's AC_FUNC_MALLOC.
27808         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27809         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27810         (gl_REPLACE_MALLOC): New macro.
27811         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27812
27813 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27814
27815         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27816         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27817         This macro takes 3 arguments, not 4.
27818
27819 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27820
27821         ipv6: fix detection under mingw
27822         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27823         in6_addr.
27824
27825 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27826
27827         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27828         that strtod() works when cross-compiling to a glibc version known
27829         to work.
27830
27831 2010-06-15  Bruno Haible  <bruno@clisp.org>
27832
27833         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27834
27835 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27836
27837         select: Correct timeout.
27838         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27839
27840 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27841
27842         git-version-gen: init shell var to avoid env var influence
27843         * build-aux/git-version-gen (v): Init shell var to empty.
27844
27845 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27846
27847         priv-set: Don't assume that priv.h exists merely because getppriv does.
27848         See Jan Andersen's bug report about AIX 5L in
27849         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27850         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27851         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27852         * lib/priv-set.h: Likewise.
27853         * tests/test-priv-set.c: Likewise.
27854
27855 2010-06-13  Bruno Haible  <bruno@clisp.org>
27856
27857         relocatable: Make it easier to test whether to install wrappers.
27858         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27859         RELOCATABLE_VIA_WRAPPER.
27860
27861 2010-06-13  Bruno Haible  <bruno@clisp.org>
27862
27863         gnulib-tool: Display specified modules and dependencies differently.
27864         * gnulib-tool (func_show_module_list): New function.
27865         (func_import, func_create_testdir): Invoke it.
27866         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27867
27868 2010-06-13  Bruno Haible  <bruno@clisp.org>
27869
27870         gnulib-tool: Align code of func_import and func_create_testdir.
27871         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27872         specified_modules.
27873
27874 2010-06-12  Jim Meyering  <meyering@redhat.com>
27875
27876         test-inttostr: avoid spurious failure on Solaris 9
27877         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27878         to accept "%ju".  Reported by Bruno Haible.
27879
27880 2010-06-11  Jim Meyering  <meyering@redhat.com>
27881
27882         test-sys_socket: mark variables as used more readably
27883         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27884         as "used" explicitly via (void) statement casts.  This is more
27885         readable than using them in an artificial return expression.
27886         Suggestion from Bruno Haible.
27887
27888 2010-06-11  Bruno Haible  <bruno@clisp.org>
27889
27890         Avoid some more warnings from "gcc -Wwrite-strings".
27891         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27892         to 'const char *'.
27893         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27894         * tests/test-c-strcasestr.c (main): Likewise.
27895         * tests/test-mbscasestr1.c (main): Likewise.
27896         * tests/test-mbscasestr2.c (main): Likewise.
27897         * tests/test-memmem.c (main): Likewise.
27898         * tests/test-strstr.c (main): Likewise.
27899         * tests/test-strcasestr.c (main): Likewise.
27900
27901 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27902
27903         init.sh: change framework_failure_ to fail with status 99, not 1
27904         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27905         automake's parallel-tests rule that this is an unexpected failure,
27906         even if the test is listed in XFAIL_TESTS.
27907
27908 2010-06-11  Jim Meyering  <meyering@redhat.com>
27909
27910         test-inttostr: avoid warnings about 4-6KB literal strings
27911         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27912         Include "macros.h", for its definition of ASSERT.
27913         (CK): s/assert/ASSERT/
27914         * modules/inttostr-tests (Files): Add macros.h.
27915
27916         init.sh: don't use $ME_ or skip_ before they are defined
27917         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27918         their first uses.  Also hoist their companions: warn_, fail_,
27919         framework_failure_, $stderr_fileno.  Prompted by a patch from
27920         Stefano Lattarini.
27921
27922         test-sys_socket: avoid set-but-not-used warnings from gcc
27923         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27924         avoid warning about set-but-not-used variables.
27925
27926         test-xvasprintf: avoid 'const' discard warnings
27927         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27928         "const" when assigning from literal strings.
27929         (test_xasprintf): Add "void" in function argument list to placate
27930         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27931
27932         tests: avoid compilation warnings in argmatch and exclude tests...
27933         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27934         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27935         Since it always exits, declare with the "noreturn" attribute.
27936         * tests/test-argmatch.c: Likewise.
27937
27938         tests: avoid 'const' discard warnings in mbsstr tests
27939         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27940         * tests/test-mbsstr2.c (main): Likewise.
27941
27942         test-verify: avoid warning from gcc's -Wmissing-declarations
27943         * tests/test-verify.c (function): Declare to be static.
27944
27945         test-inttostr.c: include <string.h> for use of strcmp
27946         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27947
27948         test-linkat: avoid failed assertion on "other" architectures
27949         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27950         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27951         sparc: https://bugs.launchpad.net/bugs/591968
27952
27953 2010-06-11  Jim Meyering  <meyering@redhat.com>
27954
27955         printf.m4: avoid autoconf's "Expanded Before Required" warning
27956         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27957         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27958         autoconf warning.
27959
27960 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27961
27962         Replacement header templates are now named with ".in", not "_".
27963         * doc/gnulib-intro.texi: Correct.
27964
27965 2010-06-10  Jim Meyering  <meyering@redhat.com>
27966
27967         inttostr-tests: depend on snprintf, not snprintf-posix
27968         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27969         snprintf-posix, to avoid this aclocal failure:
27970           missing file gnulib-tests/vasnprintf.c
27971           configure.ac:45: error: expected source file, required through \
27972           AC_LIBSOURCES, not found
27973
27974 2010-06-10  Jim Meyering  <meyering@redhat.com>
27975
27976         inttostr: add a new function, inttostr, and tests
27977         The namesake function was not available.  The existence of the
27978         template file, inttostr.c makes its addition nontrivial.
27979         * lib/anytostr.c: Rename from inttostr.c.
27980         (anytostr): Rename from inttostr.
27981         * lib/inttostr.c: New file.
27982         * modules/inttostr (Files): Add anytostr.c.
27983         (Makefile.am): Set lib_SOURCES instead of ...
27984         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27985         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27986         * lib/offtostr.c: Likewise.
27987         * lib/uinttostr.c: Likewise.
27988         * lib/umaxtostr.c: Likewise.
27989         * modules/inttostr-tests: New file.
27990         * tests/test-inttostr.c: New file.  Test these functions.
27991
27992 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27993             Bruno Haible  <bruno@clisp.org>
27994
27995         Add "Extending Gnulib" chapter to manual.
27996         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27997         chapter.
27998         (Extending Gnulib): New chapter.
27999         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
28000         chapter.
28001
28002 2010-06-09  Bruno Haible  <bruno@clisp.org>
28003
28004         Avoid relocwrapper link errors due to gnulib replacement functions.
28005         * lib/areadlink.c: Use the system's malloc, realloc functions.
28006         (areadlink): Set errno to ENOMEM explicitly.
28007         * modules/areadlink (Depends-on): Remove malloc-posix.
28008         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28009
28010 2010-06-09  Bruno Haible  <bruno@clisp.org>
28011
28012         Avoid relocwrapper link errors due to gnulib replacement functions.
28013         * lib/canonicalize-lgpl.c: Use the system's malloc function.
28014         * lib/malloca.c: Likewise.
28015         * lib/relocatable.c: Likewise.
28016         * lib/progreloc.c: Use the system's malloc, sprintf functions.
28017         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
28018         * lib/setenv.c: Use the system's malloc, realloc functions.
28019         * lib/strerror.c: Use the system's sprintf function.
28020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28021
28022 2010-06-04  Bruno Haible  <bruno@clisp.org>
28023
28024         Prefer documented low-level autoconf macro names.
28025         * m4/lib-link.m4: Use m4_translit instead of translit.
28026         * m4/environ.m4: Likewise.
28027         * m4/mathfunc.m4: Likewise.
28028         * m4/onceonly.m4: Likewise.
28029         * m4/stdint.m4: Likewise.
28030         Suggested by Eric Blake.
28031
28032 2010-06-04  Martin Lambers  <marlam@marlam.de>
28033             Bruno Haible  <bruno@clisp.org>
28034
28035         havelib: Allow library names with '+' characters.
28036         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
28037         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
28038
28039 2010-06-09  Bruno Haible  <bruno@clisp.org>
28040
28041         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
28042         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
28043         realloc failed.
28044
28045 2010-06-08  Peter Simons  <simons@cryp.to>
28046
28047         maint.mk: make the news-check rule more configurable
28048         * top/maint.mk (news-check-lines-spec): New variable.
28049         (news-check): Use "sed -n 1,10p" in place of "head".
28050
28051 2010-06-07  Jim Meyering  <meyering@redhat.com>
28052
28053         do-release-commit-and-tag: fix typo in --help
28054         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
28055
28056         regex: avoid new dead-code warning with gcc-4.6.0
28057         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
28058         if-block containing a while-loop.  It's been unused for at least
28059         5 years.
28060
28061 2010-06-05  Bruno Haible  <bruno@clisp.org>
28062
28063         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
28064         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
28065
28066 2010-06-04  Bruno Haible  <bruno@clisp.org>
28067
28068         Update to GNU gettext 0.18.1.
28069         * modules/gettext (configure.ac): Require gettext infrastructure from
28070         version 0.18.1.
28071
28072 2010-06-03  Bruno Haible  <bruno@clisp.org>
28073
28074         Don't use AC_LIBOBJ with file names in subdirectories.
28075         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
28076         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
28077         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
28078         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
28079         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
28080         gl_LIBUNISTRING_LIBSOURCE.
28081         (Makefile.am): Augment lib_SOURCES here, conditionally.
28082         * NEWS: Drop requirement for Automake option 'subdir-objects'.
28083
28084 2010-06-03  Bruno Haible  <bruno@clisp.org>
28085
28086         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
28087         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
28088         expansion does not end with a newline.
28089         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
28090         unnecessary newline.
28091
28092 2010-06-03  Bruno Haible  <bruno@clisp.org>
28093
28094         Reduce dependencies.
28095         * tests/test-quotearg.h: New file, extracted from
28096         tests/test-quotearg.c.
28097         * tests/test-quotearg-simple.c: New file, extracted from
28098         tests/test-quotearg.c.
28099         * tests/test-quotearg.c: Don't include <ctype.h>.
28100         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
28101         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
28102         use_quote_double_quotes, use_quotearg_colon): Moved to
28103         tests/test-quotearg.h.
28104         (results_g, flag_results, custom_quotes, custom_results): Moved
28105         to tests/test-quotearg-simple.c.
28106         (main): Moved the part that does not depend on gettext to
28107         tests/test-quotearg-simple.c. Return 77 if the test cannot be
28108         performed.
28109         * modules/quotearg-simple: New file.
28110         * modules/quotearg-simple-tests: New file.
28111         * modules/quotearg (Depends-on): Add quotearg-simple.
28112         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
28113         (Files): Add tests/test-quotearg.h.
28114         Reported by Paolo Bonzini.
28115
28116 2010-06-03  Bruno Haible  <bruno@clisp.org>
28117
28118         Reduce dependencies.
28119         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
28120
28121 2010-06-03  Bruno Haible  <bruno@clisp.org>
28122
28123         time: Undefine more broken macros.
28124         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
28125         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
28126         Reported by Eric Blake.
28127
28128 2010-06-03  Bruno Haible  <bruno@clisp.org>
28129
28130         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
28131         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
28132         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
28133         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
28134         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
28135         Reported by Ludovic Courtès <ludo@gnu.org>.
28136
28137 2010-06-02  Eric Blake  <eblake@redhat.com>
28138
28139         time: work with mingw + pthreads-win32 library
28140         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
28141         if timespec is defined only in pthread.h.
28142         * modules/time (Makefile.am): Substitute it.
28143         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
28144         <pthread.h>, when needed.
28145         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
28146         from the library.
28147
28148 2010-05-31  Bruno Haible  <bruno@clisp.org>
28149
28150         Avoid expanding two macros in the wrong order.
28151         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
28152         gl_LIBUNISTRING if it is defined.
28153         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
28154         autoconf >= 2.64.
28155         Reported by Ludovic Courtès <ludo@gnu.org>.
28156
28157 2010-05-27  Jim Meyering  <meyering@redhat.com>
28158
28159         maint.mk: also prohibit "#undef" of always-defined symbols
28160         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
28161         Allow more than one space before the symbol name.
28162         (sc_prohibit_always-defined_macros): Use grep's -E, now that
28163         the regexp uses alternation.
28164
28165 2010-05-26  Eric Blake  <eblake@redhat.com>
28166
28167         maint.mk: avoid echo -e
28168         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
28169         Convert all uses of echo -* to printf.
28170         Reported by Matthias Bolte.
28171
28172 2010-05-25  Bruno Haible  <bruno@clisp.org>
28173
28174         Update to GNU gettext 0.18, part 2.
28175         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
28176         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
28177
28178 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28179
28180         Add missing include in test-pwrite.c.
28181         * tests/test-pwrite.c: Include string.h, for strcmp.
28182
28183 2010-05-24  Bruno Haible  <bruno@clisp.org>
28184
28185         * NEWS: Mention requirement for Automake option 'subdir-objects'.
28186
28187 2010-05-24  Bruno Haible  <bruno@clisp.org>
28188
28189         Don't use conversion with transliteration in u{8,16,32}_strcoll.
28190         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
28191         iconveh_error argument.
28192         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
28193         U_STRCONV_TO_LOCALE.
28194         * lib/unistr/u16-strcoll.c: Likewise.
28195         * lib/unistr/u32-strcoll.c: Likewise.
28196         * modules/unistr/u8-strcoll (Depends-on): Add
28197         uniconv/u8-strconv-to-enc, localcharset. Remove
28198         uniconv/u8-strconv-to-locale.
28199         (configure.ac): Bump version number.
28200         * modules/unistr/u16-strcoll (Depends-on): Add
28201         uniconv/u16-strconv-to-enc, localcharset. Remove
28202         uniconv/u16-strconv-to-locale.
28203         (configure.ac): Bump version number.
28204         * modules/unistr/u32-strcoll (Depends-on): Add
28205         uniconv/u32-strconv-to-enc, localcharset. Remove
28206         uniconv/u32-strconv-to-locale.
28207         (configure.ac): Bump version number.
28208
28209 2010-05-24  Bruno Haible  <bruno@clisp.org>
28210
28211         Avoid a test failure on NetBSD 5.0.
28212         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
28213         an iconv() bug.
28214
28215 2010-05-24  Bruno Haible  <bruno@clisp.org>
28216
28217         Adjust #include directive style.
28218         * modules/regex (Includes): Recommend to write <regex.h>.
28219
28220 2010-05-24  Bruno Haible  <bruno@clisp.org>
28221
28222         regex: Don't require alloca.
28223         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
28224         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
28225         only inside if (0).
28226
28227 2010-05-23  Jim Meyering  <meyering@redhat.com>
28228
28229         test-renameat.c: include <sys/stat.h>
28230         * tests/test-renameat.c: Include <sys/stat.h>; required for
28231         definition of S_IS* macros.
28232
28233 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
28234
28235         Update maintainer documentation for 'relocatable-prog' module.
28236         * doc/relocatable-maint.texi: Update.
28237         Comments by Bruno Haible.
28238
28239 2010-05-23  Bruno Haible  <bruno@clisp.org>
28240
28241         git-merge-changelog: Enable --split-merged-entry by default.
28242         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
28243         (usage): Don't mention this option any more.
28244         Reported by Ralf Wildenhues.
28245
28246 2010-05-23  Jim Meyering  <meyering@redhat.com>
28247
28248         test-pwrite: do not leave behind a test file named "out"
28249         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
28250         The trivial-looking use of init.sh is really necessary.
28251         It ensures that the temporary file, "out", is created in
28252         a temporary directory, and removed upon termination.
28253         * tests/test-pwrite.sh: Re-add file.
28254         * modules/pwrite-tests: Reference it.
28255
28256 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28257
28258         Fix output redirection buglet in init.sh.
28259         * tests/init.sh: Fix redirection of stderr.
28260
28261 2010-05-20  Simon Josefsson  <simon@josefsson.org>
28262
28263         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
28264
28265 2010-05-17  Simon Josefsson  <simon@josefsson.org>
28266
28267         * modules/valgrind-tests: New file.
28268         * m4/valgrind-tests.m4: New file.
28269         * doc/valgrind-tests.texi: New file.
28270         * doc/gnulib.texi (Running self-tests under valgrind): New
28271         section.
28272
28273 2010-05-19  Bruno Haible  <bruno@clisp.org>
28274
28275         Clean up dead code in recent commit.
28276         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
28277         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
28278         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
28279         Suggested by Paolo Bonzini.
28280
28281 2010-05-19  Bruno Haible  <bruno@clisp.org>
28282
28283         Avoid valgrind error reports from libunistring.
28284         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
28285         * modules/libunistring (Files): Add it.
28286         * modules/libunistring-optional (Files): Likewise.
28287
28288 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
28289             Bruno Haible  <bruno@clisp.org>
28290
28291         New module 'libunistring-optional'.
28292         * modules/libunistring-optional: New file.
28293         * m4/libunistring-base.m4: New file.
28294         * m4/libunistring-optional.m4: New file.
28295         * lib/unicase.in.h: Renamed from lib/unicase.h.
28296         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
28297         * lib/unictype.in.h: Renamed from lib/unictype.h.
28298         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
28299         * lib/uniname.in.h: Renamed from lib/uniname.h.
28300         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
28301         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
28302         * lib/unistr.in.h: Renamed from lib/unistr.h.
28303         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
28304         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
28305         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
28306         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
28307         gl_LIBUNISTRING. If the library was found, determine the installed
28308         version and set LIBUNISTRING_VERSION.
28309         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
28310         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
28311         handle a configuration option --with-included-libunistring.
28312         * modules/libunistring (Files): Add m4/absolute-header.m4.
28313         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
28314         Add m4/libunistring-base.m4.
28315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28316         (Makefile.am): Build unicase.h from unicase.in.h.
28317         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
28318         Add m4/libunistring-base.m4.
28319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28320         (Makefile.am): Build uniconv.h from uniconv.in.h.
28321         * modules/unictype/base (Files): Use unictype.in.h instead of
28322         unictype.h. Add m4/libunistring-base.m4.
28323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28324         (Makefile.am): Build unictype.h from unictype.in.h.
28325         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
28326         Add m4/libunistring-base.m4.
28327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28328         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
28329         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
28330         Add m4/libunistring-base.m4.
28331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28332         (Makefile.am): Build uniname.h from uniname.in.h.
28333         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
28334         Add m4/libunistring-base.m4.
28335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28336         (Makefile.am): Build uninorm.h from uninorm.in.h.
28337         * modules/unistdio/base (Files): Use unistdio.in.h instead of
28338         unistdio.h. Add m4/libunistring-base.m4.
28339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28340         (Makefile.am): Build unistdio.h from unistdio.in.h.
28341         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
28342         Add m4/libunistring-base.m4.
28343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28344         (Makefile.am): Build unistr.h from unistr.in.h.
28345         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
28346         Add m4/libunistring-base.m4.
28347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28348         (Makefile.am): Build unitypes.h from unitypes.in.h.
28349         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
28350         Add m4/libunistring-base.m4.
28351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28352         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
28353         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
28354         uniwidth.h. Add m4/libunistring-base.m4.
28355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
28356         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
28357         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
28358         instead of augmenting lib_SOURCES.
28359         * modules/unicase/empty-suffix-context: Likewise.
28360         * modules/unicase/locale-language: Likewise.
28361         * modules/unicase/tolower: Likewise.
28362         * modules/unicase/totitle: Likewise.
28363         * modules/unicase/toupper: Likewise.
28364         * modules/unicase/u8-casecmp: Likewise.
28365         * modules/unicase/u8-casecoll: Likewise.
28366         * modules/unicase/u8-casefold: Likewise.
28367         * modules/unicase/u8-casexfrm: Likewise.
28368         * modules/unicase/u8-ct-casefold: Likewise.
28369         * modules/unicase/u8-ct-tolower: Likewise.
28370         * modules/unicase/u8-ct-totitle: Likewise.
28371         * modules/unicase/u8-ct-toupper: Likewise.
28372         * modules/unicase/u8-is-cased: Likewise.
28373         * modules/unicase/u8-is-casefolded: Likewise.
28374         * modules/unicase/u8-is-lowercase: Likewise.
28375         * modules/unicase/u8-is-titlecase: Likewise.
28376         * modules/unicase/u8-is-uppercase: Likewise.
28377         * modules/unicase/u8-prefix-context: Likewise.
28378         * modules/unicase/u8-suffix-context: Likewise.
28379         * modules/unicase/u8-tolower: Likewise.
28380         * modules/unicase/u8-totitle: Likewise.
28381         * modules/unicase/u8-toupper: Likewise.
28382         * modules/unicase/u16-casecmp: Likewise.
28383         * modules/unicase/u16-casecoll: Likewise.
28384         * modules/unicase/u16-casefold: Likewise.
28385         * modules/unicase/u16-casexfrm: Likewise.
28386         * modules/unicase/u16-ct-casefold: Likewise.
28387         * modules/unicase/u16-ct-tolower: Likewise.
28388         * modules/unicase/u16-ct-totitle: Likewise.
28389         * modules/unicase/u16-ct-toupper: Likewise.
28390         * modules/unicase/u16-is-cased: Likewise.
28391         * modules/unicase/u16-is-casefolded: Likewise.
28392         * modules/unicase/u16-is-lowercase: Likewise.
28393         * modules/unicase/u16-is-titlecase: Likewise.
28394         * modules/unicase/u16-is-uppercase: Likewise.
28395         * modules/unicase/u16-prefix-context: Likewise.
28396         * modules/unicase/u16-suffix-context: Likewise.
28397         * modules/unicase/u16-tolower: Likewise.
28398         * modules/unicase/u16-totitle: Likewise.
28399         * modules/unicase/u16-toupper: Likewise.
28400         * modules/unicase/u32-casecmp: Likewise.
28401         * modules/unicase/u32-casecoll: Likewise.
28402         * modules/unicase/u32-casefold: Likewise.
28403         * modules/unicase/u32-casexfrm: Likewise.
28404         * modules/unicase/u32-ct-casefold: Likewise.
28405         * modules/unicase/u32-ct-tolower: Likewise.
28406         * modules/unicase/u32-ct-totitle: Likewise.
28407         * modules/unicase/u32-ct-toupper: Likewise.
28408         * modules/unicase/u32-is-cased: Likewise.
28409         * modules/unicase/u32-is-casefolded: Likewise.
28410         * modules/unicase/u32-is-lowercase: Likewise.
28411         * modules/unicase/u32-is-titlecase: Likewise.
28412         * modules/unicase/u32-is-uppercase: Likewise.
28413         * modules/unicase/u32-prefix-context: Likewise.
28414         * modules/unicase/u32-suffix-context: Likewise.
28415         * modules/unicase/u32-tolower: Likewise.
28416         * modules/unicase/u32-totitle: Likewise.
28417         * modules/unicase/u32-toupper: Likewise.
28418         * modules/unicase/ulc-casecmp: Likewise.
28419         * modules/unicase/ulc-casecoll: Likewise.
28420         * modules/unicase/ulc-casexfrm: Likewise.
28421         * modules/uniconv/u8-conv-from-enc: Likewise.
28422         * modules/uniconv/u8-conv-to-enc: Likewise.
28423         * modules/uniconv/u8-strconv-from-enc: Likewise.
28424         * modules/uniconv/u8-strconv-from-locale: Likewise.
28425         * modules/uniconv/u8-strconv-to-enc: Likewise.
28426         * modules/uniconv/u8-strconv-to-locale: Likewise.
28427         * modules/uniconv/u16-conv-from-enc: Likewise.
28428         * modules/uniconv/u16-conv-to-enc: Likewise.
28429         * modules/uniconv/u16-strconv-from-enc: Likewise.
28430         * modules/uniconv/u16-strconv-from-locale: Likewise.
28431         * modules/uniconv/u16-strconv-to-enc: Likewise.
28432         * modules/uniconv/u16-strconv-to-locale: Likewise.
28433         * modules/uniconv/u32-conv-from-enc: Likewise.
28434         * modules/uniconv/u32-conv-to-enc: Likewise.
28435         * modules/uniconv/u32-strconv-from-enc: Likewise.
28436         * modules/uniconv/u32-strconv-from-locale: Likewise.
28437         * modules/uniconv/u32-strconv-to-enc: Likewise.
28438         * modules/uniconv/u32-strconv-to-locale: Likewise.
28439         * modules/unictype/bidicategory-byname: Likewise.
28440         * modules/unictype/bidicategory-name: Likewise.
28441         * modules/unictype/bidicategory-of: Likewise.
28442         * modules/unictype/bidicategory-test: Likewise.
28443         * modules/unictype/block-list: Likewise.
28444         * modules/unictype/block-test: Likewise.
28445         * modules/unictype/category-C: Likewise.
28446         * modules/unictype/category-Cc: Likewise.
28447         * modules/unictype/category-Cf: Likewise.
28448         * modules/unictype/category-Cn: Likewise.
28449         * modules/unictype/category-Co: Likewise.
28450         * modules/unictype/category-Cs: Likewise.
28451         * modules/unictype/category-L: Likewise.
28452         * modules/unictype/category-Ll: Likewise.
28453         * modules/unictype/category-Lm: Likewise.
28454         * modules/unictype/category-Lo: Likewise.
28455         * modules/unictype/category-Lt: Likewise.
28456         * modules/unictype/category-Lu: Likewise.
28457         * modules/unictype/category-M: Likewise.
28458         * modules/unictype/category-Mc: Likewise.
28459         * modules/unictype/category-Me: Likewise.
28460         * modules/unictype/category-Mn: Likewise.
28461         * modules/unictype/category-N: Likewise.
28462         * modules/unictype/category-Nd: Likewise.
28463         * modules/unictype/category-Nl: Likewise.
28464         * modules/unictype/category-No: Likewise.
28465         * modules/unictype/category-P: Likewise.
28466         * modules/unictype/category-Pc: Likewise.
28467         * modules/unictype/category-Pd: Likewise.
28468         * modules/unictype/category-Pe: Likewise.
28469         * modules/unictype/category-Pf: Likewise.
28470         * modules/unictype/category-Pi: Likewise.
28471         * modules/unictype/category-Po: Likewise.
28472         * modules/unictype/category-Ps: Likewise.
28473         * modules/unictype/category-S: Likewise.
28474         * modules/unictype/category-Sc: Likewise.
28475         * modules/unictype/category-Sk: Likewise.
28476         * modules/unictype/category-Sm: Likewise.
28477         * modules/unictype/category-So: Likewise.
28478         * modules/unictype/category-Z: Likewise.
28479         * modules/unictype/category-Zl: Likewise.
28480         * modules/unictype/category-Zp: Likewise.
28481         * modules/unictype/category-Zs: Likewise.
28482         * modules/unictype/category-and: Likewise.
28483         * modules/unictype/category-and-not: Likewise.
28484         * modules/unictype/category-byname: Likewise.
28485         * modules/unictype/category-name: Likewise.
28486         * modules/unictype/category-none: Likewise.
28487         * modules/unictype/category-of: Likewise.
28488         * modules/unictype/category-or: Likewise.
28489         * modules/unictype/category-test: Likewise.
28490         * modules/unictype/combining-class: Likewise.
28491         * modules/unictype/ctype-alnum: Likewise.
28492         * modules/unictype/ctype-alpha: Likewise.
28493         * modules/unictype/ctype-blank: Likewise.
28494         * modules/unictype/ctype-cntrl: Likewise.
28495         * modules/unictype/ctype-digit: Likewise.
28496         * modules/unictype/ctype-graph: Likewise.
28497         * modules/unictype/ctype-lower: Likewise.
28498         * modules/unictype/ctype-print: Likewise.
28499         * modules/unictype/ctype-punct: Likewise.
28500         * modules/unictype/ctype-space: Likewise.
28501         * modules/unictype/ctype-upper: Likewise.
28502         * modules/unictype/ctype-xdigit: Likewise.
28503         * modules/unictype/decimal-digit: Likewise.
28504         * modules/unictype/digit: Likewise.
28505         * modules/unictype/mirror: Likewise.
28506         * modules/unictype/numeric: Likewise.
28507         * modules/unictype/property-alphabetic: Likewise.
28508         * modules/unictype/property-ascii-hex-digit: Likewise.
28509         * modules/unictype/property-bidi-arabic-digit: Likewise.
28510         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
28511         * modules/unictype/property-bidi-block-separator: Likewise.
28512         * modules/unictype/property-bidi-boundary-neutral: Likewise.
28513         * modules/unictype/property-bidi-common-separator: Likewise.
28514         * modules/unictype/property-bidi-control: Likewise.
28515         * modules/unictype/property-bidi-embedding-or-override: Likewise.
28516         * modules/unictype/property-bidi-eur-num-separator: Likewise.
28517         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
28518         * modules/unictype/property-bidi-european-digit: Likewise.
28519         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
28520         * modules/unictype/property-bidi-left-to-right: Likewise.
28521         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
28522         * modules/unictype/property-bidi-other-neutral: Likewise.
28523         * modules/unictype/property-bidi-pdf: Likewise.
28524         * modules/unictype/property-bidi-segment-separator: Likewise.
28525         * modules/unictype/property-bidi-whitespace: Likewise.
28526         * modules/unictype/property-byname: Likewise.
28527         * modules/unictype/property-combining: Likewise.
28528         * modules/unictype/property-composite: Likewise.
28529         * modules/unictype/property-currency-symbol: Likewise.
28530         * modules/unictype/property-dash: Likewise.
28531         * modules/unictype/property-decimal-digit: Likewise.
28532         * modules/unictype/property-default-ignorable-code-point: Likewise.
28533         * modules/unictype/property-deprecated: Likewise.
28534         * modules/unictype/property-diacritic: Likewise.
28535         * modules/unictype/property-extender: Likewise.
28536         * modules/unictype/property-format-control: Likewise.
28537         * modules/unictype/property-grapheme-base: Likewise.
28538         * modules/unictype/property-grapheme-extend: Likewise.
28539         * modules/unictype/property-grapheme-link: Likewise.
28540         * modules/unictype/property-hex-digit: Likewise.
28541         * modules/unictype/property-hyphen: Likewise.
28542         * modules/unictype/property-id-continue: Likewise.
28543         * modules/unictype/property-id-start: Likewise.
28544         * modules/unictype/property-ideographic: Likewise.
28545         * modules/unictype/property-ids-binary-operator: Likewise.
28546         * modules/unictype/property-ids-trinary-operator: Likewise.
28547         * modules/unictype/property-ignorable-control: Likewise.
28548         * modules/unictype/property-iso-control: Likewise.
28549         * modules/unictype/property-join-control: Likewise.
28550         * modules/unictype/property-left-of-pair: Likewise.
28551         * modules/unictype/property-line-separator: Likewise.
28552         * modules/unictype/property-logical-order-exception: Likewise.
28553         * modules/unictype/property-lowercase: Likewise.
28554         * modules/unictype/property-math: Likewise.
28555         * modules/unictype/property-non-break: Likewise.
28556         * modules/unictype/property-not-a-character: Likewise.
28557         * modules/unictype/property-numeric: Likewise.
28558         * modules/unictype/property-other-alphabetic: Likewise.
28559         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
28560         * modules/unictype/property-other-grapheme-extend: Likewise.
28561         * modules/unictype/property-other-id-continue: Likewise.
28562         * modules/unictype/property-other-id-start: Likewise.
28563         * modules/unictype/property-other-lowercase: Likewise.
28564         * modules/unictype/property-other-math: Likewise.
28565         * modules/unictype/property-other-uppercase: Likewise.
28566         * modules/unictype/property-paired-punctuation: Likewise.
28567         * modules/unictype/property-paragraph-separator: Likewise.
28568         * modules/unictype/property-pattern-syntax: Likewise.
28569         * modules/unictype/property-pattern-white-space: Likewise.
28570         * modules/unictype/property-private-use: Likewise.
28571         * modules/unictype/property-punctuation: Likewise.
28572         * modules/unictype/property-quotation-mark: Likewise.
28573         * modules/unictype/property-radical: Likewise.
28574         * modules/unictype/property-sentence-terminal: Likewise.
28575         * modules/unictype/property-soft-dotted: Likewise.
28576         * modules/unictype/property-space: Likewise.
28577         * modules/unictype/property-terminal-punctuation: Likewise.
28578         * modules/unictype/property-test: Likewise.
28579         * modules/unictype/property-titlecase: Likewise.
28580         * modules/unictype/property-unassigned-code-value: Likewise.
28581         * modules/unictype/property-unified-ideograph: Likewise.
28582         * modules/unictype/property-uppercase: Likewise.
28583         * modules/unictype/property-variation-selector: Likewise.
28584         * modules/unictype/property-white-space: Likewise.
28585         * modules/unictype/property-xid-continue: Likewise.
28586         * modules/unictype/property-xid-start: Likewise.
28587         * modules/unictype/property-zero-width: Likewise.
28588         * modules/unictype/scripts: Likewise.
28589         * modules/unictype/syntax-c-ident: Likewise.
28590         * modules/unictype/syntax-c-whitespace: Likewise.
28591         * modules/unictype/syntax-java-ident: Likewise.
28592         * modules/unictype/syntax-java-whitespace: Likewise.
28593         * modules/unilbrk/u8-possible-linebreaks: Likewise.
28594         * modules/unilbrk/u8-width-linebreaks: Likewise.
28595         * modules/unilbrk/u16-possible-linebreaks: Likewise.
28596         * modules/unilbrk/u16-width-linebreaks: Likewise.
28597         * modules/unilbrk/u32-possible-linebreaks: Likewise.
28598         * modules/unilbrk/u32-width-linebreaks: Likewise.
28599         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
28600         * modules/unilbrk/ulc-width-linebreaks: Likewise.
28601         * modules/uniname/uniname: Likewise.
28602         * modules/uninorm/canonical-decomposition: Likewise.
28603         * modules/uninorm/composition: Likewise.
28604         * modules/uninorm/decomposing-form: Likewise.
28605         * modules/uninorm/decomposition: Likewise.
28606         * modules/uninorm/filter: Likewise.
28607         * modules/uninorm/nfc: Likewise.
28608         * modules/uninorm/nfd: Likewise.
28609         * modules/uninorm/nfkc: Likewise.
28610         * modules/uninorm/nfkd: Likewise.
28611         * modules/uninorm/u8-normalize: Likewise.
28612         * modules/uninorm/u8-normcmp: Likewise.
28613         * modules/uninorm/u8-normcoll: Likewise.
28614         * modules/uninorm/u8-normxfrm: Likewise.
28615         * modules/uninorm/u16-normalize: Likewise.
28616         * modules/uninorm/u16-normcmp: Likewise.
28617         * modules/uninorm/u16-normcoll: Likewise.
28618         * modules/uninorm/u16-normxfrm: Likewise.
28619         * modules/uninorm/u32-normalize: Likewise.
28620         * modules/uninorm/u32-normcmp: Likewise.
28621         * modules/uninorm/u32-normcoll: Likewise.
28622         * modules/uninorm/u32-normxfrm: Likewise.
28623         * modules/unistdio/u8-asnprintf: Likewise.
28624         * modules/unistdio/u8-asprintf: Likewise.
28625         * modules/unistdio/u8-snprintf: Likewise.
28626         * modules/unistdio/u8-sprintf: Likewise.
28627         * modules/unistdio/u8-u8-asnprintf: Likewise.
28628         * modules/unistdio/u8-u8-asprintf: Likewise.
28629         * modules/unistdio/u8-u8-snprintf: Likewise.
28630         * modules/unistdio/u8-u8-sprintf: Likewise.
28631         * modules/unistdio/u8-u8-vasnprintf: Likewise.
28632         * modules/unistdio/u8-u8-vasprintf: Likewise.
28633         * modules/unistdio/u8-u8-vsnprintf: Likewise.
28634         * modules/unistdio/u8-u8-vsprintf: Likewise.
28635         * modules/unistdio/u8-vasnprintf: Likewise.
28636         * modules/unistdio/u8-vasprintf: Likewise.
28637         * modules/unistdio/u8-vsnprintf: Likewise.
28638         * modules/unistdio/u8-vsprintf: Likewise.
28639         * modules/unistdio/u16-asnprintf: Likewise.
28640         * modules/unistdio/u16-asprintf: Likewise.
28641         * modules/unistdio/u16-snprintf: Likewise.
28642         * modules/unistdio/u16-sprintf: Likewise.
28643         * modules/unistdio/u16-u16-asnprintf: Likewise.
28644         * modules/unistdio/u16-u16-asprintf: Likewise.
28645         * modules/unistdio/u16-u16-snprintf: Likewise.
28646         * modules/unistdio/u16-u16-sprintf: Likewise.
28647         * modules/unistdio/u16-u16-vasnprintf: Likewise.
28648         * modules/unistdio/u16-u16-vasprintf: Likewise.
28649         * modules/unistdio/u16-u16-vsnprintf: Likewise.
28650         * modules/unistdio/u16-u16-vsprintf: Likewise.
28651         * modules/unistdio/u16-vasnprintf: Likewise.
28652         * modules/unistdio/u16-vasprintf: Likewise.
28653         * modules/unistdio/u16-vsnprintf: Likewise.
28654         * modules/unistdio/u16-vsprintf: Likewise.
28655         * modules/unistdio/u32-asnprintf: Likewise.
28656         * modules/unistdio/u32-asprintf: Likewise.
28657         * modules/unistdio/u32-snprintf: Likewise.
28658         * modules/unistdio/u32-sprintf: Likewise.
28659         * modules/unistdio/u32-u32-asnprintf: Likewise.
28660         * modules/unistdio/u32-u32-asprintf: Likewise.
28661         * modules/unistdio/u32-u32-snprintf: Likewise.
28662         * modules/unistdio/u32-u32-sprintf: Likewise.
28663         * modules/unistdio/u32-u32-vasnprintf: Likewise.
28664         * modules/unistdio/u32-u32-vasprintf: Likewise.
28665         * modules/unistdio/u32-u32-vsnprintf: Likewise.
28666         * modules/unistdio/u32-u32-vsprintf: Likewise.
28667         * modules/unistdio/u32-vasnprintf: Likewise.
28668         * modules/unistdio/u32-vasprintf: Likewise.
28669         * modules/unistdio/u32-vsnprintf: Likewise.
28670         * modules/unistdio/u32-vsprintf: Likewise.
28671         * modules/unistdio/ulc-asnprintf: Likewise.
28672         * modules/unistdio/ulc-asprintf: Likewise.
28673         * modules/unistdio/ulc-fprintf: Likewise.
28674         * modules/unistdio/ulc-snprintf: Likewise.
28675         * modules/unistdio/ulc-sprintf: Likewise.
28676         * modules/unistdio/ulc-vasnprintf: Likewise.
28677         * modules/unistdio/ulc-vasprintf: Likewise.
28678         * modules/unistdio/ulc-vfprintf: Likewise.
28679         * modules/unistdio/ulc-vsnprintf: Likewise.
28680         * modules/unistdio/ulc-vsprintf: Likewise.
28681         * modules/unistr/u8-check: Likewise.
28682         * modules/unistr/u8-chr: Likewise.
28683         * modules/unistr/u8-cmp: Likewise.
28684         * modules/unistr/u8-cmp2: Likewise.
28685         * modules/unistr/u8-cpy: Likewise.
28686         * modules/unistr/u8-cpy-alloc: Likewise.
28687         * modules/unistr/u8-endswith: Likewise.
28688         * modules/unistr/u8-mblen: Likewise.
28689         * modules/unistr/u8-mbsnlen: Likewise.
28690         * modules/unistr/u8-mbtouc: Likewise.
28691         * modules/unistr/u8-mbtouc-unsafe: Likewise.
28692         * modules/unistr/u8-mbtoucr: Likewise.
28693         * modules/unistr/u8-move: Likewise.
28694         * modules/unistr/u8-next: Likewise.
28695         * modules/unistr/u8-prev: Likewise.
28696         * modules/unistr/u8-set: Likewise.
28697         * modules/unistr/u8-startswith: Likewise.
28698         * modules/unistr/u8-stpcpy: Likewise.
28699         * modules/unistr/u8-stpncpy: Likewise.
28700         * modules/unistr/u8-strcat: Likewise.
28701         * modules/unistr/u8-strchr: Likewise.
28702         * modules/unistr/u8-strcmp: Likewise.
28703         * modules/unistr/u8-strcoll: Likewise.
28704         * modules/unistr/u8-strcpy: Likewise.
28705         * modules/unistr/u8-strcspn: Likewise.
28706         * modules/unistr/u8-strdup: Likewise.
28707         * modules/unistr/u8-strlen: Likewise.
28708         * modules/unistr/u8-strmblen: Likewise.
28709         * modules/unistr/u8-strmbtouc: Likewise.
28710         * modules/unistr/u8-strncat: Likewise.
28711         * modules/unistr/u8-strncmp: Likewise.
28712         * modules/unistr/u8-strncpy: Likewise.
28713         * modules/unistr/u8-strnlen: Likewise.
28714         * modules/unistr/u8-strpbrk: Likewise.
28715         * modules/unistr/u8-strrchr: Likewise.
28716         * modules/unistr/u8-strspn: Likewise.
28717         * modules/unistr/u8-strstr: Likewise.
28718         * modules/unistr/u8-strtok: Likewise.
28719         * modules/unistr/u8-to-u16: Likewise.
28720         * modules/unistr/u8-to-u32: Likewise.
28721         * modules/unistr/u8-uctomb: Likewise.
28722         * modules/unistr/u16-check: Likewise.
28723         * modules/unistr/u16-chr: Likewise.
28724         * modules/unistr/u16-cmp: Likewise.
28725         * modules/unistr/u16-cmp2: Likewise.
28726         * modules/unistr/u16-cpy: Likewise.
28727         * modules/unistr/u16-cpy-alloc: Likewise.
28728         * modules/unistr/u16-endswith: Likewise.
28729         * modules/unistr/u16-mblen: Likewise.
28730         * modules/unistr/u16-mbsnlen: Likewise.
28731         * modules/unistr/u16-mbtouc: Likewise.
28732         * modules/unistr/u16-mbtouc-unsafe: Likewise.
28733         * modules/unistr/u16-mbtoucr: Likewise.
28734         * modules/unistr/u16-move: Likewise.
28735         * modules/unistr/u16-next: Likewise.
28736         * modules/unistr/u16-prev: Likewise.
28737         * modules/unistr/u16-set: Likewise.
28738         * modules/unistr/u16-startswith: Likewise.
28739         * modules/unistr/u16-stpcpy: Likewise.
28740         * modules/unistr/u16-stpncpy: Likewise.
28741         * modules/unistr/u16-strcat: Likewise.
28742         * modules/unistr/u16-strchr: Likewise.
28743         * modules/unistr/u16-strcmp: Likewise.
28744         * modules/unistr/u16-strcoll: Likewise.
28745         * modules/unistr/u16-strcpy: Likewise.
28746         * modules/unistr/u16-strcspn: Likewise.
28747         * modules/unistr/u16-strdup: Likewise.
28748         * modules/unistr/u16-strlen: Likewise.
28749         * modules/unistr/u16-strmblen: Likewise.
28750         * modules/unistr/u16-strmbtouc: Likewise.
28751         * modules/unistr/u16-strncat: Likewise.
28752         * modules/unistr/u16-strncmp: Likewise.
28753         * modules/unistr/u16-strncpy: Likewise.
28754         * modules/unistr/u16-strnlen: Likewise.
28755         * modules/unistr/u16-strpbrk: Likewise.
28756         * modules/unistr/u16-strrchr: Likewise.
28757         * modules/unistr/u16-strspn: Likewise.
28758         * modules/unistr/u16-strstr: Likewise.
28759         * modules/unistr/u16-strtok: Likewise.
28760         * modules/unistr/u16-to-u32: Likewise.
28761         * modules/unistr/u16-to-u8: Likewise.
28762         * modules/unistr/u16-uctomb: Likewise.
28763         * modules/unistr/u32-check: Likewise.
28764         * modules/unistr/u32-chr: Likewise.
28765         * modules/unistr/u32-cmp: Likewise.
28766         * modules/unistr/u32-cmp2: Likewise.
28767         * modules/unistr/u32-cpy: Likewise.
28768         * modules/unistr/u32-cpy-alloc: Likewise.
28769         * modules/unistr/u32-endswith: Likewise.
28770         * modules/unistr/u32-mblen: Likewise.
28771         * modules/unistr/u32-mbsnlen: Likewise.
28772         * modules/unistr/u32-mbtouc: Likewise.
28773         * modules/unistr/u32-mbtouc-unsafe: Likewise.
28774         * modules/unistr/u32-mbtoucr: Likewise.
28775         * modules/unistr/u32-move: Likewise.
28776         * modules/unistr/u32-next: Likewise.
28777         * modules/unistr/u32-prev: Likewise.
28778         * modules/unistr/u32-set: Likewise.
28779         * modules/unistr/u32-startswith: Likewise.
28780         * modules/unistr/u32-stpcpy: Likewise.
28781         * modules/unistr/u32-stpncpy: Likewise.
28782         * modules/unistr/u32-strcat: Likewise.
28783         * modules/unistr/u32-strchr: Likewise.
28784         * modules/unistr/u32-strcmp: Likewise.
28785         * modules/unistr/u32-strcoll: Likewise.
28786         * modules/unistr/u32-strcpy: Likewise.
28787         * modules/unistr/u32-strcspn: Likewise.
28788         * modules/unistr/u32-strdup: Likewise.
28789         * modules/unistr/u32-strlen: Likewise.
28790         * modules/unistr/u32-strmblen: Likewise.
28791         * modules/unistr/u32-strmbtouc: Likewise.
28792         * modules/unistr/u32-strncat: Likewise.
28793         * modules/unistr/u32-strncmp: Likewise.
28794         * modules/unistr/u32-strncpy: Likewise.
28795         * modules/unistr/u32-strnlen: Likewise.
28796         * modules/unistr/u32-strpbrk: Likewise.
28797         * modules/unistr/u32-strrchr: Likewise.
28798         * modules/unistr/u32-strspn: Likewise.
28799         * modules/unistr/u32-strstr: Likewise.
28800         * modules/unistr/u32-strtok: Likewise.
28801         * modules/unistr/u32-to-u16: Likewise.
28802         * modules/unistr/u32-to-u8: Likewise.
28803         * modules/unistr/u32-uctomb: Likewise.
28804         * modules/uniwbrk/u8-wordbreaks: Likewise.
28805         * modules/uniwbrk/u16-wordbreaks: Likewise.
28806         * modules/uniwbrk/u32-wordbreaks: Likewise.
28807         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28808         * modules/uniwbrk/wordbreak-property: Likewise.
28809         * modules/uniwidth/u8-strwidth: Likewise.
28810         * modules/uniwidth/u8-width: Likewise.
28811         * modules/uniwidth/u16-strwidth: Likewise.
28812         * modules/uniwidth/u16-width: Likewise.
28813         * modules/uniwidth/u32-strwidth: Likewise.
28814         * modules/uniwidth/u32-width: Likewise.
28815         * modules/uniwidth/width: Likewise.
28816         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28817         with $(LIBUNISTRING).
28818         * modules/unicase/ignorable-tests: Likewise.
28819         * modules/unicase/locale-language-tests: Likewise.
28820         * modules/unicase/tolower-tests: Likewise.
28821         * modules/unicase/totitle-tests: Likewise.
28822         * modules/unicase/toupper-tests: Likewise.
28823         * modules/unicase/u8-casecmp-tests: Likewise.
28824         * modules/unicase/u8-casecoll-tests: Likewise.
28825         * modules/unicase/u8-casefold-tests: Likewise.
28826         * modules/unicase/u8-is-cased-tests: Likewise.
28827         * modules/unicase/u8-is-casefolded-tests: Likewise.
28828         * modules/unicase/u8-is-lowercase-tests: Likewise.
28829         * modules/unicase/u8-is-titlecase-tests: Likewise.
28830         * modules/unicase/u8-is-uppercase-tests: Likewise.
28831         * modules/unicase/u8-tolower-tests: Likewise.
28832         * modules/unicase/u8-totitle-tests: Likewise.
28833         * modules/unicase/u8-toupper-tests: Likewise.
28834         * modules/unicase/u16-casecmp-tests: Likewise.
28835         * modules/unicase/u16-casecoll-tests: Likewise.
28836         * modules/unicase/u16-casefold-tests: Likewise.
28837         * modules/unicase/u16-is-cased-tests: Likewise.
28838         * modules/unicase/u16-is-casefolded-tests: Likewise.
28839         * modules/unicase/u16-is-lowercase-tests: Likewise.
28840         * modules/unicase/u16-is-titlecase-tests: Likewise.
28841         * modules/unicase/u16-is-uppercase-tests: Likewise.
28842         * modules/unicase/u16-tolower-tests: Likewise.
28843         * modules/unicase/u16-totitle-tests: Likewise.
28844         * modules/unicase/u16-toupper-tests: Likewise.
28845         * modules/unicase/u32-casecmp-tests: Likewise.
28846         * modules/unicase/u32-casecoll-tests: Likewise.
28847         * modules/unicase/u32-casefold-tests: Likewise.
28848         * modules/unicase/u32-is-cased-tests: Likewise.
28849         * modules/unicase/u32-is-casefolded-tests: Likewise.
28850         * modules/unicase/u32-is-lowercase-tests: Likewise.
28851         * modules/unicase/u32-is-titlecase-tests: Likewise.
28852         * modules/unicase/u32-is-uppercase-tests: Likewise.
28853         * modules/unicase/u32-tolower-tests: Likewise.
28854         * modules/unicase/u32-totitle-tests: Likewise.
28855         * modules/unicase/u32-toupper-tests: Likewise.
28856         * modules/unicase/ulc-casecmp-tests: Likewise.
28857         * modules/unicase/ulc-casecoll-tests: Likewise.
28858         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28859         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28860         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28861         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28862         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28863         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28864         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28865         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28866         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28867         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28868         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28869         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28870         * modules/unictype/bidicategory-byname-tests: Likewise.
28871         * modules/unictype/bidicategory-name-tests: Likewise.
28872         * modules/unictype/bidicategory-of-tests: Likewise.
28873         * modules/unictype/bidicategory-test-tests: Likewise.
28874         * modules/unictype/block-list-tests: Likewise.
28875         * modules/unictype/block-of-tests: Likewise.
28876         * modules/unictype/block-test-tests: Likewise.
28877         * modules/unictype/category-C-tests: Likewise.
28878         * modules/unictype/category-Cc-tests: Likewise.
28879         * modules/unictype/category-Cf-tests: Likewise.
28880         * modules/unictype/category-Cn-tests: Likewise.
28881         * modules/unictype/category-Co-tests: Likewise.
28882         * modules/unictype/category-Cs-tests: Likewise.
28883         * modules/unictype/category-L-tests: Likewise.
28884         * modules/unictype/category-Ll-tests: Likewise.
28885         * modules/unictype/category-Lm-tests: Likewise.
28886         * modules/unictype/category-Lo-tests: Likewise.
28887         * modules/unictype/category-Lt-tests: Likewise.
28888         * modules/unictype/category-Lu-tests: Likewise.
28889         * modules/unictype/category-M-tests: Likewise.
28890         * modules/unictype/category-Mc-tests: Likewise.
28891         * modules/unictype/category-Me-tests: Likewise.
28892         * modules/unictype/category-Mn-tests: Likewise.
28893         * modules/unictype/category-N-tests: Likewise.
28894         * modules/unictype/category-Nd-tests: Likewise.
28895         * modules/unictype/category-Nl-tests: Likewise.
28896         * modules/unictype/category-No-tests: Likewise.
28897         * modules/unictype/category-P-tests: Likewise.
28898         * modules/unictype/category-Pc-tests: Likewise.
28899         * modules/unictype/category-Pd-tests: Likewise.
28900         * modules/unictype/category-Pe-tests: Likewise.
28901         * modules/unictype/category-Pf-tests: Likewise.
28902         * modules/unictype/category-Pi-tests: Likewise.
28903         * modules/unictype/category-Po-tests: Likewise.
28904         * modules/unictype/category-Ps-tests: Likewise.
28905         * modules/unictype/category-S-tests: Likewise.
28906         * modules/unictype/category-Sc-tests: Likewise.
28907         * modules/unictype/category-Sk-tests: Likewise.
28908         * modules/unictype/category-Sm-tests: Likewise.
28909         * modules/unictype/category-So-tests: Likewise.
28910         * modules/unictype/category-Z-tests: Likewise.
28911         * modules/unictype/category-Zl-tests: Likewise.
28912         * modules/unictype/category-Zp-tests: Likewise.
28913         * modules/unictype/category-Zs-tests: Likewise.
28914         * modules/unictype/category-and-not-tests: Likewise.
28915         * modules/unictype/category-and-tests: Likewise.
28916         * modules/unictype/category-byname-tests: Likewise.
28917         * modules/unictype/category-name-tests: Likewise.
28918         * modules/unictype/category-none-tests: Likewise.
28919         * modules/unictype/category-of-tests: Likewise.
28920         * modules/unictype/category-or-tests: Likewise.
28921         * modules/unictype/category-test-withtable-tests: Likewise.
28922         * modules/unictype/combining-class-tests: Likewise.
28923         * modules/unictype/ctype-alnum-tests: Likewise.
28924         * modules/unictype/ctype-alpha-tests: Likewise.
28925         * modules/unictype/ctype-blank-tests: Likewise.
28926         * modules/unictype/ctype-cntrl-tests: Likewise.
28927         * modules/unictype/ctype-digit-tests: Likewise.
28928         * modules/unictype/ctype-graph-tests: Likewise.
28929         * modules/unictype/ctype-lower-tests: Likewise.
28930         * modules/unictype/ctype-print-tests: Likewise.
28931         * modules/unictype/ctype-punct-tests: Likewise.
28932         * modules/unictype/ctype-space-tests: Likewise.
28933         * modules/unictype/ctype-upper-tests: Likewise.
28934         * modules/unictype/ctype-xdigit-tests: Likewise.
28935         * modules/unictype/decimal-digit-tests: Likewise.
28936         * modules/unictype/digit-tests: Likewise.
28937         * modules/unictype/mirror-tests: Likewise.
28938         * modules/unictype/numeric-tests: Likewise.
28939         * modules/unictype/property-alphabetic-tests: Likewise.
28940         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28941         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28942         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28943         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28944         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28945         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28946         * modules/unictype/property-bidi-control-tests: Likewise.
28947         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28948         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28949         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28950         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28951         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28952         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28953         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28954         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28955         * modules/unictype/property-bidi-pdf-tests: Likewise.
28956         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28957         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28958         * modules/unictype/property-byname-tests: Likewise.
28959         * modules/unictype/property-combining-tests: Likewise.
28960         * modules/unictype/property-composite-tests: Likewise.
28961         * modules/unictype/property-currency-symbol-tests: Likewise.
28962         * modules/unictype/property-dash-tests: Likewise.
28963         * modules/unictype/property-decimal-digit-tests: Likewise.
28964         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28965         * modules/unictype/property-deprecated-tests: Likewise.
28966         * modules/unictype/property-diacritic-tests: Likewise.
28967         * modules/unictype/property-extender-tests: Likewise.
28968         * modules/unictype/property-format-control-tests: Likewise.
28969         * modules/unictype/property-grapheme-base-tests: Likewise.
28970         * modules/unictype/property-grapheme-extend-tests: Likewise.
28971         * modules/unictype/property-grapheme-link-tests: Likewise.
28972         * modules/unictype/property-hex-digit-tests: Likewise.
28973         * modules/unictype/property-hyphen-tests: Likewise.
28974         * modules/unictype/property-id-continue-tests: Likewise.
28975         * modules/unictype/property-id-start-tests: Likewise.
28976         * modules/unictype/property-ideographic-tests: Likewise.
28977         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28978         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28979         * modules/unictype/property-ignorable-control-tests: Likewise.
28980         * modules/unictype/property-iso-control-tests: Likewise.
28981         * modules/unictype/property-join-control-tests: Likewise.
28982         * modules/unictype/property-left-of-pair-tests: Likewise.
28983         * modules/unictype/property-line-separator-tests: Likewise.
28984         * modules/unictype/property-logical-order-exception-tests: Likewise.
28985         * modules/unictype/property-lowercase-tests: Likewise.
28986         * modules/unictype/property-math-tests: Likewise.
28987         * modules/unictype/property-non-break-tests: Likewise.
28988         * modules/unictype/property-not-a-character-tests: Likewise.
28989         * modules/unictype/property-numeric-tests: Likewise.
28990         * modules/unictype/property-other-alphabetic-tests: Likewise.
28991         * modules/unictype/property-other-default-ignorable-code-point-tests:
28992         Likewise.
28993         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28994         * modules/unictype/property-other-id-continue-tests: Likewise.
28995         * modules/unictype/property-other-id-start-tests: Likewise.
28996         * modules/unictype/property-other-lowercase-tests: Likewise.
28997         * modules/unictype/property-other-math-tests: Likewise.
28998         * modules/unictype/property-other-uppercase-tests: Likewise.
28999         * modules/unictype/property-paired-punctuation-tests: Likewise.
29000         * modules/unictype/property-paragraph-separator-tests: Likewise.
29001         * modules/unictype/property-pattern-syntax-tests: Likewise.
29002         * modules/unictype/property-pattern-white-space-tests: Likewise.
29003         * modules/unictype/property-private-use-tests: Likewise.
29004         * modules/unictype/property-punctuation-tests: Likewise.
29005         * modules/unictype/property-quotation-mark-tests: Likewise.
29006         * modules/unictype/property-radical-tests: Likewise.
29007         * modules/unictype/property-sentence-terminal-tests: Likewise.
29008         * modules/unictype/property-soft-dotted-tests: Likewise.
29009         * modules/unictype/property-space-tests: Likewise.
29010         * modules/unictype/property-terminal-punctuation-tests: Likewise.
29011         * modules/unictype/property-test-tests: Likewise.
29012         * modules/unictype/property-titlecase-tests: Likewise.
29013         * modules/unictype/property-unassigned-code-value-tests: Likewise.
29014         * modules/unictype/property-unified-ideograph-tests: Likewise.
29015         * modules/unictype/property-uppercase-tests: Likewise.
29016         * modules/unictype/property-variation-selector-tests: Likewise.
29017         * modules/unictype/property-white-space-tests: Likewise.
29018         * modules/unictype/property-xid-continue-tests: Likewise.
29019         * modules/unictype/property-xid-start-tests: Likewise.
29020         * modules/unictype/property-zero-width-tests: Likewise.
29021         * modules/unictype/scripts-tests: Likewise.
29022         * modules/unictype/syntax-c-ident-tests: Likewise.
29023         * modules/unictype/syntax-c-whitespace-tests: Likewise.
29024         * modules/unictype/syntax-java-ident-tests: Likewise.
29025         * modules/unictype/syntax-java-whitespace-tests: Likewise.
29026         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
29027         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
29028         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
29029         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
29030         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
29031         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
29032         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
29033         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
29034         * modules/uniname/uniname-tests: Likewise.
29035         * modules/uninorm/canonical-decomposition-tests: Likewise.
29036         * modules/uninorm/compat-decomposition-tests: Likewise.
29037         * modules/uninorm/composition-tests: Likewise.
29038         * modules/uninorm/decomposing-form-tests: Likewise.
29039         * modules/uninorm/decomposition-tests: Likewise.
29040         * modules/uninorm/filter-tests: Likewise.
29041         * modules/uninorm/nfc-tests: Likewise.
29042         * modules/uninorm/nfd-tests: Likewise.
29043         * modules/uninorm/nfkc-tests: Likewise.
29044         * modules/uninorm/nfkd-tests: Likewise.
29045         * modules/uninorm/u8-normcmp-tests: Likewise.
29046         * modules/uninorm/u8-normcoll-tests: Likewise.
29047         * modules/uninorm/u16-normcmp-tests: Likewise.
29048         * modules/uninorm/u16-normcoll-tests: Likewise.
29049         * modules/uninorm/u32-normcmp-tests: Likewise.
29050         * modules/uninorm/u32-normcoll-tests: Likewise.
29051         * modules/unistdio/u8-asnprintf-tests: Likewise.
29052         * modules/unistdio/u8-vasnprintf-tests: Likewise.
29053         * modules/unistdio/u8-vasprintf-tests: Likewise.
29054         * modules/unistdio/u8-vsnprintf-tests: Likewise.
29055         * modules/unistdio/u8-vsprintf-tests: Likewise.
29056         * modules/unistdio/u16-asnprintf-tests: Likewise.
29057         * modules/unistdio/u16-vasnprintf-tests: Likewise.
29058         * modules/unistdio/u16-vasprintf-tests: Likewise.
29059         * modules/unistdio/u16-vsnprintf-tests: Likewise.
29060         * modules/unistdio/u16-vsprintf-tests: Likewise.
29061         * modules/unistdio/u32-asnprintf-tests: Likewise.
29062         * modules/unistdio/u32-vasnprintf-tests: Likewise.
29063         * modules/unistdio/u32-vasprintf-tests: Likewise.
29064         * modules/unistdio/u32-vsnprintf-tests: Likewise.
29065         * modules/unistdio/u32-vsprintf-tests: Likewise.
29066         * modules/unistdio/ulc-asnprintf-tests: Likewise.
29067         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
29068         * modules/unistdio/ulc-vasprintf-tests: Likewise.
29069         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
29070         * modules/unistdio/ulc-vsprintf-tests: Likewise.
29071         * modules/unistr/u8-check-tests: Likewise.
29072         * modules/unistr/u8-chr-tests: Likewise.
29073         * modules/unistr/u8-cmp-tests: Likewise.
29074         * modules/unistr/u8-cmp2-tests: Likewise.
29075         * modules/unistr/u8-cpy-alloc-tests: Likewise.
29076         * modules/unistr/u8-cpy-tests: Likewise.
29077         * modules/unistr/u8-mblen-tests: Likewise.
29078         * modules/unistr/u8-mbsnlen-tests: Likewise.
29079         * modules/unistr/u8-mbtouc-tests: Likewise.
29080         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
29081         * modules/unistr/u8-mbtoucr-tests: Likewise.
29082         * modules/unistr/u8-move-tests: Likewise.
29083         * modules/unistr/u8-next-tests: Likewise.
29084         * modules/unistr/u8-prev-tests: Likewise.
29085         * modules/unistr/u8-set-tests: Likewise.
29086         * modules/unistr/u8-stpcpy-tests: Likewise.
29087         * modules/unistr/u8-stpncpy-tests: Likewise.
29088         * modules/unistr/u8-strcat-tests: Likewise.
29089         * modules/unistr/u8-strcmp-tests: Likewise.
29090         * modules/unistr/u8-strcoll-tests: Likewise.
29091         * modules/unistr/u8-strcpy-tests: Likewise.
29092         * modules/unistr/u8-strdup-tests: Likewise.
29093         * modules/unistr/u8-strlen-tests: Likewise.
29094         * modules/unistr/u8-strmblen-tests: Likewise.
29095         * modules/unistr/u8-strmbtouc-tests: Likewise.
29096         * modules/unistr/u8-strncat-tests: Likewise.
29097         * modules/unistr/u8-strncmp-tests: Likewise.
29098         * modules/unistr/u8-strncpy-tests: Likewise.
29099         * modules/unistr/u8-strnlen-tests: Likewise.
29100         * modules/unistr/u8-to-u16-tests: Likewise.
29101         * modules/unistr/u8-to-u32-tests: Likewise.
29102         * modules/unistr/u8-uctomb-tests: Likewise.
29103         * modules/unistr/u16-check-tests: Likewise.
29104         * modules/unistr/u16-chr-tests: Likewise.
29105         * modules/unistr/u16-cmp-tests: Likewise.
29106         * modules/unistr/u16-cmp2-tests: Likewise.
29107         * modules/unistr/u16-cpy-alloc-tests: Likewise.
29108         * modules/unistr/u16-cpy-tests: Likewise.
29109         * modules/unistr/u16-mblen-tests: Likewise.
29110         * modules/unistr/u16-mbsnlen-tests: Likewise.
29111         * modules/unistr/u16-mbtouc-tests: Likewise.
29112         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
29113         * modules/unistr/u16-mbtoucr-tests: Likewise.
29114         * modules/unistr/u16-move-tests: Likewise.
29115         * modules/unistr/u16-next-tests: Likewise.
29116         * modules/unistr/u16-prev-tests: Likewise.
29117         * modules/unistr/u16-set-tests: Likewise.
29118         * modules/unistr/u16-stpcpy-tests: Likewise.
29119         * modules/unistr/u16-stpncpy-tests: Likewise.
29120         * modules/unistr/u16-strcat-tests: Likewise.
29121         * modules/unistr/u16-strcmp-tests: Likewise.
29122         * modules/unistr/u16-strcoll-tests: Likewise.
29123         * modules/unistr/u16-strcpy-tests: Likewise.
29124         * modules/unistr/u16-strdup-tests: Likewise.
29125         * modules/unistr/u16-strlen-tests: Likewise.
29126         * modules/unistr/u16-strmblen-tests: Likewise.
29127         * modules/unistr/u16-strmbtouc-tests: Likewise.
29128         * modules/unistr/u16-strncat-tests: Likewise.
29129         * modules/unistr/u16-strncmp-tests: Likewise.
29130         * modules/unistr/u16-strncpy-tests: Likewise.
29131         * modules/unistr/u16-strnlen-tests: Likewise.
29132         * modules/unistr/u16-to-u32-tests: Likewise.
29133         * modules/unistr/u16-to-u8-tests: Likewise.
29134         * modules/unistr/u16-uctomb-tests: Likewise.
29135         * modules/unistr/u32-check-tests: Likewise.
29136         * modules/unistr/u32-chr-tests: Likewise.
29137         * modules/unistr/u32-cmp-tests: Likewise.
29138         * modules/unistr/u32-cmp2-tests: Likewise.
29139         * modules/unistr/u32-cpy-alloc-tests: Likewise.
29140         * modules/unistr/u32-cpy-tests: Likewise.
29141         * modules/unistr/u32-mblen-tests: Likewise.
29142         * modules/unistr/u32-mbsnlen-tests: Likewise.
29143         * modules/unistr/u32-mbtouc-tests: Likewise.
29144         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
29145         * modules/unistr/u32-mbtoucr-tests: Likewise.
29146         * modules/unistr/u32-move-tests: Likewise.
29147         * modules/unistr/u32-next-tests: Likewise.
29148         * modules/unistr/u32-prev-tests: Likewise.
29149         * modules/unistr/u32-set-tests: Likewise.
29150         * modules/unistr/u32-stpcpy-tests: Likewise.
29151         * modules/unistr/u32-stpncpy-tests: Likewise.
29152         * modules/unistr/u32-strcat-tests: Likewise.
29153         * modules/unistr/u32-strcmp-tests: Likewise.
29154         * modules/unistr/u32-strcoll-tests: Likewise.
29155         * modules/unistr/u32-strcpy-tests: Likewise.
29156         * modules/unistr/u32-strdup-tests: Likewise.
29157         * modules/unistr/u32-strlen-tests: Likewise.
29158         * modules/unistr/u32-strmblen-tests: Likewise.
29159         * modules/unistr/u32-strmbtouc-tests: Likewise.
29160         * modules/unistr/u32-strncat-tests: Likewise.
29161         * modules/unistr/u32-strncmp-tests: Likewise.
29162         * modules/unistr/u32-strncpy-tests: Likewise.
29163         * modules/unistr/u32-strnlen-tests: Likewise.
29164         * modules/unistr/u32-to-u16-tests: Likewise.
29165         * modules/unistr/u32-to-u8-tests: Likewise.
29166         * modules/unistr/u32-uctomb-tests: Likewise.
29167         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
29168         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
29169         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
29170         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
29171         * modules/uniwidth/u8-strwidth-tests: Likewise.
29172         * modules/uniwidth/u8-width-tests: Likewise.
29173         * modules/uniwidth/u16-strwidth-tests: Likewise.
29174         * modules/uniwidth/u16-width-tests: Likewise.
29175         * modules/uniwidth/u32-strwidth-tests: Likewise.
29176         * modules/uniwidth/u32-width-tests: Likewise.
29177         * modules/uniwidth/width-tests: Likewise.
29178
29179 2010-05-18  Richard Jones  <rjones@redhat.com>
29180
29181         doc: users.txt: list hivex
29182         * users.txt: Add hivex.
29183
29184 2010-05-18  Richard Jones  <rjones@redhat.com>
29185
29186         doc: users.txt: list febootstrap
29187         * users.txt: Add febootstrap.
29188
29189 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
29190
29191         bootstrap: fix an error when gnulib is not used as a git submodule
29192         * build-aux/bootstrap (gnulib_path): If its length is zero then
29193         assign "gnulib" to it.
29194         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
29195
29196 2010-05-16  Bruno Haible  <bruno@clisp.org>
29197
29198         Avoid autoconf warnings about AM_ICONV.
29199         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
29200         2.64.
29201
29202 2010-05-16  Bruno Haible  <bruno@clisp.org>
29203
29204         absolute-header: Make the macro usable in more situations.
29205         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
29206         from gl_ABSOLUTE_HEADER.
29207         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
29208
29209 2010-05-16  James Youngman  <jay@gnu.org>
29210
29211         doc: update users.txt
29212         * users.txt: Add CSSC.
29213
29214 2010-05-16  Jim Meyering  <meyering@redhat.com>
29215
29216         init.sh: fix an error in the previous change; add more comments
29217         * tests/init.sh: Compare exit code in loop against 9, not 2.
29218         Patch by Bruno Haible.
29219         Make the two tests more similar by adding an empty "then" clause.
29220         Add comments.
29221
29222         init.sh: avoid unnecessary shell re-exec
29223         * tests/init.sh: Improve the re-exec-required check to first test the
29224         current shell.  If it passes the test, do not search for a shell that
29225         does pass, and do not re-exec.  This test is particularly contorted to
29226         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
29227         of $(...) evokes a syntax error and causes immediate shell exit with
29228         status 2.  Bruno Haible reported that the re-exec made it impossible
29229         to single-step through any init.sh-using script.
29230
29231 2010-05-16  Bruno Haible  <bruno@clisp.org>
29232
29233         Fix collision between gnulib's and libintl's printf replacements.
29234         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
29235         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
29236         (printf): When using GNU C, map the __printf__ function to rpl_printf
29237         via __asm__. When not using GNU C, define rpl_printf instead of
29238         __printf__.
29239         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
29240         commit.
29241         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
29242         commit.
29243         * m4/asm-underscore.m4: New file.
29244         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
29245         * modules/stdio (Files): Add m4/asm-underscore.m4.
29246         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
29247         Reported by Ben Pfaff.
29248
29249 2010-05-16  Bruno Haible  <bruno@clisp.org>
29250
29251         verify: Avoid skipping the test on openSUSE 11.0.
29252         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
29253
29254 2010-05-13  Bruno Haible  <bruno@clisp.org>
29255
29256         Avoid useless warnings from G++.
29257         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
29258         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
29259         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29260
29261 2010-05-11  Jim Meyering  <meyering@redhat.com>
29262
29263         maint.mk: tweak preceding change
29264         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
29265         regexps tighter by anchoring at EOL, and make the new group "shy"
29266         for slightly decreased overhead.
29267
29268 2010-05-11  Eric Blake  <eblake@redhat.com>
29269
29270         maint.mk: gnulib doesn't guarantee NSIG
29271         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
29272
29273 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29274
29275         test-pwrite.c: Remove unused variable declaration.
29276         * tests/test-pwrite.c (main): Remove read_buf declaration.
29277
29278         Remove useless test-pwrite.sh file.
29279         * tests/test-pwrite.sh: Delete file.
29280         * modules/pwrite-tests: Remove references.
29281         Reported by Bruno Haible.
29282
29283 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
29284
29285         init.sh: fix a typo
29286         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
29287
29288 2010-05-10  Jim Meyering  <meyering@redhat.com>
29289
29290         maint.mk: avoid using a temporary file in the always-defined-macros check
29291         * top/maint.mk (.re-defmac): Remove rule.
29292         (gl_trap_): Remove definition.
29293         (sc_prohibit_always-defined_macros): Rewrite not to create and
29294         depend on a temporary file.  Instead, depend on GNU grep's ability
29295         to read a list of regular expressions from stdin when given "-f -".
29296
29297 2010-05-09  Bruno Haible  <bruno@clisp.org>
29298
29299         Update to GNU gettext 0.18, part 1.
29300         * m4/gettext.m4: Update to GNU gettext 0.18.
29301         * m4/intl.m4: Likewise.
29302         * m4/po.m4: Likewise.
29303         * modules/gettext (Files): Add m4/fcntl-o.m4.
29304         (configure.ac): Require gettext infrastructure from version 0.18.
29305
29306 2010-05-09  Jim Meyering  <meyering@redhat.com>
29307
29308         init.sh: enable MALLOC_PERTURB_
29309         * tests/init.sh: Enable glibc's malloc-perturbing option.
29310
29311         maint.mk: improve sc_cross_check_PATH_usage_in_tests
29312         With my recent change in init.sh from the two-line form:
29313             -#   : ${srcdir=.}
29314             -#   . "$srcdir/init.sh"; path_prepend_ .
29315             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
29316         I noticed that using the one-line form would cause this test
29317         to fail with a false-positive, or to stop working altogether,
29318         depending on whether help-version changed or all the tests did.
29319         * top/maint.mk (_hv_regex): Remove this definition.
29320         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
29321         (_hv_regex_strong): Use a stronger regex to check for conformance.
29322         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
29323         Give a separate diagnostic for lack of conforming use.
29324
29325         maint.mk: prohibit definition of symbols defined by gnulib
29326         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
29327         definition of symbols defined by gnulib.
29328
29329 2010-05-09  Bruno Haible  <bruno@clisp.org>
29330
29331         acl: Avoid test failure on Cygwin-hosted mingw.
29332         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
29333
29334 2010-05-09  Bruno Haible  <bruno@clisp.org>
29335
29336         error: Use system's fcntl function.
29337         * lib/error.c (fcntl): Undefine.
29338
29339 2010-05-09  Jim Meyering  <meyering@redhat.com>
29340
29341         verify: adjust formatting to be more consistent
29342         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
29343         argument-list '('s, and after one comma.
29344
29345 2010-05-09  Bruno Haible  <bruno@clisp.org>
29346
29347         error: More reliable output on mingw.
29348         * lib/error.c: Include <windows.h>.
29349         (is_open): New function.
29350         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
29351         defined.
29352
29353 2010-05-09  Bruno Haible  <bruno@clisp.org>
29354
29355         vasnprintf: Fix syntax errors in libintl build on mingw.
29356         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
29357         pad_ourselves and prec_ourselves after use.
29358
29359 2010-05-08  Bruno Haible  <bruno@clisp.org>
29360
29361         * lib/config.charset: Update comments for Cygwin 1.7.
29362         * lib/localcharset.c: Likewise.
29363
29364 2010-05-07  Jim Meyering  <meyering@redhat.com>
29365
29366         init.sh: improve comments
29367         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
29368         . "${srcdir=.}/init.sh"; path_prepend_ .
29369         Add a note about path_prepend_ and the alternative of using
29370         TESTS_ENVIRONMENT.
29371
29372 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
29373
29374         exclude: Unescape hashed patterns in wildcard mode.
29375         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
29376         to the hash list.
29377         * tests/test-exclude8.sh: New test case.
29378         * modules/exclude-tests: Add new test.
29379
29380 2010-05-05  Eric Blake  <eblake@redhat.com>
29381
29382         verify: automate tests
29383         * modules/verify-tests: New module.
29384         * tests/test-verify.sh: New file.
29385         * tests/test-verify.c: Guard each negative test with a unique id.
29386         Also avoid warning about unused left hand of comma expressions.
29387
29388 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
29389
29390         Further improvements to verify.h, suggested by Eric Blake.
29391         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
29392         the GL_* versions, to avoid collision with OpenGL.
29393         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
29394         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
29395         than testing merely whether it's defined.
29396
29397         Modify verify.h to pacify gcc -Wredundant_decls.
29398         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
29399         These use the prefix "GL_" since they're likely to be useful elsewhere.
29400         We may need to break them out into a different .h file.
29401         (__COUNTER__): Define to 0 if the compiler doesn't support it.
29402         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
29403         of verify_function__.
29404
29405 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29406
29407         Tests for module pwrite.
29408         * modules/pwrite-tests: New file.
29409         * tests/test-pwrite.sh: New file.
29410         * tests/test-pwrite.c: New file.
29411
29412         New module pwrite.
29413         * lib/unistd.in.h (pwrite): New declaration.
29414         * lib/pwrite.c: New file, from glibc with modifications.
29415         * m4/pwrite.m4: New file.
29416         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
29417         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
29418         REPLACE_PWRITE.
29419         * modules/pwrite: New file.
29420         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
29421         REPLACE_PWRITE.
29422         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
29423         * doc/posix-functions/pwrite.texi: Mention the new module.
29424
29425 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
29426
29427         pread: Update documentation.
29428         * doc/posix-functions/pread.texi: Mention the 'pread' module.
29429
29430 2010-05-04  Eric Blake  <eblake@redhat.com>
29431
29432         docs: update cygwin progress
29433         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
29434         this bug.
29435         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
29436         Added in cygwin 1.7.2.
29437         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
29438         Likewise.
29439         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
29440         Likewise.
29441         * doc/glibc-functions/dup3.texi (dup3): Likewise.
29442         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
29443         * doc/glibc-functions/accept4.texi (accept4): Likewise.
29444         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
29445         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
29446         Mention nproc module.
29447         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
29448         bug in cygwin 1.7.5 addition.
29449         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
29450         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
29451         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
29452         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
29453         1.7.5.
29454         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
29455         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
29456         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
29457         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
29458         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
29459         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
29460         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
29461         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
29462         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
29463         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
29464         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
29465         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
29466         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
29467         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
29468         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
29469         Likewise.
29470         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
29471         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
29472         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
29473         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
29474         Likewise.
29475         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
29476         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
29477         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
29478         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
29479         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
29480         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
29481         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
29482         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
29483         Likewise.
29484         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
29485         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
29486         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
29487         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
29488         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
29489         Likewise.
29490         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
29491         Likewise.
29492         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
29493         Likewise.
29494         * doc/glibc-functions/xdrrec_endofrecord.texi
29495         (xdrrec_endofrecord): Likewise.
29496         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
29497         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
29498         Likewise.
29499         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
29500         Likewise.
29501
29502 2010-05-04  Jim Meyering  <meyering@redhat.com>
29503
29504         gendocs.sh: make its "-s FILE" option more useful
29505         * build-aux/gendocs.sh: When honoring the -s FILE option, update
29506         $PACKAGE to reflect the probably-different basename of "FILE".
29507
29508 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29509
29510         bootstrap: don't ignore download_po_files failure
29511         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
29512         failure.
29513
29514 2010-05-03  Jim Meyering  <meyering@redhat.com>
29515
29516         maint.mk: allow to pass options to gendocs.sh
29517         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
29518         (gendocs_options_): New overridable variable.
29519
29520         gnu-web-doc-update: don't ignore configure or build failure
29521         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
29522
29523         announce-gen: backslash-escape '@'s in --help output
29524         * build-aux/announce-gen: Fix syntax errors.
29525
29526         maint.mk, announce-gen: allow project-specific announcement mail headers
29527         * top/maint.mk (translation_project_): Define default.
29528         (announcement_Cc_, announcement_mail_headers_): Likewise.
29529         (announcement): Invoke announce-gen with new --mail-headers option.
29530         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
29531
29532         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
29533         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
29534         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
29535         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
29536         line in the "err2" output file when running "make check" in verbose
29537         mode (i.e., with set -x enabled).
29538
29539 2010-05-03  Bruno Haible  <bruno@clisp.org>
29540
29541         wctob: Fix for weird platforms.
29542         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
29543         argument value.
29544
29545 2010-05-03  Jim Meyering  <meyering@redhat.com>
29546
29547         maint.mk: prohibit unwarranted use of <strings.h>
29548         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
29549         strings.h in a file that does not also use strcasecmp, strncasecmp,
29550         ffs or ffsll.
29551
29552         maint.mk: remove obsolete comments
29553         * top/maint.mk: Remove stale, commented-out rules.
29554
29555 2010-05-02  Bruno Haible  <bruno@clisp.org>
29556
29557         wcwidth: Declare also when it's aliased.
29558         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
29559         macro.
29560
29561 2010-05-02  Bruno Haible  <bruno@clisp.org>
29562
29563         Fix regression from 2010-04-25.
29564         * gnulib-tool (func_modules_transitive_closure): Check the status of
29565         all modules, not only of the tests that are of the form foo-tests where
29566         foo is a module.
29567
29568 2010-05-02  Bruno Haible  <bruno@clisp.org>
29569
29570         wctob: Work around nasty Cygwin 1.7.2 bug.
29571         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
29572         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
29573
29574 2010-05-01  Bruno Haible  <bruno@clisp.org>
29575
29576         fpurge: Sharper test.
29577         * tests/test-fpurge.c (main): Add one more ftell check.
29578         * modules/fpurge-tests (Depends-on): Add ftell.
29579         Suggested by Eric Blake.
29580
29581 2010-05-01  Bruno Haible  <bruno@clisp.org>
29582
29583         ftello: Another test.
29584         * tests/test-ftello3.c: New file.
29585         * modules/ftello-tests (Files): Add it.
29586         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29587         MOSTLYCLEANFILES.
29588
29589         ftell: Another test.
29590         * tests/test-ftell3.c: New file.
29591         * modules/ftell-tests (Files): Add it.
29592         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
29593         MOSTLYCLEANFILES.
29594
29595 2010-05-01  Bruno Haible  <bruno@clisp.org>
29596
29597         ftell, ftello: Work around Solaris bug.
29598         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
29599         * lib/ftello.c: Include stdio-impl.h.
29600         (ftello): On Solaris, when _IOWRT is set, compute the result without
29601         looking at _IOREAD.
29602         * modules/ftello (Files): Add lib/stdio-impl.h.
29603         * doc/posix-functions/ftell.texi: Mention Solaris bug.
29604         * doc/posix-functions/ftello.texi: Likewise.
29605         Reported by Eric Blake.
29606
29607 2010-05-01  Bruno Haible  <bruno@clisp.org>
29608
29609         freading: Adapt to special meaning of _IOREAD flag on Solaris.
29610         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
29611         the _IOWRT flag is also set.
29612
29613 2010-05-01  Bruno Haible  <bruno@clisp.org>
29614
29615         Fix doc about a HP-UX stdio bug.
29616         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
29617         * doc/posix-functions/ftello.texi: Likewise.
29618
29619 2010-05-01  Bruno Haible  <bruno@clisp.org>
29620
29621         lseek test: Fix failure on Solaris.
29622         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
29623         output.
29624
29625 2010-04-30  Jim Meyering  <meyering@redhat.com>
29626
29627         bootstrap: don't ignore failure to generate po*/Makevars
29628         * build-aux/bootstrap (with_gettext): Don't ignore failure
29629         to create po/Makevars or runtime-po/Makevars.
29630
29631 2010-04-29  Eric Blake  <eblake@redhat.com>
29632
29633         headers: relax license to LGPLv2+
29634         * modules/fcntl-h (License): Relax license.
29635         * modules/getopt-posix (License): Likewise.
29636         * modules/locale (License): Likewise.
29637         * modules/math (License): Likewise.
29638         * modules/pty (License): Likewise.
29639         * modules/sched (License): Likewise.
29640         * modules/search (License): Likewise.
29641         * modules/spawn (License): Likewise.
29642         * modules/stdarg (License): Likewise.
29643         * modules/sysexits (License): Likewise.
29644
29645 2010-04-29  Jim Meyering  <meyering@redhat.com>
29646
29647         inttypes: relax license to LGPLv2+
29648         * modules/inttypes (License): Relax license.
29649
29650 2010-04-29  Simon Josefsson  <simon@josefsson.org>
29651
29652         * top/maint.mk (indent): Run twice to produce idempotent results.
29653
29654 2010-04-28  Bruno Haible  <bruno@clisp.org>
29655
29656         getdate: Generate getdate.c in the source directory.
29657         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
29658         MOSTLYCLEANFILES.
29659         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
29660
29661 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
29662
29663         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
29664         is not declared as a const *; avoid warnings in that case.
29665
29666 2010-04-28  Eric Blake  <eblake@redhat.com>
29667
29668         canonicalize-lgpl: avoid compiler warning
29669         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
29670         declaration' / 'extraneous semicolon' warning with some compilers.
29671         Reported by Andreas Gruenbacher.
29672
29673 2010-04-28  Jim Meyering  <meyering@redhat.com>
29674
29675         init.sh: ensure a more reliable exit status when exiting via trap
29676         * tests/init.sh (setup_): Don't rely on $? in signal handler.
29677         Inspired by patches from Dmitry V. Levin.
29678         Also trap on signal 3 (SIGQUIT).
29679
29680 2010-04-27  Bruno Haible  <bruno@clisp.org>
29681
29682         Update doc about utimes().
29683         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
29684         'utimens' module.
29685         Reported by Andreas Gruenbacher <agruen@suse.de>.
29686
29687 2010-04-27  Eric Blake  <eblake@redhat.com>
29688
29689         full-read, full-write: relax license
29690         * modules/full-read (License): Drop to LGPLv2+.
29691         * modules/full-write (License): Likewise.
29692         * modules/safe-read (License): Likewise.
29693         * modules/safe-write (License): Likewise.
29694
29695         pthread: mention library for linking
29696         * modules/pthread (Link): Mention $(LIB_PTHREAD).
29697
29698 2010-04-27  Jim Meyering  <meyering@redhat.com>
29699
29700         maint.mk: fix a bug introduced in last change
29701         * top/maint.mk (gl_assured_headers_): Now that all names are on
29702         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
29703         is not anchored to end of word, it should be adequate.
29704
29705         maint.mk: avoid side-effect in latest syntax-check
29706         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
29707         to run commands via $(shell...), and hence to incur cost only when
29708         the new rule is actually run.
29709
29710         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
29711         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
29712         and use that to create a regexp used to detect all #if HAVE_..._H uses.
29713         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
29714         (gl_assured_headers_, az_, AZ_): Define.
29715         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
29716
29717 2010-04-26  Jim Meyering  <jim@meyering.net>
29718             Bruno Haible  <bruno@clisp.org>
29719
29720         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
29721         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
29722         Prompted by an exchange with Gilles Espinasse.
29723
29724 2010-04-26  Jim Meyering  <meyering@redhat.com>
29725
29726         git-version-gen: aesthetic tweak
29727         * build-aux/git-version-gen: Use "$nl" rather than a literal,
29728         so that the command remains on a single line.
29729
29730 2010-04-26  Eric Blake  <eblake@redhat.com>
29731
29732         git-version-gen: allow use on EBCDIC hosts
29733         * build-aux/git-version-gen (dirty): Use literal rather than tying
29734         ourselves to ascii.
29735         Reported by Steve Goetze.
29736
29737 2010-04-25  Bruno Haible  <bruno@clisp.org>
29738
29739         netdb: Add support for GNULIB_POSIXCHECK.
29740         * lib/netdb.in.h: Include warn-on-use.h.
29741         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
29742         functions are used when GNULIB_POSIXCHECK is defined and the
29743         getaddrinfo module is not in use.
29744         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
29745         freeaddrinfo, gai_strerror, getnameinfo are declared.
29746         * modules/netdb (Depends-on): Add warn-on-use.
29747         (Makefile.am): Include warn-on-use.h in netdb.h.
29748
29749 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
29750
29751         build: avoid "make check" failure without .git/ directory
29752         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
29753         there is no .git/ directory.
29754
29755 2010-04-25  Bruno Haible  <bruno@clisp.org>
29756
29757         ptsname: Fix misuse of ttyname_r.
29758         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
29759         of errno.
29760
29761 2010-04-25  Bruno Haible  <bruno@clisp.org>
29762
29763         ttyname_r: Make it work on Solaris 10.
29764         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
29765         if the system function has the POSIX declaration. Test whether the
29766         function fails if the buffer is less than 128 bytes large.
29767         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
29768         system's ttyname_r function. Provide a reasonably large buffer.
29769         * modules/ttyname_r (Depends-on): Add extensions.
29770         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
29771
29772 2010-04-25  Bruno Haible  <bruno@clisp.org>
29773
29774         Use the 'extensions' module for some more functions on Solaris.
29775         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
29776         module.
29777         * doc/posix-functions/ctime_r.texi: Likewise.
29778         * doc/posix-functions/getgrgid_r.texi: Likewise.
29779         * doc/posix-functions/getgrnam_r.texi: Likewise.
29780         * doc/posix-functions/getpwnam_r.texi: Likewise.
29781         * doc/posix-functions/getpwuid_r.texi: Likewise.
29782         * doc/posix-functions/readdir_r.texi: Likewise.
29783         * doc/posix-functions/sigwait.texi: Likewise.
29784         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
29785         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
29786
29787 2010-04-25  Bruno Haible  <bruno@clisp.org>
29788
29789         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
29790         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
29791         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
29792         * lib/ttyname_r.c: Include <limits.h>.
29793         (ttyname_r): Define using the system's ttyname_r function, if it exists
29794         and not on Solaris.
29795         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
29796         set.
29797         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
29798         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
29799         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
29800         Reported by Simon Josefsson.
29801
29802 2010-04-25  Bruno Haible  <bruno@clisp.org>
29803
29804         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
29805         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
29806         * doc/posix-functions/ctime_r.texi: Likewise.
29807         * doc/posix-functions/getgrgid_r.texi: Likewise.
29808         * doc/posix-functions/getgrnam_r.texi: Likewise.
29809         * doc/posix-functions/getlogin_r.texi: Likewise.
29810         * doc/posix-functions/getpwnam_r.texi: Likewise.
29811         * doc/posix-functions/getpwuid_r.texi: Likewise.
29812         * doc/posix-functions/readdir_r.texi: Likewise.
29813         * doc/posix-functions/sigwait.texi: Likewise.
29814         * doc/posix-functions/ttyname_r.texi: Likewise.
29815         Reported by Simon Josefsson.
29816
29817 2010-04-25  Bruno Haible  <bruno@clisp.org>
29818
29819         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29820         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29821         also to --create-testdir.
29822         (func_acceptable): Don't consider the status of *-tests modules here.
29823         (func_modules_transitive_closure): Consider it here, before including a
29824         test module.
29825         (func_import, func_create_testdir): Set inc_all_direct_tests,
29826         inc_all_indirect_tests.
29827         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29828         --create-testdir and --create-megatestdir.
29829
29830 2010-04-25  Bruno Haible  <bruno@clisp.org>
29831
29832         gnulib-tool: Add --without-*-tests options.
29833         * gnulib-tool (func_usage): Document the --without-*-tests options.
29834         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29835         excl_unportable_tests): New variables.
29836         Fail if they are specified with --import or --update.
29837         (func_acceptable): Respect the excl_*_tests variables.
29838         (func_import): Set the excl_*_tests variables to empty.
29839
29840 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29841             Bruno Haible  <bruno@clisp.org>
29842
29843         Work around a MacOS X 10.4 bug with openpty.
29844         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29845         * tests/test-openpty.c (main): Close the master side explicitly.
29846
29847 2010-04-25  Bruno Haible  <bruno@clisp.org>
29848
29849         strnlen: Fix a C++ test error on MacOS X and Solaris.
29850         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29851         the function is not declared.
29852         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29853         Simon Josefsson.
29854
29855 2010-04-24  Bruno Haible  <bruno@clisp.org>
29856
29857         Avoid a gcc warning.
29858         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29859         of correct type for %08lx directive.
29860         Reported by Eric Blake.
29861
29862 2010-04-24  Bruno Haible  <bruno@clisp.org>
29863
29864         vasnprintf: Correct errno value in case of out-of-memory.
29865         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29866         or sprintf. Use the errno value from SNPRINTF or sprintf.
29867         Reported by Ian Beckwith <ianb@erislabs.net>.
29868
29869 2010-04-24  Bruno Haible  <bruno@clisp.org>
29870
29871         ansi-c++-opt: Find correct compiler when cross-compiling.
29872         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29873         AC_CHECK_PROGS.
29874         Reported by Simon Josefsson.
29875
29876 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29877
29878         vc-list-files: Add support for subversion
29879         * build-aux/vc-list-files: Use "svn list" to generate the list of
29880         files controlled by subversion.
29881
29882 2010-04-23  Jim Meyering  <meyering@redhat.com>
29883
29884         vc-list-files tests: convert to use init.sh
29885         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29886         path_prepend_.
29887         Use Exit, not exit.
29888         Use skip_ rather than open coding it.
29889         Remove trap set-up and compare definitions.
29890         * tests/test-vc-list-files-git.sh: Likewise.
29891         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29892
29893 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29894
29895         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29896         backup files.
29897
29898 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29899
29900         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29901
29902 2010-04-20  Eric Blake  <eblake@redhat.com>
29903
29904         tests: be robust to ignored SIGPIPE
29905         * tests/test-select-in.sh: Consume all output.
29906         * tests/test-lseek.sh: Check correct exit status, while avoiding
29907         EPIPE.
29908
29909 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29910             Bruno Haible  <bruno@clisp.org>
29911
29912         visibility: Don't use -fvisibility if it leads to a warning.
29913         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29914         yes, don't pretend that visibility works if it leads to a warning.
29915         Reported by Mike Gran <spk121@yahoo.com>.
29916
29917 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29918
29919         * build-aux/bootstrap: Use "git -h" for testing for supported options
29920         instead of "git --help".  The short-form option only shows a summary,
29921         and doesn't layout the full man page.  Grep for the full option name
29922         in the summary, too.
29923
29924 2010-04-19  Bruno Haible  <bruno@clisp.org>
29925
29926         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29927         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29928         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29929         mention of RELOCATABLE_STRIP.
29930         Reported by Sylvain Beucler <beuc@beuc.net>.
29931
29932 2010-04-19  Bruno Haible  <bruno@clisp.org>
29933
29934         * lib/diffseq.h: Fix typo in comment.
29935         Reported by Eric Blake.
29936
29937 2010-04-19  Bruno Haible  <bruno@clisp.org>
29938
29939         ioctl: Move autoconf macro to a .m4 file.
29940         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29941         * modules/ioctl (Files): Add it.
29942         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29943         Reported by Ian Beckwith <ianb@erislabs.net>.
29944
29945 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29946             Bruno Haible  <bruno@clisp.org>
29947
29948         diffseq: Accommodate use-case with abstract arrays.
29949         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29950         is not defined.
29951         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29952         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29953
29954 2010-04-18  Bruno Haible  <bruno@clisp.org>
29955
29956         * doc/posix-headers/stdbool.texi: More precise wording.
29957
29958 2010-04-17  Jim Meyering  <meyering@redhat.com>
29959
29960         maint.mk: use gnu-style indentation in an embedded perl script
29961         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29962         Rename variable: s/two/last_two_bytes/
29963
29964 2010-04-16  Eric Blake  <eblake@redhat.com>
29965
29966         test-stdbool: skip test that fails with Solaris CC
29967         * tests/test-stdbool.c (f): Skip test that causes compilation
29968         error under buggy C++ compiler.
29969         * lib/stdbool.in.h: Document the limitation.
29970         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29971
29972         setenv: allow compilation with C++
29973         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29974         register keyword.
29975
29976         stdint: allow test to pass with C++
29977         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29978
29979         getopt: allow compilation with C++
29980         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29981         struct.
29982         * lib/getopt.c (_getopt_internal_r): Use correct type.
29983         Reported by Dagobert Michelson, via Joel E. Denny.
29984
29985 2010-04-16  Bruno Haible  <bruno@clisp.org>
29986
29987         Override netdb.h always.
29988         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29989         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29990         Reported by Ludovic Courtès <ludo@gnu.org>.
29991
29992 2010-04-15  Bruno Haible  <bruno@clisp.org>
29993
29994         openpty: Fix mistake from 2010-03-21.
29995         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29996         Reported by Simon Josefsson.
29997
29998 2010-04-15  Eric Blake  <eblake@redhat.com>
29999
30000         test-forkpty: fix expected signature
30001         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
30002         Reported by Simon Josefsson.
30003
30004 2010-04-15  Jim Meyering  <meyering@redhat.com>
30005
30006         maint.mk: texinfo_suffix_re_: correct the default regexp
30007         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
30008
30009         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
30010         make it configurable via texinfo_suffix_re_.
30011
30012 2010-04-14  Eric Blake  <eblake@redhat.com>
30013
30014         strtok_r: relax license to LGPLv2+
30015         * modules/strtok_r (License): Relax license.
30016         Reported by Matthias Bolte.
30017
30018 2010-04-14  Simon Josefsson  <simon@josefsson.org>
30019
30020         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
30021         version 1.4.4 by default instead of requiring the libgcrypt
30022         version used during build.  This makes it possible to use the
30023         application with older but still binary compatible libgcrypt
30024         versions.
30025
30026 2010-04-13  Eric Blake  <eblake@redhat.com>
30027
30028         getopt-gnu: match recent glibc fixes and posix ruling
30029         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
30030         '+' handling, when requesting extensions.
30031         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
30032         'W;' handling.
30033         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
30034         * doc/posix-functions/getopt.texi (getopt): Document this.
30035         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30036         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30037         Likewise.
30038
30039         getopt: merge bug fixes from glibc
30040         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
30041         diagnostics.  Honor '+:' correctly.  Reject ';'.
30042
30043         getopt-posix: detect MacOS bug
30044         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
30045         optind when missing a required argument.
30046         * doc/posix-functions/getopt.texi (getopt): Document the bug.
30047         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
30048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
30049         Likewise.
30050
30051         getopt-posix: avoid spurious failure on Solaris
30052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
30053         an indicator that setting optind=1 is sufficient for reset.
30054
30055         getopt-posix: avoid spurious failure on FreeBSD
30056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
30057         in POSIX mode, since the m4 test uses it.
30058
30059         gnulib-tool: silence warning on BSD sh
30060         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
30061
30062 2010-04-13  Jim Meyering  <meyering@redhat.com>
30063
30064         doc: users.txt: GNU patch now uses gnulib
30065         * users.txt: Add patch.
30066
30067 2010-04-12  Jim Meyering  <meyering@redhat.com>
30068
30069         maint.mk: generate more concise timing data for syntax-check rules
30070         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
30071         " done" from each line that reports a syntax-check test duration.
30072
30073 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
30074
30075         git-version-gen: use "git update-index..." rather than "git status"
30076         * build-aux/git-version-gen: Use git update-index --refresh, not
30077         "git status".  With some versions of git, "git status" would fail
30078         to update the index and result in an unwarranted "-dirty" suffix.
30079
30080 2010-04-11  Jim Meyering  <meyering@redhat.com>
30081
30082         openat: correct formatting (no semantic change)
30083         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
30084         Suggested by Bruno Haible.
30085
30086 2010-04-11  Bruno Haible  <bruno@clisp.org>
30087
30088         Stricter declaration checking in testdirs.
30089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30090         If for_tests is true, augment AM_CPPFLAGS to define
30091         GNULIB_STRICT_CHECKING.
30092         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
30093         GNULIB_STRICT_CHECKING is defined, verify that the function is
30094         declared.
30095
30096 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
30097             Bruno Haible  <bruno@clisp.org>
30098
30099         libunistring: Improve configure output.
30100         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
30101         Don't say "consider installing GNU libunistring" when checking again
30102         with libiconv.
30103
30104 2010-04-11  Bruno Haible  <bruno@clisp.org>
30105
30106         libunistring: Correct value of $LTLIBUNISTRING.
30107         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
30108         correct the value of $LTLIBUNISTRING.
30109
30110 2010-04-11  Bruno Haible  <bruno@clisp.org>
30111
30112         havelib: Add static libraries to LIBS in the right order.
30113         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
30114         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
30115
30116 2010-04-11  Bruno Haible  <bruno@clisp.org>
30117
30118         libunistring: Detect libunistring also when it depends on libiconv.
30119         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
30120         the second AC_LIB_HAVE_LINKFLAGS invocation.
30121
30122 2010-04-11  James Youngman  <jay@gnu.org>
30123
30124         close-stream: declare local scalars to be "const"
30125         * lib/close-stream.c (close_stream): Make boolean variables const
30126         to document the fact that we set but do not change them.
30127
30128 2010-04-11  Bruno Haible  <bruno@clisp.org>
30129
30130         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
30131
30132 2010-04-11  Jim Meyering  <meyering@redhat.com>
30133
30134         maint.mk: don't include dist-check.mk
30135         * top/maint.mk: Remove bogus include directive.
30136
30137         maint.mk: improve empty-line-at-EOF check
30138         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
30139         solution, rather than tail+Perl-based one.  The latter would read
30140         a few kilobytes from the end of each file, and did not handle empty
30141         files properly.
30142
30143         maint.mk: print the elapsed time for each syntax-check rule
30144         * top/maint.mk (sc_m_rules_): Save start time in a file.
30145         (sc_z_rules_): New rules: remove temp file and print elapsed time.
30146         (local-check): Interpose the .z rules
30147
30148 2010-04-11  Jim Meyering  <meyering@redhat.com>
30149
30150         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
30151         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
30152         empty file with one that ends in an empty line.
30153
30154 2010-04-10  Bruno Haible  <bruno@clisp.org>
30155
30156         mkdir: Make it work on mingw64.
30157         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
30158         * lib/mkdir.c: Update comment.
30159         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
30160
30161 2010-04-10  Bruno Haible  <bruno@clisp.org>
30162
30163         Don't override improved macro from newer autoconf.
30164         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
30165         autoconf >= 2.62.
30166         Reported by Joel E. Denny <jdenny@clemson.edu>.
30167
30168 2010-04-10  Jim Meyering  <meyering@redhat.com>
30169
30170         maint.mk: new syntax-check rule: prohibit empty lines at end of file
30171         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
30172
30173         maint.mk: correct a diagnostic
30174         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
30175         in diagnostic; now use $prohibit.
30176
30177 2010-04-10  Bruno Haible  <address@hidden>
30178
30179         fchownat: Fix a C++ test error on Solaris 8.
30180         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
30181         the function does not exist.
30182
30183 2010-04-10  Bruno Haible  <bruno@clisp.org>
30184
30185         vasnprintf: Add more tests.
30186         * tests/test-vasnprintf-posix.c: Include <errno.h>.
30187         (test_function): Test converting an invalid wide string.
30188
30189         vasnprintf: Correct handling of unconvertible wide string arguments.
30190         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
30191         VASNPRINTF.
30192         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
30193         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
30194         smaller than the expected maximum need for the directive. Set errno to
30195         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
30196         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
30197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
30198         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
30199         * modules/vasnprintf (Files): Add m4/printf.m4.
30200         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30201
30202 2010-04-10  Bruno Haible  <bruno@clisp.org>
30203
30204         vasnprintf: Fix crash in %ls directive.
30205         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
30206         string is passed as argument to %ls, with no precision and no width.
30207         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30208
30209 2010-04-10  Bruno Haible  <bruno@clisp.org>
30210
30211         vasnprintf: Fix multiple test failures on mingw.
30212         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
30213         _snprintf, or snwprintf, not _snwprintf.
30214
30215 2010-04-10  Bruno Haible  <bruno@clisp.org>
30216
30217         write: Fix a C++ test error on mingw.
30218         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
30219
30220 2010-04-10  Bruno Haible  <bruno@clisp.org>
30221
30222         vasnprintf test: Reduce code duplication.
30223         * tests/test-vasnprintf.c (test_function): New function, extracted from
30224         test_vasnprintf.
30225         (test_vasnprintf, test_asnprintf): Invoke it.
30226
30227 2010-04-10  Bruno Haible  <bruno@clisp.org>
30228
30229         strnlen: Fix warning in C++ mode on MacOS X.
30230         * lib/string.in.h (strnlen): Use the modern idiom.
30231         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
30232         defining strnlen as a macro already in <config.h>.
30233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30234         REPLACE_STRNLEN.
30235         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
30236         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30237
30238 2010-04-08  James Youngman  <jay@gnu.org>
30239
30240         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
30241         the example.
30242
30243 2010-04-09  Jim Meyering  <meyering@redhat.com>
30244
30245         maint.mk: print better diagnostic when there is no $(_hv_file)
30246         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
30247         announce that when $(_hv_file) (aka help-version) does not exist.
30248
30249         init.sh: run tr in the "C" locale to avoid multibyte interpretation
30250         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
30251         not try to interpret its random input bytes.  Jarno Rajahalme reported
30252         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
30253         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
30254         (mktempd_): Likewise, just in case.
30255
30256         ftruncate: add two years to projected module removal date: 2012
30257         * m4/ftruncate.m4: Adjust comments.
30258
30259         ftruncate: mark module as obsolete; even MinGW provides it, now
30260         * modules/ftruncate (Status): Obsolete.
30261         (Notice): Say that.
30262         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
30263         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
30264
30265 2010-04-08  Bruno Haible  <bruno@clisp.org>
30266
30267         Fix side effects from tests-related modules.
30268         * modules/dprintf-posix (Comment): New section.
30269         * modules/fprintf-posix (Comment): Likewise.
30270         * modules/obstack-printf-posix (Comment): Likewise.
30271         * modules/printf-posix (Comment): Likewise.
30272         * modules/snprintf-posix (Comment): Likewise.
30273         * modules/sprintf-posix (Comment): Likewise.
30274         * modules/vasnprintf-posix (Comment): Likewise.
30275         * modules/vasprintf-posix (Comment): Likewise.
30276         * modules/vdprintf-posix (Comment): Likewise.
30277         * modules/vfprintf-posix (Comment): Likewise.
30278         * modules/vprintf-posix (Comment): Likewise.
30279         * modules/vsnprintf-posix (Comment): Likewise.
30280         * modules/vsprintf-posix (Comment): Likewise.
30281         * modules/xprintf-posix (Comment): Likewise.
30282         * modules/xvasprintf-posix (Comment): Likewise.
30283         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
30284         * modules/floorf-tests (Depends-on): Likewise.
30285         * modules/round-tests (Depends-on): Likewise.
30286         * modules/roundf-tests (Depends-on): Likewise.
30287         * modules/trunc-tests (Depends-on): Likewise.
30288         * modules/truncf-tests (Depends-on): Likewise.
30289         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
30290         'fprintf-posix' module is not present.
30291         * tests/test-floorf2.c (check): Likewise.
30292         * tests/test-trunc2.c (check): Likewise.
30293         * tests/test-truncf2.c (check): Likewise.
30294         * tests/test-round2.c (equal): Likewise.
30295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30296
30297 2010-04-07  Karl Berry  <karl@gnu.org>
30298
30299         * config/srclist.txt,
30300         * config/srclistvars.sh,
30301         * config/srclist-update: doc fixes.
30302
30303 2010-04-07  Jim Meyering  <meyering@redhat.com>
30304
30305         maint.mk: add a PATH crosschecking syntax-check rule
30306         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
30307         Useful if you use a test like the one in help-version (coreutils,
30308         diffutils, grep, gzip) that ensures $(VERSION) matches what is
30309         printed by prog --version.
30310
30311 2010-04-06  Bruno Haible  <bruno@clisp.org>
30312
30313         Fix link error on mingw.
30314         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
30315         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
30316
30317 2010-04-06  Bruno Haible  <bruno@clisp.org>
30318
30319         Assume rmdir exists.
30320         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
30321
30322 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
30323
30324         doc: update users.txt
30325         * users.txt: Add gcal.
30326
30327 2010-04-06  Jim Meyering  <meyering@redhat.com>
30328
30329         init.sh: simply unset TMPDIR rather than risking env -i
30330         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
30331         although it probably works fine on all Unix-based systems, some
30332         systems (Cygwin?) cannot tolerate a totally cleared environment.
30333         Suggestion from Eric Blake.
30334
30335 2010-04-06  Jim Meyering  <meyering@redhat.com>
30336
30337         init.sh: portability fix: use env's POSIX-specified -i option not -u
30338         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
30339         than unportable env -u.  Solaris 5.11's env lacks support for -u.
30340
30341 2010-04-05  Bruno Haible  <bruno@clisp.org>
30342
30343         btowc: Work around Cygwin 1.7.2 bug.
30344         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
30345         does not map NUL to 0.
30346         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
30347
30348 2010-04-05  Bruno Haible  <bruno@clisp.org>
30349
30350         Make the multithread modules work on Cygwin 1.7.2.
30351         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
30352         imported symbols can be declared weak, so that it returns "no" on
30353         Cygwin 1.7.2.
30354
30355 2010-04-05  Bruno Haible  <bruno@clisp.org>
30356
30357         Use the module 'strncat'.
30358         * modules/unistr/u8-strncat (Depends-on): Add strncat.
30359
30360         Tests for module 'strncat'.
30361         * modules/strncat-tests: New file.
30362         * tests/test-strncat.c: New file.
30363
30364         New module 'strncat'.
30365         * lib/string.in.h (strncat): New declaration.
30366         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
30367         * m4/strncat.m4: New file, based on m4/memchr.m4.
30368         * modules/strncat: New file.
30369         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
30370         is declared.
30371         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
30372         REPLACE_STRNCAT.
30373         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
30374         REPLACE_STRNCAT.
30375         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
30376         module.
30377         * tests/test-string-c++.cc: Check signature of strncat.
30378
30379 2010-04-05  Jim Meyering  <meyering@redhat.com>
30380
30381         xstrtoumax-tests: convert to use init.sh
30382         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
30383         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30384         Use Exit, not exit.
30385         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30386
30387         xstrtoimax-tests: convert to use init.sh
30388         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
30389         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30390         Use Exit, not exit.
30391         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30392
30393 2010-04-05  Bruno Haible  <bruno@clisp.org>
30394
30395         sys_socket: Avoid #define replacements in C++ mode.
30396         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
30397         warning to the function if possible, rather than #defining the symbol
30398         to a dysfunctional alias.
30399
30400 2010-04-05  Bruno Haible  <bruno@clisp.org>
30401
30402         fseeko: Fix C++ test error on mingw.
30403         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
30404         gl_FUNC_FSEEKO.
30405         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
30406         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
30407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
30408         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
30409
30410 2010-04-05  Bruno Haible  <bruno@clisp.org>
30411
30412         duplocale: Improve test output.
30413         * tests/test-duplocale.c (main): Print reason for skipped test.
30414
30415 2010-04-05  Bruno Haible  <bruno@clisp.org>
30416
30417         Assume rmdir exists.
30418         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
30419         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
30420
30421 2010-04-05  Bruno Haible  <bruno@clisp.org>
30422
30423         Fix link error on Solaris 8 with cc.
30424         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
30425
30426 2010-04-05  Bruno Haible  <bruno@clisp.org>
30427
30428         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30429         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
30430
30431 2010-04-05  Bruno Haible  <bruno@clisp.org>
30432
30433         vasprintf: Update documentation.
30434         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
30435
30436 2010-04-05  Bruno Haible  <bruno@clisp.org>
30437
30438         ptsname: Improve test.
30439         * tests/test-ptsname.c (main): Also try the various master names of BSD
30440         systems.
30441
30442 2010-04-05  Bruno Haible  <bruno@clisp.org>
30443
30444         memchr: Avoid a possible C++ test error.
30445         * lib/string.in.h (memchr): Provide declaration if function is missing.
30446         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
30447         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
30448         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
30449         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
30450
30451 2010-04-05  Bruno Haible  <bruno@clisp.org>
30452
30453         strtok_r: Improve idiom.
30454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
30455         AC_LIBOBJ is used.
30456
30457 2010-04-05  Bruno Haible  <bruno@clisp.org>
30458
30459         strdup: Improve idiom.
30460         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
30461         AC_LIBOBJ is used.
30462         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
30463         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
30464         when AC_LIBOBJ is used.
30465
30466 2010-04-05  Bruno Haible  <bruno@clisp.org>
30467
30468         mbsinit, mbrtowc, wcrtomb: Improve idioms.
30469         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
30470         don't set REPLACE_MBSINIT to 1.
30471         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
30472         don't set REPLACE_MBRTOWC to 1.
30473         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
30474         exist, don't set REPLACE_MBSRTOWCS to 1.
30475         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
30476         exist, don't set REPLACE_MBSNRTOWCS to 1.
30477         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
30478         don't set REPLACE_WCRTOMB to 1.
30479         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
30480         exist, don't set REPLACE_WCSRTOMBS to 1.
30481         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
30482         exist, don't set REPLACE_WCSNRTOMBS to 1.
30483
30484 2010-04-05  Bruno Haible  <bruno@clisp.org>
30485
30486         ldexpl: Improve idiom.
30487         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
30488         make sure to set HAVE_DECL_LDEXPL to 0.
30489
30490 2010-04-05  Jim Meyering  <meyering@redhat.com>
30491
30492         xstrtol-tests: convert to use init.sh
30493         * modules/xstrtol-tests (Files): Add tests/init.sh.
30494         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30495         Use Exit, not exit.
30496         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30497
30498         atexit-tests: convert to use init.sh
30499         * modules/atexit-tests (Files): Add tests/init.sh.
30500         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
30501         Use Exit, not exit.
30502         Remove uses of $EXEEXT and "./" to run a program in the current dir.
30503
30504         init.sh: fix typo
30505         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
30506
30507         init.sh: make it easier for a test script to write to the tty, ...
30508         when using automake's parallel-tests mode.
30509         * tests/init.sh (stderr_fileno_): Define overridable variable.
30510         (warn_): New function, to use it.
30511         (fail_, skip_, framework_failure_): Use warn_.
30512
30513 2010-04-04  Bruno Haible  <bruno@clisp.org>
30514
30515         btowc: Avoid warning.
30516         * lib/btowc.c: Include <stdlib.h>.
30517         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
30518
30519 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30520             Bruno Haible  <bruno@clisp.org>
30521
30522         wchar: Port to NetBSD 1.5.
30523         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
30524         * lib/wctype.in.h (WEOF): Likewise.
30525
30526 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
30527             Bruno Haible  <bruno@clisp.org>
30528
30529         Port extended stdio to NetBSD 1.5.
30530         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
30531         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
30532         older.
30533
30534 2010-04-04  Bruno Haible  <bruno@clisp.org>
30535
30536         string: Remove unused substitution.
30537         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
30538         HAVE_DECL_STRERROR.
30539         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
30540
30541 2010-04-04  Bruno Haible  <bruno@clisp.org>
30542
30543         strtod: Avoid a possible C++ test error.
30544         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
30545         set REPLACE_STRTOD.
30546
30547 2010-04-04  Bruno Haible  <bruno@clisp.org>
30548
30549         strerror: Update documentation.
30550         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
30551
30552 2010-04-04  Bruno Haible  <bruno@clisp.org>
30553
30554         stdio: Fix some C++ test errors on Solaris 8 with GCC.
30555         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
30556         _GL_CXXALIAS_SYS_CAST.
30557
30558 2010-04-04  Bruno Haible  <bruno@clisp.org>
30559
30560         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
30561         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
30562         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
30563         REPLACE_FREXPL to 1.
30564         * doc/posix-functions/frexpl.texi: Update documentation.
30565
30566 2010-04-04  Bruno Haible  <bruno@clisp.org>
30567
30568         math: Fix some C++ test errors on Solaris 8 and Cygwin.
30569         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
30570
30571 2010-04-04  Bruno Haible  <bruno@clisp.org>
30572
30573         Implement nanosleep for native Windows.
30574         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
30575
30576 2010-04-04  Bruno Haible  <bruno@clisp.org>
30577
30578         math: Fix some C++ test errors on Solaris 8.
30579         * lib/math.in.h (truncf, trunc): Use simpler idiom.
30580
30581 2010-04-04  Bruno Haible  <bruno@clisp.org>
30582
30583         math: Fix some C++ test errors on Cygwin.
30584         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
30585         truncl): Provide declaration if the system does not have it.
30586         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
30587         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
30588         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
30589         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
30590         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
30591         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
30592         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
30593         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
30594         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
30595         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
30596         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
30597         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
30598         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
30599         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
30600         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
30601         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
30602         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
30603         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30604         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30605         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
30606         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
30607         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
30608
30609 2010-04-04  Bruno Haible  <bruno@clisp.org>
30610
30611         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
30612         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
30613         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
30614         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
30615         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
30616         * m4/isinf.m4 (gl_ISINF): Likewise.
30617         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30618
30619 2010-04-04  Bruno Haible  <bruno@clisp.org>
30620
30621         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
30622         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30623
30624 2010-04-04  Bruno Haible  <bruno@clisp.org>
30625
30626         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
30627         * modules/tmpfile (configure.ac): Update.
30628
30629         tmpfile: Fix C++ test error on mingw.
30630         * lib/stdio.in.h (tmpfile): New declaration.
30631         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
30632         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
30633         * modules/tmpfile (Depends-on): Add stdio.
30634         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
30635         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
30636         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
30637         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
30638         REPLACE_TMPFILE.
30639         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
30640
30641 2010-04-04  Bruno Haible  <bruno@clisp.org>
30642
30643         ioctl: Fix C++ test error on mingw.
30644         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
30645         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
30646         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
30647
30648 2010-04-03  Bruno Haible  <bruno@clisp.org>
30649
30650         wcwidth: Fix C++ test error on mingw.
30651         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
30652         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
30653         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
30654
30655 2010-04-03  Bruno Haible  <bruno@clisp.org>
30656
30657         nanosleep: Fix C++ test error on mingw.
30658         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
30659         * lib/time.in.h (nanosleep): Use modern idiom.
30660         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
30661         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
30662         REPLACE_NANOSLEEP to 1.
30663         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
30664         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
30665
30666 2010-04-03  Bruno Haible  <bruno@clisp.org>
30667
30668         strptime: Fix C++ test error on mingw.
30669         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
30670         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
30671         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
30672         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
30673         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
30674         not REPLACE_STRPTIME.
30675         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
30676         REPLACE_STRPTIME.
30677
30678 2010-04-03  Bruno Haible  <bruno@clisp.org>
30679
30680         timegm: Fix C++ test error on mingw.
30681         * lib/time.in.h (timegm): Use modern idiom.
30682         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
30683         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
30684         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
30685         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
30686
30687 2010-04-03  Bruno Haible  <bruno@clisp.org>
30688
30689         timegm: Assume declaration if function exists.
30690         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
30691         if it exists. Don't clobber ac_cv_func_timegm.
30692
30693 2010-04-03  Bruno Haible  <bruno@clisp.org>
30694
30695         time_r: Fix C++ test error on mingw.
30696         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
30697         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
30698         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
30699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
30700         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
30701
30702 2010-04-03  Bruno Haible  <bruno@clisp.org>
30703
30704         time_r: Minor updates.
30705         * modules/time_r (Description): Mention the provided functions.
30706         * lib/time_r.c: Don't include <string.h>.
30707         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
30708         * doc/posix-functions/localtime_r.texi: Likewise.
30709
30710 2010-04-03  Bruno Haible  <bruno@clisp.org>
30711
30712         time: Fix regression introduced on 2010-03-08.
30713         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
30714         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
30715
30716 2010-04-03  Jim Meyering  <meyering@redhat.com>
30717
30718         maint.mk: don't silently disable project-specific syntax-check rules
30719         * top/maint.mk (_prohibit_regexp): Define, to help people realize
30720         that they need to convert their project-specific syntax-check rules
30721         to use the new _sc_search_regexp.
30722
30723 2010-04-03  Bruno Haible  <bruno@clisp.org>
30724
30725         fchdir: Fix regression introduced on 2010-03-08.
30726         * lib/unistd.in.h (fchdir): Fix declaration.
30727         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
30728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
30729         REPLACE_FCHDIR.
30730         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
30731         REPLACE_FCHDIR.
30732
30733 2010-04-03  Bruno Haible  <bruno@clisp.org>
30734
30735         getpagesize: Fix C++ test error on mingw.
30736         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
30737         system does not declare the function.
30738         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
30739         declared.
30740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30741         HAVE_DECL_GETPAGESIZE.
30742         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
30743
30744 2010-04-03  Bruno Haible  <bruno@clisp.org>
30745
30746         stdio: Make C++ tests work on mingw.
30747         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
30748         does not declare the function.
30749
30750 2010-04-03  Bruno Haible  <bruno@clisp.org>
30751
30752         ftello: Fix C++ test error on mingw.
30753         * lib/stdio.in.h (ftello): Use modern idiom.
30754         * lib/ftello.c (ftello): Renamed from rpl_ftello.
30755         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
30756         is missing and that it needs to be replaced.
30757         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
30758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
30759         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
30760
30761 2010-04-03  Bruno Haible  <bruno@clisp.org>
30762
30763         fseeko: Fix C++ test error on mingw.
30764         * lib/stdio.in.h (fseeko): Use modern idiom.
30765         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
30766         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
30767         is missing and that it needs to be replaced.
30768         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
30769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
30770         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
30771
30772 2010-04-03  Bruno Haible  <bruno@clisp.org>
30773
30774         mkstemp: Fix C++ test error on mingw.
30775         * lib/stdlib.in.h (mkstemp): Use modern idiom.
30776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
30777         function is missing and that it needs to be replaced.
30778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
30779         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
30780
30781 2010-04-03  Bruno Haible  <bruno@clisp.org>
30782
30783         stpncpy: Fix C++ test error on mingw.
30784         * lib/string.in.h (stpncpy): Use modern idiom.
30785         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
30786         function is missing and that it needs to be replaced.
30787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
30788         REPLACE_STPNCPY.
30789         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
30790
30791 2010-04-03  Bruno Haible  <bruno@clisp.org>
30792
30793         sys_stat: Fix C++ test error on mingw.
30794         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
30795         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
30796
30797 2010-04-03  Bruno Haible  <bruno@clisp.org>
30798
30799         pty: Update doc.
30800         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
30801
30802 2010-04-03  Bruno Haible  <bruno@clisp.org>
30803
30804         unistd: Fix C++ test error on mingw.
30805         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
30806
30807 2010-04-03  Bruno Haible  <bruno@clisp.org>
30808
30809         Update doc regarding mingw.
30810         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30811         * doc/glibc-functions/login_tty.texi: Likewise.
30812         * doc/glibc-functions/forkpty.texi: Likewise.
30813
30814 2010-04-03  Bruno Haible  <bruno@clisp.org>
30815
30816         stdlib: Avoid compilation failure of c-strtold on mingw.
30817         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30818
30819 2010-04-03  Bruno Haible  <bruno@clisp.org>
30820
30821         locale: Make C++ tests work on Cygwin and mingw.
30822         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30823         cannot provide the function.
30824         Reported by Simon Josefsson.
30825
30826 2010-04-03  Bruno Haible  <bruno@clisp.org>
30827
30828         localename: Port to MacOS X 10.6.
30829         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30830         memory layout of the locales in MacOS X 10.6 as well.
30831         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30832
30833 2010-04-02  Bruno Haible  <bruno@clisp.org>
30834
30835         gnulib-tool: Ensure that long-running tests are executed last.
30836         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30837         running tests after the one for the other tests.
30838
30839 2010-04-02  Bruno Haible  <bruno@clisp.org>
30840
30841         gnulib-tool: Ensure the tests in the main directory are executed first.
30842         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30843         start with the current directory.
30844
30845 2010-04-02  Bruno Haible  <bruno@clisp.org>
30846
30847         Tests for module 'havelib', moved here from GNU gettext.
30848         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30849         modifications.
30850         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30851         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30852         with modifications.
30853         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30854         modifications.
30855         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30856         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30857         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30858         with modifications.
30859         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30860         with modifications.
30861         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30862         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30863         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30864         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30865         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30866         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30867         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30868         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30869         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30870         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30871         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30872         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30873         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30874         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30875         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30876         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30877         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30878         with modifications.
30879         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30880         with modifications.
30881         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30882         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30883         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30884         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30885         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30886         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30887         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30888         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30889         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30890         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30891         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30892         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30893         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30894         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30895         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30896         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30897         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30898         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30899         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30900         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30901         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30902         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30903         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30904         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30905         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30906         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30907         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30908         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30909         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30910         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30911         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30912         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30913         * tests/havelib/rpathx/rpathx.c: New file, from
30914         gettext/autoconf-lib-link.
30915         * tests/havelib/rpathx/Makefile.am: New file, from
30916         gettext/autoconf-lib-link.
30917         * tests/havelib/rpathx/configure.ac: New file, from
30918         gettext/autoconf-lib-link with modifications.
30919         * tests/havelib/rpathy/rpathy.c: New file, from
30920         gettext/autoconf-lib-link.
30921         * tests/havelib/rpathy/Makefile.am: New file, from
30922         gettext/autoconf-lib-link.
30923         * tests/havelib/rpathy/configure.ac: New file, from
30924         gettext/autoconf-lib-link with modifications.
30925         * tests/havelib/rpathz/rpathz.c: New file, from
30926         gettext/autoconf-lib-link.
30927         * tests/havelib/rpathz/Makefile.am: New file, from
30928         gettext/autoconf-lib-link.
30929         * tests/havelib/rpathz/configure.ac: New file, from
30930         gettext/autoconf-lib-link with modifications.
30931         * tests/havelib/rpathlx/usex.c: New file, from
30932         gettext/autoconf-lib-link.
30933         * tests/havelib/rpathlx/Makefile.am: New file, from
30934         gettext/autoconf-lib-link.
30935         * tests/havelib/rpathlx/configure.ac: New file, from
30936         gettext/autoconf-lib-link with modifications.
30937         * tests/havelib/rpathly/usey.c: New file, from
30938         gettext/autoconf-lib-link.
30939         * tests/havelib/rpathly/Makefile.am: New file, from
30940         gettext/autoconf-lib-link.
30941         * tests/havelib/rpathly/configure.ac: New file, from
30942         gettext/autoconf-lib-link with modifications.
30943         * tests/havelib/rpathlz/usez.c: New file, from
30944         gettext/autoconf-lib-link.
30945         * tests/havelib/rpathlz/Makefile.am: New file, from
30946         gettext/autoconf-lib-link.
30947         * tests/havelib/rpathlz/configure.ac: New file, from
30948         gettext/autoconf-lib-link with modifications.
30949         * tests/havelib/rpathlyx/usey.c: New file, from
30950         gettext/autoconf-lib-link.
30951         * tests/havelib/rpathlyx/Makefile.am: New file, from
30952         gettext/autoconf-lib-link.
30953         * tests/havelib/rpathlyx/configure.ac: New file, from
30954         gettext/autoconf-lib-link with modifications.
30955         * tests/havelib/rpathlzyx/usez.c: New file, from
30956         gettext/autoconf-lib-link.
30957         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30958         gettext/autoconf-lib-link.
30959         * tests/havelib/rpathlzyx/configure.ac: New file, from
30960         gettext/autoconf-lib-link with modifications.
30961         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30962         with modifications.
30963
30964 2010-04-02  Bruno Haible  <bruno@clisp.org>
30965
30966         gnulib-tool: Create distributed built sources also for the tests.
30967         * gnulib-tool (func_create_testdir): Also generate distributed built
30968         sources in the tests directory.
30969
30970 2010-04-02  Bruno Haible  <bruno@clisp.org>
30971
30972         gnulib-tool: Obey user's environment variables.
30973         * gnulib-tool (func_create_testdir): When creating built sources,
30974         respect the environment variables for autoconf, automake, etc. given by
30975         the user.
30976
30977 2010-04-02  Bruno Haible  <bruno@clisp.org>
30978
30979         gnulib-tool: Provide the value of --m4-base to modules.
30980         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30981         of gl_m4_base.
30982
30983 2010-04-02  Eric Blake  <eblake@redhat.com>
30984
30985         maint.mk: fix some fallout
30986         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30987         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30988
30989 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30990
30991         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30992         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30993         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30994         (sc_cast_of_x_alloc_return_value): Likewise.
30995         (sc_cast_of_alloca_return_value): Likewise.
30996         (sc_space_tab): Likewise.
30997         (sc_prohibit_atoi_atof): Likewise.
30998         (sc_prohibit_magic_number_exit): Likewise.
30999         (sc_error_exit_success): Likewise.
31000         (sc_file_system): Likewise.
31001         (sc_prohibit_have_config_h): Likewise.
31002         (sc_require_config_h): Likewise.
31003         (sc_prohibit_HAVE_MBRTOWC): Likewise.
31004         (sc_obsolete_symbols): Likewise.
31005         (sc_changelog): Likewise.
31006         (sc_program_name): Likewise.
31007         (sc_the_the): Likewise.
31008         (sc_trailing_blank): Likewise.
31009         (sc_two_space_separator_in_usage): Likewise.
31010         (sc_useless_cpp_parens): Likewise.
31011         (sc_GPL_version): Likewise.
31012         (sc_GFDL_version): Likewise.
31013         (sc_texinfo_acronym): Likewise.
31014         (sc_prohibit_cvs_keyword): Likewise.
31015         (sc_prohibit_stat_st_blocks): Likewise.
31016         (sc_prohibit_S_IS_definition): Likewise.
31017         (sc_redundant_const): Likewise.
31018         (sc_makefile_TAB_only_indentation): Likewise.
31019         (sc_m4_quote_check): Likewise.
31020         (sc_makefile_path_separator_check): Likewise.
31021         (sc_copyright_check): Likewise.
31022         (sc_Wundef_boolean): Likewise.
31023         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
31024
31025         maint.mk: match 0 or more whitespace-before-function-call '('
31026         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
31027         that have zero or two-and-more spaces between the function name
31028         and the open parenthesis.
31029         (sc_error_message_warn_fatal): Likewise.
31030         (sc_error_message_uppercase): Likewise.
31031         (sc_error_message_period): Likewise.
31032
31033 2010-03-31  Eric Blake  <eblake@redhat.com>
31034
31035         maint.mk: check for [ as well as test
31036         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
31037         Based on a libvirt report by Matthias Bolte.
31038
31039         gnumakefile: don't squelch _version output
31040         * top/GNUmakefile (_version): Create one-shot dependency rather
31041         than using $(shell) when version must be regenerated.
31042         (_autoreconf): Run verbosely, by default.
31043
31044         sys_time: avoid compiler warnings
31045         * lib/sys_time.in.h (includes): Ensure gcc pragma is
31046         unconditional, fixing regression from 2010-03-29.
31047         Reported by Simon Josefsson.
31048
31049 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
31050
31051         maint.mk: s/_header_without_use/_sc_header_without_use/
31052         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
31053         (sc_prohibit_assert_without_use): Use the new name.
31054         (sc_prohibit_close_stream_without_use): Likewise.
31055         (sc_prohibit_getopt_without_use): Likewise.
31056         (sc_prohibit_quotearg_without_use): Likewise.
31057         (sc_prohibit_quote_without_use): Likewise.
31058         (sc_prohibit_long_options_without_use): Likewise.
31059         (sc_prohibit_inttostr_without_use): Likewise.
31060         (sc_prohibit_ignore_value_without_use): Likewise.
31061         (sc_prohibit_error_without_use): Likewise.
31062         (sc_prohibit_xalloc_without_use): Likewise.
31063         (sc_prohibit_hash_without_use): Likewise.
31064         (sc_prohibit_hash_pjw_without_use): Likewise.
31065         (sc_prohibit_safe_read_without_use): Likewise.
31066         (sc_prohibit_argmatch_without_use): Likewise.
31067         (sc_prohibit_canonicalize_without_use): Likewise.
31068         (sc_prohibit_root_dev_ino_without_use): Likewise.
31069         (sc_prohibit_openat_without_use): Likewise.
31070         (sc_prohibit_c_ctype_without_use): Likewise.
31071         (sc_prohibit_signal_without_use): Likewise.
31072         (sc_prohibit_intprops_without_use): Likewise.
31073
31074 2010-03-30  Eric Blake  <eblake@redhat.com>
31075
31076         maint: improve module indicators
31077         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
31078         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
31079         columns, and avoid extra macro expansion.
31080
31081         fdopendir: work around FreeBSD bug
31082         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
31084         * modules/dirent (Makefile.am): Substitute it.
31085         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
31086         declaration.
31087         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
31088         fix.
31089         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31090
31091 2010-03-29  Bruno Haible  <bruno@clisp.org>
31092
31093         Emit #pragma system_header after the inclusion guard, not before.
31094         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
31095         guard that spans the entire file, not before. This enables an
31096         optimization in GCC's preprocessor.
31097         * lib/ctype.in.h: Likewise.
31098         * lib/dirent.in.h: Likewise.
31099         * lib/errno.in.h: Likewise.
31100         * lib/float.in.h: Likewise.
31101         * lib/getopt.in.h: Likewise.
31102         * lib/iconv.in.h: Likewise.
31103         * lib/langinfo.in.h: Likewise.
31104         * lib/locale.in.h: Likewise.
31105         * lib/math.in.h: Likewise.
31106         * lib/netdb.in.h: Likewise.
31107         * lib/netinet_in.in.h: Likewise.
31108         * lib/pty.in.h: Likewise.
31109         * lib/sched.in.h: Likewise.
31110         * lib/se-selinux.in.h: Likewise.
31111         * lib/search.in.h: Likewise.
31112         * lib/spawn.in.h: Likewise.
31113         * lib/stdarg.in.h: Likewise.
31114         * lib/stdint.in.h: Likewise.
31115         * lib/string.in.h: Likewise.
31116         * lib/strings.in.h: Likewise.
31117         * lib/sys_file.in.h: Likewise.
31118         * lib/sys_ioctl.in.h: Likewise.
31119         * lib/sys_time.in.h: Likewise.
31120         * lib/sys_times.in.h: Likewise.
31121         * lib/sys_utsname.in.h: Likewise.
31122         * lib/sys_wait.in.h: Likewise.
31123         * lib/sysexits.in.h: Likewise.
31124         * lib/wctype.in.h: Likewise.
31125
31126 2010-03-28  James Youngman  <jay@gnu.org>
31127
31128         save-cwd: don't leak a file descriptor when the caller execs.
31129         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
31130         saved file descriptor.
31131         * modules/save-cwd (Depends-on): Depend on cloexec.
31132
31133 2010-03-29  Bruno Haible  <bruno@clisp.org>
31134
31135         Remove vestiges of fts-lgpl module.
31136         * lib/fts_.h: Assume GNULIB_FTS is 1.
31137         * lib/fts.c: Likewise.
31138         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31139
31140 2010-03-28  Bruno Haible  <bruno@clisp.org>
31141
31142         Fix definition of tests witness macro.
31143         * gnulib-tool (func_import): Fix definition of witness macro.
31144
31145 2010-03-28  Bruno Haible  <bruno@clisp.org>
31146
31147         Fix ioctl's protoype on glibc systems.
31148         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
31149         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
31150         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
31151         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
31152         signature. If not, arrange to replace the ioctl function.
31153         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
31154         REPLACE_IOCTL.
31155         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
31156         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
31157         Reported by Ludovic Courtès <ludo@gnu.org>.
31158
31159 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
31160
31161         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
31162         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
31163         made it so grep -r --include=GLOB* ... did not work.
31164
31165 2010-03-26  Jim Meyering  <meyering@redhat.com>
31166             Eric Blake  <eblake@redhat.com>
31167
31168         maint.mk: prohibit use of test's -o and -a operators
31169         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
31170
31171 2010-03-28  Bruno Haible  <bruno@clisp.org>
31172
31173         Remove unused GNULIB_XYZ macro definitions.
31174         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
31175         invocation.
31176
31177 2010-03-28  Bruno Haible  <bruno@clisp.org>
31178
31179         Mark privileged tests modules.
31180         * modules/idpriv-drop-tests (Status): New section.
31181         * modules/idpriv-droptemp-tests (Status): New section.
31182
31183 2010-03-28  Bruno Haible  <bruno@clisp.org>
31184
31185         Split C++ tests into separate tests modules.
31186         * modules/dirent-c++-tests: New file, extracted from
31187         modules/dirent-tests.
31188         * modules/dirent-tests: Depend on it.
31189         * modules/fcntl-h-c++-tests: New file, extracted from
31190         modules/fcntl-h-tests.
31191         * modules/fcntl-h-tests: Depend on it.
31192         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
31193         * modules/glob-tests: Depend on it.
31194         * modules/iconv-h-c++-tests: New file, extracted from
31195         modules/iconv-h-tests.
31196         * modules/iconv-h-tests: Depend on it.
31197         * modules/langinfo-c++-tests: New file, extracted from
31198         modules/langinfo-tests.
31199         * modules/langinfo-tests: Depend on it.
31200         * modules/locale-c++-tests: New file, extracted from
31201         modules/locale-tests.
31202         * modules/locale-tests: Depend on it.
31203         * modules/math-c++-tests: New file, extracted from modules/math-tests.
31204         * modules/math-tests: Depend on it.
31205         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
31206         * modules/pty-tests: Depend on it.
31207         * modules/search-c++-tests: New file, extracted from
31208         modules/search-tests.
31209         * modules/search-tests: Depend on it.
31210         * modules/signal-c++-tests: New file, extracted from
31211         modules/signal-tests.
31212         * modules/signal-tests: Depend on it.
31213         * modules/spawn-c++-tests: New file, extracted from
31214         modules/spawn-tests.
31215         * modules/spawn-tests: Depend on it.
31216         * modules/stdio-c++-tests: New file, extracted from
31217         modules/stdio-tests.
31218         * modules/stdio-tests: Depend on it.
31219         * modules/stdlib-c++-tests: New file, extracted from
31220         modules/stdlib-tests.
31221         * modules/stdlib-tests: Depend on it.
31222         * modules/string-c++-tests: New file, extracted from
31223         modules/string-tests.
31224         * modules/string-tests: Depend on it.
31225         * modules/sys_ioctl-c++-tests: New file, extracted from
31226         modules/sys_ioctl-tests.
31227         * modules/sys_ioctl-tests: Depend on it.
31228         * modules/sys_select-c++-tests: New file, extracted from
31229         modules/sys_select-tests.
31230         * modules/sys_select-tests: Depend on it.
31231         * modules/sys_socket-c++-tests: New file, extracted from
31232         modules/sys_socket-tests.
31233         * modules/sys_socket-tests: Depend on it.
31234         * modules/sys_stat-c++-tests: New file, extracted from
31235         modules/sys_stat-tests.
31236         * modules/sys_stat-tests: Depend on it.
31237         * modules/sys_time-c++-tests: New file, extracted from
31238         modules/sys_time-tests.
31239         * modules/sys_time-tests: Depend on it.
31240         * modules/time-c++-tests: New file, extracted from modules/time-tests.
31241         * modules/time-tests: Depend on it.
31242         * modules/unistd-c++-tests: New file, extracted from
31243         modules/unistd-tests.
31244         * modules/unistd-tests: Depend on it.
31245         * modules/wchar-c++-tests: New file, extracted from
31246         modules/wchar-tests.
31247         * modules/wchar-tests: Depend on it.
31248         * modules/wctype-c++-tests: New file, extracted from
31249         modules/wctype-tests.
31250         * modules/wctype-tests: Depend on it.
31251         Reported by Simon Josefsson.
31252
31253 2010-03-28  Bruno Haible  <bruno@clisp.org>
31254
31255         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
31256         * gnulib-tool (func_exists_module): New function, extracted from
31257         func_verify_module.
31258         (func_verify_module): Use it.
31259         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
31260         'foo' only if 'foo' exists.
31261         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
31262         module.
31263
31264 2010-03-28  Bruno Haible  <bruno@clisp.org>
31265
31266         gnulib-tool: Add support for special categories of tests.
31267         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
31268         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
31269         (func_usage): Document them.
31270         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
31271         inc_unportable_tests, inc_all_tests): New variables.
31272         (func_acceptable): Consider these variables.
31273         (func_modules_transitive_closure): Make it work when the 'Status' field
31274         consists of multiple words.
31275         (func_import): Store and restore the values of inc_cxx_tests,
31276         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
31277         inc_all_tests in gnulib-comp.m4.
31278         (func_create_testdir): Set inc_all_tests to true.
31279         * doc/gnulib.texi (Extra tests modules): New section.
31280         Suggested by Jim Meyering.
31281
31282 2010-03-28  Bruno Haible  <bruno@clisp.org>
31283
31284         ansi-c++-opt: Allow turning off the C++ build by default.
31285         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
31286         gl_CXX_CHOICE_DEFAULT_NO is defined.
31287         Requested by Eric Blake.
31288
31289 2010-03-28  Bruno Haible  <bruno@clisp.org>
31290
31291         unistd: Avoid #define replacements in C++ mode.
31292         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
31293         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
31294         setsockopt, shutdown, select): In C++, attach a warning to the function
31295         if possible, rather than #defining the symbol to a dysfunctional alias.
31296         Reported by John W. Eaton <jwe@gnu.org>.
31297
31298 2010-03-28  Bruno Haible  <bruno@clisp.org>
31299
31300         Fix link errors on mingw.
31301         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
31302         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
31303         $(LIBSOCKET).
31304         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
31305         $(LIBSOCKET).
31306
31307 2010-03-28  Bruno Haible  <bruno@clisp.org>
31308             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31309
31310         lib-ignore: Determine different options for different compilers.
31311         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
31312         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
31313         Add comments.
31314         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
31315         * NEWS: Mention the change.
31316
31317 2010-03-27  Bruno Haible  <bruno@clisp.org>
31318
31319         Remove unused GNULIB_XYZ macro definitions.
31320         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
31321         * modules/fseek (configure.ac): Likewise.
31322         * modules/ioctl (configure.ac): Likewise.
31323         * modules/open (configure.ac): Likewise.
31324         * modules/stdlib-safer (configure.ac): Likewise.
31325
31326 2010-03-27  Bruno Haible  <bruno@clisp.org>
31327
31328         Add a remark about certain modules.
31329         * modules/malloc (Comment): New section.
31330         * modules/realloc (Comment): Likewise.
31331         * modules/sigpipe (Comment): Likewise.
31332
31333 2010-03-27  Bruno Haible  <bruno@clisp.org>
31334
31335         Resolve conflict between the two kinds of module indicators.
31336         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
31337         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
31338         * modules/canonicalize (configure.ac): Invoke
31339         gl_MODULE_INDICATOR_FOR_TESTS.
31340         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
31341         GNULIB_XYZ.
31342         * tests/test-dirent-c++.cc: Likewise.
31343         * tests/test-dirent-safer.c: Likewise.
31344         * tests/test-dup2.c: Likewise.
31345         * tests/test-fchdir.c: Likewise.
31346         * tests/test-fcntl-h-c++.cc: Likewise.
31347         * tests/test-getopt.c: Likewise.
31348         * tests/test-getopt.h: Likewise.
31349         * tests/test-langinfo-c++.cc: Likewise.
31350         * tests/test-locale-c++.cc: Likewise.
31351         * tests/test-math-c++.cc: Likewise.
31352         * tests/test-pty-c++.cc: Likewise.
31353         * tests/test-search-c++.cc: Likewise.
31354         * tests/test-signal-c++.cc: Likewise.
31355         * tests/test-spawn-c++.cc: Likewise.
31356         * tests/test-stdio-c++.cc: Likewise.
31357         * tests/test-stdlib-c++.cc: Likewise.
31358         * tests/test-string-c++.cc: Likewise.
31359         * tests/test-sys_ioctl-c++.cc: Likewise.
31360         * tests/test-sys_select-c++.cc: Likewise.
31361         * tests/test-sys_socket-c++.cc: Likewise.
31362         * tests/test-sys_stat-c++.cc: Likewise.
31363         * tests/test-sys_time-c++.cc: Likewise.
31364         * tests/test-time-c++.cc: Likewise.
31365         * tests/test-unistd-c++.cc: Likewise.
31366         * tests/test-wchar-c++.cc: Likewise.
31367         * tests/uninorm/test-u8-nfc.c: Likewise.
31368         * tests/uninorm/test-u8-nfd.c: Likewise.
31369         * tests/uninorm/test-u8-nfkc.c: Likewise.
31370         * tests/uninorm/test-u8-nfkd.c: Likewise.
31371         * tests/uninorm/test-u16-nfc.c: Likewise.
31372         * tests/uninorm/test-u16-nfd.c: Likewise.
31373         * tests/uninorm/test-u16-nfkc.c: Likewise.
31374         * tests/uninorm/test-u16-nfkd.c: Likewise.
31375         * tests/uninorm/test-u32-nfc.c: Likewise.
31376         * tests/uninorm/test-u32-nfc-big.c: Likewise.
31377         * tests/uninorm/test-u32-nfd.c: Likewise.
31378         * tests/uninorm/test-u32-nfd-big.c: Likewise.
31379         * tests/uninorm/test-u32-nfkc.c: Likewise.
31380         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
31381         * tests/uninorm/test-u32-nfkd.c: Likewise.
31382         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
31383         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31384
31385 2010-03-27  Bruno Haible  <bruno@clisp.org>
31386
31387         Distinguish two kinds of module indicators.
31388         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
31389         gl_MODULE_INDICATOR.
31390         (gl_MODULE_INDICATOR): New macro.
31391         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31392         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
31393         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31394         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31395         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31396         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31397         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31398         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31399         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31400         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31401         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31402         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31403         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31404         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31405         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31406         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31407         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31408         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31409         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31410         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31411         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31412         * modules/cloexec (configure.ac): Likewise.
31413         * modules/getopt-gnu (configure.ac): Likewise.
31414         * modules/uninorm/u8-normalize (configure.ac): Likewise.
31415         * modules/uninorm/u16-normalize (configure.ac): Likewise.
31416         * modules/uninorm/u32-normalize (configure.ac): Likewise.
31417         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
31418
31419 2010-03-27  Bruno Haible  <bruno@clisp.org>
31420
31421         New module description field 'Comment'.
31422         * gnulib-tool: New option --extract-comment.
31423         (func_usage): Document it.
31424         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
31425         (func_get_comment): New function.
31426         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
31427
31428 2010-03-27  Bruno Haible  <bruno@clisp.org>
31429
31430         Addendum to 2010-02-07 commit.
31431         * gnulib-tool (func_usage): Document --extract-applicability option.
31432
31433 2010-03-27  Bruno Haible  <bruno@clisp.org>
31434
31435         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
31436         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
31437         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
31438         rather than link errors.
31439
31440 2010-03-27  Bruno Haible  <bruno@clisp.org>
31441
31442         Avoid side effects from tests-related modules on the compilation of lib.
31443         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
31444         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
31445         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
31446         parameter. Emit into AM_CPPFLAGS a definition of the designated C
31447         macro.
31448         (func_import): Define a witness macro. Assign it a value that depends
31449         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
31450         tests-related modules.
31451         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
31452         Reported by Jim Meyering.
31453
31454 2010-03-27  Bruno Haible  <bruno@clisp.org>
31455
31456         Factorize common .m4 code.
31457         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
31458         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
31459         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
31460         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
31461         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
31462         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
31463         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
31464         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
31465         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
31466         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
31467         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
31468         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
31469         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
31470         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
31471         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
31472         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
31473         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
31474         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
31475         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
31476         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
31477         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
31478         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
31479         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
31480         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
31481         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
31482         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
31483         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
31484         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
31485         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
31486         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
31487         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
31488         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
31489
31490 2010-03-27  Bruno Haible  <bruno@clisp.org>
31491
31492         Fix a compilation error on Cygwin with g++ >= 4.3.
31493         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
31494         if it is undefined or if we alias it to chmod.
31495         (lstat): Don't warn about the use of this function if it is undefined
31496         or if we alias it to stat.
31497         Reported by Simon Josefsson.
31498
31499 2010-03-27  Bruno Haible  <bruno@clisp.org>
31500
31501         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
31502         * modules/getlogin (configure.ac): Update.
31503
31504         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
31505         * modules/getlogin_r (configure.ac): Update.
31506
31507         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
31508         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
31509         * modules/inet_ntop (configure.ac): Update.
31510
31511         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
31512         * modules/inet_pton (configure.ac): Update.
31513
31514         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
31515         * modules/mbslen (configure.ac): Update.
31516
31517         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
31518         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
31519         * modules/forkpty (configure.ac): Update.
31520         * modules/openpty (configure.ac): Update.
31521
31522 2010-03-26  Simon Josefsson  <simon@josefsson.org>
31523
31524         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
31525         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
31526
31527 2010-03-25  Eric Blake  <eblake@redhat.com>
31528
31529         maint: use pragma consistently across replacement headers
31530         * lib/ctype.in.h (system_header): Hoist for consistent placement.
31531         * lib/dirent.in.h (system_header): Likewise.
31532         * lib/errno.in.h (system_header): Likewise.
31533         * lib/float.in.h (system_header): Likewise.
31534         * lib/getopt.in.h (system_header): Likewise.
31535         * lib/iconv.in.h (system_header): Likewise.
31536         * lib/inttypes.in.h (system_header): Likewise.
31537         * lib/langinfo.in.h (system_header): Likewise.
31538         * lib/locale.in.h (system_header): Likewise.
31539         * lib/math.in.h (system_header): Likewise.
31540         * lib/netdb.in.h (system_header): Likewise.
31541         * lib/netinet_in.in.h (system_header): Likewise.
31542         * lib/pty.in.h (system_header): Likewise.
31543         * lib/sched.in.h (system_header): Likewise.
31544         * lib/se-selinux.in.h (system_header): Likewise.
31545         * lib/search.in.h (system_header): Likewise.
31546         * lib/spawn.in.h (system_header): Likewise.
31547         * lib/stdarg.in.h (system_header): Likewise.
31548         * lib/stdint.in.h (system_header): Likewise.
31549         * lib/string.in.h (system_header): Likewise.
31550         * lib/strings.in.h (system_header): Likewise.
31551         * lib/sys_file.in.h (system_header): Likewise.
31552         * lib/sys_ioctl.in.h (system_header): Likewise.
31553         * lib/sys_socket.in.h (system_header): Likewise.
31554         * lib/sys_times.in.h (system_header): Likewise.
31555         * lib/sys_utsname.in.h (system_header): Likewise.
31556         * lib/sys_wait.in.h (system_header): Likewise.
31557         * lib/sysexits.in.h (system_header): Likewise.
31558         * lib/unistd.in.h (system_header): Likewise.
31559         * lib/wctype.in.h (system_header): Likewise.
31560
31561         arpa/inet: fix mingw compilation warning
31562         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
31563         Reported by Matthew Bolte.
31564
31565 2010-03-25  Bruno Haible  <bruno@clisp.org>
31566
31567         Avoid collision between gnulib wrapper and libintl wrapper.
31568         * lib/printf.c (printf): Don't define if a printf wrapper is already
31569         defined in intl/printf.c.
31570         Reported by Michel Boaventura <michel@michelboaventura.com>.
31571
31572 2010-03-25  Bruno Haible  <bruno@clisp.org>
31573
31574         Use ANSI C.
31575         * lib/readutmp.h (getutent): Provide ANSI C prototype.
31576
31577 2010-03-25  Bruno Haible  <bruno@clisp.org>
31578
31579         Minor formatting changes.
31580         * lib/acosl.c: Insert space before function argument list.
31581         * lib/argz.c: Likewise.
31582         * lib/asinl.c: Likewise.
31583         * lib/expl.c: Likewise.
31584         * lib/gen-uni-tables.c: Likewise.
31585         * lib/gettext.h: Likewise.
31586         * lib/glthread/lock.h: Likewise.
31587         * lib/tanl.c: Likewise.
31588         * lib/uniname/uniname.c: Likewise.
31589         * tests/test-idpriv-drop.c: Likewise.
31590         * tests/test-idpriv-droptemp.c: Likewise.
31591         * tests/test-lock.c: Likewise.
31592         * tests/test-tls.c: Likewise.
31593         * lib/argp-help.c: Insert space before function-like macro argument
31594         list.
31595         * lib/memcmp.c: Likewise.
31596         * tests/test-base64.c: Likewise.
31597         * lib/localename.c: Insert space before sizeof's argument list.
31598         * lib/safe-alloc.h: Likewise.
31599         * lib/file-set.h: Insert space before macro argument list.
31600         * tests/test-argp.c: Likewise.
31601         * lib/argp-namefrob.h: Insert space before function parameter list.
31602         * lib/getaddrinfo.c: Likewise.
31603         * lib/netdb.in.h: Likewise.
31604         * lib/parse-duration.h: Likewise.
31605         * lib/parse-duration.c: Likewise.
31606         * lib/poll.c: Likewise.
31607         * lib/select.c: Likewise.
31608         * lib/trim.h: Likewise.
31609         * tests/test-usleep.c: Likewise.
31610         * lib/ldexpl.c: Insert space before function parameter list and before
31611         function argument list.
31612         * lib/logl.c: Likewise.
31613         * lib/sqrtl.c: Likewise.
31614         * lib/trim.c: Likewise.
31615         * lib/cosl.c: Use GNU style indentation. Insert space before function
31616         argument list.
31617         * lib/sinl.c: Likewise.
31618         * lib/tsearch.c: Insert space after 'for'.
31619         Reported by Jim Meyering.
31620
31621 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
31622
31623         * maint.mk (sc_Wundef_boolean): Check for the presence of the
31624         config header before grepping, as it's not present before
31625         autoreconf/configure are run.  Reported by Simon Josefsson.
31626
31627 2010-03-23  Bruno Haible  <bruno@clisp.org>
31628
31629         pt_chown: Make it work with automake < 1.11.
31630         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
31631         Reported by Simon Josefsson.
31632
31633 2010-03-23  Bruno Haible  <bruno@clisp.org>
31634
31635         pt_chown: Don't depend on GPLed modules.
31636         * lib/pt_chown.c: Don't include idpriv.h.
31637         (main): Don't drop privileges.
31638         * modules/pt_chown (Depends-on): Remove idpriv-drop.
31639         Reported by Simon Josefsson.
31640
31641 2010-03-24  Simon Josefsson  <simon@josefsson.org>
31642
31643         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
31644         suggestions from karl@freefriends.org (Karl Berry).
31645
31646 2010-03-22  Eric Blake  <eblake@redhat.com>
31647
31648         gethostname: further tweaks
31649         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
31650         are overriding gethostname.
31651         Suggested by Bruno Haible.
31652
31653 2010-03-21  Bruno Haible  <bruno@clisp.org>
31654
31655         Fix comments.
31656         * lib/forkpty.c (rpl_forkpty): Fix comment.
31657         * lib/openpty.c (rpl_openpty): Likewise.
31658         Reported by Eric Blake.
31659
31660 2010-03-22  Eric Blake  <eblake@redhat.com>
31661
31662         gethostname: fix build on mingw
31663         * lib/unistd.in.h (includes): Work around fact that mingw
31664         <winsock2.h> re-includes <unistd.h>, by avoiding any
31665         redeclarations if we are being included by <winsock2.h>.
31666         Reported by Matthias Bolte.
31667
31668 2010-03-21  Bruno Haible  <bruno@clisp.org>
31669
31670         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31671         * lib/forkpty.c (forkpty): New replacement function, from glibc with
31672         modifications.
31673         * lib/pty.in.h (forkpty): Update declaration. Add comments.
31674         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
31675         provide the replacement.
31676         * modules/forkpty (Depends-on): Add openpty, login_tty.
31677         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
31678         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
31679         * doc/glibc-functions/forkpty.texi: More supported platforms.
31680         * config/srclist.txt: Add forkpty.c (commented).
31681
31682 2010-03-21  Bruno Haible  <bruno@clisp.org>
31683
31684         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
31685         (Makefile.am): Verify that PTY_LIB is defined.
31686
31687         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
31688
31689 2010-03-21  Bruno Haible  <bruno@clisp.org>
31690
31691         Tests for module 'login_tty'.
31692         * modules/login_tty-tests: New file.
31693         * tests/test-login_tty.c: New file.
31694
31695         New module 'login_tty'.
31696         * lib/login_tty.c: New file.
31697         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
31698         * modules/login_tty: New file.
31699         * doc/glibc-functions/login_tty.texi: Mention the new module.
31700
31701 2010-03-21  Bruno Haible  <bruno@clisp.org>
31702
31703         login_tty: Documentation.
31704         * doc/glibc-functions/login_tty.texi: New file.
31705         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
31706
31707 2010-03-21  Bruno Haible  <bruno@clisp.org>
31708
31709         pty: Consistent macro naming.
31710         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
31711         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
31712         * modules/pty (configure.ac): Update.
31713
31714 2010-03-21  Bruno Haible  <bruno@clisp.org>
31715
31716         Tests for openpty: Make stricter.
31717         * tests/test-openpty.c (main): Add test of canonical processing and
31718         erase.
31719         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
31720
31721         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
31722         * lib/openpty.c (openpty): New replacement function.
31723         * lib/pty.in.h: Include <termios.h>.
31724         (openpty): Update declaration. Add comments.
31725         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
31726         is not declared, arrange to provide the replacement. Check for _getpty
31727         and posix_openpt.
31728         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
31729         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
31730         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
31731         * modules/pty-tests (test_pty_c___LDADD): New variable.
31732         * doc/glibc-functions/openpty.texi: More supported platforms.
31733
31734 2010-03-21  Bruno Haible  <bruno@clisp.org>
31735
31736         setenv: Tweaks.
31737         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
31738         the test program.
31739         * doc/posix-functions/setenv.texi: Update platforms list.
31740
31741 2010-03-21  Bruno Haible  <bruno@clisp.org>
31742
31743         New module 'unlockpt'.
31744         * lib/unlockpt.c: New file, from glibc with modifications.
31745         * m4/unlockpt.m4: New file.
31746         * modules/unlockpt: New file.
31747         * lib/stdlib.in.h (unlockpt): New declaration.
31748         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
31749         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
31750         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
31751         HAVE_UNLOCKPT.
31752         * doc/posix-functions/unlockpt.texi: Mention the new module.
31753         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
31754         * config/srclist.txt: Add unlockpt.c (commented).
31755
31756 2010-03-21  Jim Meyering  <meyering@redhat.com>
31757
31758         maint.mk: prohibit inclusion of "intprops.h" without use
31759         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
31760
31761 2010-03-21  Bruno Haible  <bruno@clisp.org>
31762
31763         New module 'grantpt'.
31764         * lib/grantpt.c: New file, from glibc with modifications.
31765         * m4/grantpt.m4: New file.
31766         * modules/grantpt: New file.
31767         * lib/stdlib.in.h (grantpt): New declaration.
31768         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
31769         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
31770         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
31771         HAVE_GRANTPT.
31772         * doc/posix-functions/grantpt.texi: Mention the new module.
31773         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
31774         * config/srclist.txt: Add grantpt.c (commented).
31775
31776 2010-03-21  Bruno Haible  <bruno@clisp.org>
31777
31778         New module 'pt_chown'.
31779         * lib/pt_chown.c: New file, from glibc with modifications.
31780         * lib/pty-private.h: New file, from glibc with modifications.
31781         * modules/pt_chown: New file.
31782         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
31783
31784 2010-03-21  Bruno Haible  <bruno@clisp.org>
31785
31786         Tests for module 'ptsname'.
31787         * modules/ptsname-tests: New file.
31788         * tests/test-ptsname.c: New file.
31789
31790         New module 'ptsname'.
31791         * lib/ptsname.c: New file, from glibc with modifications.
31792         * m4/ptsname.m4: New file.
31793         * modules/ptsname: New file.
31794         * lib/stdlib.in.h (ptsname): New declaration.
31795         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
31796         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
31797         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
31798         HAVE_PTSNAME.
31799         * doc/posix-functions/ptsname.texi: Mention the new module.
31800         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
31801         * config/srclist.txt: Add ptsname.c (commented).
31802
31803 2010-03-21  Bruno Haible  <bruno@clisp.org>
31804
31805         Tests for module 'ttyname_r'.
31806         * modules/ttyname_r-tests: New file.
31807         * tests/test-ttyname_r.c: New file.
31808
31809         New module 'ttyname_r'.
31810         * lib/ttyname_r.c: New file.
31811         * m4/ttyname_r.m4: New file.
31812         * modules/ttyname_r: New file.
31813         * lib/unistd.in.h (ttyname_r): New declaration.
31814         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31815         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31816         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31817         HAVE_TTYNAME_R.
31818         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31819         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31820
31821 2010-03-20  Bruno Haible  <bruno@clisp.org>
31822
31823         signal: Undefine macro definitions in C++ mode.
31824         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31825         sigfillset): Undefine macro definitions from the system header in C++
31826         mode.
31827         Reported by John W. Eaton <jwe@gnu.org>.
31828
31829 2010-03-20  Bruno Haible  <bruno@clisp.org>
31830
31831         Ensure no #include statements inside extern "C" { ... }.
31832         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31833         contain #include statements.
31834         * lib/time.in.h: Likewise.
31835
31836 2010-03-20  Bruno Haible  <bruno@clisp.org>
31837
31838         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31839         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31840         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31841         Reported by John W. Eaton <jwe@gnu.org>.
31842
31843 2010-03-20  Bruno Haible  <bruno@clisp.org>
31844
31845         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31846         Reported by Jim Meyering.
31847
31848 2010-03-20  Bruno Haible  <bruno@clisp.org>
31849
31850         pipe: Set errno upon failure.
31851         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31852         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31853         errno value in error message.
31854
31855 2010-03-20  Bruno Haible  <bruno@clisp.org>
31856             Jim Meyering  <meyering@redhat.com>
31857
31858         lchown: Avoid "unused variable" warning.
31859         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31860
31861 2010-03-20  Bruno Haible  <bruno@clisp.org>
31862
31863         Work around unlink() bug on MacOS X 10.5.6.
31864         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31865         attempting to unlink a parent directory.
31866         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31867         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31868         activate for the replacement function.
31869         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31870
31871 2010-03-20  Bruno Haible  <bruno@clisp.org>
31872
31873         Fix link errors on Solaris 8.
31874         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31875         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31876
31877 2010-03-19  Jim Meyering  <meyering@redhat.com>
31878
31879         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31880         The _LIBC implementation of build_range_exp correctly honors the
31881         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31882         However, the non-_LIBC implementation would ignore that syntax-bit
31883         flag and return REG_ERANGE unconditionally.
31884         This change makes it honor that flag.
31885         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31886         Make two pointer parameters "const".
31887         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31888         (parse_bracket_exp): Update caller.
31889
31890         regex.m4: correct the reversed range endpoint ([b-a]) test
31891         * m4/regex.m4: When requiring that [b-a] evoke failure,
31892         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31893         test pass once again for x86-based systems.
31894
31895 2010-03-19  Bruno Haible  <bruno@clisp.org>
31896
31897         scandir: Fix link error on Solaris 8.
31898         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31899         macros.
31900
31901 2010-03-19  Bruno Haible  <bruno@clisp.org>
31902
31903         getusershell: Fix documentation.
31904         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31905         module.
31906         * doc/glibc-functions/setusershell.texi: Likewise.
31907
31908         getusershell: Provide declaration, missing on Solaris 9.
31909         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31910         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31911         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31912         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31913         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31914         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31915         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31916         HAVE_GETUSERSHELL.
31917         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31918
31919 2010-03-19  Bruno Haible  <bruno@clisp.org>
31920
31921         wctype: Provide iswblank function.
31922         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31923         exists and is fine.
31924         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31925         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31926         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31927         * doc/posix-functions/iswblank.texi: Update.
31928
31929 2010-03-19  Bruno Haible  <bruno@clisp.org>
31930
31931         Tests of module 'pty' in C++ mode.
31932         * modules/pty-tests: New file.
31933         * tests/test-pty-c++.cc: New file.
31934         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31935
31936 2010-03-19  Eric Blake  <eblake@redhat.com>
31937
31938         logb: fix documentation
31939         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31940         1.5 declaration bug.
31941
31942         forkpty, openpty: prefer glibc's const-safe prototype
31943         * lib/forkpty.c (rpl_forkpty): New file.
31944         * lib/openpty.c (rpl_openpty): Likewise.
31945         * modules/forkpty (Files): Distribute it.
31946         * modules/openpty (Files): Likewise.
31947         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31948         check...
31949         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31950         replacement for for non-const BSD signature.
31951         * modules/pty (Makefile.am): Substitute witnesses.
31952         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31953         * tests/test-forkpty.c: Update signature check.
31954         * tests/test-openpty.c: Likewise.
31955         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31956         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31957
31958         forkpty, openpty: split functions into new modules
31959         * modules/pty (Makefile.am): Substitute new witnesses.
31960         (Libraries): Move library detection...
31961         * modules/forkpty: ...into new module.
31962         * modules/openpty: Another new module.
31963         * modules/pty-tests: Rename and split...
31964         * modules/forkpty-tests: ...to this...
31965         * modules/openpty-tests: ...and this.
31966         * tests/test-pty.c: Rename and split...
31967         * tests/test-forkpty.c: ...to this...
31968         * tests/test-openpty.c: ...and this.
31969         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31970         (gl_PTY): Split library searching...
31971         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31972         (gl_FORKPTY, gl_OPENPTY): New macros.
31973         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31974         * NEWS: Mention the split.
31975         * MODULES.html.sh (Misc): Document the modules.
31976         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31977         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31978
31979         pty: improve replacement header
31980         * lib/pty.in.h: New file.
31981         * modules/pty (Files): Ship it.
31982         (Makefile.am): Always build replacement.
31983         * m4/pty.m4: Rename...
31984         * m4/pty_h.m4: ...to this.
31985         (gl_PTY): Modernize setting of witness macros; update check of
31986         forkpty to take proper advantage of cache.
31987         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31988
31989         getopt: avoid compiler warning
31990         * lib/getopt.c (attribute_hidden): Remove unused macro.
31991
31992 2010-03-18  Bruno Haible  <bruno@clisp.org>
31993
31994         Fix link errors on Solaris 8.
31995         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31996         * modules/search-tests (test_search_c___LDADD): Likewise.
31997         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31998         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31999         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
32000         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
32001         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
32002         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
32003         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
32004
32005 2010-03-18  Bruno Haible  <bruno@clisp.org>
32006
32007         Fix bug introduced on 2010-03-14.
32008         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
32009         (gl_SPAWN_H): Require it.
32010         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
32011         Reported by Simon Josefsson.
32012
32013 2010-03-18  Bruno Haible  <bruno@clisp.org>
32014
32015         Fix typo introduced on 2009-12-31.
32016         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
32017         posix_spawn_file_actions_adddup2.
32018
32019 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
32020         and Eric Blake  <eblake@redhat.com>
32021
32022         test-vc-list-files-git: make more robust
32023         * tests/test-vc-list-files-git.sh: Unset problematic environment
32024         variables.  Chain commands together.
32025
32026 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
32027
32028         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
32029         `AC_CHECK_DECL' invocation.
32030
32031 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
32032
32033         * lib/inttostr.c (inttostr): Make sure the invocation of verify
32034         appears before executable statements. Suggested by Petr Sumbera
32035         <Petr.Sumbera@Sun.COM>.
32036
32037 2010-03-14  Bruno Haible  <bruno@clisp.org>
32038
32039         * tests/test-flock.c (test_exclusive): Comment out a test that causes
32040         portability problems. Instead use a simpler test.
32041         (main): Check that invalid arguments are rejected only on Linux.
32042
32043 2010-03-14  Bruno Haible  <bruno@clisp.org>
32044
32045         Fix bug introduced on 2009-12-31.
32046         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
32047         gl_PREREQ_SYS_H_WINSOCK2 always.
32048         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
32049         SYS_SOCKET_H variable.
32050         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
32051         Update comments.
32052         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
32053         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32054         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32056         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
32057
32058 2010-03-14  Bruno Haible  <bruno@clisp.org>
32059
32060         Fix values returned by sinl, cosl.
32061         * lib/trigl.h: Add specification comments.
32062         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
32063         that combines the values from the precomputed table with the values of
32064         the Chebyshev polynomials.
32065
32066 2010-03-14  Bruno Haible  <bruno@clisp.org>
32067
32068         Fix compilation error when modules 'posix_spawn[p]' are not used.
32069         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
32070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
32071
32072 2010-03-14  Bruno Haible  <bruno@clisp.org>
32073
32074         Fix compilation error on mingw when module 'time_r' is not used.
32075         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
32076         is 1.
32077         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
32078         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32079         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
32080         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
32081
32082 2010-03-14  Bruno Haible  <bruno@clisp.org>
32083
32084         Fix compilation error with Sun C.
32085         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
32086         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
32087         instead of GCC specific ULONG_LONG_MAX.
32088         * lib/xstrtoll.c: Likewise.
32089         * lib/xstrtoull.c: Likewise.
32090
32091 2010-03-13  Bruno Haible  <bruno@clisp.org>
32092
32093         Allow the user to disable C++ code and tests.
32094         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
32095         (gl_PROG_ANSI_CXX): Require it.
32096
32097 2010-03-13  Bruno Haible  <bruno@clisp.org>
32098
32099         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
32100         cases.
32101
32102 2010-03-13  Bruno Haible  <bruno@clisp.org>
32103
32104         Test that gnulib does not break the standard C++ headers.
32105         * tests/test-locale-c++2.cc: New file.
32106         * modules/locale-tests (Files): Add it.
32107         (Makefile.am): Compile it for test-locale-c++.
32108         * tests/test-math-c++2.cc: New file.
32109         * modules/math-tests (Files): Add it.
32110         (Makefile.am): Compile it for test-math-c++.
32111         * tests/test-signal-c++2.cc: New file.
32112         * modules/signal-tests (Files): Add it.
32113         (Makefile.am): Compile it for test-signal-c++.
32114         * tests/test-stdio-c++2.cc: New file.
32115         * modules/stdio-tests (Files): Add it.
32116         (Makefile.am): Compile it for test-stdio-c++.
32117         * tests/test-stdlib-c++2.cc: New file.
32118         * modules/stdlib-tests (Files): Add it.
32119         (Makefile.am): Compile it for test-stdlib-c++.
32120         * tests/test-string-c++2.cc: New file.
32121         * modules/string-tests (Files): Add it.
32122         (Makefile.am): Compile it for test-string-c++.
32123         * tests/test-time-c++2.cc: New file.
32124         * modules/time-tests (Files): Add it.
32125         (Makefile.am): Compile it for test-time-c++.
32126         Reported by John W. Eaton <jwe@gnu.org>.
32127
32128 2010-03-13  Bruno Haible  <bruno@clisp.org>
32129
32130         * gnulib-tool (func_usage): Clarify which options are available for
32131         --create-testdir and --create-megatestdir.
32132
32133 2010-03-13  Bruno Haible  <bruno@clisp.org>
32134
32135         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
32136         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
32137         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
32138         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
32139         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
32140         when appropriate.
32141         Reported by Jim Meyering.
32142
32143 2010-03-12  Simon Josefsson  <simon@josefsson.org>
32144
32145         * gnulib-tool (func_import): Explain origin of code.
32146
32147 2010-03-12  Bruno Haible  <bruno@clisp.org>
32148
32149         Fix problem with automake's definition of CXXLINK.
32150         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
32151         Reported by Simon Josefsson and Ludovic Courtès.
32152
32153 2010-03-12  Bruno Haible  <bruno@clisp.org>
32154
32155         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
32156         stable releases.
32157
32158 2010-03-11  Bruno Haible  <bruno@clisp.org>
32159
32160         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
32161         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
32162         whether the system provides one variant or multiple variants of the
32163         function.
32164         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
32165         C++ compilers.
32166         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
32167         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
32168         Reported by Jim Meyering.
32169
32170 2010-03-09  Simon Josefsson  <simon@josefsson.org>
32171
32172         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
32173
32174 2010-03-08  Bruno Haible  <bruno@clisp.org>
32175
32176         gnulib-tool: Add support for --libtool in --create-testdir.
32177         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
32178         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
32179
32180 2010-03-08  Eric Blake  <eblake@redhat.com>
32181
32182         gnulib-tool.texi: mention possibility of git submodule
32183         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
32184         submodules.
32185         * doc/.gitignore: Ignore another generated file.
32186
32187 2010-03-08  Karl Berry  <karl@gnu.org>
32188
32189         * doc/gnulib-tool.texi (VCS Issues): Mention third option
32190         of committing gnulib files while skipping others.
32191
32192 2010-03-07  Bruno Haible  <bruno@clisp.org>
32193
32194         Tests of module 'wctype' in C++ mode.
32195         * tests/test-wctype-c++.cc: New file.
32196         * modules/wctype-tests (Files): Add it and tests/signature.h.
32197         (Depends-on): Add ansi-c++-opt.
32198         (Makefile.am): Arrange to compile and run test-wctype-c++.
32199
32200         Tests of module 'wchar' in C++ mode.
32201         * tests/test-wchar-c++.cc: New file.
32202         * modules/wchar-tests (Files): Add it and tests/signature.h.
32203         (Depends-on): Add ansi-c++-opt.
32204         (Makefile.am): Arrange to compile and run test-wchar-c++.
32205         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
32206         gl_MODULE_INDICATOR.
32207
32208         Tests of module 'unistd' in C++ mode.
32209         * tests/test-unistd-c++.cc: New file.
32210         * modules/unistd-tests (Files): Add it and tests/signature.h.
32211         (Depends-on): Add ansi-c++-opt.
32212         (Makefile.am): Arrange to compile and run test-unistd-c++.
32213         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
32214         gl_MODULE_INDICATOR.
32215
32216         Tests of module 'time' in C++ mode.
32217         * tests/test-time-c++.cc: New file.
32218         * modules/time-tests (Files): Add it and tests/signature.h.
32219         (Depends-on): Add ansi-c++-opt.
32220         (Makefile.am): Arrange to compile and run test-time-c++.
32221         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32222
32223         Tests of module 'sys_time' in C++ mode.
32224         * tests/test-sys_time-c++.cc: New file.
32225         * modules/sys_time-tests (Files): Add it and tests/signature.h.
32226         (Depends-on): Add ansi-c++-opt.
32227         (Makefile.am): Arrange to compile and run test-sys_time-c++.
32228         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
32229         gl_MODULE_INDICATOR.
32230
32231         Tests of module 'sys_stat' in C++ mode.
32232         * tests/test-sys_stat-c++.cc: New file.
32233         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
32234         (Depends-on): Add ansi-c++-opt.
32235         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
32236         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
32237         gl_MODULE_INDICATOR.
32238
32239         Tests of module 'sys_socket' in C++ mode.
32240         * tests/test-sys_socket-c++.cc: New file.
32241         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
32242         (Depends-on): Add ansi-c++-opt.
32243         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
32244         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
32245         gl_MODULE_INDICATOR.
32246
32247         Tests of module 'sys_select' in C++ mode.
32248         * tests/test-sys_select-c++.cc: New file.
32249         * modules/sys_select-tests (Files): Add it and tests/signature.h.
32250         (Depends-on): Add ansi-c++-opt.
32251         (Makefile.am): Arrange to compile and run test-sys_select-c++.
32252         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
32253         gl_MODULE_INDICATOR.
32254
32255         Tests of module 'sys_ioctl' in C++ mode.
32256         * tests/test-sys_ioctl-c++.cc: New file.
32257         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
32258         (Depends-on): Add ansi-c++-opt.
32259         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
32260         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
32261         gl_MODULE_INDICATOR.
32262
32263         Tests of module 'string' in C++ mode.
32264         * tests/test-string-c++.cc: New file.
32265         * modules/string-tests (Files): Add it and tests/signature.h.
32266         (Depends-on): Add ansi-c++-opt.
32267         (Makefile.am): Arrange to compile and run test-string-c++.
32268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
32269         gl_MODULE_INDICATOR.
32270
32271         Tests of module 'stdlib' in C++ mode.
32272         * tests/test-stdlib-c++.cc: New file.
32273         * modules/stdlib-tests (Files): Add it and tests/signature.h.
32274         (Depends-on): Add ansi-c++-opt.
32275         (Makefile.am): Arrange to compile and run test-stdlib-c++.
32276         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
32277         gl_MODULE_INDICATOR.
32278
32279         Tests of module 'stdio' in C++ mode.
32280         * tests/test-stdio-c++.cc: New file.
32281         * modules/stdio-tests (Files): Add it and tests/signature.h.
32282         (Depends-on): Add ansi-c++-opt.
32283         (Makefile.am): Arrange to compile and run test-stdio-c++.
32284         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
32285         gl_MODULE_INDICATOR.
32286
32287         Tests of module 'spawn' in C++ mode.
32288         * tests/test-spawn-c++.cc: New file.
32289         * modules/spawn-tests (Files): Add it and tests/signature.h.
32290         (Depends-on): Add ansi-c++-opt.
32291         (Makefile.am): Arrange to compile and run test-spawn-c++.
32292         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
32293         gl_MODULE_INDICATOR.
32294
32295         Tests of module 'signal' in C++ mode.
32296         * tests/test-signal-c++.cc: New file.
32297         * modules/signal-tests (Files): Add it and tests/signature.h.
32298         (Depends-on): Add ansi-c++-opt.
32299         (Makefile.am): Arrange to compile and run test-signal-c++.
32300         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
32301         gl_MODULE_INDICATOR.
32302
32303         Tests of module 'search' in C++ mode.
32304         * tests/test-search-c++.cc: New file.
32305         * modules/search-tests (Files): Add it and tests/signature.h.
32306         (Depends-on): Add ansi-c++-opt.
32307         (Makefile.am): Arrange to compile and run test-search-c++.
32308         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
32309         gl_MODULE_INDICATOR.
32310
32311         Tests of module 'math' in C++ mode.
32312         * tests/test-math-c++.cc: New file.
32313         * modules/math-tests (Files): Add it and tests/signature.h.
32314         (Depends-on): Add ansi-c++-opt.
32315         (Makefile.am): Arrange to compile and run test-math-c++.
32316         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
32317
32318         Tests of module 'locale' in C++ mode.
32319         * tests/test-locale-c++.cc: New file.
32320         * modules/locale-tests (Files): Add it and tests/signature.h.
32321         (Depends-on): Add ansi-c++-opt.
32322         (Makefile.am): Arrange to compile and run test-locale-c++.
32323         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
32324         gl_MODULE_INDICATOR.
32325
32326         Tests of module 'langinfo' in C++ mode.
32327         * tests/test-langinfo-c++.cc: New file.
32328         * modules/langinfo-tests (Files): Add it and tests/signature.h.
32329         (Depends-on): Add ansi-c++-opt.
32330         (Makefile.am): Arrange to compile and run test-langinfo-c++.
32331         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
32332         gl_MODULE_INDICATOR.
32333
32334         Tests of module 'iconv-h' in C++ mode.
32335         * tests/test-iconv-h-c++.cc: New file.
32336         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
32337         (Depends-on): Add ansi-c++-opt.
32338         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
32339
32340         Tests of module 'glob' in C++ mode.
32341         * tests/test-glob-c++.cc: New file.
32342         * modules/glob-tests (Files): Add it.
32343         (Depends-on): Add ansi-c++-opt.
32344         (Makefile.am): Arrange to compile and run test-glob-c++.
32345
32346         Tests of module 'fcntl-h' in C++ mode.
32347         * tests/test-fcntl-h-c++.cc: New file.
32348         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
32349         (Depends-on): Add ansi-c++-opt.
32350         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
32351         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
32352         gl_MODULE_INDICATOR.
32353
32354         Tests of module 'dirent' in C++ mode.
32355         * tests/test-dirent-c++.cc: New file.
32356         * modules/dirent-tests (Files): Add it and tests/signature.h.
32357         (Depends-on): Add ansi-c++-opt.
32358         (Makefile.am): Arrange to compile and run test-dirent-c++.
32359         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32360         gl_MODULE_INDICATOR.
32361
32362         New module 'ansi-c++-opt'.
32363         * modules/ansi-c++-opt: New file.
32364         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
32365
32366         Document C++ namespace mode.
32367         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
32368
32369         wctype: Avoid #define replacements in C++ mode.
32370         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
32371         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
32372         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
32373         In C++, define a namespaced alias symbol.
32374         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
32375         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
32376         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
32377         rule.
32378
32379         wchar: Avoid #define replacements in C++ mode.
32380         * lib/wchar.in.h: Include c++defs.h.
32381         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
32382         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
32383         symbol.
32384         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
32385         * modules/wchar (Depends-on): Add c++defs.
32386         (Makefile.am): Update wchar.h rule.
32387
32388         unistd: Avoid #define replacements in C++ mode.
32389         * lib/unistd.in.h: Include c++defs.h.
32390         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
32391         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
32392         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
32393         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
32394         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
32395         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
32396         symbol.
32397         (environ): Update.
32398         * modules/unistd (Depends-on): Add c++defs.
32399         (Makefile.am): Update unistd.h rule.
32400
32401         time: Avoid #define replacements in C++ mode.
32402         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
32403         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
32404         define a namespaced alias symbol.
32405         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
32406         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
32407         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
32408         * modules/time (Depends-on): Add c++defs, warn-on-use.
32409         (Makefile.am): Update time.h rule.
32410         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
32411         * modules/nanosleep (configure.ac): Likewise.
32412         * modules/strptime (configure.ac): Likewise.
32413         * modules/timegm (configure.ac): Likewise.
32414
32415         sys_time: Avoid #define replacements in C++ mode.
32416         * lib/sys_time.in.h: Include c++defs.h.
32417         (gettimeofday): In C++, define a namespaced alias symbol.
32418         * modules/sys_time (Depends-on): Add c++defs.
32419         (Makefile.am): Update sys/time.h rule.
32420
32421         sys_stat: Avoid #define replacements in C++ mode.
32422         * lib/sys_stat.in.h: Include c++defs.h.
32423         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
32424         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
32425         namespaced alias symbol.
32426         In C++, define a namespaced alias symbol.
32427         * modules/sys_stat (Depends-on): Add c++defs.
32428         (Makefile.am): Update sys/stat.h rule.
32429
32430         sys_socket: Avoid #define replacements in C++ mode.
32431         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
32432         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
32433         definitions also when the system has a <sys/socket.h>.
32434         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
32435         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
32436         In C++, define a namespaced alias symbol.
32437         * modules/sys_socket (Depends-on): Add c++defs.
32438         (Makefile.am): Update sys/socket.h rule.
32439
32440         sys_select: Avoid #define replacements in C++ mode.
32441         * lib/sys_select.in.h: Include c++defs.h. Enable the function
32442         definitions also when the system has a <sys/select.h>.
32443         (select): In C++, define a namespaced alias symbol.
32444         * modules/sys_select (Depends-on): Add c++defs.
32445         (Makefile.am): Update sys/select.h rule.
32446
32447         sys_ioctl: Avoid #define replacements in C++ mode.
32448         * lib/sys_ioctl.in.h: Include c++defs.h.
32449         (ioctl): In C++, define a namespaced alias symbol.
32450         * modules/sys_ioctl (Depends-on): Add c++defs.
32451         (Makefile.am): Update sys/ioctl.h rule.
32452
32453         string: Avoid #define replacements in C++ mode.
32454         * lib/string.in.h: Include c++defs.h.
32455         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
32456         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
32457         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
32458         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
32459         strsignal, strverscmp): In C++, define a namespaced alias symbol.
32460         * modules/string (Depends-on): Add c++defs.
32461         (Makefile.am): Update string.h rule.
32462
32463         stdlib: Avoid #define replacements in C++ mode.
32464         * lib/stdlib.in.h: Include c++defs.h.
32465         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
32466         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
32467         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
32468         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
32469         symbol.
32470         * modules/stdlib (Depends-on): Add c++defs.
32471         (Makefile.am): Update stdlib.h rule.
32472
32473         stdio: Avoid #define replacements in C++ mode.
32474         * lib/stdio.in.h: Include c++defs.h.
32475         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
32476         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
32477         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
32478         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
32479         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
32480         namespaced alias symbol.
32481         * modules/stdio (Depends-on): Add c++defs.
32482         (Makefile.am): Update stdio.h rule.
32483
32484         spawn: Avoid #define replacements in C++ mode.
32485         * lib/spawn.in.h: Include c++defs.h.
32486         (posix_spawn, posix_spawnp, posix_spawnattr_init,
32487         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
32488         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
32489         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
32490         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
32491         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
32492         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
32493         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
32494         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
32495         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
32496         In C++, define a namespaced alias symbol.
32497         * modules/spawn (Depends-on): Add c++defs.
32498         (Makefile.am): Update spawn.h rule.
32499
32500         signal: Avoid #define replacements in C++ mode.
32501         * lib/signal.in.h: Include c++defs.h.
32502         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
32503         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
32504         namespaced alias symbol.
32505         * modules/signal (Depends-on): Add c++defs.
32506         (Makefile.am): Update signal.h rule.
32507
32508         search: Avoid #define replacements in C++ mode.
32509         * lib/search.in.h: Include c++defs.h.
32510         (_gl_search_compar_fn, _gl_search_action_fn): New types.
32511         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
32512         symbol.
32513         * modules/search (Depends-on): Add c++defs.
32514         (Makefile.am): Update search.h rule.
32515
32516         math: Avoid #define replacements in C++ mode.
32517         * lib/math.in.h: Include c++defs.h.
32518         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
32519         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
32520         trunc, truncl): In C++, define a namespaced alias symbol.
32521         * modules/math (Depends-on): Add c++defs.
32522         (Makefile.am): Update math.h rule.
32523
32524         locale: Avoid #define replacements in C++ mode.
32525         * lib/locale.in.h: Include c++defs.h.
32526         (duplocale): In C++, define a namespaced alias symbol.
32527         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
32528         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
32529         * modules/locale (Depends-on): Add c++defs.
32530         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
32531
32532         langinfo: Avoid #define replacements in C++ mode.
32533         * lib/langinfo.in.h: Include c++defs.h.
32534         (nl_langinfo): In C++, define a namespaced alias symbol.
32535         * modules/langinfo (Depends-on): Add c++defs.
32536         (Makefile.am): Update langinfo.h rule.
32537
32538         iconv-h: Avoid #define replacements in C++ mode.
32539         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
32540         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
32541         symbol.
32542         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
32543         whenever iconv is present.
32544         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
32545         (Makefile.am): Update iconv.h rule.
32546
32547         glob: Avoid #define replacements in C++ mode.
32548         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
32549         (_gl_glob_errfunc_fn): New type.
32550         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
32551         symbol.
32552         * modules/glob (Depends-on): Add c++defs, warn-on-use.
32553         (Makefile.am): Update glob.h rule.
32554
32555         fcntl-h: Avoid #define replacements in C++ mode.
32556         * lib/fcntl.in.h: Include c++defs.h.
32557         (fcntl, open, openat): In C++, define a namespaced alias symbol.
32558         * modules/fcntl-h (Depends-on): Add c++defs.
32559         (Makefile.am): Update fcntl.h rule.
32560
32561         dirent: Avoid #define replacements in C++ mode.
32562         * lib/dirent.in.h: Include c++defs.h.
32563         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
32564         namespaced alias symbol.
32565         (dirfd): Update declaration.
32566         * modules/dirent (Depends-on): Add c++defs.
32567         (Makefile.am): Update dirent.h rule.
32568
32569         ctype: Make it usable in C++ code.
32570         * lib/ctype.in.h: Include c++defs.h.
32571         (isblank): Declare as extern "C".
32572         * modules/ctype (Depends-on): Add c++defs.
32573         (Makefile.am): Update ctype.h rule.
32574
32575         New module 'c++defs'.
32576         * modules/c++defs: New file.
32577         * build-aux/c++defs.h: New file.
32578         Reported by John W. Eaton <jwe@gnu.org>.
32579
32580 2010-03-07  Bruno Haible  <bruno@clisp.org>
32581
32582         logb: Provide missing declaration for Cygwin.
32583         * lib/math.in.h (logb): New declaration.
32584         * m4/logb.m4: New file.
32585         * modules/logb (Files): Add m4/logb.m4.
32586         (Depends-on): Add math.
32587         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
32588         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
32589         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
32590         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
32591         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
32592
32593 2010-03-07  Bruno Haible  <bruno@clisp.org>
32594
32595         Fix test-cond link error.
32596         * tests/test-cond.c: Include <stdio.h>.
32597
32598 2010-03-07  Bruno Haible  <bruno@clisp.org>
32599
32600         Fix test-dirent-safer link error.
32601         * modules/dirent-safer-tests (Makefile.am): Define
32602         test_dirent_safer_LDADD.
32603
32604 2010-03-07  Bruno Haible  <bruno@clisp.org>
32605
32606         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
32607         among default module list.
32608
32609 2010-03-07  Bruno Haible  <bruno@clisp.org>
32610
32611         Fix link error on platforms with GNU libiconv.
32612         * modules/unistr/u8-strcoll-tests (Makefile): Define
32613         test_u8_strcoll_LDADD.
32614         * modules/unistr/u16-strcoll-tests (Makefile): Define
32615         test_u16_strcoll_LDADD.
32616         * modules/unistr/u32-strcoll-tests (Makefile): Define
32617         test_u32_strcoll_LDADD.
32618
32619 2010-03-07  Bruno Haible  <bruno@clisp.org>
32620
32621         Use POSIX declarations for socket functions.
32622         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
32623         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
32624         rpl_sendto): Change declaration to match POSIX.
32625         * lib/connect.c (rpl_connect): Likewise.
32626         * lib/accept.c (rpl_accept): Likewise.
32627         * lib/bind.c (rpl_bind): Likewise.
32628         * lib/getpeername.c (rpl_getpeername): Likewise.
32629         * lib/getsockname.c (rpl_getsockname): Likewise.
32630         * lib/recv.c (rpl_recv): Likewise.
32631         * lib/send.c (rpl_send): Likewise.
32632         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32633         * lib/sendto.c (rpl_sendto): Likewise.
32634
32635 2010-03-06  Bruno Haible  <bruno@clisp.org>
32636
32637         Clarify access, euidaccess, faccessat.
32638         * doc/posix-functions/faccessat.texi: Mention security problem under
32639         "Other problems", not "Portability problems".
32640         * doc/posix-functions/access.texi: Likewise. Mention a related security
32641         problem.
32642         * doc/glibc-functions/euidaccess.texi: Mention security problems.
32643         * lib/euidaccess.c: Add comments about platforms.
32644         * lib/unistd.in.h (access, euidaccess): Add warnings.
32645
32646 2010-03-07  Bruno Haible  <bruno@clisp.org>
32647
32648         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
32649         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
32650         (POSIX_SPAWN_SETSCHEDULER): Likewise.
32651         (POSIX_SPAWN_USEVFORK): Define in a way that works when
32652         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32653         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
32654         declare when POSIX_SPAWN_SETSCHEDULER is zero.
32655         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
32656         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
32657         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
32658         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
32659         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
32660         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
32661         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
32662         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
32663         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
32664         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
32665         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
32666         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
32667         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
32668         Likewise.
32669         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
32670         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
32671         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
32672         Likewise.
32673         * tests/test-spawn.c (main): Make it work when
32674         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
32675
32676 2010-03-07  Bruno Haible  <bruno@clisp.org>
32677
32678         Fix incorrect Makefile.am generation in German locale.
32679         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32680         Execute sed command with character range in C locale.
32681
32682 2010-03-06  Bruno Haible  <bruno@clisp.org>
32683
32684         Tests for module 'iconv-h'.
32685         * modules/iconv-h-tests: New file.
32686         * tests/test-iconv-h.c: New file.
32687
32688         New module 'iconv-h'.
32689         * modules/iconv-h: New file.
32690         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
32691         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
32692         (configure.ac): Remove gl_ICONV_H.
32693         (Makefile.am): Remove rule for iconv.h.
32694
32695 2010-03-06  Bruno Haible  <bruno@clisp.org>
32696
32697         More consistent naming of *.m4 files.
32698         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
32699         * modules/wctype (Files): Update.
32700
32701         More consistent naming of *.m4 files.
32702         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
32703         * modules/wchar (Files): Update.
32704
32705 2010-03-06  Jim Meyering  <meyering@redhat.com>
32706
32707         euidaccess: relax license to LGPLv2+
32708         * modules/euidaccess (License): Relax to LGPLv2+.
32709
32710 2010-03-06  Bruno Haible  <bruno@clisp.org>
32711
32712         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
32713         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
32714         (Makefile.am): Augment lib_SOURCES instead.
32715
32716 2010-03-04  Jim Meyering  <meyering@redhat.com>
32717
32718         utime: remove obsolete module
32719         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
32720         unnecessary for years, and has been marked as obsolete for 10 months.
32721         * modules/utime: Remove file.
32722         * lib/utime.c: Remove file.
32723         * m4/utime.m4: Remove file.
32724         * m4/utimes-null.m4: Remove file.
32725         * doc/posix-functions/utime.texi (utime): Remove reference to
32726         the module.  Move the sole "fixed by gnulib" item into the
32727         "problems not fixed by Gnulib" list.
32728         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
32729
32730 2010-03-05  Simon Josefsson  <simon@josefsson.org>
32731
32732         * modules/exit (License): Relax license to LGPLv2+.
32733         (Status): Mark as obsolete.
32734         * NEWS: Mention deprecated 'exit' module.
32735         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
32736         of now obsolete 'exit'.
32737
32738 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32739
32740         fts-lgpl: remove unused module
32741         * modules/fts-lgpl: Remove.
32742         * MODULES.html.sh (func_all_modules): Adjust.
32743         * check-module (find_included_lib_files): Adjust.
32744         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
32745
32746 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
32747
32748         copy-acl: enhance Solaris ACL error handling
32749         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
32750         * lib/set-mode-acl.c (qset_acl): Likewise.
32751
32752 2010-03-02  Bruno Haible  <bruno@clisp.org>
32753
32754         spawn: Don't override the system defined values on FreeBSD 8.
32755         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
32756         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
32757         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
32758         if HAVE_POSIX_SPAWN is 1.
32759         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
32760
32761 2010-03-01  Bruno Haible  <bruno@clisp.org>
32762
32763         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
32764         regarding Automake.
32765
32766 2010-02-25  Bruno Haible  <bruno@clisp.org>
32767
32768         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
32769         * gnulib-tool: Define 'echo' as a function only before the ksh alias
32770         setting, not afterwards.
32771         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
32772
32773 2010-02-24  Eric Blake  <eblake@redhat.com>
32774
32775         bootstrap, git-version-gen: use timestamp
32776         * build-aux/git-version-gen (scriptversion): Force UTC.
32777         * build-aux/bootstrap (scriptversion): New variable.
32778
32779         bootstrap: allow older git
32780         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
32781         older than 1.6.4.  Requested by the libvirt project.
32782
32783 2010-02-23  Eric Blake  <eblake@redhat.com>
32784
32785         warn-on-use: work with old autoconf
32786         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
32787         AS_VAR semantics of autoconf 2.60.
32788         Reported by Bruno Haible.
32789
32790         bootstrap: improve some comments
32791         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
32792         clarification comments.
32793
32794         gettimeofday: provide correct function
32795         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
32796         when replacement is declared, otherwise provide gettimeofday.
32797         Reported by Michael Goffioul.
32798
32799 2010-02-23  Jim Meyering  <meyering@redhat.com>
32800
32801         lib-ignore: relax license to "unlimited", not LGPLv2+
32802         * modules/lib-ignore (License): Relax to "unlimited".
32803
32804 2010-02-23  Jim Meyering  <meyering@redhat.com>
32805
32806         lib-ignore: relax license to LGPLv2+
32807         * modules/lib-ignore (License): Relax to LGPLv2+.
32808
32809 2010-02-22  Eric Blake  <eblake@redhat.com>
32810
32811         lseek: avoid bash 3.2 broken pipe bug
32812         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32813         warning from bash 3.2.
32814         Reported by Ben Pfaff, with analysis from Bruno Haible.
32815
32816         bootstrap: support non-FSF copyright holder
32817         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32818         bootstrap.conf override of COPYRIGHT_HOLDER.
32819         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32820
32821         bootstrap: interoperate with gettext 0.14.1
32822         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32823
32824         bootstrap: allow for alternate submodule location
32825         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32826         hardcoding submodule location.
32827         (gnulib_mk): Allow direct use of Makefile.am.
32828
32829         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32830         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32831         rather than reconfiguring where the submodule points.
32832
32833         gettimeofday: restore support for platforms that lack function
32834         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32835         replacement if function is missing.
32836         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32837         * modules/sys_time (Makefile.am): Substitute it.
32838         * lib/sys_time.in.h (gettimeofday): Check it.
32839         Reported by Michael Goffioul.
32840
32841 2010-02-21  Bruno Haible  <bruno@clisp.org>
32842
32843         * lib/stdio.in.h (obstack_printf): Fix typo.
32844
32845 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32846
32847         vc-list-files: use bzr ls's -R option
32848         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32849         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32850
32851 2010-02-21  Jim Meyering  <meyering@redhat.com>
32852
32853         init.sh: fix EXEEXT shims to work also for names like test-prog
32854         * tests/init.sh: Re-exec a better shell, when needed.
32855         If the current shell lacks support for posix $(...), an init.sh-using
32856         test will now try to find a shell that supports that.  If EXEEXT is
32857         nonempty, we also require support for hyphen-in-alias-name and shell
32858         substitutions like ${var#glob}.  Failure to find such a shell results
32859         in a skipped test.
32860
32861 2010-02-21  Bruno Haible  <bruno@clisp.org>
32862
32863         Really work around around "broken pipe" error message from bash 3.2.
32864         * gnulib-tool (func_reset_sigpipe): Remove function.
32865         (echo): In bash 3.2, define to a function that uses printf.
32866         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32867
32868 2010-02-20  Bruno Haible  <bruno@clisp.org>
32869
32870         Restore support for automake 1.9.6 with autoconf 2.61.
32871         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32872         Reported by James Youngman <jay@gnu.org>.
32873
32874 2010-02-20  Bruno Haible  <bruno@clisp.org>
32875
32876         Improve *printf warning condition.
32877         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32878         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32879         and the function is overridden due to SIGPIPE emulation.
32880
32881 2010-02-20  Bruno Haible  <bruno@clisp.org>
32882
32883         * lib/stdio.in.h: Tweak comments.
32884
32885 2010-02-19  Bruno Haible  <bruno@clisp.org>
32886
32887         Make it easier to find modules. New gnulib-tool option '--find'.
32888         * gnulib-tool: New option --find.
32889         (func_usage): Document it.
32890         (func_sanitize_modulelist): New function, extracted from
32891         func_all_modules.
32892         (func_all_modules): Invoke it.
32893         * doc/gnulib-tool.texi (Which modules?): New node.
32894
32895 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32896
32897         * lib/sys_select.in.h: Provide select replacement even if
32898         sys/select.h exists on a system, for Interix.
32899
32900 2010-02-18  Jim Meyering  <meyering@redhat.com>
32901
32902         init.sh: don't use $(...) just yet
32903         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32904         to accommodate e.g., Solaris' /bin/sh.
32905
32906 2010-02-17  Bruno Haible  <bruno@clisp.org>
32907
32908         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32909         Reported by Ludovic Courtès <ludo@gnu.org>.
32910
32911 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32912
32913         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32914         linking with -lintl.
32915
32916 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32917
32918         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32919         if not provided by the system's netdb.h.  Reported by
32920         ludo@gnu.org (Ludovic Courtès).
32921
32922 2010-02-15  Jim Meyering  <meyering@redhat.com>
32923
32924         init.sh: improve portability and efficiency
32925         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32926         "dummy" in a for loop.
32927         Use '!', not '^' to select the complement of a character set used
32928         in a "case" statement.
32929         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32930         Suggestions from Eric Blake.
32931
32932         init.sh: automatically accommodate programs with the .exe suffix
32933         Automatically arrange for an invocation of "prog" to execute the
32934         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32935         may use the simpler "prog", yet still work when built on a system
32936         that requires specifying the added suffix.
32937         Do this by constructing a function named "prog" that invokes
32938         "prog.exe" for each .exe file in selected directories.
32939         * tests/init.sh (find_exe_basenames_): New function.
32940         (create_exe_shim_functions_): New function.
32941         (path_prepend_): Use it.
32942
32943         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32944         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32945         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32946
32947 2010-02-14  Jim Meyering  <meyering@redhat.com>
32948
32949         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32950         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32951         (sc_prohibit_hash_pjw_without_use): New rule.
32952
32953         maint.mk: allow the default upload destination dir to be overridden
32954         * top/maint.mk (upload_dest_dir_): Define with a default that
32955         preserves the status quo.
32956         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32957         Reported by Peter Simons.
32958
32959         maint.mk: prohibit inclusion of "hash.h" without_use
32960         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32961
32962 2010-02-10  Jim Meyering  <meyering@redhat.com>
32963
32964         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32965         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32966
32967 2010-02-09  Eric Blake  <ebb9@byu.net>
32968         and Bruno Haible  <bruno@clisp.org>
32969
32970         obstack-printf-posix: ensure declaration
32971         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32972         extracted from gl_FUNC_OBSTACK_PRINTF.
32973         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32974         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32975         Likewise.
32976         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32977         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32978         0.
32979
32980 2010-02-08  Bruno Haible  <bruno@clisp.org>
32981
32982         gnulib-tool: Fix typo in 2010-02-07 commit.
32983         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32984         Reported by Eric Blake.
32985
32986 2010-02-07  Bruno Haible  <bruno@clisp.org>
32987
32988         gnulib-tool: Fix up caching patches.
32989         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32990         option --no-cache. Use associative arrays when supported by the shell.
32991         (sed_comments): New variable.
32992         (modcache): Renamed from do_cache.
32993         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32994         abbreviate unnecessarily.
32995         (have_associative): New variable.
32996         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32997         way also for ksh and zsh.
32998         (func_init_sed_convert_to_cache_statements): New function, extracted
32999         from func_cache_lookup_module. Add support for associative arrays.
33000         Don't set the c_MODULE_cached variable here. Ignore all lines before
33001         the first field header. Remove only the final newline, not all trailing
33002         newlines. Support empty fields correctly. Limit the use of 'eval' to
33003         assignments.
33004         (func_get_description, func_get_status, func_get_notice,
33005         func_get_applicability, func_get_filelist, func_get_dependencies,
33006         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
33007         func_get_automake_snippet, func_get_include_directive,
33008         func_get_link_directive, func_get_license, func_get_maintainer):
33009         Update documentation. List the unoptimized code first. Add support for
33010         associative arrays. Limit the use of 'eval' to assignments.
33011         (func_get_applicability): Undo stylistic pessimisations.
33012         (func_get_automake_snippet, func_get_include_directive): Reduce code
33013         duplication.
33014         (func_modules_transitive_closure, func_modules_add_dummy,
33015         func_modules_notice, func_modules_to_filelist, func_add_file,
33016         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
33017         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
33018         func_create_testdir, func_create_megatestdir): Update documentation.
33019
33020 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33021
33022         * gnulib-tool (func_cache_lookup_module): Store the module name
33023         belonging to the cache variable; error out if two different
33024         module names map to the same cache variable name.
33025
33026 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33027
33028         gnulib-tool: Make caching optional.
33029         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
33030         Update matching short versions of --no-changelog.
33031         (func_usage): Update.
33032         (sed_extract_cache_prog): Renamed from ...
33033         (sed_extract_prog): ... this; revert to old extraction script.
33034         (func_get_description, func_get_status)
33035         (func_get_notice, func_get_applicability, func_get_filelist)
33036         (func_get_dependencies, func_get_autoconf_early_snippet)
33037         (func_get_autoconf_snippet, func_get_automake_snippet)
33038         (func_get_include_directive, func_get_link_directive)
33039         (func_get_license, func_get_maintainer): If $do_cache is false,
33040         use old, non-caching extraction scripts.
33041         Suggestion by Bruno Haible.
33042
33043 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33044
33045         gnulib-tool: cache module metainformation.
33046         * gnulib-tool (sed_extract_prog): Match newline before each
33047         header, and rewrite header to a shell variable suffix.
33048         (func_cache_var, func_cache_lookup_module): New functions,
33049         to turn a module name into a cache variable prefix, and to
33050         look up and cache module metainformation.
33051         (func_get_description, func_get_status)
33052         (func_get_notice, func_get_applicability, func_get_filelist)
33053         (func_get_dependencies, func_get_autoconf_early_snippet)
33054         (func_get_autoconf_snippet, func_get_automake_snippet)
33055         (func_get_include_directive, func_get_link_directive)
33056         (func_get_license, func_get_maintainer): Use
33057         func_cache_lookup_module.
33058
33059 2010-02-07  Bruno Haible  <bruno@clisp.org>
33060
33061         fnctl: Fix missing dependency.
33062         * modules/fcntl (Depends-on): Add getdtablesize.
33063         Reported by John W. Eaton <jwe@gnu.org>.
33064
33065 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33066
33067         Argp: fix recognition of short alias options.
33068
33069         * lib/argp-parse.c (convert_options): Fix improper use of
33070         `|' between character values.
33071         * tests/test-argp.c (group1_option): New alias option
33072         --read (-r).
33073         (group1_parser): Special handling for 'r'.
33074         (test15): New test case.
33075         (test_fun): Add test15.
33076         * tests/test-argp-2.sh: Update expected --help and --usage
33077         outputs.
33078
33079 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
33080
33081         * tests/test-argp.c: Fix indentation.
33082
33083 2010-02-04  Eric Blake  <ebb9@byu.net>
33084
33085         gettimeofday: expose type of second argument
33086         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
33087         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
33088         * tests/test-gettimeofday.c: Use it to silence warning.
33089         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
33090         the issue.
33091
33092 2010-02-03  Jim Meyering  <meyering@redhat.com>
33093
33094         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
33095         * lib/regcomp.c (TYPE_SIGNED): Define.
33096         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
33097
33098         regcomp.c: avoid a new -Wshadow warning
33099         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
33100
33101 2010-02-01  Jim Meyering  <meyering@redhat.com>
33102
33103         removing useless parentheses in cpp #define directives
33104         For motivation, see commit c0221df4, "define STREQ(a,b)
33105         consistently, removing useless parentheses"
33106         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
33107         * lib/mountlist.c (MNT_IGNORE): Likewise.
33108         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
33109
33110 2010-02-01  Eric Blake  <ebb9@byu.net>
33111
33112         sys_time: use link-warning
33113         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
33114         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
33115         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
33116         * modules/sys_time (Depends-on): Add warn-on-use.
33117         (Makefile.am): Always build replacement.
33118         (configure.ac): Update substitutions.
33119         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
33120         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
33121         bother with SYS_TIME_H.
33122         * modules/gettimeofday (configure.ac): Declare indicator.
33123         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
33124         in use.
33125
33126         closein-tests: silence compiler warning
33127         * tests/test-closein.c (main): Ignore fread result.
33128         * modules/closein-tests (Depends-on): Add ignore-value.
33129
33130         tests: silence warning about system return
33131         * tests/test-areadlink-with-size.c (main): Ignore system result.
33132         * tests/test-areadlink.c (main): Likewise.
33133         * tests/test-areadlinkat-with-size.c (main): Likewise.
33134         * tests/test-areadlinkat.c (main): Likewise.
33135         * tests/test-canonicalize-lgpl.c (main): Likewise.
33136         * tests/test-canonicalize.c (main): Likewise.
33137         * tests/test-chown.c (main): Likewise.
33138         * tests/test-fchownat.c (main): Likewise.
33139         * tests/test-fdutimensat.c (main): Likewise.
33140         * tests/test-fstatat.c (main): Likewise.
33141         * tests/test-futimens.c (main): Likewise.
33142         * tests/test-lchown.c (main): Likewise.
33143         * tests/test-link.c (main): Likewise.
33144         * tests/test-linkat.c (main): Likewise.
33145         * tests/test-lstat.c (main): Likewise.
33146         * tests/test-mkdir.c (main): Likewise.
33147         * tests/test-mkdirat.c (main): Likewise.
33148         * tests/test-mkfifo.c (main): Likewise.
33149         * tests/test-mkfifoat.c (main): Likewise.
33150         * tests/test-mknod.c (main): Likewise.
33151         * tests/test-readlink.c (main): Likewise.
33152         * tests/test-remove.c (main): Likewise.
33153         * tests/test-rename.c (main): Likewise.
33154         * tests/test-renameat.c (main): Likewise.
33155         * tests/test-rmdir.c (main): Likewise.
33156         * tests/test-symlink.c (main): Likewise.
33157         * tests/test-symlinkat.c (main): Likewise.
33158         * tests/test-unlink.c (main): Likewise.
33159         * tests/test-unlinkat.c (main): Likewise.
33160         * tests/test-utimens.c (main): Likewise.
33161         * tests/test-utimensat.c (main): Likewise.
33162         * modules/areadlink-tests (Depends-on): Add ignore-value.
33163         * modules/areadlink-with-size-tests (Depends-on): Likewise.
33164         * modules/areadlinkat-tests (Depends-on): Likewise.
33165         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
33166         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
33167         * modules/canonicalize-tests (Depends-on): Likewise.
33168         * modules/chown-tests (Depends-on): Likewise.
33169         * modules/fdutimensat-tests (Depends-on): Likewise.
33170         * modules/futimens-tests (Depends-on): Likewise.
33171         * modules/lchown-tests (Depends-on): Likewise.
33172         * modules/link-tests (Depends-on): Likewise.
33173         * modules/linkat-tests (Depends-on): Likewise.
33174         * modules/lstat-tests (Depends-on): Likewise.
33175         * modules/mkdir-tests (Depends-on): Likewise.
33176         * modules/mkfifo-tests (Depends-on): Likewise.
33177         * modules/mkfifoat-tests (Depends-on): Likewise.
33178         * modules/mknod-tests (Depends-on): Likewise.
33179         * modules/openat-tests (Depends-on): Likewise.
33180         * modules/readlink-tests (Depends-on): Likewise.
33181         * modules/remove-tests (Depends-on): Likewise.
33182         * modules/rename-tests (Depends-on): Likewise.
33183         * modules/renameat-tests (Depends-on): Likewise.
33184         * modules/rmdir-tests (Depends-on): Likewise.
33185         * modules/symlink-tests (Depends-on): Likewise.
33186         * modules/symlinkat-tests (Depends-on): Likewise.
33187         * modules/unlink-tests (Depends-on): Likewise.
33188         * modules/utimens-tests (Depends-on): Likewise.
33189         * modules/utimensat-tests (Depends-on): Likewise.
33190
33191 2010-01-31  Bruno Haible  <bruno@clisp.org>
33192
33193         Perform the same test for many <math.h> functions.
33194         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
33195         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
33196         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
33197         of gl_MATHFUNC.
33198         * modules/acos (configure.ac): Likewise.
33199         * modules/asin (configure.ac): Likewise.
33200         * modules/atan (configure.ac): Likewise.
33201         * modules/atan2 (configure.ac): Likewise.
33202         * modules/cbrt (configure.ac): Likewise.
33203         * modules/copysign (configure.ac): Likewise.
33204         * modules/cos (configure.ac): Likewise.
33205         * modules/cosh (configure.ac): Likewise.
33206         * modules/erf (configure.ac): Likewise.
33207         * modules/erfc (configure.ac): Likewise.
33208         * modules/exp (configure.ac): Likewise.
33209         * modules/fmod (configure.ac): Likewise.
33210         * modules/hypot (configure.ac): Likewise.
33211         * modules/j0 (configure.ac): Likewise.
33212         * modules/j1 (configure.ac): Likewise.
33213         * modules/jn (configure.ac): Likewise.
33214         * modules/lgamma (configure.ac): Likewise.
33215         * modules/log (configure.ac): Likewise.
33216         * modules/log10 (configure.ac): Likewise.
33217         * modules/log1p (configure.ac): Likewise.
33218         * modules/pow (configure.ac): Likewise.
33219         * modules/remainder (configure.ac): Likewise.
33220         * modules/sin (configure.ac): Likewise.
33221         * modules/sinh (configure.ac): Likewise.
33222         * modules/tan (configure.ac): Likewise.
33223         * modules/tanh (configure.ac): Likewise.
33224         * modules/y0 (configure.ac): Likewise.
33225         * modules/y1 (configure.ac): Likewise.
33226         * modules/yn (configure.ac): Likewise.
33227         Suggested by Paolo Bonzini.
33228
33229 2010-01-31  Bruno Haible  <bruno@clisp.org>
33230
33231         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
33232
33233 2010-01-31  Bruno Haible  <bruno@clisp.org>
33234
33235         Work around getdelim() bug on FreeBSD 8.0.
33236         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
33237         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
33238         not work.
33239         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
33240         is 1.
33241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
33242         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
33243         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
33244         a non-zero size.
33245         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
33246
33247 2010-01-31  Bruno Haible  <bruno@clisp.org>
33248
33249         Work around getline() bug on FreeBSD 8.0.
33250         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
33251         and a non-zero size.
33252         * tests/test-getline.c (main): Likewise.
33253         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
33254         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
33255
33256 2010-01-28  Eric Blake  <ebb9@byu.net>
33257
33258         regex: fix build failure
33259         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
33260         platforms.
33261
33262 2010-01-28  Jim Meyering  <meyering@redhat.com>
33263
33264         regex: do not ignore memory allocation failure
33265         * lib/regex_internal.c (create_cd_newstate): Detect
33266         re_node_set_init_copy failure.   Extracted from glibc commit
33267         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33268
33269         regex: sync more white-space changes from libc
33270         * lib/regex_internal.c: White-space only changes.
33271         * lib/regexec.c: Likewise.
33272
33273         regex: add many uses of __attribute_warn_unused_result__
33274         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
33275         * lib/regexec.c: Likewise.
33276         Extracted from a messy glibc commit.
33277
33278         regcomp.c: spelling and merge-artifact from glibc
33279         * lib/regcomp.c: Merge remainder of glibc's
33280         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33281
33282         regcomp.c: sync white-space changes from glibc
33283         * lib/regcomp.c: Merge to accommodate white space
33284         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
33285
33286         regcomp.c: do not ignore internal return values
33287         * lib/regcomp.c: Do not ignore internal return values.
33288         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
33289         but without its white-space changes and spelling fixes.
33290
33291         regex_internal.h: define __attribute_warn_unused_result__
33292         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
33293
33294         maint: add a syntax-check rule to check for vulnerable Makefile.in
33295         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
33296
33297 2010-01-27  Jim Meyering  <meyering@redhat.com>
33298
33299         ncftpput-ftp: clean up spaces
33300         * build-aux/ncftpput-ftp: Make Copyright line consistent.
33301         Remove trailing blanks.
33302
33303 2010-01-27  Simon Josefsson  <simon@josefsson.org>
33304
33305         * build-aux/git-version-gen: Fix copyright statement.
33306         * build-aux/gnupload: Likewise.
33307         * tests/test-arcfour.c: Likewise.
33308         * tests/test-arctwo.c: Likewise.
33309         * tests/test-count-one-bits.c: Likewise.
33310         * tests/test-crc.c: Likewise.
33311         * tests/test-des.c: Likewise.
33312         * tests/test-gc-arcfour.c: Likewise.
33313         * tests/test-gc-arctwo.c: Likewise.
33314         * tests/test-gc-des.c: Likewise.
33315         * tests/test-gc-hmac-md5.c: Likewise.
33316         * tests/test-gc-hmac-sha1.c: Likewise.
33317         * tests/test-gc-md2.c: Likewise.
33318         * tests/test-gc-md4.c: Likewise.
33319         * tests/test-gc-md5.c: Likewise.
33320         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33321         * tests/test-gc-rijndael.c: Likewise.
33322         * tests/test-gc-sha1.c: Likewise.
33323         * tests/test-gc.c: Likewise.
33324         * tests/test-gethostname.c: Likewise.
33325         * tests/test-gettimeofday.c: Likewise.
33326         * tests/test-hash.c: Likewise.
33327         * tests/test-hmac-md5.c: Likewise.
33328         * tests/test-hmac-sha1.c: Likewise.
33329         * tests/test-md2.c: Likewise.
33330         * tests/test-md4.c: Likewise.
33331         * tests/test-md5.c: Likewise.
33332         * tests/test-memchr.c: Likewise.
33333         * tests/test-memchr2.c: Likewise.
33334         * tests/test-memcmp.c: Likewise.
33335         * tests/test-memmem.c: Likewise.
33336         * tests/test-memrchr.c: Likewise.
33337         * tests/test-rawmemchr.c: Likewise.
33338         * tests/test-read-file.c: Likewise.
33339         * tests/test-rijndael.c: Likewise.
33340         * tests/test-sockets.c: Likewise.
33341         * tests/test-strchrnul.c: Likewise.
33342         * tests/test-strstr.c: Likewise.
33343         * tests/test-strtod.c: Likewise.
33344         * build-aux/ncftpput-ftp: Likewise.
33345
33346 2010-01-26  Eric Blake  <ebb9@byu.net>
33347
33348         ignore-value: update recommended header name
33349         * modules/ignore-value (Include): Only use <> for headers that
33350         exist in glibc.
33351
33352 2010-01-26  Jim Meyering  <meyering@redhat.com>
33353
33354         test-userspec.c: avoid compiler warnings
33355         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
33356         and "initialization discards qualifiers..." warnings.
33357         Put the first "uid" in its own scope, and make char* members "const".
33358
33359 2010-01-25  Bruno Haible  <bruno@clisp.org>
33360
33361         gnulib-tool: Make warning diagnostics consistent.
33362         * gnulib-tool (func_warning): New function.
33363         Use it everywhere where gnulib-tool produces output to stderr and it is
33364         not a fatal error.
33365
33366 2010-01-25  Bruno Haible  <bruno@clisp.org>
33367
33368         Fix test dependencies.
33369         * modules/xstrtol-tests (Depends-on): Add inttypes.
33370         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
33371
33372 2010-01-25 Pádraig Brady <P@draigBrady.com>
33373
33374         syntax-check: detect incorrect boolean macro values in config.h
33375         * modules/maintainer-makefile (configure.ac): Parameterize the location
33376         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
33377         The logic is from Eric Blake and the location indicated by Jim Meyering.
33378         Note the more natural CONFIG_HEADER name is prohibited by automake
33379         for backwards compatibility reasons.
33380         * top/maint.mk (sc_Wundef_boolean): New rule.
33381
33382 2010-01-25  Jim Meyering  <meyering@redhat.com>
33383
33384         bootstrap: detect MacOS 10.6's shasum, too
33385         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
33386         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
33387
33388 2010-01-23  Jim Meyering  <meyering@redhat.com>
33389
33390         xstrtoll: new module
33391         * modules/xstrtoll: New file.
33392         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
33393         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
33394         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
33395         ./configure fails if you use this module and lack "long long".
33396         * modules/xstrtoll-tests: New module.
33397         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
33398         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
33399         new init.sh-based test framework.
33400
33401 2010-01-24  Bruno Haible  <bruno@clisp.org>
33402
33403         Tests for module 'yn'.
33404         * modules/yn-tests: New file.
33405         * tests/test-yn.c: New file.
33406
33407         Tests for module 'y1'.
33408         * modules/y1-tests: New file.
33409         * tests/test-y1.c: New file.
33410
33411         Tests for module 'y0'.
33412         * modules/y0-tests: New file.
33413         * tests/test-y0.c: New file.
33414
33415         Tests for module 'tanh'.
33416         * modules/tanh-tests: New file.
33417         * tests/test-tanh.c: New file.
33418
33419         Tests for module 'tan'.
33420         * modules/tan-tests: New file.
33421         * tests/test-tan.c: New file.
33422
33423         Tests for module 'sqrt'.
33424         * modules/sqrt-tests: New file.
33425         * tests/test-sqrt.c: New file.
33426
33427         Tests for module 'sinh'.
33428         * modules/sinh-tests: New file.
33429         * tests/test-sinh.c: New file.
33430
33431         Tests for module 'sin'.
33432         * modules/sin-tests: New file.
33433         * tests/test-sin.c: New file.
33434
33435         Tests for module 'rint'.
33436         * modules/rint-tests: New file.
33437         * tests/test-rint.c: New file.
33438
33439         Tests for module 'remainder'.
33440         * modules/remainder-tests: New file.
33441         * tests/test-remainder.c: New file.
33442
33443         Tests for module 'pow'.
33444         * modules/pow-tests: New file.
33445         * tests/test-pow.c: New file.
33446
33447         Tests for module 'nextafter'.
33448         * modules/nextafter-tests: New file.
33449         * tests/test-nextafter.c: New file.
33450
33451         Tests for module 'modf'.
33452         * modules/modf-tests: New file.
33453         * tests/test-modf.c: New file.
33454
33455         Tests for module 'logb'.
33456         * modules/logb-tests: New file.
33457         * tests/test-logb.c: New file.
33458
33459         Tests for module 'log1p'.
33460         * modules/log1p-tests: New file.
33461         * tests/test-log1p.c: New file.
33462
33463         Tests for module 'log10'.
33464         * modules/log10-tests: New file.
33465         * tests/test-log10.c: New file.
33466
33467         Tests for module 'log'.
33468         * modules/log-tests: New file.
33469         * tests/test-log.c: New file.
33470
33471         Tests for module 'lgamma'.
33472         * modules/lgamma-tests: New file.
33473         * tests/test-lgamma.c: New file.
33474
33475         Tests for module 'ldexp'.
33476         * modules/ldexp-tests: New file.
33477         * tests/test-ldexp.c: New file.
33478
33479         Tests for module 'jn'.
33480         * modules/jn-tests: New file.
33481         * tests/test-jn.c: New file.
33482
33483         Tests for module 'j1'.
33484         * modules/j1-tests: New file.
33485         * tests/test-j1.c: New file.
33486
33487         Tests for module 'j0'.
33488         * modules/j0-tests: New file.
33489         * tests/test-j0.c: New file.
33490
33491         Tests for module 'hypot'.
33492         * modules/hypot-tests: New file.
33493         * tests/test-hypot.c: New file.
33494
33495         Tests for module 'fmod'.
33496         * modules/fmod-tests: New file.
33497         * tests/test-fmod.c: New file.
33498
33499         Tests for module 'fabs'.
33500         * modules/fabs-tests: New file.
33501         * tests/test-fabs.c: New file.
33502
33503         Tests for module 'exp'.
33504         * modules/exp-tests: New file.
33505         * tests/test-exp.c: New file.
33506
33507         Tests for module 'erfc'.
33508         * modules/erfc-tests: New file.
33509         * tests/test-erfc.c: New file.
33510
33511         Tests for module 'erf'.
33512         * modules/erf-tests: New file.
33513         * tests/test-erf.c: New file.
33514
33515         Tests for module 'cosh'.
33516         * modules/cosh-tests: New file.
33517         * tests/test-cosh.c: New file.
33518
33519         Tests for module 'cos'.
33520         * modules/cos-tests: New file.
33521         * tests/test-cos.c: New file.
33522
33523         Tests for module 'copysign'.
33524         * modules/copysign-tests: New file.
33525         * tests/test-copysign.c: New file.
33526
33527         Tests for module 'cbrt'.
33528         * modules/cbrt-tests: New file.
33529         * tests/test-cbrt.c: New file.
33530
33531         Tests for module 'atan2'.
33532         * modules/atan2-tests: New file.
33533         * tests/test-atan2.c: New file.
33534
33535         Tests for module 'atan'.
33536         * modules/atan-tests: New file.
33537         * tests/test-atan.c: New file.
33538
33539         Tests for module 'asin'.
33540         * modules/asin-tests: New file.
33541         * tests/test-asin.c: New file.
33542
33543         Tests for module 'acos'.
33544         * modules/acos-tests: New file.
33545         * tests/test-acos.c: New file.
33546
33547 2010-01-24  Bruno Haible  <bruno@clisp.org>
33548
33549         Fix tests for common <math.h> functions.
33550         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
33551         code snippet that references the function pointer, rather than merely
33552         calling the function. Substitute the FUNC_LIBM variable.
33553         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
33554         * modules/acos (configure.ac): Likewise.
33555         * modules/asin (configure.ac): Likewise.
33556         * modules/atan (configure.ac): Likewise.
33557         * modules/atan2 (configure.ac): Likewise.
33558         * modules/cbrt (configure.ac): Likewise.
33559         * modules/copysign (configure.ac): Likewise.
33560         * modules/cos (configure.ac): Likewise.
33561         * modules/cosh (configure.ac): Likewise.
33562         * modules/erf (configure.ac): Likewise.
33563         * modules/erfc (configure.ac): Likewise.
33564         * modules/exp (configure.ac): Likewise.
33565         * modules/fabs (configure.ac): Likewise.
33566         * modules/fmod (configure.ac): Likewise.
33567         * modules/hypot (configure.ac): Likewise.
33568         * modules/j0 (configure.ac): Likewise.
33569         * modules/j1 (configure.ac): Likewise.
33570         * modules/jn (configure.ac): Likewise.
33571         * modules/ldexp (configure.ac): Likewise.
33572         * modules/lgamma (configure.ac): Likewise.
33573         * modules/log (configure.ac): Likewise.
33574         * modules/log10 (configure.ac): Likewise.
33575         * modules/log1p (configure.ac): Likewise.
33576         * modules/logb (configure.ac): Likewise.
33577         * modules/modf (configure.ac): Likewise.
33578         * modules/nextafter (configure.ac): Likewise.
33579         * modules/pow (configure.ac): Likewise.
33580         * modules/remainder (configure.ac): Likewise.
33581         * modules/rint (configure.ac): Likewise.
33582         * modules/sin (configure.ac): Likewise.
33583         * modules/sinh (configure.ac): Likewise.
33584         * modules/tan (configure.ac): Likewise.
33585         * modules/tanh (configure.ac): Likewise.
33586         * modules/y0 (configure.ac): Likewise.
33587         * modules/y1 (configure.ac): Likewise.
33588         * modules/yn (configure.ac): Likewise.
33589
33590 2010-01-24  Bruno Haible  <bruno@clisp.org>
33591
33592         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
33593         * tests/test-acosl.c (x): New variable.
33594         (main): Store argument in x and fetch it from x.
33595         * tests/test-asinl.c (x): New variable.
33596         (main): Store argument in x and fetch it from x.
33597         * tests/test-atanl.c (x): New variable.
33598         (main): Store argument in x and fetch it from x.
33599         * tests/test-cosl.c (x): New variable.
33600         (main): Store argument in x and fetch it from x.
33601         * tests/test-expl.c (x): New variable.
33602         (main): Store argument in x and fetch it from x.
33603         * tests/test-logl.c (x): New variable.
33604         (main): Store argument in x and fetch it from x.
33605         * tests/test-sinl.c (x): New variable.
33606         (main): Store argument in x and fetch it from x.
33607         * tests/test-sqrtl.c (x): New variable.
33608         (main): Store argument in x and fetch it from x.
33609         * tests/test-tanl.c (x): New variable.
33610         (main): Store argument in x and fetch it from x.
33611
33612 2010-01-24  Bruno Haible  <bruno@clisp.org>
33613
33614         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
33615         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
33616         assignments to the initial TESTS_ENVIRONMENT.
33617         * doc/gnulib.texi (Unit test modules): Document it.
33618         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
33619         TESTS_ENVIRONMENT.
33620         * modules/btowc-tests (Makefile.am): Likewise.
33621         * modules/c-stack-tests (Makefile.am): Likewise.
33622         * modules/c-strcase-tests (Makefile.am): Likewise.
33623         * modules/copy-file-tests (Makefile.am): Likewise.
33624         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
33625         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
33626         * modules/mbrtowc-tests (Makefile.am): Likewise.
33627         * modules/mbscasecmp-tests (Makefile.am): Likewise.
33628         * modules/mbscasestr-tests (Makefile.am): Likewise.
33629         * modules/mbschr-tests (Makefile.am): Likewise.
33630         * modules/mbscspn-tests (Makefile.am): Likewise.
33631         * modules/mbsinit-tests (Makefile.am): Likewise.
33632         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
33633         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
33634         * modules/mbspbrk-tests (Makefile.am): Likewise.
33635         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
33636         * modules/mbsrchr-tests (Makefile.am): Likewise.
33637         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
33638         * modules/mbsspn-tests (Makefile.am): Likewise.
33639         * modules/mbsstr-tests (Makefile.am): Likewise.
33640         * modules/nl_langinfo-tests (Makefile.am): Likewise.
33641         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
33642         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
33643         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
33644         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
33645         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
33646         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
33647         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
33648         * modules/wcrtomb-tests (Makefile.am): Likewise.
33649         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
33650         * modules/wcsrtombs-tests (Makefile.am): Likewise.
33651         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
33652         assignments from TESTS_ENVIRONMENT.
33653         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
33654         augmentation.
33655         * modules/argp-version-etc-tests (Makefile.am): Likewise.
33656         * modules/atexit-tests (Makefile.am): Likewise.
33657         * modules/binary-io-tests (Makefile.am): Likewise.
33658         * modules/closein-tests (Makefile.am): Likewise.
33659         * modules/dprintf-posix-tests (Makefile.am): Likewise.
33660         * modules/exclude-tests (Makefile.am): Likewise.
33661         * modules/fflush-tests (Makefile.am): Likewise.
33662         * modules/fpending-tests (Makefile.am): Likewise.
33663         * modules/fprintf-posix-tests (Makefile.am): Likewise.
33664         * modules/freadahead-tests (Makefile.am): Likewise.
33665         * modules/freadptr-tests (Makefile.am): Likewise.
33666         * modules/freadseek-tests (Makefile.am): Likewise.
33667         * modules/fseek-tests (Makefile.am): Likewise.
33668         * modules/fseeko-tests (Makefile.am): Likewise.
33669         * modules/ftell-tests (Makefile.am): Likewise.
33670         * modules/ftello-tests (Makefile.am): Likewise.
33671         * modules/idpriv-drop-tests (Makefile.am): Likewise.
33672         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
33673         * modules/lseek-tests (Makefile.am): Likewise.
33674         * modules/parse-duration-tests (Makefile.am): Likewise.
33675         * modules/perror-tests (Makefile.am): Likewise.
33676         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
33677         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
33678         * modules/pipe-tests (Makefile.am): Likewise.
33679         * modules/pread-tests (Makefile.am): Likewise.
33680         * modules/printf-posix-tests (Makefile.am): Likewise.
33681         * modules/select-tests (Makefile.am): Likewise.
33682         * modules/sigpipe-tests (Makefile.am): Likewise.
33683         * modules/tsearch-tests (Makefile.am): Likewise.
33684         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
33685         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
33686         * modules/uniname/uniname-tests (Makefile.am): Likewise.
33687         * modules/uniwidth/width-tests (Makefile.am): Likewise.
33688         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
33689         * modules/version-etc-tests (Makefile.am): Likewise.
33690         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
33691         * modules/vprintf-posix-tests (Makefile.am): Likewise.
33692         * modules/xalloc-die-tests (Makefile.am): Likewise.
33693         * modules/xprintf-posix-tests (Makefile.am): Likewise.
33694         * modules/xstrtoimax-tests (Makefile.am): Likewise.
33695         * modules/xstrtol-tests (Makefile.am): Likewise.
33696         * modules/xstrtoumax-tests (Makefile.am): Likewise.
33697         * modules/yesno-tests (Makefile.am): Likewise.
33698         Suggested by Jim Meyering.
33699
33700 2010-01-24  Bruno Haible  <bruno@clisp.org>
33701
33702         More documentation.
33703         * doc/gnulib.texi (Writing modules): New chapter.
33704         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
33705         the new chapter.
33706
33707 2010-01-24  Jim Meyering  <meyering@redhat.com>
33708
33709         maint.mk: do not prepend "./" after filtering
33710         * top/maint.mk (_prepend_srcdir_prefix): New variable
33711         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
33712         "./" when $(srcdir) is ".".
33713
33714         define STREQ(a,b) consistently, removing useless parentheses
33715         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
33716         since the only risk is that "a" or "b" contains an unparenthesized
33717         comma, but if either did that, STREQ would have 3 or more arguments.
33718         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
33719         * lib/fts.c (STREQ): Remove unnecessary parentheses.
33720         * lib/hash-triple.c (STREQ): Likewise.
33721         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
33722         * lib/getugroups.c (STREQ): Likewise.
33723
33724 2010-01-23  Jim Meyering  <meyering@redhat.com>
33725
33726         maint.mk: fix syntax-check in a non-srcdir build directory
33727         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
33728         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
33729
33730 2010-01-22  Jim Meyering  <meyering@redhat.com>
33731
33732         userspec: add unit tests
33733         * tests/test-userspec.c: New file.
33734         * modules/userspec-tests: Likewise.
33735
33736 2010-01-21  Jim Meyering  <meyering@redhat.com>
33737
33738         maint.mk: handle source file names containing "." robustly
33739         * top/maint.mk (_dot_escaped_srcdir): Define.
33740         (VC_LIST): Use it in LHS of sed substitution.
33741
33742 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
33743
33744         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
33745         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
33746         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
33747         from a non-srcdir build.
33748
33749 2010-01-20  Eric Blake  <ebb9@byu.net>
33750
33751         warn-on-use: use instead of link-warning
33752         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
33753         * modules/unistd (Depends-on, Makefile.am): Likewise.
33754         * modules/arpa_inet (Depends-on): Replace link-warning with
33755         warn-on-use.
33756         (Makefile.am): Update rules accordingly.
33757         * modules/ctype (Depends-on, Makefile.am): Likewise.
33758         * modules/dirent (Depends-on, Makefile.am): Likewise.
33759         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
33760         * modules/inttypes (Depends-on, Makefile.am): Likewise.
33761         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33762         * modules/locale (Depends-on, Makefile.am): Likewise.
33763         * modules/math (Depends-on, Makefile.am): Likewise.
33764         * modules/search (Depends-on, Makefile.am): Likewise.
33765         * modules/signal (Depends-on, Makefile.am): Likewise.
33766         * modules/spawn (Depends-on, Makefile.am): Likewise.
33767         * modules/stdlib (Depends-on, Makefile.am): Likewise.
33768         * modules/string (Depends-on, Makefile.am): Likewise.
33769         * modules/strings (Depends-on, Makefile.am): Likewise.
33770         * modules/sys_file (Depends-on, Makefile.am): Likewise.
33771         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
33772         * modules/sys_select (Depends-on, Makefile.am): Likewise.
33773         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
33774         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
33775         * modules/sys_times (Depends-on, Makefile.am): Likewise.
33776         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33777         * modules/wchar (Depends-on, Makefile.am): Likewise.
33778         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
33779         should be poisoned.
33780         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
33781         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
33782         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
33783         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33784         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33785         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
33786         * m4/math_h.m4 (gl_MATH_H): Likewise.
33787         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33788         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33789         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33790         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
33791         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
33792         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
33793         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
33794         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
33795         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
33796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33797         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33798         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33799         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33800         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33801         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33802         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33803         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
33804         GL_LINK_WARNING.
33805         * lib/ctype.in.h: Likewise.
33806         * lib/dirent.in.h: Likewise.
33807         * lib/fcntl.in.h: Likewise.
33808         * lib/inttypes.in.h: Likewise.
33809         * lib/langinfo.in.h: Likewise.
33810         * lib/locale.in.h: Likewise.
33811         * lib/math.in.h: Likewise.
33812         * lib/search.in.h: Likewise.
33813         * lib/signal.in.h: Likewise.
33814         * lib/spawn.in.h: Likewise.
33815         * lib/stdio.in.h: Likewise.
33816         * lib/stdlib.in.h: Likewise.
33817         * lib/string.in.h: Likewise.
33818         * lib/strings.in.h: Likewise.
33819         * lib/sys_file.in.h: Likewise.
33820         * lib/sys_ioctl.in.h: Likewise.
33821         * lib/sys_select.in.h: Likewise.
33822         * lib/sys_socket.in.h: Likewise.
33823         * lib/sys_stat.in.h: Likewise.
33824         * lib/sys_times.in.h: Likewise.
33825         * lib/sys_utsname.in.h: Likewise.
33826         * lib/unistd.in.h: Likewise.
33827         * lib/wchar.in.h: Likewise.
33828
33829 2010-01-20  Bruno Haible  <bruno@clisp.org>
33830
33831         Avoid duplicate -lm.
33832         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33833         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33834         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33835         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33836         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33837         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33838         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33839         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33840         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33841         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33842         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33843         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33844         Reported by Paolo Bonzini.
33845
33846 2010-01-19  Bruno Haible  <bruno@clisp.org>
33847
33848         langinfo, nl_langinfo: Relicense under LGPLv2+.
33849         * modules/langinfo (License): Change to LGPLv2+.
33850         * modules/nl_langinfo (License): Likewise.
33851         Patch by David Lutterkort <lutter@redhat.com>.
33852
33853 2010-01-19  Bruno Haible  <bruno@clisp.org>
33854
33855         Avoid compilation error with cc on OSF/1 5.1.
33856         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33857         statement, not before.
33858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33859
33860 2010-01-18  Bruno Haible  <bruno@clisp.org>
33861
33862         Avoid a link error due to the __printf__ symbol.
33863         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33864         and 2.6.x.
33865         (__format__, __printf__): Remove definitions.
33866         * lib/argp-fmtstream.h: Likewise.
33867         * lib/argp.h: Likewise.
33868         * lib/error.h: Likewise.
33869         * lib/vasnprintf.h: Likewise.
33870         * lib/xprintf.h: Likewise.
33871         * lib/xvasprintf.h: Likewise.
33872         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33873
33874 2010-01-18  Bruno Haible  <bruno@clisp.org>
33875
33876         Tests for module 'tanl'.
33877         * modules/tanl-tests: New file.
33878         * tests/test-tanl.c: New file.
33879
33880         Tests for module 'sqrtl'.
33881         * modules/sqrtl-tests: New file.
33882         * tests/test-sqrtl.c: New file.
33883
33884         Tests for module 'sinl'.
33885         * modules/sinl-tests: New file.
33886         * tests/test-sinl.c: New file.
33887
33888         Tests for module 'logl'.
33889         * modules/logl-tests: New file.
33890         * tests/test-logl.c: New file.
33891
33892         Tests for module 'expl'.
33893         * modules/expl-tests: New file.
33894         * tests/test-expl.c: New file.
33895
33896         Tests for module 'cosl'.
33897         * modules/cosl-tests: New file.
33898         * tests/test-cosl.c: New file.
33899
33900         Tests for module 'atanl'.
33901         * modules/atanl-tests: New file.
33902         * tests/test-atanl.c: New file.
33903
33904         Tests for module 'asinl'.
33905         * modules/asinl-tests: New file.
33906         * tests/test-asinl.c: New file.
33907
33908         Tests for module 'acosl'.
33909         * modules/acosl-tests: New file.
33910         * tests/test-acosl.c: New file.
33911
33912         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33913         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33914         tanl): Use the standard gnulib idiom.
33915         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33916         * lib/sinl.c: Likewise.
33917         * lib/tanl.c: Don't include trigl.c.
33918         (kernel_tanl): Make static.
33919         * lib/sincosl.c: Include trigl.h first.
33920         * lib/trigl.c: Likewise.
33921         * m4/acosl.m4: New file.
33922         * m4/asinl.m4: New file.
33923         * m4/atanl.m4: New file.
33924         * m4/cosl.m4: New file.
33925         * m4/expl.m4: New file.
33926         * m4/logl.m4: New file.
33927         * m4/sinl.m4: New file.
33928         * m4/sqrtl.m4: New file.
33929         * m4/tanl.m4: New file.
33930         * m4/mathl.m4: Remove file.
33931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33932         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33933         Don't initialize GNULIB_MATHL.
33934         * modules/acosl: New file.
33935         * modules/asinl: New file.
33936         * modules/atanl: New file.
33937         * modules/cosl: New file.
33938         * modules/expl: New file.
33939         * modules/logl: New file.
33940         * modules/sinl: New file.
33941         * modules/sqrtl: New file.
33942         * modules/tanl: New file.
33943         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33944         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33945         substitute GNULIB_MATHL.
33946         * modules/mathl: Rewritten.
33947         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33948         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33949         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33950         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33951         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33952         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33953         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33954         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33955         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33956
33957 2010-01-18  Bruno Haible  <bruno@clisp.org>
33958
33959         sqrt: Make gl_FUNC_SQRT requirable.
33960         * m4/sqrt.m4: New file.
33961         * modules/sqrt (Files): Add it.
33962         (configure.ac): Invoke gl_FUNC_SQRT.
33963
33964 2010-01-18  Bruno Haible  <bruno@clisp.org>
33965
33966         New modules for common <math.h> functions.
33967         * m4/mathfunc.m4: New file.
33968         * modules/acos: New file.
33969         * modules/asin: New file.
33970         * modules/atan: New file.
33971         * modules/atan2: New file.
33972         * modules/cbrt: New file.
33973         * modules/copysign: New file.
33974         * modules/cos: New file.
33975         * modules/cosh: New file.
33976         * modules/erf: New file.
33977         * modules/erfc: New file.
33978         * modules/exp: New file.
33979         * modules/fabs: New file.
33980         * modules/fmod: New file.
33981         * modules/hypot: New file.
33982         * modules/j0: New file.
33983         * modules/j1: New file.
33984         * modules/jn: New file.
33985         * modules/ldexp: New file.
33986         * modules/lgamma: New file.
33987         * modules/log: New file.
33988         * modules/log10: New file.
33989         * modules/log1p: New file.
33990         * modules/logb: New file.
33991         * modules/modf: New file.
33992         * modules/nextafter: New file.
33993         * modules/pow: New file.
33994         * modules/remainder: New file.
33995         * modules/rint: New file.
33996         * modules/sin: New file.
33997         * modules/sinh: New file.
33998         * modules/sqrt: New file.
33999         * modules/tan: New file.
34000         * modules/tanh: New file.
34001         * modules/y0: New file.
34002         * modules/y1: New file.
34003         * modules/yn: New file.
34004         * doc/posix-functions/acos.texi: Mention the 'acos' module.
34005         * doc/posix-functions/asin.texi: Mention the 'asin' module.
34006         * doc/posix-functions/atan.texi: Mention the 'atan' module.
34007         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
34008         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
34009         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
34010         * doc/posix-functions/cos.texi: Mention the 'cos' module.
34011         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
34012         * doc/posix-functions/erf.texi: Mention the 'erf' module.
34013         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
34014         * doc/posix-functions/exp.texi: Mention the 'exp' module.
34015         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
34016         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
34017         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
34018         * doc/posix-functions/j0.texi: Mention the 'j0' module.
34019         * doc/posix-functions/j1.texi: Mention the 'j1' module.
34020         * doc/posix-functions/jn.texi: Mention the 'jn' module.
34021         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
34022         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
34023         * doc/posix-functions/log.texi: Mention the 'log' module.
34024         * doc/posix-functions/log10.texi: Mention the 'log10' module.
34025         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
34026         * doc/posix-functions/logb.texi: Mention the 'logb' module.
34027         * doc/posix-functions/modf.texi: Mention the 'modf' module.
34028         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
34029         * doc/posix-functions/pow.texi: Mention the 'pow' module.
34030         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
34031         * doc/posix-functions/rint.texi: Mention the 'rint' module.
34032         * doc/posix-functions/sin.texi: Mention the 'sin' module.
34033         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
34034         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
34035         * doc/posix-functions/tan.texi: Mention the 'tan' module.
34036         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
34037         * doc/posix-functions/y0.texi: Mention the 'y0' module.
34038         * doc/posix-functions/y1.texi: Mention the 'y1' module.
34039         * doc/posix-functions/yn.texi: Mention the 'yn' module.
34040
34041 2010-01-18  Jim Meyering  <meyering@redhat.com>
34042
34043         ignore-value: relax license to LGPLv2+
34044         * modules/ignore-value (License): Relax to LGPLv2+.
34045
34046         getdate: don't leak when TZ contains two or more '"'s
34047         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
34048         double quote in TZ after the first one.
34049
34050         readtokens: do not leak internal token_lengths buffer
34051         * lib/readtokens.c (readtokens): Free the local, lengths,
34052         when the supplied "token_lengths" parameter is NULL.
34053
34054 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34055
34056         Fix a couple of missing LIBTHREAD link failures on AIX.
34057         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
34058         $(LIBTHREAD).
34059         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
34060
34061         Link test-poll against INET_PTON_LIB.
34062         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
34063         for inet_pton on Solaris 10.
34064
34065 2010-01-17  Bruno Haible  <bruno@clisp.org>
34066
34067         unistdio/*-sprintf: Fix typo in module description.
34068         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
34069         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
34070         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
34071         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
34072         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
34073         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
34074         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
34075         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34076
34077 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34078
34079         gnulib-tool: fix filelist for AIX, HP-UX ksh.
34080         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
34081         variables in shell case patterns, for AIX and HP-UX ksh.
34082
34083         Split large sed scripts, for HP-UX sed.
34084         * modules/stdio: Split sed scripts around 50 sed commands,
34085         to avoid HP-UX limit of 99 commands, in the near future.
34086         * modules/string: Likewise.
34087         * modules/unistd: Likewise.
34088
34089         gnulib-tool: avoid writing in the current directory.
34090         * gnulib-tool (func_emit_lib_Makefile_am)
34091         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
34092         not in the current directory, so concurrent gnulib-tool
34093         instances do not interfere.
34094
34095 2010-01-16  Jim Meyering  <meyering@redhat.com>
34096
34097         doc: update users.txt
34098         * users.txt: Add grep.
34099         (diffutils, gzip): Update URLs.
34100
34101 2010-01-12  Bruno Haible  <bruno@clisp.org>
34102
34103         posix_spawn: Avoid test failure on Cygwin.
34104         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
34105         characters.
34106         Reported by Simon Josefsson.
34107
34108 2010-01-12  Bruno Haible  <bruno@clisp.org>
34109
34110         * tests/test-cond.c (main): When skipping the test, show the reason.
34111
34112 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34113
34114         * lib/striconv.c (str_cd_iconv): Avoid if before free.
34115
34116 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34117
34118         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
34119         VC_LIST_ALWAYS_EXCLUDE_REGEX.
34120
34121 2010-01-12  Eric Blake  <ebb9@byu.net>
34122
34123         build: guarantee AS_VAR_IF
34124         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
34125         (gl_AS_VAR_IF): Move...
34126         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
34127         Reported by Simon Josefsson.
34128
34129 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34130
34131         * lib/stdio.in.h: Fix typo.
34132
34133 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34134
34135         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
34136         libgpg-error.
34137
34138 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34139
34140         * tests/test-xalloc-die.sh: Use $EXEEXT.
34141
34142 2010-01-12  Simon Josefsson  <simon@josefsson.org>
34143             Bruno Haible  <bruno@clisp.org>
34144
34145         getlogin, getlogin_r: Avoid test failure.
34146         * tests/test-getlogin.c: Include <stdio.h>.
34147         (main): Skip the test when the function fails because stdin is not a
34148         tty.
34149         * tests/test-getlogin_r.c: Include <stdio.h>.
34150         (main): Skip the test when the function fails because stdin is not a
34151         tty.
34152
34153 2010-01-11  Eric Blake  <ebb9@byu.net>
34154
34155         tests: avoid more large file warnings
34156         * tests/test-fflush.c: Avoid warning about ftell use.
34157         * tests/test-fseek.c: Avoid warning about fseek use.
34158
34159 2010-01-10  Bruno Haible  <bruno@clisp.org>
34160
34161         nproc: Work better on Linux when /proc and /sys are not mounted.
34162         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
34163         as lower bound when, on glibc/Linux systems,
34164         sysconf (_SC_NPROCESSORS_CONF) returns 1.
34165         Suggested by Pádraig Brady <P@draigbrady.com>.
34166         Reported by Dmitry V. Levin <ldv@altlinux.org>.
34167
34168         nproc: Refactor.
34169         * lib/nproc.c (num_processors_via_affinity_mask): New function,
34170         extracted from num_processors.
34171         (num_processors): Call it.
34172
34173 2010-01-11  Jim Meyering  <meyering@redhat.com>
34174
34175         utimecmp: avoid new warning from upcoming gcc-4.5.0
34176         * lib/utimecmp.c (BILLION): Define using #define rather than an
34177         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
34178
34179 2010-01-11  Eric Blake  <ebb9@byu.net>
34180
34181         math: add portability warnings for classification macros
34182         * modules/math (Depends-on): Add warn-on-use.
34183         (Makefile.am): Provide new substitutions.
34184         * m4/math_h.m4 (gl_MATH_H): Require inline.
34185         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
34186         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
34187         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
34188         implement warnings.
34189
34190         unistd: warn on use of environ without module
34191         * modules/unistd (Depends-on): Add warn-on-use.
34192         (Makefile.am): Provide new substitutions.
34193         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
34194         * lib/unistd.in.h (environ): Wrap with a warning helper function.
34195
34196         stdio: warn on suspicious uses
34197         * modules/stdio (Depends-on): Add warn-on-use.
34198         (Makefile.am): Provide new substitutions.
34199         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
34200         fseeko.
34201         * lib/stdio.in.h (gets): Always warn on use.
34202         (fseek, ftell): Adjust when warnings are issued, and honor
34203         _GL_NO_LARGE_FILES as a way to silence the warning.
34204         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
34205         any warning about large file offsets.
34206         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
34207         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
34208         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
34209         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
34210         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
34211         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
34212         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
34213         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
34214
34215         warn-on-use: new module
34216         * modules/warn-on-use: New file.
34217         * build-aux/warn-on-use.h: Likewise.
34218         * m4/warn-on-use.m4: Likewise.
34219         * MODULES.html.sh (Support for building): Mention it.
34220
34221 2010-01-10  Bruno Haible  <bruno@clisp.org>
34222
34223         Tests for module 'unistr/u32-strdup'.
34224         * modules/unistr/u32-strdup-tests: New file.
34225         * tests/unistr/test-u32-strdup.c: New file.
34226
34227         Tests for module 'unistr/u16-strdup'.
34228         * modules/unistr/u16-strdup-tests: New file.
34229         * tests/unistr/test-u16-strdup.c: New file.
34230
34231         Tests for module 'unistr/u8-strdup'.
34232         * modules/unistr/u8-strdup-tests: New file.
34233         * tests/unistr/test-u8-strdup.c: New file.
34234         * tests/unistr/test-strdup.h: New file.
34235
34236         Tests for module 'unistr/u32-strncmp'.
34237         * modules/unistr/u32-strncmp-tests: New file.
34238         * tests/unistr/test-u32-strncmp.c: New file.
34239
34240         Tests for module 'unistr/u16-strncmp'.
34241         * modules/unistr/u16-strncmp-tests: New file.
34242         * tests/unistr/test-u16-strncmp.c: New file.
34243
34244         Tests for module 'unistr/u8-strncmp'.
34245         * modules/unistr/u8-strncmp-tests: New file.
34246         * tests/unistr/test-u8-strncmp.c: New file.
34247         * tests/unistr/test-strncmp.h: New file.
34248
34249         Tests for module 'unistr/u32-strcoll'.
34250         * modules/unistr/u32-strcoll-tests: New file.
34251         * tests/unistr/test-u32-strcoll.c: New file.
34252
34253         Tests for module 'unistr/u16-strcoll'.
34254         * modules/unistr/u16-strcoll-tests: New file.
34255         * tests/unistr/test-u16-strcoll.c: New file.
34256
34257         Tests for module 'unistr/u8-strcoll'.
34258         * modules/unistr/u8-strcoll-tests: New file.
34259         * tests/unistr/test-u8-strcoll.c: New file.
34260
34261         Tests for module 'unistr/u32-strcmp'.
34262         * modules/unistr/u32-strcmp-tests: New file.
34263         * tests/unistr/test-u32-strcmp.c: New file.
34264         * tests/unistr/test-u32-strcmp.h: New file.
34265
34266         Tests for module 'unistr/u16-strcmp'.
34267         * modules/unistr/u16-strcmp-tests: New file.
34268         * tests/unistr/test-u16-strcmp.c: New file.
34269         * tests/unistr/test-u16-strcmp.h: New file.
34270
34271         Tests for module 'unistr/u8-strcmp'.
34272         * modules/unistr/u8-strcmp-tests: New file.
34273         * tests/unistr/test-u8-strcmp.c: New file.
34274         * tests/unistr/test-u8-strcmp.h: New file.
34275         * tests/unistr/test-strcmp.h: New file.
34276
34277         Tests for module 'unistr/u32-strncat'.
34278         * modules/unistr/u32-strncat-tests: New file.
34279         * tests/unistr/test-u32-strncat.c: New file.
34280
34281         Tests for module 'unistr/u16-strncat'.
34282         * modules/unistr/u16-strncat-tests: New file.
34283         * tests/unistr/test-u16-strncat.c: New file.
34284
34285         Tests for module 'unistr/u8-strncat'.
34286         * modules/unistr/u8-strncat-tests: New file.
34287         * tests/unistr/test-u8-strncat.c: New file.
34288         * tests/unistr/test-strncat.h: New file.
34289
34290         Tests for module 'unistr/u32-strcat'.
34291         * modules/unistr/u32-strcat-tests: New file.
34292         * tests/unistr/test-u32-strcat.c: New file.
34293
34294         Tests for module 'unistr/u16-strcat'.
34295         * modules/unistr/u16-strcat-tests: New file.
34296         * tests/unistr/test-u16-strcat.c: New file.
34297
34298         Tests for module 'unistr/u8-strcat'.
34299         * modules/unistr/u8-strcat-tests: New file.
34300         * tests/unistr/test-u8-strcat.c: New file.
34301         * tests/unistr/test-strcat.h: New file.
34302
34303         Tests for module 'unistr/u32-stpncpy'.
34304         * modules/unistr/u32-stpncpy-tests: New file.
34305         * tests/unistr/test-u32-stpncpy.c: New file.
34306
34307         Tests for module 'unistr/u16-stpncpy'.
34308         * modules/unistr/u16-stpncpy-tests: New file.
34309         * tests/unistr/test-u16-stpncpy.c: New file.
34310
34311         Tests for module 'unistr/u8-stpncpy'.
34312         * modules/unistr/u8-stpncpy-tests: New file.
34313         * tests/unistr/test-u8-stpncpy.c: New file.
34314         * tests/unistr/test-stpncpy.h: New file.
34315
34316         Tests for module 'unistr/u32-strncpy'.
34317         * modules/unistr/u32-strncpy-tests: New file.
34318         * tests/unistr/test-u32-strncpy.c: New file.
34319
34320         Tests for module 'unistr/u16-strncpy'.
34321         * modules/unistr/u16-strncpy-tests: New file.
34322         * tests/unistr/test-u16-strncpy.c: New file.
34323
34324         Tests for module 'unistr/u8-strncpy'.
34325         * modules/unistr/u8-strncpy-tests: New file.
34326         * tests/unistr/test-u8-strncpy.c: New file.
34327         * tests/unistr/test-strncpy.h: New file.
34328
34329         Tests for module 'unistr/u32-stpcpy'.
34330         * modules/unistr/u32-stpcpy-tests: New file.
34331         * tests/unistr/test-u32-stpcpy.c: New file.
34332
34333         Tests for module 'unistr/u16-stpcpy'.
34334         * modules/unistr/u16-stpcpy-tests: New file.
34335         * tests/unistr/test-u16-stpcpy.c: New file.
34336
34337         Tests for module 'unistr/u8-stpcpy'.
34338         * modules/unistr/u8-stpcpy-tests: New file.
34339         * tests/unistr/test-u8-stpcpy.c: New file.
34340         * tests/unistr/test-stpcpy.h: New file.
34341
34342         Tests for module 'unistr/u32-strcpy'.
34343         * modules/unistr/u32-strcpy-tests: New file.
34344         * tests/unistr/test-u32-strcpy.c: New file.
34345
34346         Tests for module 'unistr/u16-strcpy'.
34347         * modules/unistr/u16-strcpy-tests: New file.
34348         * tests/unistr/test-u16-strcpy.c: New file.
34349
34350         Tests for module 'unistr/u8-strcpy'.
34351         * modules/unistr/u8-strcpy-tests: New file.
34352         * tests/unistr/test-u8-strcpy.c: New file.
34353         * tests/unistr/test-strcpy.h: New file.
34354
34355         Tests for module 'unistr/u32-strnlen'.
34356         * modules/unistr/u32-strnlen-tests: New file.
34357         * tests/unistr/test-u32-strnlen.c: New file.
34358
34359         Tests for module 'unistr/u16-strnlen'.
34360         * modules/unistr/u16-strnlen-tests: New file.
34361         * tests/unistr/test-u16-strnlen.c: New file.
34362
34363         Tests for module 'unistr/u8-strnlen'.
34364         * modules/unistr/u8-strnlen-tests: New file.
34365         * tests/unistr/test-u8-strnlen.c: New file.
34366         * tests/unistr/test-strnlen.h: New file.
34367
34368         Tests for module 'unistr/u32-strlen'.
34369         * modules/unistr/u32-strlen-tests: New file.
34370         * tests/unistr/test-u32-strlen.c: New file.
34371
34372         Tests for module 'unistr/u16-strlen'.
34373         * modules/unistr/u16-strlen-tests: New file.
34374         * tests/unistr/test-u16-strlen.c: New file.
34375
34376         Tests for module 'unistr/u8-strlen'.
34377         * modules/unistr/u8-strlen-tests: New file.
34378         * tests/unistr/test-u8-strlen.c: New file.
34379
34380         Tests for module 'unistr/u32-prev'.
34381         * modules/unistr/u32-prev-tests: New file.
34382         * tests/unistr/test-u32-prev.c: New file.
34383
34384         Tests for module 'unistr/u16-prev'.
34385         * modules/unistr/u16-prev-tests: New file.
34386         * tests/unistr/test-u16-prev.c: New file.
34387
34388         Tests for module 'unistr/u8-prev'.
34389         * modules/unistr/u8-prev-tests: New file.
34390         * tests/unistr/test-u8-prev.c: New file.
34391
34392         Tests for module 'unistr/u32-next'.
34393         * modules/unistr/u32-next-tests: New file.
34394         * tests/unistr/test-u32-next.c: New file.
34395
34396         Tests for module 'unistr/u16-next'.
34397         * modules/unistr/u16-next-tests: New file.
34398         * tests/unistr/test-u16-next.c: New file.
34399
34400         Tests for module 'unistr/u8-next'.
34401         * modules/unistr/u8-next-tests: New file.
34402         * tests/unistr/test-u8-next.c: New file.
34403
34404         Tests for module 'unistr/u32-strmbtouc'.
34405         * modules/unistr/u32-strmbtouc-tests: New file.
34406         * tests/unistr/test-u32-strmbtouc.c: New file.
34407
34408         Tests for module 'unistr/u16-strmbtouc'.
34409         * modules/unistr/u16-strmbtouc-tests: New file.
34410         * tests/unistr/test-u16-strmbtouc.c: New file.
34411
34412         Tests for module 'unistr/u8-strmbtouc'.
34413         * modules/unistr/u8-strmbtouc-tests: New file.
34414         * tests/unistr/test-u8-strmbtouc.c: New file.
34415
34416         Tests for module 'unistr/u32-strmblen'.
34417         * modules/unistr/u32-strmblen-tests: New file.
34418         * tests/unistr/test-u32-strmblen.c: New file.
34419
34420         Tests for module 'unistr/u16-strmblen'.
34421         * modules/unistr/u16-strmblen-tests: New file.
34422         * tests/unistr/test-u16-strmblen.c: New file.
34423
34424         Tests for module 'unistr/u8-strmblen'.
34425         * modules/unistr/u8-strmblen-tests: New file.
34426         * tests/unistr/test-u8-strmblen.c: New file.
34427
34428         Tests for module 'unistr/u32-cpy-alloc'.
34429         * modules/unistr/u32-cpy-alloc-tests: New file.
34430         * tests/unistr/test-u32-cpy-alloc.c: New file.
34431
34432         Tests for module 'unistr/u16-cpy-alloc'.
34433         * modules/unistr/u16-cpy-alloc-tests: New file.
34434         * tests/unistr/test-u16-cpy-alloc.c: New file.
34435
34436         Tests for module 'unistr/u8-cpy-alloc'.
34437         * modules/unistr/u8-cpy-alloc-tests: New file.
34438         * tests/unistr/test-u8-cpy-alloc.c: New file.
34439         * tests/unistr/test-cpy-alloc.h: New file.
34440
34441         Tests for module 'unistr/u32-mbsnlen'.
34442         * modules/unistr/u32-mbsnlen-tests: New file.
34443         * tests/unistr/test-u32-mbsnlen.c: New file.
34444
34445         Tests for module 'unistr/u16-mbsnlen'.
34446         * modules/unistr/u16-mbsnlen-tests: New file.
34447         * tests/unistr/test-u16-mbsnlen.c: New file.
34448
34449         Tests for module 'unistr/u8-mbsnlen'.
34450         * modules/unistr/u8-mbsnlen-tests: New file.
34451         * tests/unistr/test-u8-mbsnlen.c: New file.
34452
34453         Tests for module 'unistr/u32-chr'.
34454         * modules/unistr/u32-chr-tests: New file.
34455         * tests/unistr/test-u32-chr.c: New file.
34456
34457         Tests for module 'unistr/u16-chr'.
34458         * modules/unistr/u16-chr-tests: New file.
34459         * tests/unistr/test-u16-chr.c: New file.
34460
34461         Tests for module 'unistr/u8-chr'.
34462         * modules/unistr/u8-chr-tests: New file.
34463         * tests/unistr/test-u8-chr.c: New file.
34464         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
34465
34466         Tests for module 'unistr/u32-cmp2'.
34467         * modules/unistr/u32-cmp2-tests: New file.
34468         * tests/unistr/test-u32-cmp2.c: New file.
34469
34470         Tests for module 'unistr/u16-cmp2'.
34471         * modules/unistr/u16-cmp2-tests: New file.
34472         * tests/unistr/test-u16-cmp2.c: New file.
34473
34474         Tests for module 'unistr/u8-cmp2'.
34475         * modules/unistr/u8-cmp2-tests: New file.
34476         * tests/unistr/test-u8-cmp2.c: New file.
34477         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
34478
34479         Tests for module 'unistr/u32-cmp'.
34480         * modules/unistr/u32-cmp-tests: New file.
34481         * tests/unistr/test-u32-cmp.c: New file.
34482
34483         Tests for module 'unistr/u16-cmp'.
34484         * modules/unistr/u16-cmp-tests: New file.
34485         * tests/unistr/test-u16-cmp.c: New file.
34486
34487         Tests for module 'unistr/u8-cmp'.
34488         * modules/unistr/u8-cmp-tests: New file.
34489         * tests/unistr/test-u8-cmp.c: New file.
34490         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
34491
34492         Tests for module 'unistr/u32-set'.
34493         * modules/unistr/u32-set-tests: New file.
34494         * tests/unistr/test-u32-set.c: New file.
34495
34496         Tests for module 'unistr/u16-set'.
34497         * modules/unistr/u16-set-tests: New file.
34498         * tests/unistr/test-u16-set.c: New file.
34499
34500         Tests for module 'unistr/u8-set'.
34501         * modules/unistr/u8-set-tests: New file.
34502         * tests/unistr/test-u8-set.c: New file.
34503         * tests/unistr/test-set.h: New file.
34504
34505         Tests for module 'unistr/u32-move'.
34506         * modules/unistr/u32-move-tests: New file.
34507         * tests/unistr/test-u32-move.c: New file.
34508
34509         Tests for module 'unistr/u16-move'.
34510         * modules/unistr/u16-move-tests: New file.
34511         * tests/unistr/test-u16-move.c: New file.
34512
34513         Tests for module 'unistr/u8-move'.
34514         * modules/unistr/u8-move-tests: New file.
34515         * tests/unistr/test-u8-move.c: New file.
34516         * tests/unistr/test-move.h: New file.
34517
34518         Tests for module 'unistr/u32-cpy'.
34519         * modules/unistr/u32-cpy-tests: New file.
34520         * tests/unistr/test-u32-cpy.c: New file.
34521
34522         Tests for module 'unistr/u16-cpy'.
34523         * modules/unistr/u16-cpy-tests: New file.
34524         * tests/unistr/test-u16-cpy.c: New file.
34525
34526         Tests for module 'unistr/u8-cpy'.
34527         * modules/unistr/u8-cpy-tests: New file.
34528         * tests/unistr/test-u8-cpy.c: New file.
34529         * tests/unistr/test-cpy.h: New file.
34530
34531 2010-01-09  Bruno Haible  <bruno@clisp.org>
34532
34533         Tests for module 'unistr/u32-uctomb'.
34534         * modules/unistr/u32-uctomb-tests: New file.
34535         * tests/unistr/test-u32-uctomb.c: New file.
34536
34537         Tests for module 'unistr/u16-uctomb'.
34538         * modules/unistr/u16-uctomb-tests: New file.
34539         * tests/unistr/test-u16-uctomb.c: New file.
34540
34541         Tests for module 'unistr/u8-uctomb'.
34542         * modules/unistr/u8-uctomb-tests: New file.
34543         * tests/unistr/test-u8-uctomb.c: New file.
34544
34545         Tests for module 'unistr/u32-mbtoucr'.
34546         * modules/unistr/u32-mbtoucr-tests: New file.
34547         * tests/unistr/test-u32-mbtoucr.c: New file.
34548
34549         Tests for module 'unistr/u16-mbtoucr'.
34550         * modules/unistr/u16-mbtoucr-tests: New file.
34551         * tests/unistr/test-u16-mbtoucr.c: New file.
34552
34553         Tests for module 'unistr/u8-mbtoucr'.
34554         * modules/unistr/u8-mbtoucr-tests: New file.
34555         * tests/unistr/test-u8-mbtoucr.c: New file.
34556
34557         Tests for module 'unistr/u32-mbtouc'.
34558         * modules/unistr/u32-mbtouc-tests: New file.
34559         * tests/unistr/test-u32-mbtouc.c: New file.
34560
34561         Tests for module 'unistr/u16-mbtouc'.
34562         * modules/unistr/u16-mbtouc-tests: New file.
34563         * tests/unistr/test-u16-mbtouc.c: New file.
34564
34565         Tests for module 'unistr/u8-mbtouc'.
34566         * modules/unistr/u8-mbtouc-tests: New file.
34567         * tests/unistr/test-u8-mbtouc.c: New file.
34568
34569         Tests for module 'unistr/u32-mbtouc-unsafe'.
34570         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
34571         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
34572         * tests/unistr/test-u32-mbtouc.h: New file.
34573
34574         Tests for module 'unistr/u16-mbtouc-unsafe'.
34575         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
34576         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
34577         * tests/unistr/test-u16-mbtouc.h: New file.
34578
34579         Tests for module 'unistr/u8-mbtouc-unsafe'.
34580         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
34581         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
34582         * tests/unistr/test-u8-mbtouc.h: New file.
34583
34584         Tests for module 'unistr/u32-mblen'.
34585         * modules/unistr/u32-mblen-tests: New file.
34586         * tests/unistr/test-u32-mblen.c: New file.
34587
34588         Tests for module 'unistr/u16-mblen'.
34589         * modules/unistr/u16-mblen-tests: New file.
34590         * tests/unistr/test-u16-mblen.c: New file.
34591
34592         Tests for module 'unistr/u8-mblen'.
34593         * modules/unistr/u8-mblen-tests: New file.
34594         * tests/unistr/test-u8-mblen.c: New file.
34595
34596         Tests for module 'unistr/u32-to-u16'.
34597         * modules/unistr/u32-to-u16-tests: New file.
34598         * tests/unistr/test-u32-to-u16.c: New file.
34599
34600         Tests for module 'unistr/u32-to-u8'.
34601         * modules/unistr/u32-to-u8-tests: New file.
34602         * tests/unistr/test-u32-to-u8.c: New file.
34603
34604         Tests for module 'unistr/u16-to-u32'.
34605         * modules/unistr/u16-to-u32-tests: New file.
34606         * tests/unistr/test-u16-to-u32.c: New file.
34607
34608         Tests for module 'unistr/u16-to-u8'.
34609         * modules/unistr/u16-to-u8-tests: New file.
34610         * tests/unistr/test-u16-to-u8.c: New file.
34611
34612         Tests for module 'unistr/u8-to-u32'.
34613         * modules/unistr/u8-to-u32-tests: New file.
34614         * tests/unistr/test-u8-to-u32.c: New file.
34615
34616         Tests for module 'unistr/u8-to-u16'.
34617         * modules/unistr/u8-to-u16-tests: New file.
34618         * tests/unistr/test-u8-to-u16.c: New file.
34619
34620         Tests for module 'unistr/u32-check'.
34621         * modules/unistr/u32-check-tests: New file.
34622         * tests/unistr/test-u32-check.c: New file.
34623
34624         Tests for module 'unistr/u16-check'.
34625         * modules/unistr/u16-check-tests: New file.
34626         * tests/unistr/test-u16-check.c: New file.
34627
34628         Tests for module 'unistr/u8-check'.
34629         * modules/unistr/u8-check-tests: New file.
34630         * tests/unistr/test-u8-check.c: New file.
34631
34632         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
34633         (category_equals): New function.
34634         (main): Add more tests.
34635         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
34636
34637         * tests/unictype/test-bidi_byname.c (main): Add more tests.
34638
34639 2010-01-10  Bruno Haible  <bruno@clisp.org>
34640
34641         unistr/u*-strcoll: Try harder to distinguish different strings.
34642         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
34643         compare s1 and s2 to see if they are different.
34644
34645 2010-01-10  Bruno Haible  <bruno@clisp.org>
34646
34647         unistr/u*-stpncpy: Fix the return value.
34648         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
34649         description of the return value consistent with stpncpy in glibc.
34650         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
34651         written non-NUL unit.
34652
34653 2010-01-10  Bruno Haible  <bruno@clisp.org>
34654
34655         unistr/u*-next: Add missing dependencies.
34656         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
34657         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
34658         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
34659
34660 2010-01-10  Bruno Haible  <bruno@clisp.org>
34661
34662         unistr/u8-mbsnlen: Fix return value for incomplete character.
34663         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
34664         u8_mblen.
34665         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
34666         Remove unistr/u8-mblen.
34667         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
34668         u16_mblen.
34669         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
34670         Remove unistr/u16-mblen.
34671
34672 2010-01-10  Bruno Haible  <bruno@clisp.org>
34673
34674         wchar: Fix compilation error when <wchar.h> is used from coreutils.
34675         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
34676         Reported by Brian Gough <bjg@gnu.org> and
34677         Chris Clayton <chris2553@googlemail.com> via
34678         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
34679
34680 2010-01-09  Bruno Haible  <bruno@clisp.org>
34681
34682         unistr/u16-to-u32: Reject invalid input.
34683         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
34684         u16_mbtouc.
34685         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
34686         Remove unistr/u16-mbtouc.
34687
34688         unistr/u16-to-u8: Reject invalid input.
34689         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
34690         u16_mbtouc.
34691         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
34692         Remove unistr/u16-mbtouc.
34693
34694         unistr/u8-to-u32: Reject invalid input.
34695         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
34696         u8_mbtouc.
34697         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
34698         Remove unistr/u8-mbtouc.
34699
34700         unistr/u8-to-u16: Reject invalid input.
34701         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
34702         u8_mbtouc.
34703         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
34704         Remove unistr/u8-mbtouc.
34705
34706 2010-01-09  Bruno Haible  <bruno@clisp.org>
34707
34708         Tests for module 'getlogin'.
34709         * modules/getlogin-tests: New file.
34710         * tests/test-getlogin.c: New file.
34711
34712         New module 'getlogin'.
34713         * lib/unistd.in.h (getlogin): New declaration.
34714         * lib/getlogin.c: New file.
34715         * m4/getlogin.m4: New file.
34716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
34717         HAVE_GETLOGIN.
34718         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
34719         HAVE_GETLOGIN.
34720         * modules/getlogin: New file.
34721         * doc/posix-functions/getlogin.texi: Mention the new module.
34722         Reported by John W. Eaton <jwe@gnu.org>.
34723
34724 2010-01-09  Bruno Haible  <bruno@clisp.org>
34725
34726         getlogin_r: Support for native Windows.
34727         * lib/getlogin_r.c: Include <windows.h>
34728         (getlogin_r): Implement for native Windows.
34729         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
34730         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
34731         via John W. Eaton <jwe@gnu.org>.
34732
34733 2010-01-09  Bruno Haible  <bruno@clisp.org>
34734
34735         getlogin_r: Small fixes.
34736         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
34737         succeeds.
34738         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
34739         before testing whether getlogin_r is declared. No need to set
34740         HAVE_DECL_GETLOGIN_R to 1.
34741         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
34742
34743 2010-01-09  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/unistd.in.h (getlogin_r): Add comment.
34746
34747 2010-01-09  Bruno Haible  <bruno@clisp.org>
34748
34749         Tests for module 'getlogin_r'.
34750         * modules/getlogin_r-tests: New file.
34751         * tests/test-getlogin_r.c: New file.
34752
34753 2010-01-09  Jim Meyering  <meyering@redhat.com>
34754
34755         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
34756         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
34757         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
34758
34759 2010-01-08  Simon Josefsson  <simon@josefsson.org>
34760
34761         * lib/dup2.c (rpl_dup2): Improve comment.
34762
34763 2010-01-08  Eric Blake  <ebb9@byu.net>
34764
34765         maint.mk: allow packages to add makefile @@ exceptions
34766         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
34767         (sc_makefile_check): Rename...
34768         (sc_makefile_at_at_check): ...to this, and use hook.
34769
34770         dup2: work around mingw bug
34771         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
34772         Reported by Simon Josefsson.
34773
34774 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
34775
34776         glob: Fix C++ compilation.
34777         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
34778         C++.
34779
34780 2010-01-07  Bruno Haible  <bruno@clisp.org>
34781
34782         Fix indentation of wctype.in.h, broken since 2007-01-06.
34783         * lib/wctype.in.h: Fix indentation of preprocessor directives.
34784
34785 2010-01-07  Bruno Haible  <bruno@clisp.org>
34786
34787         mbslen: Avoid collision with system function.
34788         * lib/string.in.h [MirBSD]: Include <wchar.h>.
34789         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
34790         * m4/mbslen.m4: New file.
34791         * modules/mbslen (Files): Add it.
34792         (configure.ac): Invoke gl_MBSLEN.
34793         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
34794         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
34795         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
34796         via Ian Beckwith <ianb@erislabs.net>.
34797
34798 2010-01-07  Bruno Haible  <bruno@clisp.org>
34799
34800         dirent: Document the last fix.
34801         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
34802
34803 2010-01-07  Bruno Haible  <bruno@clisp.org>
34804
34805         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
34806         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
34807         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34808         va_list are defined.
34809         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34810         Reported by Eric Blake.
34811
34812 2010-01-07  Bruno Haible  <bruno@clisp.org>
34813
34814         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34815         * modules/xlist (Depends-on): Add 'list',
34816         * modules/xoset (Depends-on): Add 'oset'.
34817         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34818
34819 2010-01-07  Bruno Haible  <bruno@clisp.org>
34820
34821         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34822         * doc/posix-functions/strncasecmp.texi: Likewise.
34823
34824 2010-01-07  Bruno Haible  <bruno@clisp.org>
34825
34826         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34827
34828 2010-01-07  John W. Eaton  <jwe@octave.org>
34829
34830         wctype: allow C++ use
34831         * lib/wctype.in.h: Add extern "C" block for C++.
34832
34833 2010-01-06  Eric Blake  <ebb9@byu.net>
34834
34835         maint.mk: detect incorrect GFDL usage
34836         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34837
34838 2010-01-06  Jim Meyering  <meyering@redhat.com>
34839         and Eric Blake  <ebb9@byu.net>
34840
34841         maint.mk: ignore multi-line copyright in NEWS
34842         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34843
34844 2010-01-06  Eric Blake  <ebb9@byu.net>
34845
34846         select: add missing dependency
34847         * modules/select-tests (Depends-on): Move sockets dependency...
34848         * modules/select (Depends-on): ...here.
34849         Reported by Ian Beckwith.
34850
34851         doc: regenerate INSTALL
34852         * doc/INSTALL: Reflect recent autoconf update.
34853         * doc/INSTALL.ISO: Likewise.
34854         * doc/INSTALL.UTF-8: Likewise.
34855
34856         pread: fix compilation on glibc
34857         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34858         Reported by Ralf Wildenhues.
34859
34860         dirent: fix test failure
34861         * lib/dirent.in.h (includes): Guarantee ino_t.
34862         Reported by Ralf Wildenhues.
34863
34864 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34865
34866         linkat, renameat: avoid bad free
34867         * lib/at-func2.c (at_func2): Fix typo.
34868         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34869
34870 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34871
34872         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34873         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34874         to avoid failure of symlink test later.
34875
34876 2010-01-06  Eric Blake  <ebb9@byu.net>
34877
34878         stdio, unistd: guarantee ssize_t
34879         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34880         2008 are exposed when needed.
34881         * lib/stdio.in.h (includes): Likewise.
34882         Reported by Ralf Wildenhues.
34883
34884 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34885
34886         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34887         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34888         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34889
34890 2010-01-06  Jim Meyering  <meyering@redhat.com>
34891
34892         readtokens: this module *does* require xalloc.h
34893         It uses only functions that were omitted by the old syntax-check rule.
34894         * lib/readtokens.c: Include "xalloc.h" once again.
34895         * modules/readtokens (Depends-on): Add xalloc.
34896         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34897
34898 2010-01-05  Eric Blake  <ebb9@byu.net>
34899
34900         maint: support 'make announcement' from a VPATH build
34901         * top/maint.mk (announcement): Look for correct NEWS file.
34902
34903 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34904
34905         utimens (fdutimens): ignore a negative FD, per contract
34906         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34907         when we have a valid file descriptor.  Otherwise, using a brand
34908         new glibc (with just-patched futimens that now fails with EBADF)
34909         would cause this function to fail with ENOSYS.
34910         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34911         See also http://bugzilla.redhat.com/552320.
34912
34913 2010-01-05  Eric Blake  <ebb9@byu.net>
34914
34915         strcase: document what it provides
34916         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34917         gnulib module.
34918         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34919         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34920
34921 2010-01-05  Jim Meyering  <meyering@redhat.com>
34922
34923         maint: remove useless inclusions of "xalloc.h"
34924         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34925         * lib/readtokens.c: Likewise.
34926         * lib/same.c: Likewise.
34927         * modules/getloadavg (Depends-on): Remove xalloc.
34928         * modules/readtokens: Likewise.
34929         * modules/same: Likewise.
34930
34931         maint.mk: include 4 more function names in alloca.h-checking regexp
34932         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34933         regexp.  Before, we would give a false-positive (saying alloca.h
34934         is included unnecessarily) when the only uses involved omitted symbols.
34935
34936         xalloc.h: use consistent formatting
34937         * lib/xalloc.h: Move declarations to start in the first column.
34938
34939 2010-01-05  Eric Blake  <ebb9@byu.net>
34940
34941         mkdir: avoid xalloc
34942         * lib/mkdir.c (includes): Drop unused header.
34943         Reported by John W. Eaton.
34944
34945 2010-01-04  Jim Meyering  <meyering@redhat.com>
34946
34947         nl_langinfo: avoid configure-time syntax error
34948         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34949         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34950         the empty string.  Don't let that provoke a shell syntax error.
34951
34952         regcomp, regexec, fnmatch: avoid array bounds read error
34953         * lib/regcomp.c (build_equiv_class): From glibc:
34954         Use only the low 24 bits of a findidx return value as an index
34955         into the weights array.  Patch by Ulrich Drepper:
34956         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34957         * lib/regexec.c (check_node_accept_bytes): Likewise.
34958         * lib/fnmatch_loop.c (FCT): Likewise.
34959
34960         regcomp: skip collseq lookup when there are no rules
34961         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34962         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34963
34964         regcomp: recognize ill-formed { } expressions
34965         * lib/regcomp.c (parse_dup_op): From glibc:
34966         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34967
34968         regcomp: fix typo in comment
34969         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34970         s/satisfy/satisfies/.
34971
34972         regcomp: sync from glibc: remove dead store
34973         * lib/regcomp.c (duplicate_node_closure): Remove useless
34974         search_duplicated_node call and dead store.
34975
34976         regcomp: sync from glibc; always use nl_langinfo
34977         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34978         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34979         * modules/regex (Depends-on): Add nl_langinfo.
34980
34981 2010-01-04  Eric Blake  <ebb9@byu.net>
34982
34983         fdopendir: fix configure test
34984         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34985
34986 2010-01-01  Bruno Haible  <bruno@clisp.org>
34987
34988         wchar: Remove unused configure check.
34989         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34990
34991 2010-01-01  Eric Blake  <ebb9@byu.net>
34992
34993         headers: make check of system header explicit
34994         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34995         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34996         ourselves.
34997         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34998         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34999         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
35000         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
35001         internals.
35002         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
35003         missing.
35004         Suggested by Bruno Haible.
35005
35006 2010-01-01  Jim Meyering  <meyering@redhat.com>
35007
35008         ChangeLog: tweak to eliminate unnecessary copyright line
35009         * ChangeLog: Remove a copyright line that was mistakenly updated
35010         by today's update-copyright run.  Reported by Eric Blake.
35011
35012         test-update-copyright: don't let envvar setting cause test failure
35013         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35014
35015 2010-01-01  Bruno Haible  <bruno@clisp.org>
35016
35017         localename: Avoid gcc warning.
35018         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
35019         function if it is not used.
35020
35021 2010-01-01  Jim Meyering  <meyering@redhat.com>
35022
35023         update nearly all FSF copyright year lists to include 2010
35024         Use the same procedure as for 2009, outlined in
35025         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
35026
35027         version-etc: set COPYRIGHT_YEAR to 2010
35028         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
35029
35030 2009-12-31  Eric Blake  <ebb9@byu.net>
35031
35032         doc: correct availability of cygwin 1.5.x getopt
35033         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
35034         variables.
35035         * doc/posix-functions/opterr.texi (opterr): Likewise.
35036         * doc/posix-functions/optind.texi (optind): Likewise.
35037         * doc/posix-functions/optopt.texi (optopt): Likewise.
35038         * doc/posix-functions/tzname.texi (tzname): Likewise.
35039
35040         openat: update maintainer
35041         * modules/openat (Maintainer): Add myself.
35042
35043         utimens: avoid shadowing warning
35044         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
35045         buffers into one, to avoid shadowing, as well as avoiding a
35046         redundant stat.
35047         Reported by Jim Meyering.
35048
35049         test-dup2: avoid compiler warning
35050         * tests/test-dup2.c (is_inheritable): Only define if used.
35051
35052 2010-01-01  Bruno Haible  <bruno@clisp.org>
35053
35054         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
35055         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
35056         defined, use wctomb instead of wcrtomb.
35057
35058 2010-01-01  Bruno Haible  <bruno@clisp.org>
35059
35060         iconv: Reject native Solaris iconv.
35061         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
35062         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
35063
35064 2009-12-31  Bruno Haible  <bruno@clisp.org>
35065
35066         * tests/test-signal.c (main): Remove test of 'SIG'.
35067
35068 2009-12-31  Bruno Haible  <bruno@clisp.org>
35069
35070         spawn: Fix incomplete fix.
35071         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35072         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35073         warnings for GNULIB_POSIXCHECK again.
35074         Reported by Eric Blake.
35075
35076 2009-12-31  Bruno Haible  <bruno@clisp.org>
35077
35078         Avoid namespace pollution on glibc systems.
35079         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
35080         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
35081         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
35082         glibc systems.
35083
35084 2009-12-31  Bruno Haible  <bruno@clisp.org>
35085
35086         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
35087         (gl_REPLACE_WCHAR_H): Turn into a no-op.
35088         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
35089         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
35090         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
35091         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
35092         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
35093
35094 2009-12-31  Bruno Haible  <bruno@clisp.org>
35095
35096         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35097         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
35098         afterwards.
35099
35100 2009-12-31  Bruno Haible  <bruno@clisp.org>
35101
35102         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
35103         SYS_UTSNAME_H.
35104
35105 2009-12-31  Bruno Haible  <bruno@clisp.org>
35106
35107         spawn: Fix misapplied patch.
35108         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
35109         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
35110         warnings for GNULIB_POSIXCHECK.
35111
35112 2009-12-31  Bruno Haible  <bruno@clisp.org>
35113
35114         times: Update after sys_times changed.
35115         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
35116         * modules/times (Files): Add it.
35117         (configure.ac): Invoke gl_FUNC_TIMES.
35118
35119 2009-12-31  Bruno Haible  <bruno@clisp.org>
35120
35121         Use AC_C_INLINE where necessary.
35122         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
35123         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
35124         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
35125         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
35126         * m4/mbfile.m4 (gl_MBFILE): Likewise.
35127         * m4/mbiter.m4 (gl_MBITER): Likewise.
35128         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35129         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
35130         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
35131         * modules/u64 (configure.ac): Likewise.
35132
35133 2009-12-31  Bruno Haible  <bruno@clisp.org>
35134
35135         Use AC_C_INLINE instead of module 'inline' where possible.
35136         * modules/inline (Description): Clarify purpose.
35137         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
35138         * modules/count-one-bits (Depends-on): Remove inline.
35139         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
35140         * modules/openat (Depends-on): Remove inline.
35141         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
35142         instead of depending on module 'inline'.
35143         * modules/filevercmp (Depends-on, configure.ac): Likewise.
35144         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
35145         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
35146         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
35147         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
35148         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
35149         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
35150         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
35151         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
35152         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
35153         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
35154         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
35155         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
35156         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
35157         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
35158         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
35159         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
35160         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
35161         Likewise.
35162         * modules/unictype/property-ascii-hex-digit (Depends-on,
35163         configure.ac): Likewise.
35164         * modules/unictype/property-bidi-arabic-digit (Depends-on,
35165         configure.ac): Likewise.
35166         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
35167         configure.ac): Likewise.
35168         * modules/unictype/property-bidi-block-separator (Depends-on,
35169         configure.ac): Likewise.
35170         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
35171         configure.ac): Likewise.
35172         * modules/unictype/property-bidi-common-separator (Depends-on,
35173         configure.ac): Likewise.
35174         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
35175         Likewise.
35176         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
35177         configure.ac): Likewise.
35178         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
35179         configure.ac): Likewise.
35180         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
35181         configure.ac): Likewise.
35182         * modules/unictype/property-bidi-european-digit (Depends-on,
35183         configure.ac): Likewise.
35184         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
35185         configure.ac): Likewise.
35186         * modules/unictype/property-bidi-left-to-right (Depends-on,
35187         configure.ac): Likewise.
35188         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
35189         configure.ac): Likewise.
35190         * modules/unictype/property-bidi-other-neutral (Depends-on,
35191         configure.ac): Likewise.
35192         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
35193         Likewise.
35194         * modules/unictype/property-bidi-segment-separator (Depends-on,
35195         configure.ac): Likewise.
35196         * modules/unictype/property-bidi-whitespace (Depends-on,
35197         configure.ac): Likewise.
35198         * modules/unictype/property-combining (Depends-on, configure.ac):
35199         Likewise.
35200         * modules/unictype/property-composite (Depends-on, configure.ac):
35201         Likewise.
35202         * modules/unictype/property-currency-symbol (Depends-on,
35203         configure.ac): Likewise.
35204         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
35205         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
35206         Likewise.
35207         * modules/unictype/property-default-ignorable-code-point (Depends-on,
35208         configure.ac): Likewise.
35209         * modules/unictype/property-deprecated (Depends-on, configure.ac):
35210         Likewise.
35211         * modules/unictype/property-diacritic (Depends-on, configure.ac):
35212         Likewise.
35213         * modules/unictype/property-extender (Depends-on, configure.ac):
35214         Likewise.
35215         * modules/unictype/property-format-control (Depends-on, configure.ac):
35216         Likewise.
35217         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
35218         Likewise.
35219         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
35220         Likewise.
35221         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
35222         Likewise.
35223         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
35224         Likewise.
35225         * modules/unictype/property-hyphen (Depends-on, configure.ac):
35226         Likewise.
35227         * modules/unictype/property-id-continue (Depends-on, configure.ac):
35228         Likewise.
35229         * modules/unictype/property-id-start (Depends-on, configure.ac):
35230         Likewise.
35231         * modules/unictype/property-ideographic (Depends-on, configure.ac):
35232         Likewise.
35233         * modules/unictype/property-ids-binary-operator (Depends-on,
35234         configure.ac): Likewise.
35235         * modules/unictype/property-ids-trinary-operator (Depends-on,
35236         configure.ac): Likewise.
35237         * modules/unictype/property-ignorable-control (Depends-on,
35238         configure.ac): Likewise.
35239         * modules/unictype/property-iso-control (Depends-on, configure.ac):
35240         Likewise.
35241         * modules/unictype/property-join-control (Depends-on, configure.ac):
35242         Likewise.
35243         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
35244         Likewise.
35245         * modules/unictype/property-line-separator (Depends-on, configure.ac):
35246         Likewise.
35247         * modules/unictype/property-logical-order-exception (Depends-on,
35248         configure.ac): Likewise.
35249         * modules/unictype/property-lowercase (Depends-on, configure.ac):
35250         Likewise.
35251         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
35252         * modules/unictype/property-non-break (Depends-on, configure.ac):
35253         Likewise.
35254         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
35255         Likewise.
35256         * modules/unictype/property-numeric (Depends-on, configure.ac):
35257         Likewise.
35258         * modules/unictype/property-other-alphabetic (Depends-on,
35259         configure.ac): Likewise.
35260         * modules/unictype/property-other-default-ignorable-code-point
35261         (Depends-on, configure.ac): Likewise.
35262         * modules/unictype/property-other-grapheme-extend (Depends-on,
35263         configure.ac): Likewise.
35264         * modules/unictype/property-other-id-continue (Depends-on,
35265         configure.ac): Likewise.
35266         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
35267         Likewise.
35268         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
35269         Likewise.
35270         * modules/unictype/property-other-math (Depends-on, configure.ac):
35271         Likewise.
35272         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
35273         Likewise.
35274         * modules/unictype/property-paired-punctuation (Depends-on,
35275         configure.ac): Likewise.
35276         * modules/unictype/property-paragraph-separator (Depends-on,
35277         configure.ac): Likewise.
35278         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
35279         Likewise.
35280         * modules/unictype/property-pattern-white-space (Depends-on,
35281         configure.ac): Likewise.
35282         * modules/unictype/property-private-use (Depends-on, configure.ac):
35283         Likewise.
35284         * modules/unictype/property-punctuation (Depends-on, configure.ac):
35285         Likewise.
35286         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
35287         Likewise.
35288         * modules/unictype/property-radical (Depends-on, configure.ac):
35289         Likewise.
35290         * modules/unictype/property-sentence-terminal (Depends-on,
35291         configure.ac): Likewise.
35292         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
35293         Likewise.
35294         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
35295         * modules/unictype/property-terminal-punctuation (Depends-on,
35296         configure.ac): Likewise.
35297         * modules/unictype/property-titlecase (Depends-on, configure.ac):
35298         Likewise.
35299         * modules/unictype/property-unassigned-code-value (Depends-on,
35300         configure.ac): Likewise.
35301         * modules/unictype/property-unified-ideograph (Depends-on,
35302         configure.ac): Likewise.
35303         * modules/unictype/property-uppercase (Depends-on, configure.ac):
35304         Likewise.
35305         * modules/unictype/property-variation-selector (Depends-on,
35306         configure.ac): Likewise.
35307         * modules/unictype/property-white-space (Depends-on, configure.ac):
35308         Likewise.
35309         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
35310         Likewise.
35311         * modules/unictype/property-xid-start (Depends-on, configure.ac):
35312         Likewise.
35313         * modules/unictype/property-zero-width (Depends-on, configure.ac):
35314         Likewise.
35315         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
35316         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
35317         Likewise.
35318
35319 2009-12-31  Bruno Haible  <bruno@clisp.org>
35320
35321         Remove unnecessary AC_C_INLINE invocation.
35322         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
35323         since 2009-08-21.
35324
35325 2009-12-31  Jim Meyering  <meyering@redhat.com>
35326
35327         maint.mk: don't require explicit gpg_key_ID in cfg.mk
35328         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
35329         With this change, we can all remove the gpg_key_ID = ... definition
35330         from our respective cfg.mk files.
35331
35332         maint.mk: create announcement template in ~/, not in /tmp
35333         * top/maint.mk (emit_upload_commands): Adjust.
35334         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
35335         Remove temporary file, .ci-msg.
35336
35337 2009-12-31  Eric Blake  <ebb9@byu.net>
35338
35339         link-warning: always build headers with link warnings
35340         * modules/arpa_inet (Makefile.am): Always build replacement
35341         header.
35342         * modules/ctype (Makefile.am): Likewise.
35343         * modules/dirent (Makefile.am): Likewise.
35344         * modules/inttypes (Makefile.am): Likewise.
35345         * modules/langinfo (Makefile.am): Likewise.
35346         * modules/locale (Makefile.am): Likewise.
35347         * modules/spawn (Makefile.am): Likewise.
35348         * modules/sys_file (Makefile.am): Likewise.
35349         * modules/sys_ioctl (Makefile.am): Likewise.
35350         * modules/sys_select (Makefile.am): Likewise.
35351         * modules/sys_socket (Makefile.am): Likewise.
35352         * modules/sys_times (Makefile.am): Likewise.
35353         * modules/sys_utsname (Makefile.am): Likewise.
35354         * modules/sys_wait (Makefile.am): Likewise.
35355         * modules/wchar (Makefile.am): Likewise.
35356         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
35357         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
35358         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
35359         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
35360         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
35361         Likewise.
35362         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35363         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35364         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
35365         Likewise.
35366         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
35367         Likewise.
35368         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
35369         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
35370         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
35371         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35372         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35374         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35375         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
35376         (gl_WCHAR_H_DEFAULTS): Likewise.
35377
35378 2009-12-31  Eric Blake  <ebb9@byu.net>
35379
35380         signal, spawn: use link warnings
35381         * lib/signal.in.h (sigset_t): Make unconditional.
35382         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
35383         (sigpending, sigprocmask, sigaction): Add link warnings.
35384         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
35385         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
35386         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
35387         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
35388         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
35389         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
35390         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
35391         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
35392         (posix_spawn_file_actions_destroy)
35393         (posix_spawn_file_actions_addopen)
35394         (posix_spawn_file_actions_addclose)
35395         (posix_spawn_file_actions_adddup2): Likewise.
35396         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
35397         * tests/test-signal.c (main): Enhance test.
35398
35399         spawn: improve wrapper support
35400         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
35401         (gl_SPAWN_H_DEFAULTS): New defaults.
35402         * modules/spawn (Makefile.am): Substitute them.
35403         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
35404         Only declare if missing or broken.
35405
35406         sys_times, sys_utsname: use include_next
35407         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
35408         header.
35409         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
35410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
35411         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
35412         * modules/sys_times (Depends-on): Add include_next.
35413         (Makefile.am): Substitute additional values.
35414         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35415         * lib/sys_times.in.h (includes): Include native header, if
35416         available.
35417         * lib/sys_utsname.in.h (includes): Likewise.
35418         * tests/test-sys_times.c (main): Enhance test.
35419
35420         fdutimensat: revert prior patch
35421         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
35422         utimens.h.
35423         Reported by Bruno Haible.
35424
35425 2009-12-30  Eric Blake  <ebb9@byu.net>
35426
35427         sys_wait: drop link-warning dependency
35428         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
35429         link-warning efforts.
35430         * lib/sys_wait.in.h: Likewise.
35431
35432         fdutimensat: remove bogus dependency
35433         * modules/fdutimensat (Depends-on): Drop inline.
35434
35435         unistd: fix typo
35436         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
35437
35438 2009-12-30  Bruno Haible  <bruno@clisp.org>
35439
35440         Fix compilation error with Solaris cc.
35441         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
35442         * lib/unicase/u16-is-invariant.c: Likewise.
35443         * lib/unicase/u32-is-invariant.c: Likewise.
35444         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35445
35446 2009-12-30  Bruno Haible  <bruno@clisp.org>
35447
35448         Fix test crash.
35449         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
35450         locales.
35451         Reported by Simon Josefsson <simon@josefsson.org>.
35452
35453 2009-12-30  Bruno Haible  <bruno@clisp.org>
35454
35455         Fix compilation error on most platforms.
35456         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
35457         Reported by Simon Josefsson <simon@josefsson.org>
35458         and Nelson H. F. Beebe <beebe@math.utah.edu>.
35459
35460 2009-12-30  Eric Blake  <ebb9@byu.net>
35461
35462         futimens, utimensat: work around ntfs-3g bug
35463         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
35464         a ctime bug is present, and expand workaround to cover ntfs-3g.
35465         * lib/utimens.c (fdutimens, lutimens): Likewise.
35466         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
35467         (validate_timespec): Adjust return value.
35468         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
35469         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35470         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
35471
35472 2009-12-29  Eric Blake  <ebb9@byu.net>
35473
35474         link-warning: make usage consistent
35475         * modules/ctype (Depends-on): Add link-warning.
35476         (Makefile.am): Update rules accordingly.
35477         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35478         * modules/locale (Depends-on, Makefile.am): Likewise.
35479         * modules/sys_file (Makefile.am): Likewise.
35480         * modules/getopt-posix (Makefile.am): Delete unused link warning
35481         efforts.
35482         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
35483         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
35484         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
35485         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
35486
35487         stdio: remove unused variables
35488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
35489         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
35490         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
35491
35492         tests: test more substitute headers
35493         * modules/ctype-tests: New file.
35494         * modules/dirent-tests: Likewise.
35495         * modules/spawn-tests: Likewise.
35496         * modules/sys_file-tests: Likewise.
35497         * modules/sys_ioctl-tests: Likewise.
35498         * modules/sys_wait-tests: Likewise.
35499         * tests/test-ctype.c: Likewise.
35500         * tests/test-dirent.c: Likewise.
35501         * tests/test-spawn.c: Likewise.
35502         * tests/test-sys_file.c: Likewise.
35503         * tests/test-sys_ioctl.c: Likewise.
35504         * tests/test-sys_wait.c: Likewise.
35505         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
35506         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
35507         whether or not flock is in use.
35508
35509         tests: remove License section from module
35510         * modules/arpa_inet-tests: Remove unneeded section.
35511         * modules/byteswap-tests: Likewise.
35512         * modules/ceilf-tests: Likewise.
35513         * modules/ceill-tests: Likewise.
35514         * modules/crypto/des-tests: Likewise.
35515         * modules/crypto/gc-arcfour-tests: Likewise.
35516         * modules/crypto/gc-arctwo-tests: Likewise.
35517         * modules/crypto/gc-des-tests: Likewise.
35518         * modules/crypto/gc-hmac-md5-tests: Likewise.
35519         * modules/crypto/gc-hmac-sha1-tests: Likewise.
35520         * modules/crypto/gc-md2-tests: Likewise.
35521         * modules/crypto/gc-md4-tests: Likewise.
35522         * modules/crypto/gc-md5-tests: Likewise.
35523         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
35524         * modules/crypto/gc-rijndael-tests: Likewise.
35525         * modules/crypto/gc-sha1-tests: Likewise.
35526         * modules/crypto/gc-tests: Likewise.
35527         * modules/crypto/md2-tests: Likewise.
35528         * modules/crypto/md4-tests: Likewise.
35529         * modules/fcntl-h-tests: Likewise.
35530         * modules/floorf-tests: Likewise.
35531         * modules/floorl-tests: Likewise.
35532         * modules/frexp-nolibm-tests: Likewise.
35533         * modules/frexp-tests: Likewise.
35534         * modules/frexpl-nolibm-tests: Likewise.
35535         * modules/frexpl-tests: Likewise.
35536         * modules/getaddrinfo-tests: Likewise.
35537         * modules/inttypes-tests: Likewise.
35538         * modules/isfinite-tests: Likewise.
35539         * modules/isinf-tests: Likewise.
35540         * modules/ldexpl-tests: Likewise.
35541         * modules/locale-tests: Likewise.
35542         * modules/math-tests: Likewise.
35543         * modules/netdb-tests: Likewise.
35544         * modules/netinet_in-tests: Likewise.
35545         * modules/printf-frexp-tests: Likewise.
35546         * modules/printf-frexpl-tests: Likewise.
35547         * modules/priv-set-tests: Likewise.
35548         * modules/random_r-tests: Likewise.
35549         * modules/round-tests: Likewise.
35550         * modules/roundf-tests: Likewise.
35551         * modules/roundl-tests: Likewise.
35552         * modules/search-tests: Likewise.
35553         * modules/select-tests: Likewise.
35554         * modules/signal-tests: Likewise.
35555         * modules/stdbool-tests: Likewise.
35556         * modules/stddef-tests: Likewise.
35557         * modules/stdint-tests: Likewise.
35558         * modules/stdio-tests: Likewise.
35559         * modules/stdlib-tests: Likewise.
35560         * modules/string-tests: Likewise.
35561         * modules/strings-tests: Likewise.
35562         * modules/sys_select-tests: Likewise.
35563         * modules/sys_socket-tests: Likewise.
35564         * modules/sys_stat-tests: Likewise.
35565         * modules/sys_time-tests: Likewise.
35566         * modules/sys_utsname-tests: Likewise.
35567         * modules/sysexits-tests: Likewise.
35568         * modules/time-tests: Likewise.
35569         * modules/trunc-tests: Likewise.
35570         * modules/truncf-tests: Likewise.
35571         * modules/truncl-tests: Likewise.
35572         * modules/tsearch-tests: Likewise.
35573         * modules/unistd-tests: Likewise.
35574         * modules/wchar-tests: Likewise.
35575         * modules/wctype-tests: Likewise.
35576
35577         tests: fix license on several tests
35578         * tests/test-des.c: Update to GPLv3+.
35579         * tests/test-flock.c: Likewise.
35580         * tests/test-fsync.c: Likewise.
35581         * tests/test-futimens.h: Likewise.
35582         * tests/test-gc-arcfour.c: Likewise.
35583         * tests/test-gc-arctwo.c: Likewise.
35584         * tests/test-gc-des.c: Likewise.
35585         * tests/test-gc-hmac-md5.c: Likewise.
35586         * tests/test-gc-hmac-sha1.c: Likewise.
35587         * tests/test-gc-md2.c: Likewise.
35588         * tests/test-gc-md4.c: Likewise.
35589         * tests/test-gc-md5.c: Likewise.
35590         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35591         * tests/test-gc-rijndael.c: Likewise.
35592         * tests/test-gc-sha1.c: Likewise.
35593         * tests/test-gc.c: Likewise.
35594         * tests/test-getcwd.c: Likewise.
35595         * tests/test-link.c: Likewise.
35596         * tests/test-link.h: Likewise.
35597         * tests/test-lutimens.h: Likewise.
35598         * tests/test-md2.c: Likewise.
35599         * tests/test-md4.c: Likewise.
35600         * tests/test-mkdir.h: Likewise.
35601         * tests/test-rename.c: Likewise.
35602         * tests/test-rename.h: Likewise.
35603         * tests/test-safe-alloc.c: Likewise.
35604         * tests/test-utimens-common.h: Likewise.
35605         * tests/test-utimens.h: Likewise.
35606
35607         maint: sync license texts
35608         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
35609         * doc/gpl-3.0.texi: Revert copyright year update.
35610         * doc/lgpl-3.0.texi: Likewise.
35611
35612 2009-12-29  Jim Meyering  <meyering@redhat.com>
35613
35614         update nearly all FSF copyright year lists to include 2009
35615         The files named by the following are exempted:
35616             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
35617               test -f "$dst" && { echo "$dst"; continue; }
35618               test -d "$dst" || continue
35619               echo "$dst"/$(basename "$src")
35620             done > exempt
35621             git ls-files tests/unictype >> exempt
35622         In the remaining files, convert to all-interval notation if
35623         - there is already at least one year interval like 2000-2003
35624         - the file is maintained by me
35625         - the file is in lib/uni*/, where that style already prevails
35626         Otherwise, use update-copyright's default.
35627
35628 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35629         and Eric Blake  <ebb9@byu.net>
35630
35631         tests: don't require debug system() to pass
35632         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
35633         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35634         * tests/test-unlink.h (test_unlink_func): Likewise.
35635         * tests/test-fstatat.c (main): ...into callers.
35636         * tests/test-lstat.c (main): Likewise.
35637         * tests/test-rmdir.c (main): Likewise.
35638         * tests/test-unlink.c (main): Likewise.
35639         * tests/test-unlinkat.c (main): Likewise.
35640         * tests/test-areadlink-with-size.c (main): Don't require a
35641         debug-only system call to pass, aiding cross-testing to mingw.
35642         * tests/test-areadlink.c (main): Likewise.
35643         * tests/test-areadlinkat-with-size.c (main): Likewise.
35644         * tests/test-areadlinkat.c (main): Likewise.
35645         * tests/test-canonicalize-lgpl.c (main): Likewise.
35646         * tests/test-canonicalize.c (main): Likewise.
35647         * tests/test-chown.c (main): Likewise.
35648         * tests/test-fchownat.c (main): Likewise.
35649         * tests/test-lchown.c (main): Likewise.
35650         * tests/test-fdutimensat.c (main): Likewise.
35651         * tests/test-futimens.c (main): Likewise.
35652         * tests/test-link.c (main): Likewise.
35653         * tests/test-linkat.c (main): Likewise.
35654         * tests/test-mkdir.c (main): Likewise.
35655         * tests/test-mkdirat.c (main): Likewise.
35656         * tests/test-mkfifo.c (main): Likewise.
35657         * tests/test-mkfifoat.c (main): Likewise.
35658         * tests/test-mknod.c (main): Likewise.
35659         * tests/test-readlink.c (main): Likewise.
35660         * tests/test-remove.c (main): Likewise.
35661         * tests/test-rename.c (main): Likewise.
35662         * tests/test-renameat.c (main): Likewise.
35663         * tests/test-symlink.c (main): Likewise.
35664         * tests/test-symlinkat.c (main): Likewise.
35665         * tests/test-utimens.c (main): Likewise.
35666         * tests/test-utimensat.c (main): Likewise.
35667
35668 2009-12-29  Simon Josefsson  <simon@josefsson.org>
35669
35670         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
35671         on $(UNUSED_PARAMETER_H) to avoid build failure.
35672
35673 2009-12-28  Jim Meyering  <meyering@redhat.com>
35674
35675         update-copyright: you may specify a max. line length other than 72
35676         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
35677
35678         maint: use consistent FSF copyright line syntax
35679         * lib/posixtm.c: Add missing comma in FSF copyright line.
35680         * lib/posixtm.h: Likewise.
35681         * lib/getugroups.c: Add missing ", Inc.".
35682
35683         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
35684         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
35685         FSF copyright line.  Remove trailing blanks.
35686
35687 2009-12-28  Eric Blake  <ebb9@byu.net>
35688
35689         test-dup2: reduce dependencies
35690         * modules/cloexec (Configure.ac): Set witness.
35691         * modules/dup2-tests (Depends-on): Drop cloexec.
35692         * tests/test-dup2.c (main): Skip portion of test if cloexec module
35693         not present.
35694         Suggested by Bruno Haible.
35695
35696 2009-12-26  Bruno Haible  <bruno@clisp.org>
35697
35698         Remove an unneeded dependency.
35699         * modules/fseterr (Depends-on): Remove dup2.
35700
35701 2009-12-26  Eric Blake  <ebb9@byu.net>
35702
35703         tests: use macros.h in more places
35704         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
35705         (ASSERT_STREAM): Provide default of stderr.
35706         * tests/test-dirent-safer.c: Include macros.h, using alternate
35707         stream for assertions.
35708         * tests/test-dup-safer.c: Likewise.
35709         * tests/test-freopen-safer.c: Likewise.
35710         * tests/test-getopt.c: Likewise.
35711         * tests/test-openat-safer.c: Likewise.
35712         * tests/test-pipe.c: Likewise.
35713         * tests/test-popen-safer.c: Likewise.
35714         * modules/dirent-safer-tests (Files): Include macros.h.
35715         * modules/unistd-safer-tests (Files): Likewise.
35716         * modules/freopen-safer-tests (Files): Likewise.
35717         * modules/getopt-posix-tests (Files): Likewise.
35718         * modules/openat-safer-tests (Files): Likewise.
35719         * modules/pipe-tests (Files): Likewise.
35720
35721 2009-12-26  Bruno Haible  <bruno@clisp.org>
35722
35723         javacomp: Portability fix.
35724         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
35725         that it also works on Solaris.
35726
35727 2009-12-26  Bruno Haible  <bruno@clisp.org>
35728
35729         localename: Fix storage allocation of gl_locale_name_thread's result.
35730         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
35731         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
35732         all platforms that have 'uselocale'.
35733         (gl_locale_name_thread_unsafe): New function, extracted from
35734         gl_locale_name_thread.
35735         (gl_locale_name_thread): Call struniq on all platforms that have
35736         'uselocale'.
35737         * tests/test-localename.c (test_locale_name_thread): Check that the
35738         resulting strings are permanently allocated.
35739         * modules/localename-tests (Depends-on): Add strdup.
35740
35741 2009-12-26  Bruno Haible  <bruno@clisp.org>
35742
35743         * tests/test-localename.c (categories): Fill in the strings.
35744
35745 2009-12-26  Jim Meyering  <meyering@redhat.com>
35746
35747         isdir: complete the removal of m4/isdir.m4
35748         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
35749
35750         isdir: clean up, since at least grep still uses it
35751         * lib/isdir.c: Include "isdir.h".
35752         (S_ISDIR): Remove now-unneeded definition.
35753         * modules/isdir (Files): Add lib/isdir.h.
35754         * lib/isdir.h: New file, with declaration.
35755         * m4/isdir.m4: Remove file -- unneeded.
35756
35757 2009-12-25  Bruno Haible  <bruno@clisp.org>
35758
35759         selinux-h: Make generated .h files standalone.
35760         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
35761         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
35762         * lib/se-selinux.in.h: Likewise.
35763         * modules/selinux-h (Depends-on): Add unused-parameter.
35764         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
35765         selinux/selinux.h and selinux/context.h.
35766         Suggested by Eric Blake.
35767
35768 2009-12-25  Bruno Haible  <bruno@clisp.org>
35769
35770         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
35771         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
35772         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
35773         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
35774         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
35775
35776 2009-12-24  Bruno Haible  <bruno@clisp.org>
35777
35778         openat: Fix warning.
35779         * lib/openat-proc.c: Include <unistd.h>.
35780
35781 2009-12-24  Bruno Haible  <bruno@clisp.org>
35782
35783         New module 'unused-parameter'.
35784         * build-aux/unused-parameter.h: New file, extracted from earlier
35785         gnulib-common.m4.
35786         * modules/unused-parameter: New file.
35787         * lib/unistr.h: Include unused-parameter.h.
35788         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
35789         _GL_UNUSED.
35790         * modules/unistr/base (Depends-on): Add unused-parameter.
35791
35792 2009-12-24  Bruno Haible  <bruno@clisp.org>
35793
35794         Add missing dependencies to 'extensions' module.
35795         * m4/extensions.m4: Add comment.
35796         * modules/accept4 (Depends-on): Add extensions.
35797         * modules/dup3 (Depends-on): Likewise.
35798         * modules/fcntl (Depends-on): Likewise.
35799         * modules/futimens (Depends-on): Likewise.
35800         * modules/mknod (Depends-on): Likewise.
35801         * modules/pipe2 (Depends-on): Likewise.
35802         * modules/stat-time (Depends-on): Likewise.
35803         * modules/strcasestr-simple (Depends-on): Likewise.
35804         * modules/strsignal (Depends-on): Likewise.
35805         * modules/utimensat (Depends-on): Likewise.
35806         * modules/localcharset (Depends-on): Likewise. Needed because of
35807         gl_FCNTL_O_FLAGS.
35808         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35809         AC_TYPE_MBSTATE_T.
35810         * modules/wcsnrtombs (Depends-on): Likewise.
35811         * modules/wcsrtombs (Depends-on): Likewise.
35812
35813 2009-12-24  Bruno Haible  <bruno@clisp.org>
35814
35815         binary-io: Avoid gcc warning due to SET_BINARY.
35816         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35817         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35818
35819 2009-12-24  Bruno Haible  <bruno@clisp.org>
35820
35821         Avoid future namespace pollution on glibc systems.
35822         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35823         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35824         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35825         glibc systems.
35826
35827 2009-12-24  Bruno Haible  <bruno@clisp.org>
35828
35829         Refactor common macros used in tests.
35830         * tests/macros.h: New file.
35831         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35832         and/or <stdlib.h>, if appropriate.
35833         (ASSERT, SIZEOF): Remove macros.
35834         * tests/test-areadlink-with-size.c: Likewise.
35835         * tests/test-areadlinkat.c: Likewise.
35836         * tests/test-areadlinkat-with-size.c: Likewise.
35837         * tests/test-argmatch.c: Likewise.
35838         * tests/test-argv-iter.c: Likewise.
35839         * tests/test-array-mergesort.c: Likewise.
35840         * tests/test-array_list.c: Likewise.
35841         * tests/test-array_oset.c: Likewise.
35842         * tests/test-avltree_list.c: Likewise.
35843         * tests/test-avltree_oset.c: Likewise.
35844         * tests/test-avltreehash_list.c: Likewise.
35845         * tests/test-base64.c: Likewise.
35846         * tests/test-binary-io.c: Likewise.
35847         * tests/test-bitrotate.c: Likewise.
35848         * tests/test-btowc.c: Likewise.
35849         * tests/test-byteswap.c: Likewise.
35850         * tests/test-c-ctype.c: Likewise.
35851         * tests/test-c-stack.c: Likewise.
35852         * tests/test-c-strcasecmp.c: Likewise.
35853         * tests/test-c-strcasestr.c: Likewise.
35854         * tests/test-c-strncasecmp.c: Likewise.
35855         * tests/test-c-strstr.c: Likewise.
35856         * tests/test-canonicalize-lgpl.c: Likewise.
35857         * tests/test-canonicalize.c: Likewise.
35858         * tests/test-carray_list.c: Likewise.
35859         * tests/test-ceilf1.c: Likewise.
35860         * tests/test-ceilf2.c: Likewise.
35861         * tests/test-ceill.c: Likewise.
35862         * tests/test-chown.c: Likewise.
35863         * tests/test-cloexec.c: Likewise.
35864         * tests/test-copy-acl.c: Likewise.
35865         * tests/test-copy-file.c: Likewise.
35866         * tests/test-count-one-bits.c: Likewise.
35867         * tests/test-dprintf-posix.c: Likewise.
35868         * tests/test-dup2.c: Likewise.
35869         * tests/test-dup3.c: Likewise.
35870         * tests/test-duplocale.c: Likewise.
35871         * tests/test-fbufmode.c: Likewise.
35872         * tests/test-fchdir.c: Likewise.
35873         * tests/test-fchownat.c: Likewise.
35874         * tests/test-fcntl-safer.c: Likewise.
35875         * tests/test-fcntl.c: Likewise.
35876         * tests/test-fdopendir.c: Likewise.
35877         * tests/test-fdutimensat.c: Likewise.
35878         * tests/test-fflush2.c: Likewise.
35879         * tests/test-file-has-acl.c: Likewise.
35880         * tests/test-filevercmp.c: Likewise.
35881         * tests/test-flock.c: Likewise.
35882         * tests/test-floorf1.c: Likewise.
35883         * tests/test-floorf2.c: Likewise.
35884         * tests/test-floorl.c: Likewise.
35885         * tests/test-fnmatch.c: Likewise.
35886         * tests/test-fopen.h: Likewise.
35887         * tests/test-fpending.c: Likewise.
35888         * tests/test-fprintf-posix.c: Likewise.
35889         * tests/test-fpurge.c: Likewise.
35890         * tests/test-freadable.c: Likewise.
35891         * tests/test-freadahead.c: Likewise.
35892         * tests/test-freading.c: Likewise.
35893         * tests/test-freadptr.c: Likewise.
35894         * tests/test-freadptr2.c: Likewise.
35895         * tests/test-freadseek.c: Likewise.
35896         * tests/test-freopen.c: Likewise.
35897         * tests/test-frexp.c: Likewise.
35898         * tests/test-frexpl.c: Likewise.
35899         * tests/test-fseek.c: Likewise.
35900         * tests/test-fseeko.c: Likewise.
35901         * tests/test-fstatat.c: Likewise.
35902         * tests/test-fstrcmp.c: Likewise.
35903         * tests/test-fsync.c: Likewise.
35904         * tests/test-ftell.c: Likewise.
35905         * tests/test-ftello.c: Likewise.
35906         * tests/test-func.c: Likewise.
35907         * tests/test-futimens.c: Likewise.
35908         * tests/test-fwritable.c: Likewise.
35909         * tests/test-fwriting.c: Likewise.
35910         * tests/test-getcwd.c: Likewise.
35911         * tests/test-getdate.c: Likewise.
35912         * tests/test-getdelim.c: Likewise.
35913         * tests/test-getdtablesize.c: Likewise.
35914         * tests/test-getgroups.c: Likewise.
35915         * tests/test-getline.c: Likewise.
35916         * tests/test-getndelim2.c: Likewise.
35917         * tests/test-glob.c: Likewise.
35918         * tests/test-hash.c: Likewise.
35919         * tests/test-i-ring.c: Likewise.
35920         * tests/test-iconv-utf.c: Likewise.
35921         * tests/test-iconv.c: Likewise.
35922         * tests/test-idpriv-drop.c: Likewise.
35923         * tests/test-idpriv-droptemp.c: Likewise.
35924         * tests/test-inet_ntop.c: Likewise.
35925         * tests/test-inet_pton.c: Likewise.
35926         * tests/test-isblank.c: Likewise.
35927         * tests/test-isfinite.c: Likewise.
35928         * tests/test-isinf.c: Likewise.
35929         * tests/test-isnan.c: Likewise.
35930         * tests/test-isnand.h: Likewise.
35931         * tests/test-isnanf.h: Likewise.
35932         * tests/test-isnanl.h: Likewise.
35933         * tests/test-lchown.c: Likewise.
35934         * tests/test-ldexpl.c: Likewise.
35935         * tests/test-link.c: Likewise.
35936         * tests/test-linkat.c: Likewise.
35937         * tests/test-linked_list.c: Likewise.
35938         * tests/test-linkedhash_list.c: Likewise.
35939         * tests/test-localename.c: Likewise.
35940         * tests/test-lseek.c: Likewise.
35941         * tests/test-lstat.c: Likewise.
35942         * tests/test-mbmemcasecmp.c: Likewise.
35943         * tests/test-mbmemcasecoll.c: Likewise.
35944         * tests/test-mbrtowc.c: Likewise.
35945         * tests/test-mbscasecmp.c: Likewise.
35946         * tests/test-mbscasestr1.c: Likewise.
35947         * tests/test-mbscasestr2.c: Likewise.
35948         * tests/test-mbscasestr3.c: Likewise.
35949         * tests/test-mbscasestr4.c: Likewise.
35950         * tests/test-mbschr.c: Likewise.
35951         * tests/test-mbscspn.c: Likewise.
35952         * tests/test-mbsinit.c: Likewise.
35953         * tests/test-mbsncasecmp.c: Likewise.
35954         * tests/test-mbsnrtowcs.c: Likewise.
35955         * tests/test-mbspbrk.c: Likewise.
35956         * tests/test-mbspcasecmp.c: Likewise.
35957         * tests/test-mbsrchr.c: Likewise.
35958         * tests/test-mbsrtowcs.c: Likewise.
35959         * tests/test-mbsspn.c: Likewise.
35960         * tests/test-mbsstr1.c: Likewise.
35961         * tests/test-mbsstr2.c: Likewise.
35962         * tests/test-mbsstr3.c: Likewise.
35963         * tests/test-memchr.c: Likewise.
35964         * tests/test-memchr2.c: Likewise.
35965         * tests/test-memcmp.c: Likewise.
35966         * tests/test-memmem.c: Likewise.
35967         * tests/test-memrchr.c: Likewise.
35968         * tests/test-mkdir.c: Likewise.
35969         * tests/test-mkdirat.c: Likewise.
35970         * tests/test-mkfifo.c: Likewise.
35971         * tests/test-mkfifoat.c: Likewise.
35972         * tests/test-mknod.c: Likewise.
35973         * tests/test-nanosleep.c: Likewise.
35974         * tests/test-nl_langinfo.c: Likewise.
35975         * tests/test-obstack-printf.c: Likewise.
35976         * tests/test-open.c: Likewise.
35977         * tests/test-openat.c: Likewise.
35978         * tests/test-pipe-filter-gi1.c: Likewise.
35979         * tests/test-pipe-filter-gi2-main.c: Likewise.
35980         * tests/test-pipe-filter-ii1.c: Likewise.
35981         * tests/test-pipe-filter-ii2-main.c: Likewise.
35982         * tests/test-pipe2.c: Likewise.
35983         * tests/test-popen.h: Likewise.
35984         * tests/test-posixtm.c: Likewise.
35985         * tests/test-pread.c: Likewise.
35986         * tests/test-printf-frexp.c: Likewise.
35987         * tests/test-printf-frexpl.c: Likewise.
35988         * tests/test-printf-posix.c: Likewise.
35989         * tests/test-priv-set.c: Likewise.
35990         * tests/test-quotearg.c: Likewise.
35991         * tests/test-random_r.c: Likewise.
35992         * tests/test-rawmemchr.c: Likewise.
35993         * tests/test-rbtree_list.c: Likewise.
35994         * tests/test-rbtree_oset.c: Likewise.
35995         * tests/test-rbtreehash_list.c: Likewise.
35996         * tests/test-readlink.c: Likewise.
35997         * tests/test-remove.c: Likewise.
35998         * tests/test-rename.c: Likewise.
35999         * tests/test-renameat.c: Likewise.
36000         * tests/test-rmdir.c: Likewise.
36001         * tests/test-round1.c: Likewise.
36002         * tests/test-roundf1.c: Likewise.
36003         * tests/test-roundl.c: Likewise.
36004         * tests/test-safe-alloc.c: Likewise.
36005         * tests/test-sameacls.c: Likewise.
36006         * tests/test-set-mode-acl.c: Likewise.
36007         * tests/test-setenv.c: Likewise.
36008         * tests/test-sigaction.c: Likewise.
36009         * tests/test-signbit.c: Likewise.
36010         * tests/test-sleep.c: Likewise.
36011         * tests/test-snprintf-posix.c: Likewise.
36012         * tests/test-snprintf.c: Likewise.
36013         * tests/test-sprintf-posix.c: Likewise.
36014         * tests/test-stat-time.c: Likewise.
36015         * tests/test-stat.c: Likewise.
36016         * tests/test-strcasestr.c: Likewise.
36017         * tests/test-strchrnul.c: Likewise.
36018         * tests/test-strerror.c: Likewise.
36019         * tests/test-striconv.c: Likewise.
36020         * tests/test-striconveh.c: Likewise.
36021         * tests/test-striconveha.c: Likewise.
36022         * tests/test-strsignal.c: Likewise.
36023         * tests/test-strstr.c: Likewise.
36024         * tests/test-strtod.c: Likewise.
36025         * tests/test-strverscmp.c: Likewise.
36026         * tests/test-symlink.c: Likewise.
36027         * tests/test-symlinkat.c: Likewise.
36028         * tests/test-trunc1.c: Likewise.
36029         * tests/test-trunc2.c: Likewise.
36030         * tests/test-truncf1.c: Likewise.
36031         * tests/test-truncf2.c: Likewise.
36032         * tests/test-truncl.c: Likewise.
36033         * tests/test-uname.c: Likewise.
36034         * tests/test-unlink.c: Likewise.
36035         * tests/test-unlinkat.c: Likewise.
36036         * tests/test-unsetenv.c: Likewise.
36037         * tests/test-usleep.c: Likewise.
36038         * tests/test-utimens.c: Likewise.
36039         * tests/test-utimensat.c: Likewise.
36040         * tests/test-vasnprintf-posix.c: Likewise.
36041         * tests/test-vasnprintf-posix2.c: Likewise.
36042         * tests/test-vasnprintf.c: Likewise.
36043         * tests/test-vasprintf-posix.c: Likewise.
36044         * tests/test-vasprintf.c: Likewise.
36045         * tests/test-vdprintf-posix.c: Likewise.
36046         * tests/test-vfprintf-posix.c: Likewise.
36047         * tests/test-vprintf-posix.c: Likewise.
36048         * tests/test-vsnprintf-posix.c: Likewise.
36049         * tests/test-vsnprintf.c: Likewise.
36050         * tests/test-vsprintf-posix.c: Likewise.
36051         * tests/test-wcrtomb.c: Likewise.
36052         * tests/test-wcsnrtombs.c: Likewise.
36053         * tests/test-wcsrtombs.c: Likewise.
36054         * tests/test-wctype.c: Likewise.
36055         * tests/test-wcwidth.c: Likewise.
36056         * tests/test-xfprintf-posix.c: Likewise.
36057         * tests/test-xmemdup0.c: Likewise.
36058         * tests/test-xprintf-posix.c: Likewise.
36059         * tests/test-xvasprintf.c: Likewise.
36060         * tests/unicase/test-locale-language.c: Likewise.
36061         * tests/unicase/test-mapping-part1.h: Likewise.
36062         * tests/unicase/test-predicate-part1.h: Likewise.
36063         * tests/unicase/test-u8-casecmp.c: Likewise.
36064         * tests/unicase/test-u8-casecoll.c: Likewise.
36065         * tests/unicase/test-u8-casefold.c: Likewise.
36066         * tests/unicase/test-u8-is-cased.c: Likewise.
36067         * tests/unicase/test-u8-is-casefolded.c: Likewise.
36068         * tests/unicase/test-u8-is-lowercase.c: Likewise.
36069         * tests/unicase/test-u8-is-titlecase.c: Likewise.
36070         * tests/unicase/test-u8-is-uppercase.c: Likewise.
36071         * tests/unicase/test-u8-tolower.c: Likewise.
36072         * tests/unicase/test-u8-totitle.c: Likewise.
36073         * tests/unicase/test-u8-toupper.c: Likewise.
36074         * tests/unicase/test-u16-casecmp.c: Likewise.
36075         * tests/unicase/test-u16-casecoll.c: Likewise.
36076         * tests/unicase/test-u16-casefold.c: Likewise.
36077         * tests/unicase/test-u16-is-cased.c: Likewise.
36078         * tests/unicase/test-u16-is-casefolded.c: Likewise.
36079         * tests/unicase/test-u16-is-lowercase.c: Likewise.
36080         * tests/unicase/test-u16-is-titlecase.c: Likewise.
36081         * tests/unicase/test-u16-is-uppercase.c: Likewise.
36082         * tests/unicase/test-u16-tolower.c: Likewise.
36083         * tests/unicase/test-u16-totitle.c: Likewise.
36084         * tests/unicase/test-u16-toupper.c: Likewise.
36085         * tests/unicase/test-u32-casecmp.c: Likewise.
36086         * tests/unicase/test-u32-casecoll.c: Likewise.
36087         * tests/unicase/test-u32-casefold.c: Likewise.
36088         * tests/unicase/test-u32-is-cased.c: Likewise.
36089         * tests/unicase/test-u32-is-casefolded.c: Likewise.
36090         * tests/unicase/test-u32-is-lowercase.c: Likewise.
36091         * tests/unicase/test-u32-is-titlecase.c: Likewise.
36092         * tests/unicase/test-u32-is-uppercase.c: Likewise.
36093         * tests/unicase/test-u32-tolower.c: Likewise.
36094         * tests/unicase/test-u32-totitle.c: Likewise.
36095         * tests/unicase/test-u32-toupper.c: Likewise.
36096         * tests/unicase/test-ulc-casecmp.c: Likewise.
36097         * tests/unicase/test-ulc-casecoll.c: Likewise.
36098         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36099         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36100         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36101         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36102         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36103         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36104         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36105         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36106         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36107         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36108         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36109         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36110         * tests/unictype/test-bidi_byname.c: Likewise.
36111         * tests/unictype/test-bidi_name.c: Likewise.
36112         * tests/unictype/test-bidi_of.c: Likewise.
36113         * tests/unictype/test-bidi_test.c: Likewise.
36114         * tests/unictype/test-block_list.c: Likewise.
36115         * tests/unictype/test-block_of.c: Likewise.
36116         * tests/unictype/test-block_test.c: Likewise.
36117         * tests/unictype/test-categ_and.c: Likewise.
36118         * tests/unictype/test-categ_and_not.c: Likewise.
36119         * tests/unictype/test-categ_byname.c: Likewise.
36120         * tests/unictype/test-categ_name.c: Likewise.
36121         * tests/unictype/test-categ_none.c: Likewise.
36122         * tests/unictype/test-categ_of.c: Likewise.
36123         * tests/unictype/test-categ_or.c: Likewise.
36124         * tests/unictype/test-categ_test_withtable.c: Likewise.
36125         * tests/unictype/test-combining.c: Likewise.
36126         * tests/unictype/test-decdigit.c: Likewise.
36127         * tests/unictype/test-digit.c: Likewise.
36128         * tests/unictype/test-mirror.c: Likewise.
36129         * tests/unictype/test-numeric.c: Likewise.
36130         * tests/unictype/test-pr_byname.c: Likewise.
36131         * tests/unictype/test-pr_test.c: Likewise.
36132         * tests/unictype/test-predicate-part1.h: Likewise.
36133         * tests/unictype/test-scripts.c: Likewise.
36134         * tests/unictype/test-sy_c_ident.c: Likewise.
36135         * tests/unictype/test-sy_java_ident.c: Likewise.
36136         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
36137         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
36138         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
36139         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
36140         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
36141         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
36142         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
36143         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
36144         * tests/uninorm/test-canonical-decomposition.c: Likewise.
36145         * tests/uninorm/test-compat-decomposition.c: Likewise.
36146         * tests/uninorm/test-composition.c: Likewise.
36147         * tests/uninorm/test-decomposing-form.c: Likewise.
36148         * tests/uninorm/test-decomposition.c: Likewise.
36149         * tests/uninorm/test-u8-nfc.c: Likewise.
36150         * tests/uninorm/test-u8-nfd.c: Likewise.
36151         * tests/uninorm/test-u8-nfkc.c: Likewise.
36152         * tests/uninorm/test-u8-nfkd.c: Likewise.
36153         * tests/uninorm/test-u8-normcmp.c: Likewise.
36154         * tests/uninorm/test-u8-normcoll.c: Likewise.
36155         * tests/uninorm/test-u16-nfc.c: Likewise.
36156         * tests/uninorm/test-u16-nfd.c: Likewise.
36157         * tests/uninorm/test-u16-nfkc.c: Likewise.
36158         * tests/uninorm/test-u16-nfkd.c: Likewise.
36159         * tests/uninorm/test-u16-normcmp.c: Likewise.
36160         * tests/uninorm/test-u16-normcoll.c: Likewise.
36161         * tests/uninorm/test-u32-nfc.c: Likewise.
36162         * tests/uninorm/test-u32-nfd.c: Likewise.
36163         * tests/uninorm/test-u32-nfkc.c: Likewise.
36164         * tests/uninorm/test-u32-nfkd.c: Likewise.
36165         * tests/uninorm/test-u32-normalize-big.c: Likewise.
36166         * tests/uninorm/test-u32-normcmp.c: Likewise.
36167         * tests/uninorm/test-u32-normcoll.c: Likewise.
36168         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
36169         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36170         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36171         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36172         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36173         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36174         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36175         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36176         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36177         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36178         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36179         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36180         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36181         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36182         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36183         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36184         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36185         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36186         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36187         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36188         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36189         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36190         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36191         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36192         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36193         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36194         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36195         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36196         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36197         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
36198         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
36199         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
36200         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
36201         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36202         * tests/uniwidth/test-u8-width.c: Likewise.
36203         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36204         * tests/uniwidth/test-u16-width.c: Likewise.
36205         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36206         * tests/uniwidth/test-u32-width.c: Likewise.
36207         * tests/uniwidth/test-uc_width.c: Likewise.
36208         * tests/uniwidth/test-uc_width2.c: Likewise.
36209         * modules/acl-tests (Files): Add tests/macros.h.
36210         * modules/areadlink-tests (Files): Likewise.
36211         * modules/areadlink-with-size-tests (Files): Likewise.
36212         * modules/areadlinkat-tests (Files): Likewise.
36213         * modules/areadlinkat-with-size-tests (Files): Likewise.
36214         * modules/argmatch-tests (Files): Likewise.
36215         * modules/argv-iter-tests (Files): Likewise.
36216         * modules/array-list-tests (Files): Likewise.
36217         * modules/array-mergesort-tests (Files): Likewise.
36218         * modules/array-oset-tests (Files): Likewise.
36219         * modules/avltree-list-tests (Files): Likewise.
36220         * modules/avltree-oset-tests (Files): Likewise.
36221         * modules/avltreehash-list-tests (Files): Likewise.
36222         * modules/base64-tests (Files): Likewise.
36223         * modules/binary-io-tests (Files): Likewise.
36224         * modules/bitrotate-tests (Files): Likewise.
36225         * modules/btowc-tests (Files): Likewise.
36226         * modules/byteswap-tests (Files): Likewise.
36227         * modules/c-ctype-tests (Files): Likewise.
36228         * modules/c-stack-tests (Files): Likewise.
36229         * modules/c-strcase-tests (Files): Likewise.
36230         * modules/c-strcasestr-tests (Files): Likewise.
36231         * modules/c-strstr-tests (Files): Likewise.
36232         * modules/canonicalize-lgpl-tests (Files): Likewise.
36233         * modules/canonicalize-tests (Files): Likewise.
36234         * modules/carray-list-tests (Files): Likewise.
36235         * modules/ceilf-tests (Files): Likewise.
36236         * modules/ceill-tests (Files): Likewise.
36237         * modules/chown-tests (Files): Likewise.
36238         * modules/cloexec-tests (Files): Likewise.
36239         * modules/copy-file-tests (Files): Likewise.
36240         * modules/count-one-bits-tests (Files): Likewise.
36241         * modules/dprintf-posix-tests (Files): Likewise.
36242         * modules/dup2-tests (Files): Likewise.
36243         * modules/dup3-tests (Files): Likewise.
36244         * modules/duplocale-tests (Files): Likewise.
36245         * modules/fbufmode-tests (Files): Likewise.
36246         * modules/fchdir-tests (Files): Likewise.
36247         * modules/fcntl-safer-tests (Files): Likewise.
36248         * modules/fcntl-tests (Files): Likewise.
36249         * modules/fdopendir-tests (Files): Likewise.
36250         * modules/fdutimensat-tests (Files): Likewise.
36251         * modules/fflush-tests (Files): Likewise.
36252         * modules/filevercmp-tests (Files): Likewise.
36253         * modules/flock-tests (Files): Likewise.
36254         * modules/floorf-tests (Files): Likewise.
36255         * modules/floorl-tests (Files): Likewise.
36256         * modules/fnmatch-tests (Files): Likewise.
36257         * modules/fopen-safer-tests (Files): Likewise.
36258         * modules/fopen-tests (Files): Likewise.
36259         * modules/fpending-tests (Files): Likewise.
36260         * modules/fprintf-posix-tests (Files): Likewise.
36261         * modules/fpurge-tests (Files): Likewise.
36262         * modules/freadable-tests (Files): Likewise.
36263         * modules/freadahead-tests (Files): Likewise.
36264         * modules/freading-tests (Files): Likewise.
36265         * modules/freadptr-tests (Files): Likewise.
36266         * modules/freadseek-tests (Files): Likewise.
36267         * modules/freopen-tests (Files): Likewise.
36268         * modules/frexp-nolibm-tests (Files): Likewise.
36269         * modules/frexp-tests (Files): Likewise.
36270         * modules/frexpl-nolibm-tests (Files): Likewise.
36271         * modules/frexpl-tests (Files): Likewise.
36272         * modules/fseek-tests (Files): Likewise.
36273         * modules/fseeko-tests (Files): Likewise.
36274         * modules/fstrcmp-tests (Files): Likewise.
36275         * modules/fsync-tests (Files): Likewise.
36276         * modules/ftell-tests (Files): Likewise.
36277         * modules/ftello-tests (Files): Likewise.
36278         * modules/func-tests (Files): Likewise.
36279         * modules/futimens-tests (Files): Likewise.
36280         * modules/fwritable-tests (Files): Likewise.
36281         * modules/fwriting-tests (Files): Likewise.
36282         * modules/getcwd-tests (Files): Likewise.
36283         * modules/getdate-tests (Files): Likewise.
36284         * modules/getdelim-tests (Files): Likewise.
36285         * modules/getdtablesize-tests (Files): Likewise.
36286         * modules/getgroups-tests (Files): Likewise.
36287         * modules/getline-tests (Files): Likewise.
36288         * modules/getndelim2-tests (Files): Likewise.
36289         * modules/glob-tests (Files): Likewise.
36290         * modules/hash-tests (Files): Likewise.
36291         * modules/i-ring-tests (Files): Likewise.
36292         * modules/iconv-tests (Files): Likewise.
36293         * modules/iconv_open-utf-tests (Files): Likewise.
36294         * modules/idpriv-drop-tests (Files): Likewise.
36295         * modules/idpriv-droptemp-tests (Files): Likewise.
36296         * modules/inet_ntop-tests (Files): Likewise.
36297         * modules/inet_pton-tests (Files): Likewise.
36298         * modules/isblank-tests (Files): Likewise.
36299         * modules/isfinite-tests (Files): Likewise.
36300         * modules/isinf-tests (Files): Likewise.
36301         * modules/isnan-tests (Files): Likewise.
36302         * modules/isnand-nolibm-tests (Files): Likewise.
36303         * modules/isnand-tests (Files): Likewise.
36304         * modules/isnanf-nolibm-tests (Files): Likewise.
36305         * modules/isnanf-tests (Files): Likewise.
36306         * modules/isnanl-nolibm-tests (Files): Likewise.
36307         * modules/isnanl-tests (Files): Likewise.
36308         * modules/lchown-tests (Files): Likewise.
36309         * modules/ldexpl-tests (Files): Likewise.
36310         * modules/link-tests (Files): Likewise.
36311         * modules/linkat-tests (Files): Likewise.
36312         * modules/linked-list-tests (Files): Likewise.
36313         * modules/linkedhash-list-tests (Files): Likewise.
36314         * modules/localename-tests (Files): Likewise.
36315         * modules/lseek-tests (Files): Likewise.
36316         * modules/lstat-tests (Files): Likewise.
36317         * modules/mbmemcasecmp-tests (Files): Likewise.
36318         * modules/mbmemcasecoll-tests (Files): Likewise.
36319         * modules/mbrtowc-tests (Files): Likewise.
36320         * modules/mbscasecmp-tests (Files): Likewise.
36321         * modules/mbscasestr-tests (Files): Likewise.
36322         * modules/mbschr-tests (Files): Likewise.
36323         * modules/mbscspn-tests (Files): Likewise.
36324         * modules/mbsinit-tests (Files): Likewise.
36325         * modules/mbsncasecmp-tests (Files): Likewise.
36326         * modules/mbsnrtowcs-tests (Files): Likewise.
36327         * modules/mbspbrk-tests (Files): Likewise.
36328         * modules/mbspcasecmp-tests (Files): Likewise.
36329         * modules/mbsrchr-tests (Files): Likewise.
36330         * modules/mbsrtowcs-tests (Files): Likewise.
36331         * modules/mbsspn-tests (Files): Likewise.
36332         * modules/mbsstr-tests (Files): Likewise.
36333         * modules/memchr-tests (Files): Likewise.
36334         * modules/memchr2-tests (Files): Likewise.
36335         * modules/memcmp-tests (Files): Likewise.
36336         * modules/memmem-tests (Files): Likewise.
36337         * modules/memrchr-tests (Files): Likewise.
36338         * modules/mkdir-tests (Files): Likewise.
36339         * modules/mkfifo-tests (Files): Likewise.
36340         * modules/mkfifoat-tests (Files): Likewise.
36341         * modules/mknod-tests (Files): Likewise.
36342         * modules/nanosleep-tests (Files): Likewise.
36343         * modules/nl_langinfo-tests (Files): Likewise.
36344         * modules/obstack-printf-tests (Files): Likewise.
36345         * modules/open-tests (Files): Likewise.
36346         * modules/openat-tests (Files): Likewise.
36347         * modules/pipe-filter-gi-tests (Files): Likewise.
36348         * modules/pipe-filter-ii-tests (Files): Likewise.
36349         * modules/pipe2-tests (Files): Likewise.
36350         * modules/popen-safer-tests (Files): Likewise.
36351         * modules/popen-tests (Files): Likewise.
36352         * modules/posixtm-tests (Files): Likewise.
36353         * modules/pread-tests (Files): Likewise.
36354         * modules/printf-frexp-tests (Files): Likewise.
36355         * modules/printf-frexpl-tests (Files): Likewise.
36356         * modules/printf-posix-tests (Files): Likewise.
36357         * modules/priv-set-tests (Files): Likewise.
36358         * modules/quotearg-tests (Files): Likewise.
36359         * modules/random_r-tests (Files): Likewise.
36360         * modules/rawmemchr-tests (Files): Likewise.
36361         * modules/rbtree-list-tests (Files): Likewise.
36362         * modules/rbtree-oset-tests (Files): Likewise.
36363         * modules/rbtreehash-list-tests (Files): Likewise.
36364         * modules/readlink-tests (Files): Likewise.
36365         * modules/remove-tests (Files): Likewise.
36366         * modules/rename-tests (Files): Likewise.
36367         * modules/renameat-tests (Files): Likewise.
36368         * modules/rmdir-tests (Files): Likewise.
36369         * modules/round-tests (Files): Likewise.
36370         * modules/roundf-tests (Files): Likewise.
36371         * modules/roundl-tests (Files): Likewise.
36372         * modules/safe-alloc-tests (Files): Likewise.
36373         * modules/setenv-tests (Files): Likewise.
36374         * modules/sigaction-tests (Files): Likewise.
36375         * modules/signbit-tests (Files): Likewise.
36376         * modules/sleep-tests (Files): Likewise.
36377         * modules/snprintf-posix-tests (Files): Likewise.
36378         * modules/snprintf-tests (Files): Likewise.
36379         * modules/sprintf-posix-tests (Files): Likewise.
36380         * modules/stat-tests (Files): Likewise.
36381         * modules/stat-time-tests (Files): Likewise.
36382         * modules/strcasestr-tests (Files): Likewise.
36383         * modules/strchrnul-tests (Files): Likewise.
36384         * modules/strerror-tests (Files): Likewise.
36385         * modules/striconv-tests (Files): Likewise.
36386         * modules/striconveh-tests (Files): Likewise.
36387         * modules/striconveha-tests (Files): Likewise.
36388         * modules/strsignal-tests (Files): Likewise.
36389         * modules/strstr-tests (Files): Likewise.
36390         * modules/strtod-tests (Files): Likewise.
36391         * modules/strverscmp-tests (Files): Likewise.
36392         * modules/symlink-tests (Files): Likewise.
36393         * modules/symlinkat-tests (Files): Likewise.
36394         * modules/trunc-tests (Files): Likewise.
36395         * modules/truncf-tests (Files): Likewise.
36396         * modules/truncl-tests (Files): Likewise.
36397         * modules/uname-tests (Files): Likewise.
36398         * modules/unicase/cased-tests (Files): Likewise.
36399         * modules/unicase/ignorable-tests (Files): Likewise.
36400         * modules/unicase/locale-language-tests (Files): Likewise.
36401         * modules/unicase/tolower-tests (Files): Likewise.
36402         * modules/unicase/totitle-tests (Files): Likewise.
36403         * modules/unicase/toupper-tests (Files): Likewise.
36404         * modules/unicase/u8-casecmp-tests (Files): Likewise.
36405         * modules/unicase/u8-casecoll-tests (Files): Likewise.
36406         * modules/unicase/u8-casefold-tests (Files): Likewise.
36407         * modules/unicase/u8-is-cased-tests (Files): Likewise.
36408         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
36409         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
36410         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
36411         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
36412         * modules/unicase/u8-tolower-tests (Files): Likewise.
36413         * modules/unicase/u8-totitle-tests (Files): Likewise.
36414         * modules/unicase/u8-toupper-tests (Files): Likewise.
36415         * modules/unicase/u16-casecmp-tests (Files): Likewise.
36416         * modules/unicase/u16-casecoll-tests (Files): Likewise.
36417         * modules/unicase/u16-casefold-tests (Files): Likewise.
36418         * modules/unicase/u16-is-cased-tests (Files): Likewise.
36419         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
36420         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
36421         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
36422         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
36423         * modules/unicase/u16-tolower-tests (Files): Likewise.
36424         * modules/unicase/u16-totitle-tests (Files): Likewise.
36425         * modules/unicase/u16-toupper-tests (Files): Likewise.
36426         * modules/unicase/u32-casecmp-tests (Files): Likewise.
36427         * modules/unicase/u32-casecoll-tests (Files): Likewise.
36428         * modules/unicase/u32-casefold-tests (Files): Likewise.
36429         * modules/unicase/u32-is-cased-tests (Files): Likewise.
36430         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
36431         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
36432         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
36433         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
36434         * modules/unicase/u32-tolower-tests (Files): Likewise.
36435         * modules/unicase/u32-totitle-tests (Files): Likewise.
36436         * modules/unicase/u32-toupper-tests (Files): Likewise.
36437         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
36438         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
36439         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
36440         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
36441         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
36442         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
36443         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
36444         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
36445         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
36446         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
36447         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
36448         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
36449         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
36450         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
36451         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
36452         * modules/unictype/bidicategory-name-tests (Files): Likewise.
36453         * modules/unictype/bidicategory-of-tests (Files): Likewise.
36454         * modules/unictype/bidicategory-test-tests (Files): Likewise.
36455         * modules/unictype/block-list-tests (Files): Likewise.
36456         * modules/unictype/block-of-tests (Files): Likewise.
36457         * modules/unictype/block-test-tests (Files): Likewise.
36458         * modules/unictype/category-C-tests (Files): Likewise.
36459         * modules/unictype/category-Cc-tests (Files): Likewise.
36460         * modules/unictype/category-Cf-tests (Files): Likewise.
36461         * modules/unictype/category-Cn-tests (Files): Likewise.
36462         * modules/unictype/category-Co-tests (Files): Likewise.
36463         * modules/unictype/category-Cs-tests (Files): Likewise.
36464         * modules/unictype/category-L-tests (Files): Likewise.
36465         * modules/unictype/category-Ll-tests (Files): Likewise.
36466         * modules/unictype/category-Lm-tests (Files): Likewise.
36467         * modules/unictype/category-Lo-tests (Files): Likewise.
36468         * modules/unictype/category-Lt-tests (Files): Likewise.
36469         * modules/unictype/category-Lu-tests (Files): Likewise.
36470         * modules/unictype/category-M-tests (Files): Likewise.
36471         * modules/unictype/category-Mc-tests (Files): Likewise.
36472         * modules/unictype/category-Me-tests (Files): Likewise.
36473         * modules/unictype/category-Mn-tests (Files): Likewise.
36474         * modules/unictype/category-N-tests (Files): Likewise.
36475         * modules/unictype/category-Nd-tests (Files): Likewise.
36476         * modules/unictype/category-Nl-tests (Files): Likewise.
36477         * modules/unictype/category-No-tests (Files): Likewise.
36478         * modules/unictype/category-P-tests (Files): Likewise.
36479         * modules/unictype/category-Pc-tests (Files): Likewise.
36480         * modules/unictype/category-Pd-tests (Files): Likewise.
36481         * modules/unictype/category-Pe-tests (Files): Likewise.
36482         * modules/unictype/category-Pf-tests (Files): Likewise.
36483         * modules/unictype/category-Pi-tests (Files): Likewise.
36484         * modules/unictype/category-Po-tests (Files): Likewise.
36485         * modules/unictype/category-Ps-tests (Files): Likewise.
36486         * modules/unictype/category-S-tests (Files): Likewise.
36487         * modules/unictype/category-Sc-tests (Files): Likewise.
36488         * modules/unictype/category-Sk-tests (Files): Likewise.
36489         * modules/unictype/category-Sm-tests (Files): Likewise.
36490         * modules/unictype/category-So-tests (Files): Likewise.
36491         * modules/unictype/category-Z-tests (Files): Likewise.
36492         * modules/unictype/category-Zl-tests (Files): Likewise.
36493         * modules/unictype/category-Zp-tests (Files): Likewise.
36494         * modules/unictype/category-Zs-tests (Files): Likewise.
36495         * modules/unictype/category-and-not-tests (Files): Likewise.
36496         * modules/unictype/category-and-tests (Files): Likewise.
36497         * modules/unictype/category-byname-tests (Files): Likewise.
36498         * modules/unictype/category-name-tests (Files): Likewise.
36499         * modules/unictype/category-none-tests (Files): Likewise.
36500         * modules/unictype/category-of-tests (Files): Likewise.
36501         * modules/unictype/category-or-tests (Files): Likewise.
36502         * modules/unictype/category-test-withtable-tests (Files): Likewise.
36503         * modules/unictype/combining-class-tests (Files): Likewise.
36504         * modules/unictype/ctype-alnum-tests (Files): Likewise.
36505         * modules/unictype/ctype-alpha-tests (Files): Likewise.
36506         * modules/unictype/ctype-blank-tests (Files): Likewise.
36507         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
36508         * modules/unictype/ctype-digit-tests (Files): Likewise.
36509         * modules/unictype/ctype-graph-tests (Files): Likewise.
36510         * modules/unictype/ctype-lower-tests (Files): Likewise.
36511         * modules/unictype/ctype-print-tests (Files): Likewise.
36512         * modules/unictype/ctype-punct-tests (Files): Likewise.
36513         * modules/unictype/ctype-space-tests (Files): Likewise.
36514         * modules/unictype/ctype-upper-tests (Files): Likewise.
36515         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
36516         * modules/unictype/decimal-digit-tests (Files): Likewise.
36517         * modules/unictype/digit-tests (Files): Likewise.
36518         * modules/unictype/mirror-tests (Files): Likewise.
36519         * modules/unictype/numeric-tests (Files): Likewise.
36520         * modules/unictype/property-alphabetic-tests (Files): Likewise.
36521         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
36522         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
36523         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
36524         Likewise.
36525         * modules/unictype/property-bidi-block-separator-tests (Files):
36526         Likewise.
36527         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
36528         Likewise.
36529         * modules/unictype/property-bidi-common-separator-tests (Files):
36530         Likewise.
36531         * modules/unictype/property-bidi-control-tests (Files): Likewise.
36532         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
36533         Likewise.
36534         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
36535         Likewise.
36536         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
36537         Likewise.
36538         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
36539         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
36540         Likewise.
36541         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
36542         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
36543         Likewise.
36544         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
36545         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
36546         * modules/unictype/property-bidi-segment-separator-tests (Files):
36547         Likewise.
36548         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
36549         * modules/unictype/property-byname-tests (Files): Likewise.
36550         * modules/unictype/property-combining-tests (Files): Likewise.
36551         * modules/unictype/property-composite-tests (Files): Likewise.
36552         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
36553         * modules/unictype/property-dash-tests (Files): Likewise.
36554         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
36555         * modules/unictype/property-default-ignorable-code-point-tests (Files):
36556         Likewise.
36557         * modules/unictype/property-deprecated-tests (Files): Likewise.
36558         * modules/unictype/property-diacritic-tests (Files): Likewise.
36559         * modules/unictype/property-extender-tests (Files): Likewise.
36560         * modules/unictype/property-format-control-tests (Files): Likewise.
36561         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
36562         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
36563         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
36564         * modules/unictype/property-hex-digit-tests (Files): Likewise.
36565         * modules/unictype/property-hyphen-tests (Files): Likewise.
36566         * modules/unictype/property-id-continue-tests (Files): Likewise.
36567         * modules/unictype/property-id-start-tests (Files): Likewise.
36568         * modules/unictype/property-ideographic-tests (Files): Likewise.
36569         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
36570         * modules/unictype/property-ids-trinary-operator-tests (Files):
36571         Likewise.
36572         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
36573         * modules/unictype/property-iso-control-tests (Files): Likewise.
36574         * modules/unictype/property-join-control-tests (Files): Likewise.
36575         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
36576         * modules/unictype/property-line-separator-tests (Files): Likewise.
36577         * modules/unictype/property-logical-order-exception-tests (Files):
36578         Likewise.
36579         * modules/unictype/property-lowercase-tests (Files): Likewise.
36580         * modules/unictype/property-math-tests (Files): Likewise.
36581         * modules/unictype/property-non-break-tests (Files): Likewise.
36582         * modules/unictype/property-not-a-character-tests (Files): Likewise.
36583         * modules/unictype/property-numeric-tests (Files): Likewise.
36584         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
36585         * modules/unictype/property-other-default-ignorable-code-point-tests
36586         (Files): Likewise.
36587         * modules/unictype/property-other-grapheme-extend-tests (Files):
36588         Likewise.
36589         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
36590         * modules/unictype/property-other-id-start-tests (Files): Likewise.
36591         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
36592         * modules/unictype/property-other-math-tests (Files): Likewise.
36593         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
36594         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
36595         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
36596         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
36597         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
36598         * modules/unictype/property-private-use-tests (Files): Likewise.
36599         * modules/unictype/property-punctuation-tests (Files): Likewise.
36600         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
36601         * modules/unictype/property-radical-tests (Files): Likewise.
36602         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
36603         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
36604         * modules/unictype/property-space-tests (Files): Likewise.
36605         * modules/unictype/property-terminal-punctuation-tests (Files):
36606         Likewise.
36607         * modules/unictype/property-test-tests (Files): Likewise.
36608         * modules/unictype/property-titlecase-tests (Files): Likewise.
36609         * modules/unictype/property-unassigned-code-value-tests (Files):
36610         Likewise.
36611         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
36612         * modules/unictype/property-uppercase-tests (Files): Likewise.
36613         * modules/unictype/property-variation-selector-tests (Files): Likewise.
36614         * modules/unictype/property-white-space-tests (Files): Likewise.
36615         * modules/unictype/property-xid-continue-tests (Files): Likewise.
36616         * modules/unictype/property-xid-start-tests (Files): Likewise.
36617         * modules/unictype/property-zero-width-tests (Files): Likewise.
36618         * modules/unictype/scripts-tests (Files): Likewise.
36619         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
36620         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
36621         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
36622         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
36623         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
36624         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
36625         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
36626         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
36627         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
36628         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
36629         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
36630         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
36631         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
36632         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
36633         * modules/uninorm/composition-tests (Files): Likewise.
36634         * modules/uninorm/decomposing-form-tests (Files): Likewise.
36635         * modules/uninorm/decomposition-tests (Files): Likewise.
36636         * modules/uninorm/filter-tests (Files): Likewise.
36637         * modules/uninorm/nfc-tests (Files): Likewise.
36638         * modules/uninorm/nfd-tests (Files): Likewise.
36639         * modules/uninorm/nfkc-tests (Files): Likewise.
36640         * modules/uninorm/nfkd-tests (Files): Likewise.
36641         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
36642         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
36643         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
36644         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
36645         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
36646         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
36647         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
36648         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
36649         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
36650         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
36651         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
36652         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
36653         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
36654         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
36655         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
36656         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
36657         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
36658         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
36659         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
36660         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
36661         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
36662         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
36663         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
36664         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
36665         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
36666         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
36667         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
36668         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
36669         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
36670         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
36671         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
36672         * modules/uniwidth/u8-width-tests (Files): Likewise.
36673         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
36674         * modules/uniwidth/u16-width-tests (Files): Likewise.
36675         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
36676         * modules/uniwidth/u32-width-tests (Files): Likewise.
36677         * modules/uniwidth/width-tests (Files): Likewise.
36678         * modules/unlink-tests (Files): Likewise.
36679         * modules/unsetenv-tests (Files): Likewise.
36680         * modules/usleep-tests (Files): Likewise.
36681         * modules/utimens-tests (Files): Likewise.
36682         * modules/utimensat-tests (Files): Likewise.
36683         * modules/vasnprintf-posix-tests (Files): Likewise.
36684         * modules/vasnprintf-tests (Files): Likewise.
36685         * modules/vasprintf-posix-tests (Files): Likewise.
36686         * modules/vasprintf-tests (Files): Likewise.
36687         * modules/vdprintf-posix-tests (Files): Likewise.
36688         * modules/vfprintf-posix-tests (Files): Likewise.
36689         * modules/vprintf-posix-tests (Files): Likewise.
36690         * modules/vsnprintf-posix-tests (Files): Likewise.
36691         * modules/vsnprintf-tests (Files): Likewise.
36692         * modules/vsprintf-posix-tests (Files): Likewise.
36693         * modules/wcrtomb-tests (Files): Likewise.
36694         * modules/wcsnrtombs-tests (Files): Likewise.
36695         * modules/wcsrtombs-tests (Files): Likewise.
36696         * modules/wctype-tests (Files): Likewise.
36697         * modules/wcwidth-tests (Files): Likewise.
36698         * modules/xmemdup0-tests (Files): Likewise.
36699         * modules/xprintf-posix-tests (Files): Likewise.
36700         * modules/xvasprintf-tests (Files): Likewise.
36701
36702 2009-12-24  Eric Blake  <ebb9@byu.net>
36703
36704         test-nanosleep: fix typo
36705         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
36706         patch.
36707         Reported by Bruno Haible.
36708
36709 2009-12-24  Bruno Haible  <bruno@clisp.org>
36710
36711         Reduce namespace pollution on glibc systems.
36712         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
36713         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
36714         systems.
36715         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
36716         <getopt.h> on glibc systems.
36717         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
36718         systems.
36719         * lib/fcntl.c: Include <unistd.h> here instead.
36720
36721 2009-12-24  Bruno Haible  <bruno@clisp.org>
36722
36723         * lib/stdlib.in.h (includes): Fix typo in today's commit.
36724
36725 2009-12-24  Eric Blake  <ebb9@byu.net>
36726
36727         tests: add signature checks
36728         * tests/signature.h (SIGNATURE_CHECK): New file.
36729         * modules/atexit-tests (Files): Use it.
36730         * modules/btowc-tests (Files): Likewise.
36731         * modules/canonicalize-lgpl-tests (Files): Likewise.
36732         * modules/ceilf-tests (Files): Likewise.
36733         * modules/ceill-tests (Files): Likewise.
36734         * modules/chown-tests (Files): Likewise.
36735         * modules/dprintf-posix-tests (Files): Likewise.
36736         * modules/dup2-tests (Files): Likewise.
36737         * modules/dup3-tests (Files): Likewise.
36738         * modules/duplocale-tests (Files): Likewise.
36739         * modules/fchdir-tests (Files): Likewise.
36740         * modules/fcntl-tests (Files): Likewise.
36741         * modules/fdopendir-tests (Files): Likewise.
36742         * modules/fflush-tests (Files): Likewise.
36743         * modules/flock-tests (Files): Likewise.
36744         * modules/floorf-tests (Files): Likewise.
36745         * modules/floorl-tests (Files): Likewise.
36746         * modules/fnmatch-tests (Files): Likewise.
36747         * modules/fopen-tests (Files): Likewise.
36748         * modules/fprintf-posix-tests (Files): Likewise.
36749         * modules/freopen-tests (Files): Likewise.
36750         * modules/frexp-nolibm-tests (Files): Likewise.
36751         * modules/frexp-tests (Files): Likewise.
36752         * modules/frexpl-nolibm-tests (Files): Likewise.
36753         * modules/frexpl-tests (Files): Likewise.
36754         * modules/fseek-tests (Files): Likewise.
36755         * modules/fseeko-tests (Files): Likewise.
36756         * modules/fsync-tests (Files): Likewise.
36757         * modules/ftell-tests (Files): Likewise.
36758         * modules/ftello-tests (Files): Likewise.
36759         * modules/futimens-tests (Files): Likewise.
36760         * modules/getaddrinfo-tests (Files): Likewise.
36761         * modules/getcwd-tests (Files): Likewise.
36762         * modules/getdelim-tests (Files): Likewise.
36763         * modules/getdtablesize-tests (Files): Likewise.
36764         * modules/getgroups-tests (Files): Likewise.
36765         * modules/gethostname-tests (Files): Likewise.
36766         * modules/getline-tests (Files): Likewise.
36767         * modules/getopt-posix-tests (Files): Likewise.
36768         * modules/gettimeofday-tests (Files): Likewise.
36769         * modules/glob-tests (Files): Likewise.
36770         * modules/iconv-tests (Files): Likewise.
36771         * modules/inet_ntop-tests (Files): Likewise.
36772         * modules/inet_pton-tests (Files): Likewise.
36773         * modules/isblank-tests (Files): Likewise.
36774         * modules/lchown-tests (Files): Likewise.
36775         * modules/ldexpl-tests (Files): Likewise.
36776         * modules/link-tests (Files): Likewise.
36777         * modules/linkat-tests (Files): Likewise.
36778         * modules/lseek-tests (Files): Likewise.
36779         * modules/lstat-tests (Files): Likewise.
36780         * modules/mbrtowc-tests (Files): Likewise.
36781         * modules/mbsinit-tests (Files): Likewise.
36782         * modules/mbsnrtowcs-tests (Files): Likewise.
36783         * modules/mbsrtowcs-tests (Files): Likewise.
36784         * modules/memchr-tests (Files): Likewise.
36785         * modules/memcmp-tests (Files): Likewise.
36786         * modules/memmem-tests (Files): Likewise.
36787         * modules/memrchr-tests (Files): Likewise.
36788         * modules/mkdir-tests (Files): Likewise.
36789         * modules/mkfifo-tests (Files): Likewise.
36790         * modules/mkfifoat-tests (Files): Likewise.
36791         * modules/mknod-tests (Files): Likewise.
36792         * modules/nanosleep-tests (Files): Likewise.
36793         * modules/nl_langinfo-tests (Files): Likewise.
36794         * modules/obstack-printf-tests (Files): Likewise.
36795         * modules/open-tests (Files): Likewise.
36796         * modules/openat-tests (Files): Likewise.
36797         * modules/perror-tests (Files): Likewise.
36798         * modules/pipe2-tests (Files): Likewise.
36799         * modules/poll-tests (Files): Likewise.
36800         * modules/popen-tests (Files): Likewise.
36801         * modules/posix_spawn-tests (Files): Likewise.
36802         * modules/posix_spawnp-tests (Files): Likewise.
36803         * modules/pread-tests (Files): Likewise.
36804         * modules/printf-posix-tests (Files): Likewise.
36805         * modules/pty-tests (Files): Likewise.
36806         * modules/random_r-tests (Files): Likewise.
36807         * modules/rawmemchr-tests (Files): Likewise.
36808         * modules/readlink-tests (Files): Likewise.
36809         * modules/remove-tests (Files): Likewise.
36810         * modules/rename-tests (Files): Likewise.
36811         * modules/renameat-tests (Files): Likewise.
36812         * modules/rmdir-tests (Files): Likewise.
36813         * modules/round-tests (Files): Likewise.
36814         * modules/roundf-tests (Files): Likewise.
36815         * modules/roundl-tests (Files): Likewise.
36816         * modules/select-tests (Files): Likewise.
36817         * modules/setenv-tests (Files): Likewise.
36818         * modules/sigaction-tests (Files): Likewise.
36819         * modules/sleep-tests (Files): Likewise.
36820         * modules/snprintf-posix-tests (Files): Likewise.
36821         * modules/snprintf-tests (Files): Likewise.
36822         * modules/sprintf-posix-tests (Files): Likewise.
36823         * modules/stat-tests (Files): Likewise.
36824         * modules/strcasestr-tests (Files): Likewise.
36825         * modules/strchrnul-tests (Files): Likewise.
36826         * modules/strerror-tests (Files): Likewise.
36827         * modules/strsignal-tests (Files): Likewise.
36828         * modules/strstr-tests (Files): Likewise.
36829         * modules/strtod-tests (Files): Likewise.
36830         * modules/strverscmp-tests (Files): Likewise.
36831         * modules/symlink-tests (Files): Likewise.
36832         * modules/symlinkat-tests (Files): Likewise.
36833         * modules/times-tests (Files): Likewise.
36834         * modules/trunc-tests (Files): Likewise.
36835         * modules/truncf-tests (Files): Likewise.
36836         * modules/truncl-tests (Files): Likewise.
36837         * modules/tsearch-tests (Files): Likewise.
36838         * modules/uname-tests (Files): Likewise.
36839         * modules/unlink-tests (Files): Likewise.
36840         * modules/unsetenv-tests (Files): Likewise.
36841         * modules/usleep-tests (Files): Likewise.
36842         * modules/utimensat-tests (Files): Likewise.
36843         * modules/vasprintf-tests (Files): Likewise.
36844         * modules/vdprintf-posix-tests (Files): Likewise.
36845         * modules/vfprintf-posix-tests (Files): Likewise.
36846         * modules/vprintf-posix-tests (Files): Likewise.
36847         * modules/vsnprintf-posix-tests (Files): Likewise.
36848         * modules/vsnprintf-tests (Files): Likewise.
36849         * modules/vsprintf-posix-tests (Files): Likewise.
36850         * modules/wcrtomb-tests (Files): Likewise.
36851         * modules/wcsnrtombs-tests (Files): Likewise.
36852         * modules/wcsrtombs-tests (Files): Likewise.
36853         * modules/wcwidth-tests (Files): Likewise.
36854         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36855         * tests/test-isinf.c (isinf): Likewise.
36856         * tests/test-isnan.c (isnan): Likewise.
36857         * tests/test-signbit.c (signbit): Likewise.
36858         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36859         declaration, either as macro or with correct signature.
36860         (select): Ensure function under test is declared with correct
36861         signature in correct header.
36862         * tests/test-atexit.c (atexit): Likewise.
36863         * tests/test-btowc.c (btowc): Likewise.
36864         * tests/test-canonicalize-lgpl.c (realpath)
36865         (canonicalize_file_name): Likewise.
36866         * tests/test-ceilf1.c (ceilf): Likewise.
36867         * tests/test-ceill.c (ceill): Likewise.
36868         * tests/test-chown.c (chown): Likewise.
36869         * tests/test-dprintf-posix.c (dprintf): Likewise.
36870         * tests/test-dup2.c (dup2): Likewise.
36871         * tests/test-dup3.c (dup3): Likewise.
36872         * tests/test-duplocale.c (duplocale): Likewise.
36873         * tests/test-fchdir.c (fchdir): Likewise.
36874         * tests/test-fchownat.c (fchownat): Likewise.
36875         * tests/test-fcntl.c (fcntl): Likewise.
36876         * tests/test-fdopendir.c (fdopendir): Likewise.
36877         * tests/test-fflush.c (fflush): Likewise.
36878         * tests/test-flock.c (flock): Likewise.
36879         * tests/test-floorf1.c (floorf): Likewise.
36880         * tests/test-floorl.c (floorl): Likewise.
36881         * tests/test-fnmatch.c (fnmatch): Likewise.
36882         * tests/test-fopen.c (fopen): Likewise.
36883         * tests/test-fprintf-posix.c (fprintf): Likewise.
36884         * tests/test-freopen.c (freopen): Likewise.
36885         * tests/test-frexp.c (frexp): Likewise.
36886         * tests/test-frexpl.c (frexpl): Likewise.
36887         * tests/test-fseek.c (fseek): Likewise.
36888         * tests/test-fseeko.c (fseeko): Likewise.
36889         * tests/test-fstatat.c (fstatat): Likewise.
36890         * tests/test-fsync.c (fsync): Likewise.
36891         * tests/test-ftell.c (ftell): Likewise.
36892         * tests/test-ftello.c (ftello): Likewise.
36893         * tests/test-futimens.c (futimens): Likewise.
36894         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36895         (gai_strerror): Likewise.
36896         * tests/test-getcwd.c (getcwd): Likewise.
36897         * tests/test-getdelim.c (getdelim): Likewise.
36898         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36899         * tests/test-getgroups.c (getgroups): Likewise.
36900         * tests/test-gethostname.c (gethostname): Likewise.
36901         * tests/test-getline.c (getline): Likewise.
36902         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36903         Likewise.
36904         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36905         * tests/test-glob.c (glob, globfree): Likewise.
36906         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36907         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36908         * tests/test-inet_pton.c (inet_pton): Likewise.
36909         * tests/test-isblank.c (isblank): Likewise.
36910         * tests/test-lchown.c (lchown): Likewise.
36911         * tests/test-ldexpl.c (ldexpl): Likewise.
36912         * tests/test-link.c (link): Likewise.
36913         * tests/test-linkat.c (linkat): Likewise.
36914         * tests/test-lseek.c (lseek): Likewise.
36915         * tests/test-lstat.c (lstat): Likewise.
36916         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36917         * tests/test-mbsinit.c (mbsinit): Likewise.
36918         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36919         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36920         * tests/test-memchr.c (memchr): Likewise.
36921         * tests/test-memcmp.c (memcmp): Likewise.
36922         * tests/test-memmem.c (memmem): Likewise.
36923         * tests/test-memrchr.c (memrchr): Likewise.
36924         * tests/test-mkdir.c (mkdir): Likewise.
36925         * tests/test-mkdirat.c (mkdirat): Likewise.
36926         * tests/test-mkfifo.c (mkfifo): Likewise.
36927         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36928         * tests/test-mknod.c (mknod): Likewise.
36929         * tests/test-nanosleep.c (nanosleep): Likewise.
36930         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36931         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36932         Likewise.
36933         * tests/test-open.c (open): Likewise.
36934         * tests/test-openat.c (openat): Likewise.
36935         * tests/test-perror.c (perror): Likewise.
36936         * tests/test-pipe2.c (pipe2): Likewise.
36937         * tests/test-poll.c (poll): Likewise.
36938         * tests/test-popen.c (popen, pclose): Likewise.
36939         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36940         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36941         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36942         (posix_spawn_file_actions_destroy)
36943         (posix_spawn_file_actions_addclose)
36944         (posix_spawn_file_actions_addopen)
36945         (posix_spawn_file_actions_adddup2): Likewise.
36946         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36947         * tests/test-pread.c (pread): Likewise.
36948         * tests/test-printf-posix.c (printf): Likewise.
36949         * tests/test-pty.c (openpty, forkpty): Likewise.
36950         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36951         (random_r): Likewise.
36952         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36953         * tests/test-readlink.c (readlink): Likewise.
36954         * tests/test-remove.c (remove): Likewise.
36955         * tests/test-rename.c (rename): Likewise.
36956         * tests/test-renameat.c (renameat): Likewise.
36957         * tests/test-rmdir.c (rmdir): Likewise.
36958         * tests/test-round1.c (round): Likewise.
36959         * tests/test-roundf1.c (roundf): Likewise.
36960         * tests/test-roundl.c (roundl): Likewise.
36961         * tests/test-setenv.c (setenv): Likewise.
36962         * tests/test-sigaction.c (sigaction): Likewise.
36963         * tests/test-sleep.c (sleep): Likewise.
36964         * tests/test-snprintf.c (snprintf): Likewise.
36965         * tests/test-sprintf-posix.c (sprintf): Likewise.
36966         * tests/test-stat.c (stat): Likewise.
36967         * tests/test-stpncpy.c (stpncpy): Likewise.
36968         * tests/test-strcasestr.c (strcasestr): Likewise.
36969         * tests/test-strchrnul.c (strchrnul): Likewise.
36970         * tests/test-strerror.c (strerror): Likewise.
36971         * tests/test-strsignal.c (strsignal): Likewise.
36972         * tests/test-strstr.c (strstr): Likewise.
36973         * tests/test-strtod.c (strtod): Likewise.
36974         * tests/test-strverscmp.c (strverscmp): Likewise.
36975         * tests/test-symlink.c (symlink): Likewise.
36976         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36977         * tests/test-times.c (times): Likewise.
36978         * tests/test-trunc1.c (trunc): Likewise.
36979         * tests/test-truncf1.c (truncf): Likewise.
36980         * tests/test-truncl.c (truncl): Likewise.
36981         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36982         Likewise.
36983         * tests/test-uname.c (uname): Likewise.
36984         * tests/test-unlink.c (unlink): Likewise.
36985         * tests/test-unlinkat.c (unlinkat): Likewise.
36986         * tests/test-unsetenv.c (unsetenv): Likewise.
36987         * tests/test-usleep.c (usleep): Likewise.
36988         * tests/test-utimensat.c (utimensat): Likewise.
36989         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36990         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36991         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36992         * tests/test-vprintf-posix.c (vprintf): Likewise.
36993         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36994         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36995         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36996         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36997         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36998         * tests/test-wcwidth.c (wcwidth): Likewise.
36999
37000         build: pull in conditional headers during GNULIB_POSIXCHECK
37001         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
37002         definitions from any conditionally-included headers.
37003         * lib/stdlib.in.h (includes): Likewise.
37004         * lib/unistd.in.h (includes): Likewise.
37005
37006 2009-12-24  Bruno Haible  <bruno@clisp.org>
37007
37008         * tests/test-argv-iter.c: Include header file being tested immediately
37009         after config.h.
37010         * tests/test-base64.c: Likewise.
37011         * tests/test-flock.c: Likewise.
37012         * tests/test-fsync.c: Likewise.
37013         * tests/test-getdate.c: Likewise.
37014         * tests/test-getndelim2.c: Likewise.
37015         * tests/test-isfinite.c: Likewise.
37016         * tests/test-isinf.c: Likewise.
37017         * tests/test-strerror.c: Likewise.
37018         * tests/test-strsignal.c: Likewise.
37019
37020 2009-12-23  Eric Blake  <ebb9@byu.net>
37021
37022         unistd: work around cygwin bug
37023         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
37024         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
37025         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37026
37027 2009-12-23  Bruno Haible  <bruno@clisp.org>
37028
37029         localename: More tests.
37030         * tests/test-localename.c (SIZEOF): New macro.
37031         (categories): New variable.
37032         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
37033         test_locale_name_default): Add test w.r.t. thread locale.
37034         (test_locale_name_thread): New function.
37035         (main): Invoke it.
37036
37037         localename: Make aware of thread locale.
37038         * lib/localename.h (gl_locale_name_thread): New declaration.
37039         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
37040         behaviour with respect to thread locale.
37041         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
37042         <langinfo.h>, glthread/lock.h.
37043         (SIZE_BITS): New macro.
37044         (string_hash): New function.
37045         (struct hash_node): New type.
37046         (HASH_TABLE_SIZE): New macro.
37047         (struniq_hash_table, struniq_lock): New variables.
37048         (struniq): New function.
37049         (gl_locale_name_thread): New function.
37050         (gl_locale_name): Invoke it.
37051         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
37052         * modules/localename (Depends-on): Add lock.
37053         Reported by Mike Gran <spk121@yahoo.com>.
37054
37055 2009-12-23  Eric Blake  <ebb9@byu.net>
37056
37057         va-args: new module
37058         * modules/va-args: New file.
37059         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
37060         * MODULES.html.sh (Core language properties): Mention it.
37061
37062         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
37063         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
37064         named alias for __attribute__((__unused__)).
37065         * lib/chown.c: Update client.
37066         * lib/fchmodat.c: Likewise.
37067         * lib/fts.c: Likewise.
37068         * lib/getdate.y: Likewise.
37069         * lib/getgroups.c: Likewise.
37070         * lib/getopt.c: Likewise.
37071         * lib/getugroups.c: Likewise.
37072         * lib/mkdir.c: Likewise.
37073         * lib/mkfifo.c: Likewise.
37074         * lib/mkfifoat.c: Likewise.
37075         * lib/mknod.c: Likewise.
37076         * lib/mknodat.c: Likewise.
37077         * lib/readlink.c: Likewise.
37078         * lib/se-context.in.h: Likewise.
37079         * lib/se-selinux.in.h: Likewise.
37080         * lib/sockets.c: Likewise.
37081         * lib/symlink.c: Likewise.
37082         * lib/symlinkat.c: Likewise.
37083         * lib/unicodeio.c: Likewise.
37084         * lib/unistr.h: Likewise.
37085         * tests/test-areadlink.c: Likewise.
37086         * tests/test-areadlinkat.c: Likewise.
37087         * tests/test-filenamecat.c: Likewise.
37088         * tests/test-fseeko.c: Likewise.
37089         * tests/test-ftello.c: Likewise.
37090         * tests/test-getdate.c: Likewise.
37091         * tests/test-getgroups.c: Likewise.
37092         * tests/test-gethostname.c: Likewise.
37093         * tests/test-quotearg.c: Likewise.
37094         * tests/test-version-etc.c: Likewise.
37095         * tests/test-xalloc-die.c: Likewise.
37096         * tests/test-xfprintf-posix.c: Likewise.
37097         * tests/test-xprintf-posix.c: Likewise.
37098         * tests/test-xvasprintf.c: Likewise.
37099
37100         tests: avoid compiler warnings
37101         * tests/test-fcntl.c (main): Delete unused parameters.
37102         * tests/test-freopen-safer.c (main): Likewise.
37103         * tests/test-xalloc-die.c (main): Mark unused parameters.
37104         * tests/test-fseeko.c (main): Likewise.
37105         * tests/test-ftello.c (main): Likewise.
37106         * tests/test-nanosleep.c (main): Avoid declaration warning.
37107         * tests/test-sleep.c (main): Likewise.
37108         * tests/test-unsetenv.c (main): Silence warning about string
37109         literal.
37110         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
37111
37112 2009-12-23  Bruno Haible  <bruno@clisp.org>
37113
37114         * tests/test-localename.c (test_locale_name): New function, extracted
37115         from main. Also test mixed situations.
37116         (test_locale_name_posix, test_locale_name_environ,
37117         test_locale_name_default): New functions.
37118         (main): Invoke them all.
37119         * modules/localename-tests (configure.ac): Test for newlocale.
37120
37121 2009-12-23  Bruno Haible  <bruno@clisp.org>
37122
37123         unistd: Ensure getcwd gets declared before being overridden.
37124         * lib/unistd.in.h: Conditionally include <io.h>.
37125
37126 2009-12-22  Bruno Haible  <bruno@clisp.org>
37127
37128         wchar: Diagnose broken combination of glibc and gcc versions and flags.
37129         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
37130         (gl_WCHAR_H): Invoke it.
37131         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
37132         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
37133         Reported by Karl Berry <karl@freefriends.org>.
37134
37135 2009-12-22  Eric Blake  <ebb9@byu.net>
37136
37137         math, unistd: avoid redundant includes
37138         * lib/math.in.h (isnan): No need to re-include <math.h>.
37139         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
37140
37141         getsubopt: work around cygwin bug
37142         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
37143         avoid conflicting with system getsubopt.
37144         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
37145         bug.
37146
37147         getopt: synchronize from glibc
37148         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
37149         parameter order.  Adjust all callers.
37150         (_getopt_internal_r, main): Adjust quoting in error messages.
37151         Drop considerations for outdated POSIX 1003.2 error message.
37152         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
37153         callers.
37154         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
37155
37156         test-getopt: test stderr behavior
37157         * modules/getopt-posix-tests (Depends-on): Add dup2.
37158         * tests/test-getopt.c (ASSERT): Avoid stderr.
37159         (main): Move stderr to a temporary file.
37160         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
37161         Instead, add parameter to inform caller if output occurred.
37162         (test_getopt): Adjust all existing tests to expect silence, and
37163         add new tests of leading ":".
37164         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37165         glibc shortcomings with leading "-:" or "+:" in optstring.
37166         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37167         Likewise.
37168         * doc/posix-functions/getopt.texi (getopt): Likewise.
37169
37170         test-getopt: enhance test
37171         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
37172         supports optind=0.
37173         * tests/test-getopt.c (OPTIND_MIN): Move...
37174         * tests/test-getopt.h (OPTIND_MIN): ...here.
37175         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
37176         Require that optind=0 works, since modern BSD supports it in
37177         addition to optreset, and since coreutils expects it.
37178         (test_getopt_long_only): New test.
37179         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
37180         glibc shortcomings with 'W;', and enforcement of optind=0.
37181         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37182         Likewise.
37183
37184 2009-12-21  Bruno Haible  <bruno@clisp.org>
37185
37186         localename: Improvements for MacOS X and Cygwin.
37187         * lib/localename.h (gl_locale_name_environ): New declaration.
37188         * lib/localename.c (gl_locale_name_environ): New function, extracted from
37189         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
37190         (gl_locale_name_posix): Invoke it.
37191         (gl_locale_name_default): Add comments. Use Windows native API also on
37192         Cygwin.
37193
37194 2009-12-21  Bruno Haible  <bruno@clisp.org>
37195
37196         Update list of Win32 locale ids.
37197         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
37198         (LANG_SAMI): Renamed from LANG_SAAMI.
37199         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
37200         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
37201         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
37202         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
37203         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
37204         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
37205         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
37206         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
37207         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
37208         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
37209         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
37210         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
37211         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
37212         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
37213         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
37214         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
37215         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
37216         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
37217         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
37218         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
37219         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
37220         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
37221         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
37222         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
37223         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
37224         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
37225         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
37226         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
37227         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
37228         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
37229         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
37230         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
37231         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
37232         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
37233         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
37234         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
37235         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
37236         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
37237         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
37238         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
37239         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
37240         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
37241         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
37242         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
37243         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
37244         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
37245         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
37246         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
37247         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
37248         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
37249         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
37250         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
37251         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
37252         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
37253         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
37254         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
37255         Add more languages and countries for Sami, Sorbian. Add more countries
37256         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
37257         for Pashto. Change country for Syriac, Tswana.
37258
37259 2009-12-21  Eric Blake  <ebb9@byu.net>
37260
37261         test-utimens: avoid spurious failure
37262         * tests/test-chown.h (nap): Factor...
37263         * tests/nap.h: ...into new file.
37264         * tests/test-lchown.h (nap): Avoid duplication.
37265         * tests/test-utimens-common.h (nap): Use shared implementation,
37266         necessary on file systems with 1-second resolution.
37267         * modules/chown-tests (Files): Include new file.
37268         * modules/fdutimensat-tests (Files): Likewise.
37269         * modules/futimens-tests (Files): Likewise.
37270         * modules/lchown-tests (Files): Likewise.
37271         * modules/openat-tests (Files): Likewise.
37272         * modules/utimens-tests (Files): Likewise.
37273         * modules/utimensat-tests (Files): Likewise.
37274
37275 2009-12-19  Eric Blake  <ebb9@byu.net>
37276
37277         futimens, utimensat: work around Linux bug
37278         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
37279         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37280         * lib/utimensat.c (rpl_utimensat): Work around it.
37281         * lib/futimens.c (rpl_futimens): Adjust comment.
37282
37283         utimens: work around Linux ctime bug
37284         * lib/utimens.c (detect_ctime_bug): New helper function.
37285         (update_timespec): Differentiate between workaround needed for
37286         this bug vs. what is needed for systems that lack utimensat.
37287         (fdutimens, lutimens): Work around bug.
37288
37289         utimens: check for ctime update
37290         * tests/test-utimens-common.h (check_ctime): Define.
37291         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
37292         * tests/test-futimens.h (test_futimens): Likewise.
37293         * tests/test-lutimens.h (test_lutimens): Likewise.
37294         * doc/posix-functions/futimens.texi (futimens): Document the bug.
37295         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
37296
37297 2009-12-19  Bruno Haible  <bruno@clisp.org>
37298
37299         dprintf-posix: Check against memory leak fixed on 2009-12-15.
37300         * tests/test-dprintf-posix2.sh: New file.
37301         * tests/test-dprintf-posix2.c: New file.
37302         * modules/dprintf-posix-tests (Files): Add them.
37303         (configure.ac): Check for getrlimit and setrlimit.
37304         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37305
37306 2009-12-19  Bruno Haible  <bruno@clisp.org>
37307
37308         fprintf-posix: Check against memory leak fixed on 2009-12-15.
37309         * tests/test-fprintf-posix3.sh: New file.
37310         * tests/test-fprintf-posix3.c: New file.
37311         * modules/fprintf-posix-tests (Files): Add them.
37312         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
37313
37314 2009-12-19  Eric Blake  <ebb9@byu.net>
37315
37316         dirfd: fix prototype
37317         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
37318         * lib/dirfd.c (dirfd): Likewise.
37319
37320         canonicalize: reduce memory usage
37321         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
37322         allocation to size.
37323         Reported by Solar Designer <solar@openwall.com>.
37324
37325 2009-12-19  Bruno Haible  <bruno@clisp.org>
37326
37327         New module attribute 'Applicability'.
37328         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
37329         * gnulib-tool: New option --extract-applicability.
37330         (func_usage): Document it.
37331         (sed_extract_prog): Recognize it.
37332         (func_get_applicability): New function.
37333         (func_import): Generalize handling of 'link-warning' module.
37334         * modules/link-warning (Applicability): New section.
37335         * modules/arg-nonnull (Applicability): New section.
37336         Repoted by Simon Josefsson <simon@josefsson.org>.
37337
37338 2009-12-19  Bruno Haible  <bruno@clisp.org>
37339
37340         fflush: tweak
37341         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
37342         * lib/fseeko.c (rpl_fseeko): Likewise.
37343
37344 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
37345
37346         * lib/gl_list.h: Fix typo in comment.
37347
37348 2009-12-16  Eric Blake  <ebb9@byu.net>
37349
37350         fcntl: use to simplify other modules
37351         * modules/cloexec (Depends-on): Add fcntl.
37352         * modules/fchdir (Depends-on): Likewise.
37353         * modules/fd-safer-flag (Depends-on): Likewise.
37354         * modules/unistd-safer (Depends-on): Likewise.
37355         * modules/dup3 (configure.ac): Set module indicator.
37356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
37357         missing.
37358         * lib/fchdir.c (_gl_register_dup): Fix comment.
37359         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
37360         * lib/dup-safer.c (dup_safer): Likewise.
37361         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
37362         * lib/dup3.c (dup3): Likewise.
37363         * tests/test-fchdir.c (main): Enhance test.
37364         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
37365
37366         fcntl: port portions of fcntl to mingw
37367         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
37368         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
37369         replacement for mingw.
37370         * modules/fcntl (Description): Update.
37371         (Depends-on): Add dup2.
37372         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
37373         * modules/fcntl-h (Makefile.am): Substitute it.
37374         * lib/fcntl.in.h (fcntl): Update declaration.
37375         (F_DUPFD, F_GETFD): New macros, when needed.
37376         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37377         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
37378         * tests/test-fcntl.c (check_flags, main): Enhance test for items
37379         we now guarantee.
37380
37381         fcntl: work around cygwin bug in F_DUPFD
37382         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
37383         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
37384         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
37385         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
37386         * doc/posix-functions/fcntl.texi (fcntl): Document it.
37387
37388         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
37389         * modules/fcntl (Files): List new files.
37390         (configure.ac): Run a test.
37391         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
37392         * lib/fcntl.c (rpl_fcntl): Likewise.
37393         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
37394         (gl_FCNTL_H): Always replace fcntl.h.
37395         * modules/fcntl-h (Makefile.am): Substitute witnesses.
37396         * lib/fcntl.in.h (fcntl): Declare replacement.
37397         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
37398         needed, plus a witness.
37399         * doc/posix-functions/fcntl.texi (fcntl): Document this.
37400         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37401         * tests/test-fcntl.c: New file.
37402         * modules/fcntl-tests: Likewise.
37403
37404         binary-io: avoid potential compilation warning
37405         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
37406         directives.
37407
37408         fflush: avoid compilation error on NetBSD
37409         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
37410         between off_t and fpos_t, since the latter is sometimes a struct.
37411         * lib/fseeko.c (rpl_fseeko): Likewise.
37412         Reported by Alexander Nasonov <alnsn@yandex.ru>.
37413
37414 2009-12-15  Eric Blake  <ebb9@byu.net>
37415
37416         fcntl-h, stdio, sys_ioctl: fix declarations
37417         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
37418         function must not take arguments.
37419         * lib/sys_ioctl.in.h (ioctl): Likewise.
37420         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
37421         (open): Add a link warning.
37422
37423 2009-12-15  Jim Meyering  <meyering@redhat.com>
37424
37425         areadlink, areadlink-with-size: relax license to LGPLv2+
37426         * modules/areadlink (License): Relax to LGPLv2+.
37427         * modules/areadlink-with-size (License): Likewise.
37428
37429 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
37430             Bruno Haible  <bruno@clisp.org>
37431
37432         *printf: Fix memory leak.
37433         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
37434         * lib/vfprintf.c (vfprintf): Likewise.
37435         * lib/dprintf.c (dprintf): Likewise.
37436         * lib/vdprintf.c (vdprintf): Likewise.
37437
37438 2009-12-14  Eric Blake  <ebb9@byu.net>
37439
37440         accept4: adjust module dependencies
37441         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
37442
37443         utimens: one more try at avoiding compiler warning
37444         * lib/utimens.c (lutimens): Lower scope of result.
37445
37446 2009-12-13  Bruno Haible  <bruno@clisp.org>
37447
37448         Move the malloc checking from module 'list' to new module 'xlist'.
37449         * modules/xlist: New file.
37450         * lib/gl_xlist.h: New file.
37451         * lib/gl_xlist.c: New file.
37452         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
37453         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
37454         gl_list_add_last, gl_list_add_before, gl_list_add_after,
37455         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
37456         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
37457         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
37458         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
37459         gl_sortedlist_nx_add): New declarations.
37460         (struct gl_list_implementation): Rename and change methods accordingly.
37461         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
37462         (gl_list_nx_create): Renamed from gl_list_create.
37463         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37464         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37465         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37466         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37467         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37468         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37469         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37470         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37471         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
37472         gl_list_create_empty.
37473         (gl_list_nx_create): Renamed from gl_list_create.
37474         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
37475         (gl_list_nx_set_at): Renamed from gl_list_set_at.
37476         (gl_list_nx_add_first): Renamed from gl_list_add_first.
37477         (gl_list_nx_add_last): Renamed from gl_list_add_last.
37478         (gl_list_nx_add_before): Renamed from gl_list_add_before.
37479         (gl_list_nx_add_after): Renamed from gl_list_add_after.
37480         (gl_list_nx_add_at): Renamed from gl_list_add_at.
37481         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
37482         * lib/gl_array_list.c: Don't include xalloc.h.
37483         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
37484         NULL upon out-of-memory.
37485         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
37486         out-of-memory.
37487         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
37488         Change return type to 'int'.
37489         (gl_array_nx_set_at): Renamed from gl_array_set_at.
37490         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37491         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
37492         upon out-of-memory.
37493         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
37494         upon out-of-memory.
37495         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
37496         upon out-of-memory.
37497         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
37498         upon out-of-memory.
37499         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
37500         out-of-memory.
37501         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
37502         Update.
37503         (gl_array_list_implementation): Update.
37504         * lib/gl_carray_list.c: Don't include xalloc.h.
37505         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
37506         Return NULL upon out-of-memory.
37507         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
37508         out-of-memory.
37509         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
37510         Change return type to 'int'.
37511         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
37512         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
37513         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
37514         upon out-of-memory.
37515         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
37516         upon out-of-memory.
37517         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
37518         out-of-memory.
37519         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
37520         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
37521         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
37522         Update.
37523         (gl_carray_list_implementation): Update.
37524         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
37525         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
37526         gl_linked_create_empty. Return NULL upon out-of-memory.
37527         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
37528         out-of-memory.
37529         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
37530         Change return type to 'int'. Return -1 upon out-of-memory.
37531         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
37532         out-of-memory.
37533         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
37534         upon out-of-memory.
37535         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
37536         upon out-of-memory.
37537         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
37538         NULL upon out-of-memory.
37539         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
37540         upon out-of-memory.
37541         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
37542         out-of-memory.
37543         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
37544         Update.
37545         * lib/gl_linked_list.c: Don't include xalloc.h.
37546         (gl_linked_list_implementation): Update.
37547         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
37548         (add_to_bucket): Change return type to 'int'.
37549         (gl_linkedhash_list_implementation): Update.
37550         * lib/gl_anytree_list1.h (free_subtree): New function.
37551         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
37552         gl_tree_create_empty. Return NULL upon out-of-memory.
37553         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
37554         Change return type to 'int'. Return -1 upon out-of-memory.
37555         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
37556         out-of-memory.
37557         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
37558         (gl_tree_remove_node): New function, moved here from
37559         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
37560         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
37561         Update.
37562         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
37563         malloc, not xmalloc. Return NULL upon out-of-memory.
37564         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37565         out-of-memory.
37566         (gl_tree_remove_node_from_tree): New function, extracted from
37567         gl_tree_remove_node.
37568         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37569         upon out-of-memory.
37570         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37571         out-of-memory.
37572         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37573         upon out-of-memory.
37574         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37575         upon out-of-memory.
37576         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37577         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
37578         not xmalloc. Return NULL upon out-of-memory.
37579         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
37580         out-of-memory.
37581         (gl_tree_remove_node_from_tree): New function, extracted from
37582         gl_tree_remove_node.
37583         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
37584         upon out-of-memory.
37585         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
37586         out-of-memory.
37587         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
37588         upon out-of-memory.
37589         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
37590         upon out-of-memory.
37591         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
37592         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
37593         gl_anytree_list1.h before gl_anyavltree_list2.h.
37594         (gl_avltree_list_implementation): Update.
37595         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
37596         gl_anytree_list1.h before gl_anyavltree_list2.h.
37597         (gl_rbtree_list_implementation): Update.
37598         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
37599         Change return type to 'int'. Return -1 upon out-of-memory. Use
37600         __builtin_expect.
37601         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
37602         (gl_avltreehash_list_implementation): Update.
37603         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
37604         (gl_rbtreehash_list_implementation): Update.
37605         * modules/array-list (Depends-on): Remove xalloc.
37606         * modules/carray-list (Depends-on): Likewise.
37607         * modules/linked-list (Depends-on): Likewise.
37608         * modules/linkedhash-list (Depends-on): Likewise.
37609         * modules/avltree-list (Depends-on): Likewise.
37610         * modules/rbtree-list (Depends-on): Likewise.
37611         * modules/avltreehash-list (Depends-on): Likewise.
37612         * modules/rbtreehash-list (Depends-on): Likewise.
37613
37614         * modules/xsublist: New file.
37615         * lib/gl_xsublist.h: New file.
37616         * lib/gl_xsublist.c: New file.
37617         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
37618         (gl_sublist_nx_create): New declaration.
37619         * lib/gl_sublist.c: Don't include xalloc.h.
37620         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
37621         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
37622         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
37623         Change return type to 'int'. Return -1 upon out-of-memory.
37624         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
37625         upon out-of-memory.
37626         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
37627         NULL upon out-of-memory.
37628         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
37629         upon out-of-memory.
37630         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
37631         NULL upon out-of-memory.
37632         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
37633         NULL upon out-of-memory.
37634         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
37635         upon out-of-memory.
37636         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
37637         (gl_sublist_list_implementation): Update.
37638         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
37639         upon out-of-memory.
37640         * modules/sublist (Depends-on): Remove xalloc.
37641
37642         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
37643         * tests/test-carray_list.c: Likewise.
37644         * tests/test-linked_list.c: Likewise.
37645         * tests/test-linkedhash_list.c: Likewise.
37646         * tests/test-avltree_list.c: Likewise.
37647         * tests/test-rbtree_list.c: Likewise.
37648         * tests/test-avltreehash_list.c: Likewise.
37649         * tests/test-rbtreehash_list.c: Likewise.
37650         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
37651         * modules/carray-list-tests (Makefile.am): Likewise.
37652         * modules/linked-list-tests (Makefile.am): Likewise.
37653         * modules/linkedhash-list-tests (Makefile.am): Likewise.
37654         * modules/avltree-list-tests (Makefile.am): Likewise.
37655         * modules/rbtree-list-tests (Makefile.am): Likewise.
37656         * modules/avltreehash-list-tests (Makefile.am): Likewise.
37657         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
37658
37659         * NEWS: Mention the changes.
37660
37661         * lib/clean-temp.c: Include gl_xlist.h.
37662         * modules/clean-temp (Depends-on): Add xlist.
37663
37664         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
37665         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
37666
37667         * tests/test-array_oset.c: Include gl_xlist.h.
37668         * modules/array-oset-tests (Depends-on): Add xlist.
37669
37670         Reported by José E. Marchesi <jemarch@gnu.org>.
37671
37672 2009-12-13  Bruno Haible  <bruno@clisp.org>
37673
37674         Move the malloc checking from module 'oset' to new module 'xoset'.
37675         * modules/xoset: New file.
37676         * lib/gl_xoset.h: New file.
37677         * lib/gl_xoset.c: New file.
37678         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
37679         declarations.
37680         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
37681         (struct gl_oset_implementation): Rename and change methods accordingly.
37682         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
37683         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37684         'int'. Mark as __warn_unused_result__.
37685         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
37686         gl_oset_create_empty.
37687         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
37688         'int'.
37689         * lib/gl_array_oset.c: Don't include xalloc.h.
37690         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
37691         malloc, not xmalloc.
37692         (grow): Change return type to 'int'. Don't call xalloc_die.
37693         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
37694         to 'int'.
37695         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
37696         'int'.
37697         (gl_array_oset_implementation): Update.
37698         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
37699         gl_tree_create_empty.
37700         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
37701         'int'.
37702         * lib/gl_avltree_oset.c: Don't include xalloc.h.
37703         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37704         xmalloc.
37705         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37706         not xmalloc.
37707         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37708         xmalloc.
37709         (gl_avltree_oset_implementation): Update.
37710         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
37711         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
37712         xmalloc.
37713         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
37714         not xmalloc.
37715         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
37716         xmalloc.
37717         (gl_rbtree_oset_implementation): Update.
37718         * modules/array-oset (Depends-on): Remove xalloc.
37719         * modules/avltree-oset (Depends-on): Likewise.
37720         * modules/rbtree-oset (Depends-on): Likewise.
37721         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
37722         * tests/test-avltree_oset.c: Likewise.
37723         * tests/test-rbtree_oset.c: Likewise.
37724         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
37725         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
37726         * modules/rbtree-oset-tests (Makefile.am): Likewise.
37727         * NEWS: Mention the change.
37728
37729 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
37730
37731         maint.mk: allow a project to override release-prep commands
37732         * top/maint.mk (alpha, beta, stable): Move release-preparatory
37733         commands into a new rule.
37734         (release-prep): New rule.
37735         (release-prep-hook): New overridable variable.
37736
37737 2009-12-13  Bruno Haible  <bruno@clisp.org>
37738
37739         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
37740
37741 2009-12-13  Jim Meyering  <meyering@redhat.com>
37742
37743         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
37744         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
37745
37746 2009-12-12  Bruno Haible  <bruno@clisp.org>
37747
37748         duplocale: Tweak.
37749         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
37750
37751 2009-12-12  Karl Berry  <karl@gnu.org>
37752
37753         * config/srclist.txt (strtoll.c): tab changes, no more sync.
37754
37755 2009-12-12  Bruno Haible  <bruno@clisp.org>
37756
37757         * m4/po.m4: Undo incorrect untabification.
37758
37759 2009-12-12  Bruno Haible  <bruno@clisp.org>
37760
37761         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
37762         * modules/c-strtod (Depends-on): Add locale.
37763         * modules/c-strtold (Depends-on): Likewise.
37764
37765 2009-12-12  Bruno Haible  <bruno@clisp.org>
37766
37767         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
37768
37769 2009-12-11  Eric Blake  <ebb9@byu.net>
37770
37771         setenv: relax requirement in light of POSIX ruling
37772         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
37773         not NULL.
37774         * tests/test-setenv.c (main): Relax test.
37775         * tests/test-unsetenv.c (main): Likewise.
37776         * doc/posix-functions/setenv.texi (setenv): Document this.
37777         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37778
37779 2009-12-11  Bruno Haible  <bruno@clisp.org>
37780
37781         New module 'fd-safer-flag'.
37782         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
37783         * lib/dup-safer.c (dup_safer_flag): Remove function.
37784         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
37785         * lib/fd-safer.c (fd_safer_flag): Remove function.
37786         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
37787         * modules/cloexec (configure.ac): Drop indicator macro.
37788         * modules/fd-safer-flag: New file.
37789         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
37790         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
37791         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
37792
37793 2009-12-11  Bruno Haible  <bruno@clisp.org>
37794
37795         Tests for module 'nl_langinfo'.
37796         * modules/nl_langinfo-tests: New file.
37797         * tests/test-nl_langinfo.sh: New file.
37798         * tests/test-nl_langinfo.c: New file.
37799
37800         New module 'nl_langinfo'.
37801         * lib/nl_langinfo.c: New file.
37802         * m4/nl_langinfo.m4: New file.
37803         * modules/nl_langinfo: New file.
37804         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
37805
37806 2009-12-11  Bruno Haible  <bruno@clisp.org>
37807
37808         Tests for module 'langinfo'.
37809         * modules/langinfo-tests: New file.
37810         * tests/test-langinfo.c: New file.
37811
37812         New module 'langinfo'.
37813         * lib/langinfo.in.h: New file.
37814         * m4/langinfo_h.m4: New file.
37815         * modules/langinfo: New file.
37816         * doc/posix-headers/langinfo.texi: Mention the new module.
37817
37818 2009-12-11  Bruno Haible  <bruno@clisp.org>
37819
37820         * lib/config.charset: Untabify.
37821
37822 2009-12-11  Bruno Haible  <bruno@clisp.org>
37823
37824         * modules/unistd-safer (configure.ac): Drop indicator macro.
37825
37826 2009-12-11  Bruno Haible  <bruno@clisp.org>
37827
37828         Move pipe2-safer code to its own file.
37829         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37830         * lib/pipe-safer.c (pipe2_safer): Remove function.
37831         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37832         (Makefile.am): Add it to lib_SOURCES.
37833
37834 2009-12-10  Bruno Haible  <bruno@clisp.org>
37835
37836         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37837
37838 2009-12-10  Bruno Haible  <bruno@clisp.org>
37839
37840         Declare which arguments expect non-NULL values, for GCC and clang.
37841         * build-aux/arg-nonnull.h: New file.
37842         * modules/arg-nonnull: New file.
37843         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37844         (inet_ntop, inet_pton): Use it.
37845         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37846         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37847         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37848         (open, openat): Use it.
37849         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37850         (fnmatch): Use it.
37851         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37852         (getopt, getopt_long, getopt_long_only): Use it.
37853         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37854         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37855         Use it.
37856         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37857         (iconv_open): Use it.
37858         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37859         (strtoimax, strtoumax): Use it.
37860         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37861         (duplocale): Use it.
37862         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37863         (frexp, frexpl): Use it.
37864         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37865         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37866         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37867         (tsearch, tfind, tdelete, twalk): Use it.
37868         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37869         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37870         sigpending): Use it.
37871         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37872         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37873         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37874         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37875         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37876         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37877         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37878         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37879         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37880         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37881         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37882         Use it.
37883         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37884         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37885         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37886         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37887         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37888         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37889         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37890         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37891         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37892         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37893         strtoull, unsetenv): Use it.
37894         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37895         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37896         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37897         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37898         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37899         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37900         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37901         (strcasecmp, strncasecmp): Use it.
37902         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37903         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37904         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37905         rpl_setsockopt): Use it.
37906         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37907         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37908         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37909         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37910         (gettimeofday): Use it.
37911         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37912         (times): Use it.
37913         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37914         (uname): Use it.
37915         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37916         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37917         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37918         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37919         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37920         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37921         unlinkat, write): Use it.
37922         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37923         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37924         * lib/argv-iter.h: Include arg-nonnull.h.
37925         (_ATTRIBUTE_NONNULL_): Remove macro.
37926         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37927         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37928         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37929         optimization.
37930         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37931         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37932         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37933         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37934         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37935         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37936         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37937         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37938         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37939         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37940         * modules/dirent (Depends-on): Add arg-nonnull.
37941         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37942         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37943         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37944         * modules/fnmatch (Depends-on): Add arg-nonnull.
37945         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37946         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37947         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37948         * modules/glob (Depends-on): Add arg-nonnull.
37949         (Makefile.am): Insert arg-nonnull.h into glob.h.
37950         * modules/iconv_open (Depends-on): Add arg-nonnull.
37951         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37952         * modules/inttypes (Depends-on): Add arg-nonnull.
37953         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37954         * modules/locale (Depends-on): Add arg-nonnull.
37955         (Makefile.am): Insert arg-nonnull.h into locale.h.
37956         * modules/math (Depends-on): Add arg-nonnull.
37957         (Makefile.am): Insert arg-nonnull.h into math.h.
37958         * modules/netdb (Depends-on): Add arg-nonnull.
37959         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37960         * modules/search (Depends-on): Add arg-nonnull.
37961         (Makefile.am): Insert arg-nonnull.h into search.h.
37962         * modules/signal (Depends-on): Add arg-nonnull.
37963         (Makefile.am): Insert arg-nonnull.h into signal.h.
37964         * modules/spawn (Depends-on): Add arg-nonnull.
37965         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37966         * modules/stdio (Depends-on): Add arg-nonnull.
37967         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37968         * modules/stdlib (Depends-on): Add arg-nonnull.
37969         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37970         * modules/string (Depends-on): Add arg-nonnull.
37971         (Makefile.am): Insert arg-nonnull.h into string.h.
37972         * modules/strings (Depends-on): Add arg-nonnull.
37973         (Makefile.am): Insert arg-nonnull.h into strings.h.
37974         * modules/sys_socket (Depends-on): Add arg-nonnull.
37975         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37976         * modules/sys_stat (Depends-on): Add arg-nonnull.
37977         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37978         * modules/sys_time (Depends-on): Add arg-nonnull.
37979         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37980         * modules/sys_times (Depends-on): Add arg-nonnull.
37981         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37982         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37983         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37984         * modules/time (Depends-on): Add arg-nonnull.
37985         (Makefile.am): Insert arg-nonnull.h into time.h.
37986         * modules/unistd (Depends-on): Add arg-nonnull.
37987         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37988         * modules/wchar (Depends-on): Add arg-nonnull.
37989         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37990         * modules/argv-iter (Depends-on): Add arg-nonnull.
37991         * tests/test-canonicalize.c (null_ptr): New function.
37992         (main): Use it.
37993         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37994         (main): Use it.
37995         * tests/test-memmem.c (null_ptr): New function.
37996         (main): Use it.
37997         Reported by Jim Meyering.
37998
37999 2009-12-10  Bruno Haible  <bruno@clisp.org>
38000
38001         Use spaces for indentation, not tabs.
38002         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
38003         * m4/*.m4: Untabify.
38004         * build-aux/*.h: Untabify.
38005         * tests/**/*.[hc]: Untabify.
38006         * README: New section "Indent with spaces, not TABs", based on
38007         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
38008         * NEWS: Mention the change.
38009
38010 2009-12-10  Bruno Haible  <bruno@clisp.org>
38011
38012         pty test: Fix link error.
38013         * modules/pty-tests (Makefile.am): Add the default LDADD value to
38014         test_pty_LDADD.
38015
38016 2009-12-07  Simon Josefsson  <simon@josefsson.org>
38017
38018         * modules/pty: New file.
38019         * modules/pty-tests: New file.
38020         * m4/pty.m4: New file.
38021         * tests/test-pty.c: New file.
38022         * doc/glibc-headers/pty.texi: Modified.
38023         * doc/glibc-functions/forkpty.texi: Modified.
38024         * doc/glibc-functions/openpty.texi: Modified.
38025
38026 2009-12-10  Bruno Haible  <bruno@clisp.org>
38027
38028         Avoid syntax error in C++ mode.
38029         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
38030
38031 2009-12-10  Bruno Haible  <bruno@clisp.org>
38032
38033         Use sed with option -e.
38034         * gnulib-tool (func_version, func_emit_copyright_notice,
38035         func_emit_initmacro_end, func_import, func_create_testdir): Pass
38036         option -e to sed.
38037         * modules/link-warning (Makefile.am): Likewise.
38038
38039 2009-12-10  Jim Meyering  <meyering@redhat.com>
38040
38041         mgetgroups: do not write bytes beyond end of malloc'd buffer
38042         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
38043         username, we call getgroups with a one-element-shorter buffer,
38044         but still told it the length was original, max_n_groups.
38045
38046 2009-12-09  Eric Blake  <ebb9@byu.net>
38047
38048         cloexec: relax license
38049         * modules/cloexec (Maintainer): Add myself.
38050         (License): Use LGPL, not GPL.
38051
38052         link-warning: optimize generation
38053         * modules/link-warning (Makefile.am): Reduce process usage.
38054
38055 2009-12-09  Bruno Haible  <bruno@clisp.org>
38056
38057         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
38058         workaround was added on 2009-11-17.
38059
38060 2009-12-09  Jim Meyering  <meyering@redhat.com>
38061             Bruno Haible  <bruno@clisp.org>
38062
38063         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
38064         * modules/link-warning (Makefile.am): Make the comment-removing sed
38065         command more robust in the face of bootstrap-prepended comment lines.
38066
38067 2009-12-09  Bruno Haible  <bruno@clisp.org>
38068
38069         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
38070         most one group.
38071
38072 2009-12-09  Simon Josefsson <simon@josefsson.org>
38073             Bruno Haible  <bruno@clisp.org>
38074
38075         * build-aux/link-warning.h: Add copyright notice.
38076         * modules/link-warning (Makefile.am): Generate link-warning.h from
38077         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
38078         * NEWS: Mention change in link-warning module.
38079         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
38080         * modules/dirent (Makefile.am): Add dependency to dirent.h.
38081         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
38082         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
38083         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
38084         * modules/math (Makefile.am): Add dependency to math.h.
38085         * modules/search (Makefile.am): Add dependency to search.h.
38086         * modules/signal (Makefile.am): Add dependency to signal.h.
38087         * modules/spawn (Makefile.am): Add dependency to spawn.h.
38088         * modules/stdio (Makefile.am): Add dependency to stdio.h.
38089         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
38090         * modules/string (Makefile.am): Add dependency to string.h.
38091         * modules/strings (Makefile.am): Add dependency to strings.h.
38092         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
38093         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
38094         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
38095         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
38096         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
38097         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
38098         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
38099         * modules/unistd (Makefile.am): Add dependency to unistd.h.
38100         * modules/wchar (Makefile.am): Add dependency to wchar.h.
38101
38102 2009-12-09  Bruno Haible  <bruno@clisp.org>
38103
38104         fchdir: Optimize away rpl_fstat when possible.
38105         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
38106         REPLACE_OPEN_DIRECTORY.
38107         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
38108
38109 2009-12-09  Bruno Haible  <bruno@clisp.org>
38110
38111         * lib/fchdir.c: Update comment.
38112
38113 2009-12-09  Bruno Haible  <bruno@clisp.org>
38114
38115         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
38116
38117 2009-12-08  Eric Blake  <ebb9@byu.net>
38118
38119         fchdir: avoid memory leak on re-registration.
38120         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
38121
38122 2009-12-08  Jim Meyering  <meyering@redhat.com>
38123
38124         init.sh: avoid Solaris 10 /bin/sh portability problem
38125         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
38126         sourced script:
38127           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
38128           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
38129           bar
38130         tests/init.sh relied on that, accepting a --set-path=DIR argument,
38131         and two tests used that idiom.
38132         * tests/init.sh: Update suggested usage comments.
38133         (path_prepend_): New function, to be used in place
38134         of the --src-path=DIR option.
38135         (setup_): Move PATH-prepending code into path_prepend_.
38136         * tests/test-pread.sh: Adapt to new usage.
38137         * tests/test-xalloc-die.sh: Likewise.
38138
38139 2009-12-08  Simon Josefsson  <simon@josefsson.org>
38140
38141         * doc/gnulib.texi (Glibc pty.h): Add.
38142         * doc/glibc-functions/forkpty.texi: Add.
38143         * doc/glibc-functions/openpty.texi: Add.
38144         Suggested by Bruno Haible.
38145
38146 2009-12-08  Eric Blake  <ebb9@byu.net>
38147
38148         fchdir: fix logic bugs
38149         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
38150         * tests/test-fchdir.c (main): Enhance test.
38151         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
38152         is in use.
38153
38154         dup2: fix logic bugs
38155         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
38156         REPLACE_DUP2 to decide when rpl_dup2 is needed.
38157         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
38158         exists.
38159         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
38160
38161 2009-12-07  Eric Blake  <ebb9@byu.net>
38162
38163         unlink: fix m4 detection
38164         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
38165
38166         unistd-safer: add unit test
38167         * modules/unistd-safer-tests: New file.
38168         * tests/test-dup-safer.c: Likewise.
38169         * tests/test-cloexec.c (setmode): Avoid compiler warning.
38170         * tests/test-dup2.c (setmode): Likewise.
38171         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
38172
38173         cloexec: preserve text vs. binary across dup_cloexec
38174         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
38175         mode.
38176         * modules/dup2-tests (Depends-on): Add binary-io.
38177         * modules/cloexec-tests (Depends-on): Likewise.
38178         * tests/test-dup2.c (setmode, is_mode): New helpers.
38179         (main): Add tests that translation mode is preserved.
38180         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
38181         Reported by Bruno Haible.
38182
38183         mgetgroups: reduce duplicate listings
38184         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
38185         resulting array.
38186         * tests/test-chown.h (test_chown): Simplify client.
38187         * tests/test-lchown.h (test_lchown): Likewise.
38188
38189 2009-12-06  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
38192         value.
38193
38194 2009-12-06  Bruno Haible  <bruno@clisp.org>
38195
38196         * lib/progname.c: Include stdio.h, stdlib.h.
38197         (set_program_name): Reject a NULL argument.
38198
38199 2009-12-05  Eric Blake  <ebb9@byu.net>
38200
38201         pipe2-safer: new module
38202         * modules/pipe2-safer: New file.
38203         * lib/unistd-safer.h (pipe2_safer): New prototype.
38204         * lib/unistd--.h (pipe2): New wrapper.
38205         * lib/pipe-safer.c (pipe2_safer): New function.
38206         * modules/pipe (Depends-on): Add pipe2-safer.
38207         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
38208
38209         stdlib-safer: preserve cloexec flag for mkostemp[s]
38210         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
38211         fd_safer_flag.
38212
38213         unistd-safer: allow preservation of cloexec status via flag
38214         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
38215         prototypes.
38216         * lib/dup-safer.c (dup_safer_flag): New function.
38217         * lib/fd-safer.c (fd_safer_flag): Likewise.
38218         * modules/cloexec (configure.ac): Set witness.
38219
38220         test-dup2: enhance test
38221         * modules/dup2-tests (Depends-on): Add cloexec.
38222         * tests/test-dup2.c (main): Enhance test.
38223
38224         cloexec: add dup_cloexec
38225         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
38226         header and comments.
38227         * lib/cloexec.c (set_cloexec_flag): Add comments.
38228         (dup_cloexec): New function, with mingw implementation borrowed
38229         from...
38230         * lib/w32spawn.h (dup_noinherit): ...here.
38231         * modules/execute (Depends-on): Add cloexec.
38232         * modules/pipe (Depends-on): Likewise.
38233         * modules/cloexec (Depends-on): Add dup2.
38234         * modules/cloexec-tests (Files): New file.
38235         * tests/test-cloexec.c: Likewise.
38236
38237         test-xalloc-die: fix test for mingw
38238         * modules/xalloc-die-tests (Files): Add tests/init.sh.
38239         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
38240         directory and .exe suffix off argv[0] output.
38241
38242         test-fseeko: fix test for mingw
38243         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
38244         than undefining fseek, so test will pass on mingw.
38245
38246 2009-12-05  Bruno Haible  <bruno@clisp.org>
38247
38248         * lib/progname.h (set_program_name): Clarify specification.
38249         * lib/progname.c (set_program_name): Likewise.
38250         Reported by Jim Meyering.
38251
38252 2009-12-05  Jim Meyering  <meyering@redhat.com>
38253
38254         maint.mk: backslash-escape parens in default regexp
38255         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
38256         backslash-escape the literal parentheses.
38257
38258         maint.mk: news-date-check: use grep -E
38259         * top/maint.mk (today): Define a Make variable, not a...
38260         (news-date-check): ...shell variable.
38261         (news-date-regexp): Use the Make variable.
38262         Use grep's -E option.  Change the failing diagnostic to mention
38263         the variable, $(news-date-regexp).
38264
38265 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
38266
38267         maintainer-makefile: allow customization of NEWS entry format
38268         * top/maint.mk (news-date-regexp): New overridable variable.
38269         (news-date-check): Use it.
38270
38271 2009-12-04  Eric Blake  <ebb9@byu.net>
38272
38273         mgetgroups: add xgetgroups, and avoid ENOSYS failures
38274         * lib/mgetgroups.h (xgetgroups): New prototype.
38275         * lib/mgetgroups.c (xgetgroups): New wrapper.
38276         (mgetgroups): Handle ENOSYS.
38277         * modules/mgetgroups (Depends-on): Add realloc.
38278         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
38279
38280         mgetgroups: avoid argument promotion issues with -1
38281         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
38282         for invalid gid_t.
38283         * tests/test-chown.h (getegid, test_chown): Likewise.
38284         * tests/test-lchown.h (getegid, test_lchown): Likewise.
38285
38286 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
38287
38288         exclude: Fix header file problems.
38289         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
38290
38291 2009-12-01  Jim Meyering  <meyering@redhat.com>
38292
38293         fts: fts_open: do not let an empty string cause immediate failure
38294         This is required in support of GNU rm, for which the command
38295         "rm A '' B" must process and remove both A and B, in spite of
38296         the empty string argument.
38297         * lib/fts.c (fts_open): Do not let the presence of an empty string
38298         cause fts_open to fail immediately.  Most fts-using tools must be
38299         able to process all arguments, in order, and can be expected to
38300         diagnose such arguments themselves.
38301
38302 2009-11-30  Eric Blake  <ebb9@byu.net>
38303
38304         utimens: fix compilation error
38305         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
38306         Declare variable at right scope.
38307
38308 2009-11-29  Jim Meyering  <meyering@redhat.com>
38309
38310         bootstrap: handle perl-5.11's changed --version output
38311         * build-aux/bootstrap (get_version): Handle perl separately,
38312         since perl-5.11's --version output is different.
38313
38314 2009-11-28  Jim Meyering  <meyering@redhat.com>
38315
38316         userspec: depend on the inttostr module, too
38317         * modules/userspec (Depends-on): Add inttostr.
38318
38319         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
38320         * lib/userspec.c (parse_with_separator): Do not accept a user ID
38321         number of MAXUID when it evaluates to (uid_t) -1.
38322         Likewise for group ID.  Reported by Matt McCutchen in
38323         <http://savannah.gnu.org/bugs/?28113>
38324
38325         userspec: reformat to use spaces, not TABs
38326         * lib/userspec.c: Expand TABs to spaces.
38327         Add Emacs' "indent-tabs-mode: nil" hint.
38328
38329 2009-11-27  Eric Blake  <ebb9@byu.net>
38330
38331         getopt-gnu: flush out another BSD bug
38332         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
38333         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
38334         flush out BSD bug.
38335         * tests/test-getopt.h (test_getopt): End lists with NULL.
38336         * tests/test-getopt_long.h (test_getopt_long): Likewise.
38337         (test_getopt_long_posix): Enhance test.
38338         * modules/getopt-posix-tests (Depends-on): Add stdbool.
38339         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
38340         getopt-gnu.
38341         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38342         Likewise.
38343
38344 2009-11-27  Simon Josefsson  <simon@josefsson.org>
38345
38346         * modules/idpriv-droptemp-tests (Notice): Fix text.
38347
38348 2009-11-27  Jim Meyering  <meyering@redhat.com>
38349
38350         test-xalloc-die: avoid spurious failure due to libtool argv difference
38351         In a libtool-enabled project, this test would fail due to a difference
38352         in the emitted program name, e.g.,
38353         -test-xalloc-die: memory exhausted
38354         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
38355         Use program to avoid that.
38356         * modules/xalloc-die-tests (Depends-on): Add progname.
38357         * tests/test-xalloc-die.c: Include progname.h".
38358         (program_name): Remove decl.
38359         (main): Call set_program_name.
38360         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
38361
38362 2009-11-26  Richard Jones  <rjones@redhat.com>
38363
38364         w32sock: leave win32 error in place.
38365         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
38366
38367 2009-11-26  Eric Blake  <ebb9@byu.net>
38368
38369         init.sh: suggest to use skip_ and fail_ functions in comments
38370         * tests/init.sh: Add a sentence.
38371
38372 2009-11-25  Bruno Haible  <bruno@clisp.org>
38373
38374         init.sh: add documentation in comments
38375         * tests/init.sh: Add some developer and user documentation.
38376
38377 2009-11-26  Jim Meyering  <meyering@redhat.com>
38378
38379         init.sh: accommodate even those who specify bogus srcdir manually
38380         * tests/init.sh: Normally, srcdir is guaranteed by automake and
38381         configure-time tests to be sanitized, so that there is no need to
38382         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
38383         (with no double quotes) suffices.  However, since tests may be
38384         invoked manually, and since you may explicitly set srcdir to the
38385         name of a directory containing spaces, do quote its uses here.
38386         * tests/test-pread.sh: Likewise.
38387         Suggested by Bruno Haible.
38388
38389         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
38390         * tests/test-pread.sh: Write no data into the pipe, because
38391         test-pread actually reads none.  This avoids a diagnostic,
38392         "bash: echo: write error: Broken pipe", that arises in the unusual
38393         event something is ignoring SIGPIPE, and might be interpreted
38394         as some sort of failure.  Reported by Bruno Haible.
38395
38396 2009-11-25  Jim Meyering  <meyering@redhat.com>
38397
38398         test-pread: cover failure with ESPIPE and EINVAL
38399         * tests/test-pread.c (main): Test for failure, too.
38400         * tests/test-pread.sh: Invoke with stdin on a pipe.
38401         Suggested by Eric Blake.
38402
38403         pread: improvement and fix
38404         * modules/pread (Depends-on): Depend on lseek, for portability to
38405         e.g., mingw.  Suggested by Eric Blake.
38406         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
38407
38408         unistd.in.h: correct declaration of pread
38409         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
38410         Reported by Richard W.M. Jones.
38411
38412         test-pread.sh: distribute the test script
38413         * modules/pread-tests (Files): Include test-pread.sh.
38414
38415         test-pread.sh: clean up
38416         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
38417         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
38418         That is unnecessary, since it's always ".".
38419         Suggestion from Eric Blake.
38420
38421         test-pread.sh: make executable
38422         * tests/test-pread.sh: Set executable bit.
38423         Reported by Eric Blake.
38424
38425         correct typo in test-pread.sh
38426         * tests/test-pread.sh: Add #! line.
38427
38428         test pread
38429         * tests/test-pread.c: New file.
38430         * tests/test-pread.sh: Likewise.
38431         * modules/pread-tests: Likewise.
38432
38433         pread: new module
38434         * modules/pread: New file.
38435         * lib/unistd.in.h (pread): Define/declare.
38436         * lib/pread.c (pread): New file.
38437         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
38438         * modules/unistd (Makefile.am): Substitute witnesses.
38439         * doc/posix-functions/pread.texi (pread): Update.
38440         * MODULES.html.sh: Add pread.
38441
38442 2009-11-25  Jim Meyering  <meyering@redhat.com>
38443
38444         tests/init.sh: new file to be used via most *.sh tests
38445         * tests/init.sh: New file.
38446
38447 2009-11-25  Eric Blake  <ebb9@byu.net>
38448
38449         utimens: work around older Linux failure with symlinks
38450         * lib/utimens.c (lutimensat_works_really): New variable.
38451         (fdutimens, lutimens): Use it to manage kernels that support
38452         nanosecond times on files, but not on symlinks.
38453         Reported by OndÅ™ej Vašík.
38454
38455         utimes: fix configure grammar
38456         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
38457
38458 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
38459
38460         regex: Fix fastmap for multibyte character ranges.
38461         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
38462         characters when a multibyte character range is included.
38463
38464 2009-11-22  Andy Wingo  <wingo@pobox.com>
38465
38466         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
38467         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
38468
38469 2009-11-24  Bruno Haible  <bruno@clisp.org>
38470
38471         doc: Most *_l functions exist in MacOS X 10.5.
38472         * doc/posix-functions/duplocale.texi: Update platforms list.
38473         * doc/posix-functions/freelocale.texi: Likewise.
38474         * doc/posix-functions/newlocale.texi: Likewise.
38475         * doc/posix-functions/uselocale.texi: Likewise.
38476         * doc/posix-functions/isalnum_l.texi: Likewise.
38477         * doc/posix-functions/isalpha_l.texi: Likewise.
38478         * doc/posix-functions/isblank_l.texi: Likewise.
38479         * doc/posix-functions/iscntrl_l.texi: Likewise.
38480         * doc/posix-functions/isdigit_l.texi: Likewise.
38481         * doc/posix-functions/isgraph_l.texi: Likewise.
38482         * doc/posix-functions/islower_l.texi: Likewise.
38483         * doc/posix-functions/isprint_l.texi: Likewise.
38484         * doc/posix-functions/ispunct_l.texi: Likewise.
38485         * doc/posix-functions/isspace_l.texi: Likewise.
38486         * doc/posix-functions/isupper_l.texi: Likewise.
38487         * doc/posix-functions/iswalnum_l.texi: Likewise.
38488         * doc/posix-functions/iswalpha_l.texi: Likewise.
38489         * doc/posix-functions/iswblank_l.texi: Likewise.
38490         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38491         * doc/posix-functions/iswctype_l.texi: Likewise.
38492         * doc/posix-functions/iswdigit_l.texi: Likewise.
38493         * doc/posix-functions/iswgraph_l.texi: Likewise.
38494         * doc/posix-functions/iswlower_l.texi: Likewise.
38495         * doc/posix-functions/iswprint_l.texi: Likewise.
38496         * doc/posix-functions/iswpunct_l.texi: Likewise.
38497         * doc/posix-functions/iswspace_l.texi: Likewise.
38498         * doc/posix-functions/iswupper_l.texi: Likewise.
38499         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38500         * doc/posix-functions/isxdigit_l.texi: Likewise.
38501         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
38502         * doc/posix-functions/strcasecmp_l.texi: Likewise.
38503         * doc/posix-functions/strcoll_l.texi: Likewise.
38504         * doc/posix-functions/strfmon_l.texi: Likewise.
38505         * doc/posix-functions/strftime_l.texi: Likewise.
38506         * doc/posix-functions/strncasecmp_l.texi: Likewise.
38507         * doc/posix-functions/strxfrm_l.texi: Likewise.
38508         * doc/posix-functions/tolower_l.texi: Likewise.
38509         * doc/posix-functions/toupper_l.texi: Likewise.
38510         * doc/posix-functions/towctrans_l.texi: Likewise.
38511         * doc/posix-functions/towlower_l.texi: Likewise.
38512         * doc/posix-functions/towupper_l.texi: Likewise.
38513         * doc/posix-functions/wcscoll_l.texi: Likewise.
38514         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38515         * doc/posix-functions/wctrans_l.texi: Likewise.
38516         * doc/posix-functions/wctype_l.texi: Likewise.
38517         * doc/glibc-functions/strptime_l.texi: Likewise.
38518         * doc/glibc-functions/strtod_l.texi: Likewise.
38519         * doc/glibc-functions/strtof_l.texi: Likewise.
38520         * doc/glibc-functions/strtol_l.texi: Likewise.
38521         * doc/glibc-functions/strtold_l.texi: Likewise.
38522         * doc/glibc-functions/strtoll_l.texi: Likewise.
38523         * doc/glibc-functions/strtoul_l.texi: Likewise.
38524         * doc/glibc-functions/strtoull_l.texi: Likewise.
38525         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38526         * doc/glibc-functions/wcstod_l.texi: Likewise.
38527         * doc/glibc-functions/wcstof_l.texi: Likewise.
38528         * doc/glibc-functions/wcstol_l.texi: Likewise.
38529         * doc/glibc-functions/wcstold_l.texi: Likewise.
38530         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38531         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38532         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38533
38534 2009-11-24  Bruno Haible  <bruno@clisp.org>
38535
38536         duplocale: Fix logic bug.
38537         * lib/duplocale.c: Don't include <langinfo.h>.
38538         (_NL_LOCALE_NAME): Remove macro.
38539         (rpl_duplocale): Use setlocale instead of nl_langinfo.
38540         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
38541
38542 2009-11-23  Jim Meyering  <meyering@redhat.com>
38543
38544         test-update-copyright: don't hard-code /usr/bin/perl
38545         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
38546         perl to print the current year.  Gilles Espinasse reported that
38547         the replaced use of perl was hard-coded as /usr/bin/perl.
38548
38549 2009-11-23  Bruno Haible  <bruno@clisp.org>
38550
38551         duplocale: Add support for glibc 2.3.x.
38552         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
38553
38554 2009-11-22  Bruno Haible  <bruno@clisp.org>
38555
38556         vasnprintf: Tiny optimization.
38557         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
38558         MacOS X.
38559
38560 2009-11-22  Bruno Haible  <bruno@clisp.org>
38561
38562         Tests for module 'duplocale'.
38563         * modules/duplocale-tests: New file.
38564         * tests/test-duplocale.c: New file.
38565
38566         New module 'duplocale'.
38567         * m4/duplocale.m4: New file.
38568         * lib/locale.in.h (duplocale): New declaration.
38569         * lib/duplocale.c: New file.
38570         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
38571         gl_LOCALE_H_DEFAULTS): New macros.
38572         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
38573         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
38574         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
38575         REPLACE_DUPLOCALE.
38576         * modules/duplocale: New file.
38577         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
38578
38579 2009-11-22  Bruno Haible  <bruno@clisp.org>
38580
38581         * modules/locale-tests (configure.ac): Test for newlocale function.
38582         * tests/test-locale.c: When the system has extended locale functions,
38583         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
38584
38585         locale: Make locale_t available when possible.
38586         * lib/locale.in.h: Include <xlocale.h> when it exists.
38587         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
38588         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
38589         * modules/locale (Depends-on): Add extensions.
38590         (Makefile.am): Also substitute HAVE_XLOCALE_H.
38591         * doc/posix-headers/locale.texi: Document the problem with locale_t.
38592
38593 2009-11-22  Bruno Haible  <bruno@clisp.org>
38594
38595         Add comments.
38596         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
38597         invocation.
38598         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38599         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38600         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38601
38602 2009-11-22  Bruno Haible  <bruno@clisp.org>
38603
38604         error: account for the possibility of freopen (stdout).
38605         * lib/error.c: Include <unistd.h>.
38606         (flush_stdout): New function, extracted from error and error_at_line.
38607         Determine stdout's fd dynamically.
38608         (error, error_at_line): Invoke flush_stdout.
38609         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
38610         * modules/error (Depends-on): Add unistd.
38611
38612 2009-11-22  Bruno Haible  <bruno@clisp.org>
38613
38614         diffseq: Add comment.
38615         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
38616
38617 2009-11-22  Jim Meyering  <meyering@redhat.com>
38618
38619         c-stack: avoid defining an unused static function
38620         * lib/c-stack.c (find_stack_direction): Do not define this function
38621         when it will not be used.
38622
38623         diffseq: avoid spurious gcc warnings
38624         * lib/diffseq.h (IF_LINT2): Define.
38625         (compareseq): Use it to initialize two members of "part".
38626         This avoids two used-uninitialized warnings.
38627
38628 2009-11-21  Jim Meyering  <meyering@redhat.com>
38629
38630         c-stack: avoid "ignoring return value of `write'" warning
38631         * lib/c-stack.c: Include "ignore-value.h".
38632         (die): Explicitly ignore each write return value.
38633         * modules/c-stack (Depends-on): Add ignore-value.
38634
38635 2009-11-21  Bruno Haible  <bruno@clisp.org>
38636
38637         diffseq: reduce scope of variable 'best'.
38638         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
38639         variable, earlier used for two different purposes.
38640
38641 2009-11-21  Jim Meyering  <meyering@redhat.com>
38642
38643         diffseq: remove useless assignment to "best"
38644         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
38645         assignment.  At that point "best" is already guaranteed to be zero.
38646
38647 2009-11-20  Eric Blake  <ebb9@byu.net>
38648
38649         build: mention ftp redirector in release announcements
38650         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
38651         values that used to come from cfg.mk; mention FTP redirect URL.
38652         * build-aux/announce-gen: Mention the mirror list.
38653         Suggested by Karl Berry.
38654
38655         nanosleep: improve port to mingw
38656         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
38657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
38658         LIB_NANOSLEEP, but only when needed.
38659         * modules/select (Link): Document LIBSOCKET.
38660         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
38661         enough.
38662
38663         nanosleep: work around cygwin bug
38664         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
38665         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
38666         bug.
38667         (getnow): Delete, not needed.
38668         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
38669         LIB_CLOCK_GETTIME.
38670         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
38671         clock-time, gettime.
38672         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
38673         bug.
38674         * modules/nanosleep-tests: New test.
38675         * tests/test-nanosleep.c: New file.
38676
38677         sleep: work around cygwin bug
38678         * lib/sleep.c (rpl_sleep): Work around the bug.
38679         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
38680         (gl_PREREQ_SLEEP): Delete unused macro.
38681         * modules/sleep (Depends-on): Add verify.
38682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38683         * modules/unistd (Makefile.am): Substitute witness.
38684         * lib/unistd.in.h (sleep): Update prototype.
38685         * doc/posix-functions/sleep.texi (sleep): Document the bug.
38686         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
38687         * modules/sleep-tests (Depends-on): Check for alarm.
38688
38689 2009-11-20  Jim Meyering  <meyering@redhat.com>
38690
38691         maint.mk: improve sc_prohibit_magic_number_exit
38692         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
38693         so it does not match uses like System.exit(1).
38694         Add comments showing how to correct all offenders.
38695
38696 2009-11-19  Eric Blake  <ebb9@byu.net>
38697
38698         xalloc-die-tests: add missing library
38699         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
38700
38701         test-xvasprintf: silence compiler warnings
38702         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
38703         empty string from gcc.
38704
38705 2009-11-19  Jim Meyering  <meyering@redhat.com>
38706
38707         xfreopen: new module, from coreutils
38708         * modules/xfreopen: New module.
38709         * lib/xfreopen.c: New file.
38710         * lib/xfreopen.h: New file.
38711         * MODULES.html.sh (File stream based Input/Output"): Add it.
38712
38713 2009-11-19  Eric Blake  <ebb9@byu.net>
38714
38715         manywarnings: depend on warnings
38716         * modules/manywarnings (Depends-on): Add warnings.
38717
38718         build: avoid compiler warnings
38719         * lib/select.c (rpl_select): Delete unused variable.
38720         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
38721
38722 2009-11-18  Eric Blake  <ebb9@byu.net>
38723
38724         tests: avoid false negative with --with-packager
38725         * tests/test-version-etc.sh: Discard packager information.
38726         * tests/test-argp-version-etc-1.sh: Likewise.
38727         Reported by Mike Frysinger.
38728
38729         utimens: fix regression on Solaris
38730         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
38731         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
38732         can only change fd timestamps via futimesat.  Instead, use an
38733         additional witness macro to avoid BSD bug.
38734         Reported by Jim Meyering.
38735
38736 2009-11-17  Eric Blake  <ebb9@byu.net>
38737
38738         usleep: use it to simplify tests
38739         * modules/stat-time-tests (Depends-on): Add usleep.
38740         (configure.ac): Drop usleep check.
38741         * modules/chown-tests (Depends-on, configure.ac): Likewise.
38742         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
38743         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
38744         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
38745         * modules/openat-tests (Depends-on, configure.ac): Likewise.
38746         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
38747         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
38748         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
38749         Likewise.
38750         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
38751         * tests/test-lchown.h (nap): Likewise.
38752         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
38753         * tests/test-stat-time.c (nap): Likewise.
38754         * tests/test-utimens-common.h (nap): Update comments.
38755
38756         usleep: new module
38757         * modules/usleep: New file.
38758         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
38759         * lib/usleep.c (usleep): Likewise.
38760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
38761         * modules/unistd (Makefile.am): Substitute witnesses.
38762         * lib/unistd.in.h (usleep): Add declaration.
38763         * doc/pastposix-functions/usleep.texi (usleep): Document this.
38764         * MODULES.html.sh (Date and time): Likewise.
38765         * modules/usleep-tests (Depends-on): New test.
38766         * tests/test-usleep.c: New file.
38767
38768         chown: work around OpenBSD bug
38769         * lib/chown.c (rpl_chown): Work around the bug.
38770         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
38771         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
38772         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
38773         * modules/chown (Depends-on): Add stdbool.
38774         * modules/lchown (Depends-on): Likewise.
38775         * doc/posix-functions/chown.texi (chown): Document the bug.
38776         * doc/posix-functions/lchown.texi (lchown): Likewise.
38777         * tests/test-lchown.h (test_chown): Relax test.
38778
38779         mkstemp: avoid conflict with C++ keyword template
38780         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
38781         * lib/mkostemp.c (mkostemp): Likewise.
38782         * lib/mkostemps.c (mkostemps): Likewise.
38783         * lib/mkstemp.c (mkstemp): Likewise.
38784         * lib/mkstemps.c (mkstemps): Likewise.
38785
38786         xalloc-die-tests: optimize
38787         * tests/test-xalloc-die.sh: Reduce number of processes.
38788
38789 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38790
38791         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
38792         patch from ludo@gnu.org (Ludovic Courtès).
38793
38794 2009-11-17  Jim Meyering  <meyering@redhat.com>
38795
38796         version-etc: use proper license string
38797         * modules/version-etc (License): Use LGPL, not LGPLv3+.
38798         * modules/version-etc-fsf: Likewise.
38799
38800 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38801
38802         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
38803         printed to stdout.  Deal with EOL differences.
38804
38805 2009-11-17  Eric Blake  <ebb9@byu.net>
38806
38807         unsetenv: work around Solaris bug
38808         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38809         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38810         Reported by Jim Meyering.
38811
38812         vasnprintf: avoid compiler warnings
38813         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38814         variables.
38815         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38816
38817 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38818
38819         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38820         settings since xalloc-die is no longer the self test,
38821         xalloc-die.sh is.
38822
38823 2009-11-17  Jim Meyering  <meyering@redhat.com>
38824
38825         test-xalloc-die.sh: make the code agree with the commit log
38826         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38827         at the end, just in case you happen to have a test-xalloc-die
38828         program in some other PATH directory.
38829
38830         test-xalloc-die.sh: fix a portability bug
38831         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38832         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38833         Otherwise, argv[0] (as often seen in diagnostics) would be too
38834         system-dependent, sometimes with, and sometimes without the leading "./".
38835
38836         version-etc-fsf: relax license to LGPLv3+
38837         * modules/version-etc-fsf (License): Relax license.
38838
38839 2009-11-16  Eric Blake  <ebb9@byu.net>
38840
38841         xalloc-die-tests: avoid printing null pointer
38842         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38843         shell script.
38844         * tests/test-xalloc-die.c (program_name): Declare.
38845         * tests/test-xalloc-die.sh (tmpfiles): New file.
38846
38847         setenv, unsetenv: work around various bugs
38848         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38849         (setenv) [HAVE_SETENV]: Work around bugs.
38850         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38851         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38852         for bugs.
38853         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38854         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38856         * modules/stdlib (Makefile.am): Update substitutions.
38857         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38858         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38859         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38860         * modules/setenv-tests: New test.
38861         * modules/unsetenv-tests: Likewise.
38862         * tests/test-setenv.c: New file.
38863         * tests/test-unsetenv.c: Likewise.
38864
38865 2009-11-16  Jim Meyering  <meyering@redhat.com>
38866
38867         version-etc: relax license to LGPLv3+
38868         * modules/version-etc (License): Relax license.
38869
38870         better AC_REQUIRE expanded-before-required-warning avoidance
38871         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38872         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38873         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38874         which is no longer needed.
38875
38876 2009-11-16  Eric Blake  <ebb9@byu.net>
38877
38878         test-freading: clean up temporary file
38879         * tests/test-freading.c (main): Remove file on success, and use
38880         ASSERT more liberally.
38881         Reported by Jim Meyering.
38882
38883 2009-11-16  Jim Meyering  <meyering@redhat.com>
38884
38885         avoid new AC_REQUIRE expanded-before-required warnings
38886         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38887         merely using it.
38888         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38889         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38890
38891 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38892
38893         * tests/test-xalloc-die.c: New file.
38894         * modules/xalloc-die-tests: New file.
38895         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38896         XFAIL_TESTS so it can be appended by modules.
38897
38898 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38899
38900         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38901         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38902
38903 2009-11-14  Eric Blake  <ebb9@byu.net>
38904
38905         fnmatch: avoid compiler warning
38906         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38907         to silence compiler warning about mismatch signedness in ?:.
38908         Reported by Robert Millan.
38909
38910         intprops: add double-inclusion guard
38911         * lib/intprops.h: Allow idempotent includes.
38912         Suggested by Bruce Korb.
38913
38914         openat: detect Solaris fchownat bug
38915         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38916         penalizing glibc chownat when only lchownat is broken.
38917         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38918         trailing slash bugs.
38919         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38920         * modules/openat-tests (Files): Include more files.
38921         (Depends-on): Add mgetgroups, sleep, stat-time.
38922         (configure.ac): Add additional checks.
38923         (Makefile.am): Build new test.
38924         * tests/test-fchownat.c: New file.
38925
38926         lchown: detect Solaris and FreeBSD bug
38927         * lib/lchown.c (rpl_lchown): Work around bug.
38928         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38930         * modules/unistd (Makefile.am): Populate it.
38931         * lib/unistd.in.h (lchown): Update declaration.
38932         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38933         * modules/lchown-tests: New file.
38934         * tests/test-lchown.h (test_lchown): Likewise.
38935         * tests/test-lchown.c (main): Likewise.
38936
38937         chown: detect Solaris and FreeBSD bug
38938         * lib/chown.c (rpl_chown): Work around bug.
38939         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38940         (gl_PREREQ_CHOWN): Delete.
38941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38942         * modules/unistd (Makefile.am): Populate it.
38943         * lib/unistd.in.h (chown): Update declaration.
38944         * lib/lchown.c (chown): Update client.
38945         * modules/lchown (Depends-on): Add lstat.
38946         * doc/posix-functions/chown.texi (chown): Document the bug.
38947         * doc/posix-functions/getgroups.texi (getgroups): Document
38948         getgroups pitfall.
38949         * modules/chown-tests: New file.
38950         * tests/test-chown.h (test_chown): Likewise.
38951         * tests/test-chown.c (main): Likewise.
38952
38953 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38954
38955         gnulib-tool: correctly detect absence of m4 directories
38956         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38957
38958 2009-11-14  Jim Meyering  <meyering@redhat.com>
38959
38960         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38961         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38962
38963 2009-11-14  John W. Eaton  <jwe@gnu.org>
38964
38965         strftime.h: wrap funtion declaration in extern "C" block
38966         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38967
38968 2009-11-13  Eric Blake  <ebb9@byu.net>
38969
38970         getgroups: avoid compiler warning
38971         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38972
38973         getgroups: work around FreeBSD bug
38974         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38975         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38976         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38977         * tests/test-getgroups.c (main): Fix buffer overrun.
38978
38979         getgroups: avoid compilation failure
38980         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38981         * modules/getgroups (Depends-on): Add stdint.
38982
38983 2009-11-13  Jim Meyering  <meyering@redhat.com>
38984
38985         test-getgroups: avoid compilation failure
38986         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38987
38988 2009-11-13  Eric Blake  <ebb9@byu.net>
38989
38990         mgetgroups: new module, taken from coreutils
38991         * modules/mgetgroups: New file.
38992         * lib/mgetgroups.h: Likewise.
38993         * lib/mgetgroups.c (mgetgroups): Likewise.
38994         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38995         * MODULES.html.sh (Users and groups): Mention it.
38996
38997         getgroups: don't expose GETGROUPS_T to user
38998         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38999         an element at a time if GETGROUPS_T is wrong size.
39000         * lib/getugroups.h (getugroups): Change signature.
39001         * lib/unistd.in.h (getgroups): Likewise.
39002         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
39003         signature needs fixing.
39004         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
39005         AC_TYPE_GETGROUPS.
39006         * modules/group-member (Depends-on): Add getgroups.
39007         * lib/group-member.c (group_info, get_group_info): Use gid_t.
39008         (group_member): Rely on getgroups replacement.
39009         * lib/getugroups.c (getugroups): Use gid_t.
39010         * tests/test-getgroups.c (main): Likewise.
39011         * NEWS: Mention the signature change.
39012         * doc/posix-functions/getgroups.texi (getgroups): Mention the
39013         problem with signature.
39014         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
39015         GETGROUPS_T is still useful for setgroups.
39016
39017         getgroups, getugroups: provide stubs for mingw
39018         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
39019         * lib/getugroups.c (getugroups): Likewise.
39020         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
39021         function.  Modernize replacement scheme.
39022         (gl_PREREQ_GETGROUPS): Delete.
39023         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
39024         * modules/getgroups (configure.ac): Declare witness.
39025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
39026         * modules/unistd (Depends-on): Substitute witness.
39027         * lib/unistd.in.h (getgroups): Declare replacement.
39028
39029         getgroups: avoid calling exit
39030         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
39031         drop xalloc.
39032         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
39033         dependencies.
39034         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
39035         exiting, in the rare case of malloc failure.
39036
39037         getgroups: fix logic error
39038         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
39039         has more than 20 groups.
39040         * modules/getgroups-tests: New test.
39041         * tests/test-getgroups.c: New file.
39042
39043 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39044
39045         * tests/test-base64.c: Improve.
39046
39047 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39048
39049         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
39050         Blake <ebb9@byu.net>.
39051
39052 2009-11-13  Simon Josefsson  <simon@josefsson.org>
39053
39054         * tests/test-xvasprintf.c: Add %s%s related checks.
39055
39056 2009-11-12  Eric Blake  <ebb9@byu.net>
39057
39058         version-etc: match standards.texi style
39059         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
39060         and use <> only for URLs.
39061
39062 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
39063
39064         fts: do not fail on a submount during traversal
39065         * lib/fts.c (fts_build): Read the stat info again after opening
39066         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
39067         Original report at http://bugzilla.redhat.com/501848.
39068
39069 2009-11-12  Jim Meyering  <meyering@redhat.com>
39070
39071         bootstrap: sync from coreutils
39072         * build-aux/bootstrap (bootstrap_epilogue): New function.
39073         Use git_modules_config in one more place.  This make bootstrap's
39074         --gnulib-srcdir option more useful for testing.
39075
39076         bootstrap: generalize autoheader check
39077         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
39078         AC_CONFIG_HEADERS.
39079
39080 2009-11-11  Eric Blake  <ebb9@byu.net>
39081
39082         mkfifoat: use new modules for Solaris and BSD bugs
39083         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
39084         * lib/mkfifoat.c (mknodat): Split...
39085         * lib/mknodat.c (mknodat): ...into new file.
39086         * modules/mkfifoat (Files): Ship new file.
39087         (Depends-on): Add mkfifo, mknod.
39088         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
39089         (Depends-on): Add symlink.
39090         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
39091         redundant with test_mkfifo.h.
39092         (do_mkfifoat, do_mknodat): New helpers.
39093
39094         mknod: new module
39095         * modules/mknod: New file.
39096         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
39097         * lib/mknod.c (mknod): Likewise.
39098         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39099         defaults.
39100         * modules/sys_stat (Makefile.am): Substitute them.
39101         * lib/sys_stat.in.h (mknod): Declare replacement.
39102         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39103         Document it.
39104         * doc/posix-functions/mknod.texi (mknod): Likewise.
39105         * modules/mknod-tests: New test.
39106         * tests/test-mknod.c: Likewise.
39107
39108         mkfifo: new module
39109         * modules/mkfifo: New file.
39110         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
39111         * lib/mkfifo.c (mkfifo): Likewise.
39112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
39113         defaults.
39114         * modules/sys_stat (Makefile.am): Substitute them.
39115         * lib/sys_stat.in.h (mkfifo): Declare replacement.
39116         * MODULES.html.sh (Support for systems lacking POSIX:2008):
39117         Document it.
39118         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
39119         * modules/mkfifo-tests: New test.
39120         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
39121         from test-mkfifoat.c.
39122         * tests/test-mkfifo.c: New file.
39123
39124         readlink: detect FreeBSD bug
39125         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
39126         slash on symlink.
39127         * doc/posix-functions/readlink.texi (readlink): Document the bug.
39128         * tests/test-readlink.h (test_readlink): Enhance test.
39129
39130         symlink: detect FreeBSD bug
39131         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
39132         slash on symlink.
39133         * doc/posix-functions/symlink.texi (symlink): Document the bug.
39134         * tests/test-symlink.h (test_symlink): Enhance test.
39135
39136 2009-11-10  Eric Blake  <ebb9@byu.net>
39137
39138         link: detect FreeBSD bug
39139         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
39140         symlink.
39141         * doc/posix-functions/link.texi (link): Document the bug.
39142         * tests/test-link.h (test_link): Enhance test.
39143         * tests/test-linkat.c (main): Update caller.
39144
39145         unlink, remove: detect FreeBSD bug
39146         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
39147         slash on symlink.
39148         * doc/posix-functions/unlink.texi (unlink): Document the bug.
39149         * doc/posix-functions/remove.texi (remove): Likewise.
39150         * tests/test-unlink.h (test_unlink): Enhance test.
39151         * tests/test-remove.c (main): Likewise.
39152
39153 2009-11-09  Eric Blake  <ebb9@byu.net>
39154
39155         rename: detect FreeBSD bug
39156         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
39157         slash on symlink.
39158         * modules/renameat-tests (Depends-on): Add filenamecat.
39159         * tests/test-rename.h (test_rename): Allow one more errno.
39160         * tests/test-renameat.c (main): Likewise.
39161         * doc/posix-functions/rename.texi (rename): Document the bug.
39162
39163         open: detect FreeBSD bug
39164         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
39165         symlink.
39166         * doc/posix-functions/open.texi (open): Document the bug.
39167         * doc/posix-functions/utimes.texi (utimes): Likewise.
39168         * tests/test-open.h (test_open): Add parameters, and test symlink
39169         handling.
39170         * tests/test-open.c (main): Adjust caller.
39171         * tests/test-fcntl-safer.c (main): Likewise.
39172         * modules/open-tests (Depends-on): Add stdbool, symlink.
39173         * modules/fcntl-safer-tests (Depends-on): Likewise.
39174         * tests/test-openat.c (main): Add test-open tests.
39175
39176         stat: detect FreeBSD bug
39177         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
39178         symlink.
39179         * doc/posix-functions/stat.texi (stat): Document the bug.
39180         * tests/test-stat.h (test_stat_func): Add argument.
39181         * tests/test-stat.c (main): Adjust caller.
39182         * tests/test-fstatat.c (main): Likewise.
39183         * modules/stat-tests (Depends-on): Add stdbool, symlink.
39184         Reported by Jim Meyering.
39185
39186 2009-11-09  James Youngman  <jay@gnu.org>
39187
39188         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
39189         * lib/strftime.c: Correct placement of #include "ignore-value.h".
39190
39191 2009-11-08  Jim Meyering  <meyering@redhat.com>
39192
39193         utimens: remove invalid futimesat call
39194         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
39195         It used the file descriptor of the target file as the DIR_FD
39196         parameter and NULL as the file name.  That caused failure with
39197         errno == EFAULT on FreeBSD-8.0-rc2
39198
39199 2009-11-07  Eric Blake  <ebb9@byu.net>
39200
39201         fflush, freadseek: use fseeko, not fseek
39202         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
39203         (clear_ungetc_buffer): Avoid potential problems on large files.
39204         * lib/freadseek.c (freadseek): Likewise.
39205         * modules/freadseek (Depends-on): Add fseeko.
39206         * modules/fseek (configure.ac): Set a witness.
39207         * tests/test-fflush.c (main): Use fseeko.
39208         * tests/test-fpurge.c (fseek): Disable link warning.
39209         * tests/test-freadable.c (fseek): Likewise.
39210         * tests/test-freading.c (fseek): Likewise.
39211         * tests/test-fseeko.c (fseek): Likewise.
39212         * tests/test-ftell.c (fseek): Likewise.
39213         * tests/test-ftello.c (fseek): Likewise.
39214         * tests/test-fwritable.c (fseek): Likewise.
39215         * tests/test-fwriting.c (fseek): Likewise.
39216
39217 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39218
39219         * modules/memchr (Depends-on): Drop getpagesize dependency.
39220
39221 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39222
39223         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
39224         Reported by Ludovic Courtès.
39225         * build-aux/pmccabe2html: Improve example usage.
39226         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
39227
39228 2009-11-06  Jim Meyering  <meyering@redhat.com>
39229
39230         do-release-commit-and-tag: New module.
39231         Automate the release-commit and tag process.
39232         * build-aux/do-release-commit-and-tag: New script, from coreutils.
39233         * modules/do-release-commit-and-tag: New file.
39234         * MODULES.html.sh (Support for maintaining and releasing): Add it.
39235
39236 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39237
39238         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
39239         because test-select.c uses inet_pton.
39240
39241 2009-11-06  Simon Josefsson  <simon@josefsson.org>
39242
39243         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
39244         GETADDRINFO_LIB.  Bump serial number.
39245         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
39246         Suggested by Eric Blake <ebb9@byu.net>.
39247
39248 2009-11-05  Eric Blake  <ebb9@byu.net>
39249
39250         strtod: detect darwin bug
39251         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
39252         Reported by Leo Davis.
39253
39254         freopen-safer: new module
39255         * modules/freopen-safer: New module.
39256         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
39257         * lib/freopen-safer.c (freopen_safer): New file.
39258         * lib/stdio-safer.h (freopen_safer): New declaration.
39259         * lib/stdio--.h (freopen): New override.
39260         * MODULES.html.sh (File stream based Input/Output): Mention it.
39261         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
39262         freopen-safer module.
39263         * doc/posix-functions/stderr.texi (stderr): Likewise.
39264         * doc/posix-functions/stdin.texi (stdin): Likewise.
39265         * doc/posix-functions/stdout.texi (stdout): Likewise.
39266         * modules/freopen-safer-tests: New test.
39267         * tests/test-reopen-safer.c: New file.
39268
39269 2009-11-05  Jim Meyering  <meyering@redhat.com>
39270
39271         maint.mk: Prohibit inclusion of "close-stream.h" without use.
39272         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
39273
39274 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39275
39276         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
39277
39278 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39279
39280         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
39281
39282 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39283
39284         Fix link error.
39285         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39286         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39287
39288 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39289
39290         * tests/test-func.c: Also test value of __func__.
39291
39292 2009-11-05  Simon Josefsson  <simon@josefsson.org>
39293
39294         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
39295         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
39296
39297 2009-11-05  Bruno Haible  <bruno@clisp.org>
39298
39299         Fix link error.
39300         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
39301         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
39302         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
39303
39304 2009-11-05  Bruno Haible  <bruno@clisp.org>
39305
39306         Tests for module 'inet_pton'.
39307         * modules/inet_pton-tests: New file.
39308         * tests/test-inet_pton.c: New file.
39309
39310 2009-11-05  Bruno Haible  <bruno@clisp.org>
39311
39312         Tests for module 'inet_ntop'.
39313         * modules/inet_ntop-tests: New file.
39314         * tests/test-inet_ntop.c: New file.
39315
39316 2009-11-04  Eric Blake  <ebb9@byu.net>
39317
39318         stdlib-safer: wrap all mkstemp variants
39319         * modules/mkostemp (configure.ac): Set witness.
39320         * modules/mkostemps (configure.ac): Likewise.
39321         * modules/mkstemps (configure.ac): Likewise.
39322         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
39323         (mkstemps_safer): Wrap more functions.
39324         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
39325         wrapping.
39326         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
39327         (mkstemps_safer): Implement the wrappers.
39328
39329         mkstemps, mkostemps: new modules
39330         * modules/mkostemps: New module.
39331         * modules/mkstemps: Likewise.
39332         * lib/mkostemps.c (mkostemps): New file.
39333         * lib/mkstemps.c (mkstemps): Likewise.
39334         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
39335         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
39336         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
39337         * modules/stdlib (Makefile.am): Substitute them.
39338         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
39339         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
39340         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
39341         * doc/gnulib.texi (Glibc stdlib.h): Include them.
39342         * MODULES.html.sh (File system functions): Mention them.
39343
39344         tempname: resync from glibc
39345         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
39346         same values for __GT_FILE as glibc.  Abort even when assertions
39347         are disabled.
39348         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
39349         match its value otherwise.  Allow idempotent inclusion.
39350         * lib/mkdtemp.c (mkdtemp): Adjust caller.
39351         * lib/mkostemp.c (mkostemp): Likewise.
39352         * lib/mkstemp.c (mkstemp): Likewise.
39353         * lib/tmpfile.c (tmpfile): Likewise.
39354         * NEWS: Document this.
39355
39356         utimens: fix use of futimens on older Linux
39357         * lib/utimens.c (fdutimens): Use updated, rather than original,
39358         timespec to avoid bug in older Linux kernel.
39359         Reported by Simon Josefsson.
39360
39361 2009-11-04  Bruno Haible  <bruno@clisp.org>
39362
39363         Make num_processors more flexible and consistent.
39364         * lib/nproc.h (enum nproc_query): New type.
39365         (num_processors): Add a 'query' argument.
39366         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
39367         (num_processors): Add a 'query' argument. Test the value of the
39368         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
39369         mingw, count the number of CPUs available for the current process.
39370         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
39371         Check for sched_getaffinity and sched_getaffinity_np.
39372         * modules/nproc (Depends-on): Add c-ctype, extensions.
39373         * NEWS: Mention the change.
39374
39375 2009-11-03  Bruno Haible  <bruno@clisp.org>
39376
39377         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
39378
39379 2009-11-03  Jim Meyering  <meyering@redhat.com>
39380
39381         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
39382         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
39383         if it is defined.
39384
39385 2009-11-02  Eric Blake  <ebb9@byu.net>
39386
39387         mktime, timegm: share common declaration
39388         * lib/mktime-internal.h: New file.
39389         * lib/mktime.c: Use it rather than open-coding a declaration.
39390         * lib/timegm.c: Likewise.
39391         * modules/mktime (Files): Ship it.
39392         * modules/timegm (Files): Likewise.
39393         Suggested by Bruno Haible.
39394
39395         test-update-copyright: update test to match script changes
39396         * tests/test-update-copyright.sh: Avoid hard-coding perl
39397         location.  Don't update *.bak created by earlier runs.
39398
39399 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
39400             Simon Josefsson  <simon@josefsson.org>
39401             Bruno Haible  <bruno@clisp.org>
39402
39403         Fix link error on Solaris 8.
39404         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
39405         also in libnsl. Define also INET_PTON_LIB.
39406         * modules/inet_pton (Link): New section.
39407
39408 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39409             Bruno Haible  <bruno@clisp.org>
39410
39411         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
39412         * modules/inet_ntop (Link): New section.
39413         Reported by Boyan Kasarov <bkasarov@gmail.com>.
39414
39415 2009-11-02  Eric Blake  <ebb9@byu.net>
39416
39417         maint: avoid compiler warnings in m4 macros
39418         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
39419         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
39420
39421 2009-11-02  Simon Josefsson  <simon@josefsson.org>
39422
39423         * m4/pmccabe2html.m4: Remove file.
39424         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
39425         function.  Change maintainer.
39426         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
39427         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
39428         Courtès).
39429
39430 2009-10-31  Eric Blake  <ebb9@byu.net>
39431
39432         fseeko: fix m4 regression
39433         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
39434         regression from 2009-10-27.
39435         Reported by Ralf Wildenhues.
39436
39437 2009-10-31  Jim Meyering  <meyering@redhat.com>
39438
39439         inttostr: aesthetics and improved (compile-time) safety
39440         Define inttype_is_signed rather than inttype_is_unsigned,
39441         since the sole use is via "#if inttype_is_signed".
39442         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
39443         inttype_is_unsigned.
39444         * lib/offtostr.c (inttype_is_signed): Likewise.
39445         * lib/uinttostr.c (inttype_is_signed): Likewise.
39446         * lib/umaxtostr.c (inttype_is_signed): Likewise.
39447         * lib/inttostr.c (inttostr): Use verify to cross-check the
39448         inttype_is_signed value and the signedness of the actual type.
39449         * modules/inttostr (Depends-on): Add verify.
39450
39451 2009-10-30  Eric Blake  <ebb9@byu.net>
39452
39453         build: avoid compiler warnings
39454         * lib/fchmodat.c (lchmod): Mark unused variables.
39455         * lib/getopt.c (_getopt_initialize): Likewise.
39456         * lib/mktime.c (__mktime_internal): Provide prototype.
39457         * lib/inttostr.c (inttostr): Avoid compiler warning even with
39458         older gcc that do not understand #pragma GCC diagnostic.
39459         * lib/uinttostr.c (inttype_is_unsigned): Define.
39460         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
39461
39462 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
39463
39464         stat: fix compilation on AIX
39465         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
39466         only see struct stat64.
39467
39468 2009-10-30  Eric Blake  <ebb9@byu.net>
39469
39470         exclude: make more robust
39471         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
39472         rather than masking a coding bug.
39473         Suggested by Bruno Haible.
39474
39475 2009-10-30  Jim Meyering  <meyering@redhat.com>
39476
39477         perl scripts: remove #!/usr/bin/perl in favor of more portable...
39478         Rather than putting #!/usr/bin/perl on the first line,
39479         start with a variant of what's recommended by "man perlrun" that
39480         invokes the first "perl" program from your shell's search path.
39481         * build-aux/gitlog-to-changelog: Replace #!... as above.
39482         Add a "Local Variables" perl mode setting.
39483         Prompted by a patch from Ludovic Courtès.
39484         Improved by Eric Blake.
39485         * build-aux/useless-if-before-free: Likewise.
39486         * build-aux/announce-gen: Likewise.
39487         * build-aux/update-copyright: Likewise.
39488
39489 2009-10-29  Eric Blake  <ebb9@byu.net>
39490
39491         filenamecat-lgpl: adjust clients
39492         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
39493         filenamecat.
39494         * modules/renameat (Depends-on): Likewise.
39495
39496         filenamecat: split into filenamecat-lgpl
39497         * modules/filenamecat-lgpl: New module.
39498         * modules/filenamecat (Files): Move library-safe files into
39499         filenamecat-lgpl.
39500         (Depends-on): Add filenamecat-lgpl.
39501         (configure.ac): Declare witness.
39502         * lib/filenamecat.h (file_name_concat): Only declare when using
39503         GPL module.
39504         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
39505         Move...
39506         * lib/filenamecat-lgpl.c: ...into new file.
39507         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
39508         (gl_FILE_NAME_CONCAT): Use it.
39509         * MODULES.html.sh (File system functions): Mention new module.
39510
39511         argp: avoid memory leak
39512         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
39513         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
39514         base_name, since the latter malloc()s and can call exit().
39515         Leak introduced 2006-07-03.
39516
39517         dirname-lgpl: adjust clients that don't need full dirname
39518         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
39519         * modules/filenamecat (Depends-on): Likewise.
39520         * modules/linkat (Depends-on): Likewise.
39521         * modules/mkancesdirs (Depends-on): Likewise.
39522         * modules/mkdir (Depends-on): Likewise.
39523         * modules/openat (Depends-on): Likewise.
39524         * modules/savewd (Depends-on): Likewise.
39525         * modules/rename (Depends-on): Likewise.
39526         (License): Relax license.
39527         * modules/mkdir-tests (Depends-on): Drop progname.
39528         (Makefile.am): Delete unneeded LDADD.
39529         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
39530
39531         dirname: split into dirname-lgpl
39532         * modules/dirname-lgpl: New module.
39533         * modules/dirname (Files): Move library-safe files into
39534         dirname-lgpl.
39535         (Depends-on): Add dirname-lgpl.
39536         (configure.ac): Declare witness.
39537         * modules/double-slash-root (License): Relax license.
39538         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
39539         module.
39540         * lib/dirname.c (dir_len, mdir_name): Move...
39541         * lib/dirname-lgpl.c: ...into new file.
39542         * lib/basename.c (last_component, base_len): Move...
39543         * lib/basename-lgpl.c: ...into new file.
39544         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
39545         (gl_DIRNAME): Use it.
39546         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
39547         Mention new module.
39548         * modules/dirname-tests (Depends-on): Add progname.
39549         * tests/test-dirname.c (program_name): Delete.
39550
39551         mkdir: make safe for libraries
39552         * modules/mkdir (Depends-on): Drop xalloc.
39553         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
39554         exit.
39555
39556         tests: avoid some compiler warnings
39557         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
39558         literals.
39559         * tests/test-memchr.c (main): Avoid type mismatch.
39560         * tests/test-arpa_inet.c (main): Avoid unused parameters.
39561         * tests/test-base64.c (main): Likewise.
39562         * tests/test-getdelim.c (main): Likewise.
39563         * tests/test-gethostname.c (main): Likewise.
39564         * tests/test-getline.c (main): Likewise.
39565         * tests/test-netinet_in.c (main): Likewise.
39566         * tests/test-select.c (open_server_socket, main): Likewise.
39567         * tests/test-select-stdin.c (main): Likewise.
39568         * tests/test-sockets.c (main): Likewise.
39569         * tests/test-strsignal.c (main): Likewise.
39570         * tests/test-sys_select.c (main): Likewise.
39571         * tests/test-sys_socket.c (main): Likewise.
39572         * tests/test-u64.c (main): Likewise.
39573         * tests/test-xfprintf-posix.c (main): Likewise.
39574         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
39575
39576         sockets: avoid compiler warning
39577         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
39578
39579         maint: detect usage(1) and other suspicious exits
39580         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
39581
39582 2009-10-29  Jim Meyering  <meyering@redhat.com>
39583
39584         timespec: long-to-int truncation could make timespec_cmp malfunction
39585         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
39586         a multiple of 2^32 nanoseconds as no difference.
39587
39588 2009-10-28  Jim Meyering  <meyering@redhat.com>
39589
39590         fprintftime: wrap macro code argument in "do {...} while(0)"
39591         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
39592         cpy macro must be a statement that can be followed by a semicolon.
39593         Now that the else clause contains a comment and is hence longer
39594         than one line, I require curly braces.  That in turn requires
39595         that we wrap this code block in the standard do...while(0).
39596
39597         fprintftime: remove stray semicolon from previous change
39598         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
39599
39600         fprintftime: avoid a warning about ignored fwrite return value
39601         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
39602         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
39603         that is unsafe.
39604         * modules/fprintftime (Depends-on): Add ignore-value.
39605
39606         exclude: avoid an unwarranted warning
39607         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
39608
39609 2009-10-27  Eric Blake  <ebb9@byu.net>
39610
39611         fseek: avoid compilation failure when fflush is replaced
39612         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
39613         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
39614         module is in use.
39615         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
39616         module is not in use; since REPLACE_FSEEK worked otherwise.
39617         (GNULIB_FTELLO): Likewise for ftell.
39618         Reported by Ian Beckwith and others.
39619
39620 2009-10-27  Bruno Haible  <bruno@clisp.org>
39621
39622         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
39623         Reported by Jim Meyering.
39624
39625 2009-10-27  Jim Meyering  <jim@meyering.net>
39626             Bruno Haible  <bruno@clisp.org>
39627
39628         Avoid warning despite dropping the return value of fwrite.
39629         * lib/unicodeio.c: Include ignore-value.h.
39630         (fwrite_success_callback): Explicitly ignore fwrite's return value.
39631         * modules/unicodeio (Depends-on): Add ignore-value.
39632
39633 2009-10-26  Eric Blake  <ebb9@byu.net>
39634
39635         areadlinkat: fix fallback path
39636         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
39637         pointer and zero.
39638
39639 2009-10-22  Pádraig Brady  <P@draigBrady.com>
39640
39641         Use a better IO block size for modern systems
39642         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
39643         * lib/md2.c: Likewise.
39644         * lib/md4.c: Likewise.
39645         * lib/md5.c: Likewise.
39646         * lib/sha1.c: Likewise.
39647         * lib/sha256.c: Likewise.
39648         * lib/sha512.c: Likewise.
39649
39650 2009-10-22  Eric Blake  <ebb9@byu.net>
39651
39652         tests: avoid several compiler warnings
39653         * tests/test-getcwd.c (main): Avoid buffer underflow.
39654         * tests/test-getdate.c (main): String literals are not safe with
39655         putenv, so use setenv.  Declare unused argument.
39656         * modules/getdate-tests (Depends-on): Add setenv.
39657         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
39658         problems with string literals in char *.
39659         * tests/test-hash.c (main): Avoid shadowing declaration.
39660         (insert_new): Treat string literals as char const *.
39661         * tests/test-getopt.h (test_getopt): Likewise.
39662         (getopt_loop): Alter types to minimize casting elsewhere.
39663         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
39664         (test_getopt_long_posix): Likewise.
39665         (do_getopt_long): Add wrapper to minimize casting.
39666         * tests/test-atexit.c (clear_temp_file): Use void.
39667         * tests/test-areadlink-with-size.c (main): Declare unused
39668         arguments.
39669         * tests/test-areadlink.c (main): Likewise.
39670         * tests/test-areadlinkat-with-size.c (main): Likewise.
39671         * tests/test-areadlinkat.c (main): Likewise.
39672         * tests/test-canonicalize-lgpl.c (main): Likewise.
39673         * tests/test-canonicalize.c (main): Likewise.
39674         * tests/test-dirent-safer.c (main): Likewise.
39675         * tests/test-dirname.c (main): Likewise.
39676         * tests/test-dup2.c (main): Likewise.
39677         * tests/test-fchdir.c (main): Likewise.
39678         * tests/test-fcntl-h.c (main): Likewise.
39679         * tests/test-fcntl-safer.c (main): Likewise.
39680         * tests/test-fdopendir.c (main): Likewise.
39681         * tests/test-fdutimensat.c (main): Likewise.
39682         * tests/test-fflush.c (main): Likewise.
39683         * tests/test-filenamecat.c (main): Likewise.
39684         * tests/test-filevercmp.c (main): Likewise.
39685         * tests/test-fopen-safer.c (main): Likewise.
39686         * tests/test-fopen.c (main): Likewise.
39687         * tests/test-fpending.c (main): Likewise.
39688         * tests/test-fpurge.c (main): Likewise.
39689         * tests/test-freading.c (main): Likewise.
39690         * tests/test-fstatat.c (main): Likewise.
39691         * tests/test-fsync.c (main): Likewise.
39692         * tests/test-futimens.c (main): Likewise.
39693         * tests/test-getndelim2.c (main): Likewise.
39694         * tests/test-gettimeofday.c (main): Likewise.
39695         * tests/test-getopt.c (main): Likewise.
39696         * tests/test-i-ring.c (main): Likewise.
39697         * tests/test-inttypes.c (main): Likewise.
39698         * tests/test-link.c (main): Likewise.
39699         * tests/test-lstat.c (main): Likewise.
39700         * tests/test-math.c (main): Likewise.
39701         * tests/test-md5.c (main): Likewise.
39702         * tests/test-memchr2.c (main): Likewise.
39703         * tests/test-memrchr.c (main): Likewise.
39704         * tests/test-mkdir.c (main): Likewise.
39705         * tests/test-mkdirat.c (main): Likewise.
39706         * tests/test-mkfifoat.c (main): Likewise.
39707         * tests/test-open.c (main): Likewise.
39708         * tests/test-openat-safer.c (main): Likewise.
39709         * tests/test-openat.c (main): Likewise.
39710         * tests/test-quotearg.c (main): Likewise.
39711         * tests/test-rawmemchr.c (main): Likewise.
39712         * tests/test-readlink.c (main): Likewise.
39713         * tests/test-remove.c (main): Likewise.
39714         * tests/test-rename.c (main): Likewise.
39715         * tests/test-renameat.c (main): Likewise.
39716         * tests/test-rmdir.c (main): Likewise.
39717         * tests/test-sha1.c (main): Likewise.
39718         * tests/test-signal.c (main): Likewise.
39719         * tests/test-sigaction.c (main): Likewise.
39720         * tests/test-stat.c (main): Likewise.
39721         * tests/test-stat-time.c (main): Likewise.
39722         * tests/test-stddef.c (main): Likewise.
39723         * tests/test-stdint.c (main): Likewise.
39724         * tests/test-stdio.c (main): Likewise.
39725         * tests/test-stdlib.c (main): Likewise.
39726         * tests/test-strchrnul.c (main): Likewise.
39727         * tests/test-strerror.c (main): Likewise.
39728         * tests/test-string.c (main): Likewise.
39729         * tests/test-strtod.c (main): Likewise.
39730         * tests/test-strverscmp.c (main): Likewise.
39731         * tests/test-symlink.c (main): Likewise.
39732         * tests/test-symlinkat.c (main): Likewise.
39733         * tests/test-sys_stat.c (main): Likewise.
39734         * tests/test-sys_time.c (main): Likewise.
39735         * tests/test-time.c (main): Likewise.
39736         * tests/test-unistd.c (main): Likewise.
39737         * tests/test-unlink.c (main): Likewise.
39738         * tests/test-unlinkat.c (main): Likewise.
39739         * tests/test-utimens.c (main): Likewise.
39740         * tests/test-utimensat.c (main): Likewise.
39741         * tests/test-version-etc.c (main): Likewise.
39742         * tests/test-wchar.c (main): Likewise.
39743         * tests/test-wctype.c (main): Likewise.
39744         * tests/test-xprintf-posix.c (main): Likewise.
39745         * tests/test-posixtm.c (main): Likewise.
39746         (STREQ): Delete unused macro.
39747         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
39748         shadowed variables.
39749         * tests/test-memchr.c (main): Likewise.
39750
39751 2009-10-21  Eric Blake  <ebb9@byu.net>
39752
39753         areadlinkat: avoid failure on older glibc
39754         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
39755         rather than mis-comparing 0 against FUNC_RESULT of char*.
39756
39757 2009-10-21  Bruno Haible  <bruno@clisp.org>
39758
39759         * modules/stpncpy (License): Relicense under LGPLv2+.
39760         Reported by David Lutterkort <lutter@redhat.com>.
39761
39762 2009-10-20  Eric Blake  <ebb9@byu.net>
39763
39764         utimensat: work around Solaris 9 bug
39765         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
39766         has trailing slash bugs.
39767         * tests/test-lutimens.h (test_lutimens): Enhance test.
39768         * tests/test-utimens.h (test_utimens): Likewise.
39769         * doc/posix-functions/utime.texi (utime): Enhance documentation.
39770         * doc/posix-functions/utimes.texi (utimes): Likewise.
39771         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39772         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
39773         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
39774         * doc/posix-functions/futimens.texi (futimens): Likewise.
39775
39776         fdutimensat: new module
39777         * modules/fdutimensat: New file.
39778         * lib/fdutimensat.c (fdutimensat): Likewise.
39779         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
39780         * MODULES.html.sh (File system functions): Mention module.
39781         * modules/fdutimensat-tests: New test.
39782         * tests/test-fdutimensat.c: Likewise.
39783
39784         doc: regenerate INSTALL
39785         * doc/INSTALL: Reflect recent autoconf update.
39786         * doc/INSTALL.ISO: Likewise.
39787         * doc/INSTALL.UTF-8: Likewise.
39788
39789 2009-10-20  Pádraig Brady  <P@draigBrady.com>
39790
39791         acl: warn if ACL support is not detected
39792         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
39793
39794 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
39795
39796         * lib/nproc.h: Add extern "C" block for C++.
39797
39798 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
39799             Bruno Haible  <bruno@clisp.org>
39800
39801         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
39802         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
39803         * doc/posix-functions/isalpha.texi: Likewise.
39804         * doc/posix-functions/isblank.texi: Likewise.
39805         * doc/posix-functions/iscntrl.texi: Likewise.
39806         * doc/posix-functions/isdigit.texi: Likewise.
39807         * doc/posix-functions/isgraph.texi: Likewise.
39808         * doc/posix-functions/islower.texi: Likewise.
39809         * doc/posix-functions/isprint.texi: Likewise.
39810         * doc/posix-functions/ispunct.texi: Likewise.
39811         * doc/posix-functions/isspace.texi: Likewise.
39812         * doc/posix-functions/isupper.texi: Likewise.
39813         * doc/posix-functions/isxdigit.texi: Likewise.
39814
39815 2009-10-18  Bruno Haible  <bruno@clisp.org>
39816
39817         Tests for module 'isblank'.
39818         * modules/isblank-tests: New file.
39819         * tests/test-isblank.c: New file.
39820
39821         New module 'isblank'.
39822         * lib/isblank.c: New file.
39823         * m4/isblank.m4: New file.
39824         * modules/isblank: New file.
39825         * doc/posix-functions/isblank.texi: Mention the new module.
39826
39827 2009-10-18  Bruno Haible  <bruno@clisp.org>
39828
39829         New module 'ctype'.
39830         * lib/ctype.in.h: New file.
39831         * m4/ctype.m4: New file.
39832         * modules/ctype: New file.
39833         * doc/posix-headers/ctype.texi: Mention the new module.
39834
39835 2009-10-18  Jim Meyering  <meyering@redhat.com>
39836
39837         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39838         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39839         right after its initialization, rather than farther down.
39840         Keeping these in close proximity makes it easier to ensure
39841         that each such variable is initialized.  E.g.,
39842
39843             LIB_CLOCK_GETTIME=
39844             AC_SUBST([LIB_CLOCK_GETTIME])
39845
39846         This change also increments these serial numbers.
39847         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39848         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39850
39851 2009-10-18  Bruno Haible  <bruno@clisp.org>
39852
39853         Don't let environment variables perturb build.
39854         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39855         (gl_PREREQ_GETHRXTIME): ... not here.
39856
39857 2009-10-18  Bruno Haible  <bruno@clisp.org>
39858
39859         Avoid symlink attack in localcharset module.
39860         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39861         (O_NOFOLLOW): Define fallback.
39862         (get_charset_aliases): Don't open the file if it is a symbolic link.
39863         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39864         gl_FCNTL_H.
39865         (gl_FCNTL_H): Require it.
39866         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39867         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39868         Reported by Fergal Glynn <fglynn@veracode.com>.
39869
39870 2009-10-18  Bruno Haible  <bruno@clisp.org>
39871
39872         Implement nproc for mingw.
39873         * lib/nproc.c: Include <windows.h>
39874         (num_processors): On native Windows platforms, try GetSystemInfo.
39875
39876 2009-10-18  Bruno Haible  <bruno@clisp.org>
39877
39878         Implement nproc for IRIX.
39879         * lib/nproc.c: Include <sys/sysmp.h>.
39880         (num_processors): On IRIX systems, try sysmp.
39881         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39882
39883 2009-10-18  Bruno Haible  <bruno@clisp.org>
39884
39885         Implement nproc for HP-UX.
39886         * lib/nproc.c: Include <sys/pstat.h>
39887         (num_processors): On HP-UX systems, try pstat_getdynamic.
39888         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39889         pstat_getdynamic.
39890
39891 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39892             Bruno Haible  <bruno@clisp.org>
39893
39894         Implement nproc for NetBSD, OpenBSD.
39895         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39896         (ARRAY_SIZE): New macro.
39897         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39898         * m4/nproc.m4: New file.
39899         * modules/nproc (Files): Add m4/nproc.m4.
39900         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39901         (Makefile.am): Instead, augment lib_SOURCES.
39902
39903 2009-10-18  Bruno Haible  <bruno@clisp.org>
39904
39905         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39906         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39907         sys/param.h.
39908
39909 2009-10-16  Eric Blake  <ebb9@byu.net>
39910
39911         utimensat: new module
39912         * modules/utimensat: New file.
39913         * lib/utimensat.c (utimensat): Likewise.
39914         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39915         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39916         so we can work around Linux bugs.
39917         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39918         * modules/sys_stat (Makefile.am): Substitute them.
39919         * lib/sys_stat.in.h (utimensat): Declare it.
39920         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39921         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39922         * modules/utimensat-tests: New test.
39923         * tests/test-utimensat.c: Likewise.
39924
39925         utimens: let lutimens work on non-symlinks
39926         * lib/utimens.c (lutimens): Fall back to utimens rather than
39927         failing with ENOSYS, when file is not a symlink.
39928         (utimens): Reduce redirection.
39929         * tests/test-lutimens.h (test_lutimens): Update test to cover
39930         non-symlinks.
39931         * tests/test-utimens.h (test_utimens): Update test to cover
39932         symlinks.
39933         * tests/test-utimens.c (main): Update caller.
39934
39935         utimens: cache whether utimensat syscall works
39936         * lib/utimens.c (utimensat_works_really): New cache variable.
39937         (fdutimens, lutimens): Use it to avoid failing syscall.
39938
39939         test-stat-time, test-utimens: improve portability
39940         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39941         ext4 on alpha, and for cygwin.
39942         * tests/test-utimens-common.h: New file.
39943         (nap): Factor delays into single function.
39944         * tests/test-lutimens.h (test_lutimens): Use new header.
39945         * tests/test-futimens.h (test_futimens): Likewise.
39946         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39947         timestamps to occur from same machine, as was done previously for
39948         test_utimens.
39949         * modules/utimens-tests (Files): Ship new file.
39950         * modules/futimens-tests (Files): Likewise.
39951         Reported in part by Jim Meyering.
39952
39953         sys_stat: sort replacement declarations
39954         * lib/sys_stat.in.h: Sort declarations.
39955         * lib/futimens.c (futimens): Fix typo.
39956
39957 2009-10-15  Jim Meyering  <meyering@redhat.com>
39958
39959         don't let environment settings perturb build
39960         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39961         could cause a configure-time and/or build-time malfunction.
39962         Typically, a configure-time function-in-library test is performed
39963         via code like this:
39964
39965           LIB_VAR=
39966           AC_SUBST([LIB_VAR])
39967           prefix_saved_LIBS=$LIBS
39968             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39969                        [test "$ac_cv_search_FUNC" = "none required" ||
39970                         LIB_VAR=$ac_cv_search_FUNC])
39971           LIBS=$prefix_saved_LIBS
39972
39973         However, in each of the files affected by this change, the LIB_VAR=
39974         initialization was omitted.  Thus, when set in the environment, its
39975         value would propagate into generated Makefiles when FUNC is not found
39976         in LIB_NAME.
39977         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39978         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39979         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39980
39981 2009-10-14  Eric Blake  <ebb9@byu.net>
39982
39983         fchdir: avoid infinite recursion in mingw
39984         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39985         recursing.
39986
39987         test-stat-time: port to mingw
39988         * tests/test-stat-time.c (force_unlink): Return a value.
39989         (test_ctime) [W32]: Fix compilation error.
39990         (nap): Don't call usleep with too large an argument.  Use
39991         force_unlink.
39992         * doc/pastposix-functions/usleep.texi (usleep): Document the
39993         portability issue.
39994
39995 2009-10-13  Jim Meyering  <meyering@redhat.com>
39996
39997         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39998         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39999         * modules/pipe-filter-ii: Likewise.
40000         * modules/sys_socket-tests: Likewise.
40001         * modules/tsearch-tests: Likewise.
40002         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
40003         (check): Depend on it.
40004
40005 2009-10-12  Eric Blake  <ebb9@byu.net>
40006
40007         utimens-tests: port to NFS file systems
40008         * tests/test-utimens.h (test_utimens): Refactor utimecmp
40009         comparisons to avoid spurious failures from timestamp drift
40010         between NFS machines.
40011
40012 2009-10-12  Eric Blake  <ebb9@byu.net>
40013
40014         stat-time-tests: minor cleanups
40015         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
40016         * tests/test-stat-time.c (nap): Separate assignment from call.
40017         Suggested by Paolo Bonzini and Bruno Haible.
40018
40019         sys_stat: guarantee struct timespec
40020         * lib/sys_stat.in.h (includes): Always include <time.h>
40021         * modules/sys_stat (Depends-on): Add time.
40022         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
40023         mode_t permission values.
40024         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
40025         get at subsecond timestamps.
40026
40027 2009-10-10  Eric Blake  <ebb9@byu.net>
40028
40029         futimens: new module
40030         * modules/futimens: New file.
40031         * lib/futimens.c (futimens): Likewise.
40032         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
40033         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
40034         we can work around Linux bugs.
40035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40036         * modules/sys_stat (Makefile.am): Substitute them.
40037         * lib/sys_stat.in.h (futimens): Declare it.
40038         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40039         * doc/posix-functions/futimens.texi (futimens): Likewise.
40040         * modules/futimens-tests: New test.
40041         * tests/test-futimens.c: Likewise.
40042
40043         utimens: introduce fdutimens
40044         * lib/utimens.h (fdutimens): New prototype.
40045         * lib/utimens.c (gl_futimens): Move guts...
40046         (fdutimens): ...to new interface.
40047         * tests/test-utimens.c (do_fdutimens): Use it.
40048
40049         utimens: add UTIME_NOW and UTIME_OMIT support
40050         * lib/utimens.c (validate_timespec, update_timespec): New helper
40051         functions.
40052         (gl_futimens, lutimens): Use them.
40053         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
40054         stdbool, sys_stat.
40055         (Link): Mention resulting library dependency.
40056         * modules/utimecmp (Link): Likewise.
40057         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
40058         (Makefile.am): Pick up library dependency.
40059         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
40060         definition.
40061         * tests/test-sys_stat.c: Test the definitions.
40062         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
40063         * NEWS: Document library dependency.
40064
40065         utimecmp: support symlink timestamps
40066         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
40067         hashing when possible.  Use pathconf when available.
40068         (SYSCALL_RESOLUTION): Recognize tighter resolution.
40069         * modules/utimecmp (Depends-on): Add lstat.
40070
40071         utimens: add lutimens interface
40072         * lib/utimens.c (lutimens): New function.
40073         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
40074         * lib/utimens.h (lutimens): Declare new interface.
40075         * tests/test-utimens.c (main): Enhance test.
40076         * tests/test-lutimens.h (test_lutimens): New file.
40077         * modules/utimens-tests (Files): Distribute it.
40078         (Depends-on): Add symlink.
40079         (configure.ac): Check for usleep.
40080
40081         utimens: validate futimens usage
40082         * lib/utimens.c (gl_futimens): Require valid fd up front, using
40083         fewer syscalls on failure later on.  Avoid compiler warning on
40084         mingw.
40085         * modules/utimens (Depends-on): Add dup2.
40086
40087         utimens: add test
40088         * modules/utimens-tests: New test.
40089         * tests/test-utimens.h: New file.
40090         * tests/test-futimens.h: Likewise.
40091         * tests/test-utimens.c: Likewise.
40092
40093         doc: mention timestamp portability issues
40094         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
40095         instead.
40096         * doc/posix-functions/utime.texi (utime): Likewise.
40097         * doc/posix-functions/utimes.texi (utimes): Likewise.
40098         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
40099         instead.
40100         * doc/posix-functions/futimens.texi (futimens): Mention utimens
40101         module.
40102         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40103         Mention weakness with symlink timestamps.
40104         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
40105         to utimensat/futimens instead.
40106         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
40107
40108         test-dup2: enhance test
40109         * tests/test-dup2.c (main): Also check AT_FDCWD.
40110
40111         test-stat-time: avoid more spurious failures
40112         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
40113         xfs; and avoid race if the two timestamps cross quantization edge.
40114
40115         relocatable: prefer 'file system' over 'filesystem'
40116         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
40117         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
40118         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
40119         * doc/relocatable.texi (Enabling Relocatability): Likewise.
40120         * lib/relocatable.c (compute_curr_prefix): Likewise.
40121
40122 2009-10-10  Jim Meyering  <meyering@redhat.com>
40123
40124         stat-time-tests: check for the usleep function
40125         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
40126
40127 2009-10-10  Bruno Haible  <bruno@clisp.org>
40128
40129         * modules/xnanosleep: Put the Link section after the Include section.
40130
40131 2009-10-09  Eric Blake  <ebb9@byu.net>
40132
40133         dup2: work around FreeBSD 6.1 bug
40134         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
40135         * doc/posix-functions/dup2.texi (dup2): Document it.
40136         Reported by Nelson H. F. Beebe and Jim Meyering.
40137
40138         test-stat-time: port to buggy NFS clients
40139         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
40140         (test_ctime): Also skip test if mtime and ctime are skewed.
40141
40142         maint: prefer 'file system' over 'filesystem'
40143         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40144         * doc/posix-functions/lstat.texi (lstat): Likewise.
40145         * lib/file-has-acl.c (file_has_acl): Likewise.
40146         * lib/fwriteerror.c [TEST]: Likewise.
40147         * tests/test-areadlink.h (test_areadlink): Likewise.
40148         * tests/test-areadlinkat-with-size.c (main): Likewise.
40149         * tests/test-areadlinkat.c (main): Likewise.
40150         * tests/test-canonicalize-lgpl.c (main): Likewise.
40151         * tests/test-canonicalize.c (main): Likewise.
40152         * tests/test-fstatat.c (main): Likewise.
40153         * tests/test-linkat.c (main): Likewise.
40154         * tests/test-lstat.h (test_lstat_func): Likewise.
40155         * tests/test-mkdir.h (test_mkdir): Likewise.
40156         * tests/test-readlink.h (test_readlink): Likewise.
40157         * tests/test-remove.c (main): Likewise.
40158         * tests/test-rename.h (test_rename): Likewise.
40159         * tests/test-renameat.c (main): Likewise.
40160         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40161         * tests/test-symlink.h (test_symlink): Likewise.
40162         * tests/test-symlinkat.c (main): Likewise.
40163         * tests/test-unlink.h (test_unlink_func): Likewise.
40164         * tests/test-unlinkat.c (main): Likewise.
40165
40166         maint: make realtime library usage explicit
40167         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
40168         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
40169         * modules/settime (Link): Likewise.
40170         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
40171
40172         test-stat-time: speed up execution
40173         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
40174         warning on mingw.
40175         (nap): New helper function.
40176         (prepare_test): Use it to reduce sleep time.
40177         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
40178         execution.
40179         * modules/stat-time-tests (configure.ac): Check for usleep.
40180
40181 2009-10-09  Jim Meyering  <meyering@redhat.com>
40182
40183         selinux-h: always use getfilecon wrappers
40184         * lib/getfilecon.c: New file.
40185         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
40186         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
40187         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
40188         (fgetfilecon): Provide a stub.
40189         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
40190         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
40191         file unconditionally.
40192         When <selinux/selinux.h> is found, arrange to use wrappers.
40193         * modules/selinux-h (Files): Add getfilecon.c.
40194         (Makefile.am): Substitute include-next-related bits
40195         into the now-always-generated selinux/selinux.h file.
40196         * doc/glibc-functions/lgetfilecon.texi: New file.
40197         * doc/glibc-functions/fgetfilecon.texi: New file.
40198         * doc/glibc-functions/getfilecon.texi: New file.
40199         * doc/glibc-functions/getfilecon-desc.texi: New file.
40200         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
40201         which to pull in the new files.
40202         * MODULES.html.sh (Misc): Add selinux-h.
40203
40204 2009-10-08  Jim Meyering  <meyering@redhat.com>
40205
40206         unistd: fix comment typo
40207         * lib/unistd.in.h (euidaccess): Fix a comment typo.
40208
40209 2009-10-08  Eric Blake  <ebb9@byu.net>
40210
40211         areadlink: use SIZE_MAX consistently
40212         * modules/areadlink (Depends-on): Add stdint.
40213         * modules/areadlink-with-size (Depends-on): Likewise.
40214         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
40215         gives NULL; drop sys/types, since unistd gives size_t; and add
40216         stdint for SIZE_MAX.
40217         (SIZE_MAX): Rely on headers.
40218         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
40219         and add stdint.
40220         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
40221         (SIZE_MAX): Likewise.
40222         (INITIAL_BUF_SIZE): Turn into enum.
40223         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
40224
40225 2009-10-08  Jim Meyering  <meyering@redhat.com>
40226
40227         areadlinkat: avoid compilation failure
40228         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
40229         Fix typo in comment.
40230
40231 2009-10-07  Eric Blake  <ebb9@byu.net>
40232
40233         areadlinkat-with-size: new module
40234         * modules/areadlinkat-with-size: New module.
40235         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
40236         * lib/areadlink.h (areadlinkat): Declare it.
40237         * MODULES.html.sh (File system functions): Mention it.
40238         * modules/areadlinkat-with-size-tests: New test.
40239         * tests/test-areadlinkat-with-size.c: New file.
40240
40241         xreadlinkat: new module
40242         * modules/xreadlinkat: New module.
40243         * lib/xreadlinkat.c (xreadlinkat): New file.
40244         * lib/xreadlink.h (xreadlinkat): Declare it.
40245         * MODULES.html.sh (File system functions): Mention it.
40246
40247         areadlinkat: new module
40248         * lib/at-func.c (FUNC_FAIL): New define.
40249         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
40250         * modules/areadlinkat: New module.
40251         * lib/linkat.c (areadlinkat): Move...
40252         * lib/areadlinkat.c (areadlinkat): ...to new file.
40253         * lib/areadlink.h (areadlinkat): Declare it.
40254         * modules/linkat (Depends-on): Add areadlinkat.
40255         * MODULES.html.sh (File system functions): Mention it.
40256         * modules/areadlinkat-tests: New test.
40257         * tests/test-areadlinkat.c: New file.
40258
40259         areadlink, areadlink-with-size: add tests
40260         * modules/areadlink-tests: New test.
40261         * modules/areadlink-with-size-tests: Likewise.
40262         * tests/test-areadlink.h: New file.
40263         * tests/test-areadlink.c: Likewise.
40264         * tests/test-areadlink-with-size.c: Likewise.
40265
40266         maint: minor cleanups
40267         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
40268         _UNUSED_PARAMETER_ instead.
40269         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
40270         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
40271         * modules/linkat-tests (Files): Distribute test-link.h.
40272
40273         openat, utimens: whitespace cleanup
40274         * lib/openat.c: Prefer space throughout, rather than mix of 8
40275         spaces vs. tabs.
40276         * lib/at-func.c: Likewise.
40277         * lib/utimens.c: Likewise.
40278
40279         openat: avoid using wrong fd
40280         * lib/openat.c (openat_permissive): Reject user's fd if saving the
40281         working directory chooses same fd.
40282         * lib/at-func.c (AT_FUNC_NAME): Likewise.
40283
40284         mkdir, mkdirat: fix cygwin 1.5.x bug
40285         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
40286         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
40287         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
40288         bug.
40289         (gl_PREREQ_MKDIR): Delete unused macro.
40290         * modules/mkdir (Files): Track file rename.
40291         (configure.ac): Update macro name.
40292         * modules/openat (Depends-on): Add mkdir.
40293         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
40294
40295         mkdir, mkdirat: add tests
40296         * modules/mkdir-tests: New test.
40297         * tests/test-mkdir.h: New file.
40298         * tests/test-mkdir.c: Likewise.
40299         * tests/test-mkdirat.c: Likewise.
40300         * modules/openat-tests (Files): Add new files.
40301         (Makefile.am): Run new test.
40302
40303 2009-10-06  Eric Blake  <ebb9@byu.net>
40304
40305         doc: tweak *at function documentation
40306         * doc/posix-functions/faccessat.texi (faccessat): Mention
40307         known issue with replacement.
40308         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
40309         * doc/posix-functions/linkat.texi (linkat): Likewise.
40310         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40311         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40312         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40313         * doc/posix-functions/renameat.texi (renameat): Likewise.
40314         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40315
40316         openat: fix GNU/Hurd bug in unlinkat
40317         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
40318         broken.
40319         * doc/posix-functions/unlink.texi (unlink): Document this.
40320         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
40321
40322         fdopendir: fix GNU/Hurd bug
40323         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
40324         allowing non-directory fds.
40325         * lib/fdopendir.c (rpl_fdopendir): Work around it.
40326         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
40327         * modules/dirent (Makefile.am): Substitute it.
40328         * lib/dirent.in.h (fdopendir): Declare replacement.
40329         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
40330         * tests/test-fdopendir.c (main): Test something other than
40331         /dev/null, since on Hurd that behaves like a directory.
40332
40333         test-symlink: port to GNU/Hurd
40334         * tests/test-symlink.h (test_symlink): Relax expected errno.
40335
40336         doc: tweak more cygwin information
40337         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
40338         now compatible with glibc.
40339         * doc/posix-functions/getopt.texi (getopt): Likewise.
40340
40341         getopt-gnu: add another test
40342         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
40343         guarantee behavior relied on by m4.
40344         * tests/test-getopt.c (main): Use it.
40345         * modules/getopt-posix-tests (Depends-on): Add setenv.
40346         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
40347
40348         getopt: fix compilation on darwin
40349         * lib/getopt.in.h (includes): Leave breadcrumbs during system
40350         include.
40351         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
40352         Reported by Ludovic Courtès.
40353
40354 2009-10-06  Bruno Haible  <bruno@clisp.org>
40355
40356         * modules/size_max (Description): Discourage its use.
40357         Reported by Simon Josefsson.
40358
40359 2009-10-06  Jim Meyering  <meyering@redhat.com>
40360
40361         linkat: avoid compilation failure
40362         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
40363
40364 2009-10-05  Eric Blake  <ebb9@byu.net>
40365
40366         linkat: support Linux 2.6.17
40367         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
40368         linkat on Linux, but allow cache variable override.
40369         * lib/linkat.c (rpl_linkat): Define override.
40370         * modules/linkat (Depends-on): Add symlinkat.
40371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
40372         * modules/unistd (Makefile.am): Substitute it.
40373         * lib/unistd.in.h (linkat): Declare replacement.
40374         Reported by Pádraig Brady.
40375
40376         quotearg: port test to systems with C.UTF-8 locale
40377         * tests/test-quotearg.c (struct result_strings): Add another
40378         member, differentiating between C.ASCII and C.UTF-8 handling.
40379         (compare_strings): Add parameter.
40380         (main): Adjust all callers.
40381
40382         getopt: avoid clash with FreeBSD _getopt_internal
40383         * lib/getopt.in.h (_getopt_internal): Override the name.
40384         * lib/getopt_int.h (includes): Pick up any overrides.
40385         Reported by Reuben Thomas.
40386
40387         hash: allow C89 compilation
40388         * lib/hash.c (check_tuning): Move declaration before statement.
40389         Reported by Reuben Thomas.
40390
40391 2009-10-05  Karl Berry  <karl@gnu.org>
40392
40393         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
40394
40395 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
40396             Bruno Haible  <bruno@clisp.org>
40397
40398         * lib/uname.c (uname): Use a table-driven algorithm to compute
40399         Windows NT versions.
40400
40401 2009-10-04  Bruno Haible  <bruno@clisp.org>
40402
40403         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
40404         program_invocation_short_name.
40405         * modules/progname (configure.ac): Test for presence of
40406         program_invocation_short_name.
40407         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
40408
40409 2009-10-04  Bruno Haible  <bruno@clisp.org>
40410
40411         * lib/progname.c (set_program_name): Fix comment.
40412         Reported by Jim Meyering.
40413
40414 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40415             Bruno Haible  <bruno@clisp.org>
40416
40417         * lib/uname.c: Include <string.h>.
40418         (uname): Do only one call to GetVersionEx in the common case.
40419
40420 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
40421             Bruno Haible  <bruno@clisp.org>
40422
40423         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
40424         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
40425         (uname): Add support for Windows CE and various non-x86 CPU types.
40426
40427 2009-10-03  Bruno Haible  <bruno@clisp.org>
40428
40429         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
40430         invocation to tests/configure.ac.
40431         Reported by Ian Beckwith <ianb@erislabs.net>.
40432
40433 2009-10-02  Eric Blake  <ebb9@byu.net>
40434
40435         fchdir: avoid compiler warning
40436         * lib/fchdir.c (canonicalize_file_name)
40437         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
40438
40439         test-open: support mingw errno values
40440         * tests/test-open.h (test_open): Relax test.
40441         * tests/test-fopen.h (test_fopen): Likewise.
40442         * tests/test-openat-safer.c (main): Likewise.
40443
40444         open: fix opening directory on mingw
40445         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
40446
40447         test-open: on GNU/Hurd, /dev/null is a directory
40448         * tests/test-fopen.h (main): Rename...
40449         (test_fopen): ...to this.  Use a guaranteed non-directory when
40450         confirming open behavior on trailing slash.
40451         * tests/test-openat-safer.c (main): Likewise.
40452         * tests/test-open.h (main): Likewise....
40453         (test_open): ...to this.
40454         * tests/test-fopen.c (main): Adjust caller.
40455         * tests/test-fopen-safer.c (main): Likewise.
40456         * tests/test-open.c (main): Likewise.
40457         * tests/test-fcntl-safer.c (main): Likewise.
40458         Reported by Samuel Thibault.
40459
40460         rename, fchdir: don't ignore chdir failure
40461         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
40462         * lib/rename.c (rpl_rename) [W32]: Likewise.
40463         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
40464         an empty destination directory if source cannot be renamed,
40465         although there is still possibility for failure.
40466         * doc/posix-functions/rename.texi (rename): Document the race.
40467         Reported by Jim Meyering.
40468
40469         maint: cleanup whitespace in recent commits
40470         * lib/rename.c (rpl_rename): Remove tabs.
40471         * tests/test-link.h (test_link): Likewise.
40472         * lib/fchdir.c (get_name): Likewise.
40473         Reported by Jim Meyering.
40474
40475 2009-10-02  Ben Pfaff  <blp@gnu.org>
40476
40477         relocatable-prog-wrapper: Add missing dependency on
40478         double-slash-root.
40479         * modules/relocatable-prog-wrapper: Add dependency.
40480         Reported by Ian Beckwith <ianb@erislabs.net>.
40481
40482 2009-10-02  Eric Blake  <ebb9@byu.net>
40483
40484         renameat: fix Solaris bugs
40485         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
40486         needed fixing.
40487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
40488         * modules/stdio (Makefile.am): Substitute it.
40489         * lib/stdio.in.h (renameat): Declare replacement.
40490         * lib/renameat.c (rpl_renameat): Implement fix.
40491
40492         renameat: new module
40493         * modules/renameat: New file.
40494         * lib/renameat.c (renameat): Likewise.
40495         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
40496         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40497         * modules/stdio (Makefile.am): Substitute them.
40498         * lib/stdio.in.h (renameat): Declare it.
40499         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40500         * doc/posix-functions/renameat.texi (renameat): Likewise.
40501         * modules/renameat-tests: New test.
40502         * tests/test-renameat.c: Likewise.
40503
40504         rename: fix mingw bugs
40505         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
40506         directory overwrite bugs.
40507
40508         rename: fix another cygwin 1.5 bug
40509         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
40510         checks.
40511         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
40512         unnecessary cygwin workarounds.  Also work around bug with moving
40513         full directory onto an empty one.
40514         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
40515
40516         rename-dest-slash: merge into rename module
40517         * modules/rename-dest-slash (Status): Mark obsolete.
40518         (Depends-on): Add rename.
40519         (Files): Let rename do it all.
40520         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
40521         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
40522         * m4/rename-dest-slash.m4: ...so this file can be deleted.
40523         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
40524         * lib/rename.c (rpl_rename): Update comments.
40525
40526         rename: fix cygwin 1.5.x bugs
40527         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
40528         * lib/rename.c (rpl_rename): Work around them.
40529         * modules/rename (Depends-on): Add same-inode.
40530
40531         rename: fix Solaris 10 bug
40532         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40533         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
40534         was the only bug.
40535
40536         rename: fix Solaris 9 bug
40537         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
40538         on non-directory.  Avoid calling exit.
40539         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
40540         strdup.
40541         * modules/rename-tests (Depends-on): Drop lstat.
40542         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
40543         (gl_PREREQ_RENAME): Delete unused macro.
40544
40545         rename-dest-slash: fix NetBSD bug
40546         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
40547         links.
40548         * modules/rename-dest-slash (Depends-on): Add same-inode.
40549
40550         rename-tests: new test, exposes several platform bugs
40551         * modules/rename-tests: New file.
40552         * tests/test-rename.h: Likewise.
40553         * tests/test-rename.c: Likewise.
40554         * doc/posix-functions/rename.texi (rename): Improve documentation,
40555         including bugs that will eventually be fixed in gnulib.
40556
40557 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
40558
40559         * lib/uname.c: Include <stdlib.h>
40560         (uname): Assume version info is available.
40561
40562 2009-10-02  Jim Meyering  <meyering@redhat.com>
40563
40564         gnu-web-doc-update: correct --help output
40565         * build-aux/gnu-web-doc-update: Make --help output relevant.
40566
40567         gnu-web-doc-update: add standard options
40568         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
40569
40570         gnu-web-doc-update: New module.
40571         Use this script to automatically update the on-line web documentation
40572         for your GNU project at http://www.gnu.org/software/$pkg/manual/
40573         * modules/gnu-web-doc-update: New file, from coreutils.
40574         * build-aux/gnu-web-doc-update: New script.
40575
40576 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
40577
40578         link: LoadLibrary is not needed.
40579         * lib/link.c: Use GetModuleHandle.
40580
40581 2009-10-01  Eric Blake  <ebb9@byu.net>
40582
40583         getopt: bump serial number
40584         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40585         change.
40586
40587         tests: tighten link, rmdir, and remove tests
40588         * tests/test-link.h (includes): No need to use <config.h> here.
40589         Clean up if directory hard link was created, otherwise test for
40590         trailing '.'.
40591         * tests/test-linkat.c (main): Simplify.
40592         * tests/test-remove.c (main): Enhance test for trailing '.'.
40593         * tests/test-rmdir.h (test_rmdir_func): Likewise.
40594
40595 2009-10-01  Jim Meyering  <meyering@redhat.com>
40596
40597         maint.mk: requiring "make major" was annoying, for a "minor" release.
40598         What is intended is "stable", to contrast with alpha and beta,
40599         so require "make stable", not "make major".
40600         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
40601         (get_tool_versions): Likewise.
40602         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
40603
40604 2009-09-30  Ben Pfaff  <blp@gnu.org>
40605
40606         Fix broken build of replacement for Windows tmpfile().
40607         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
40608         flags argument added along with the 'mkostemp' module.
40609
40610 2009-09-28  Bruno Haible  <bruno@clisp.org>
40611
40612         Avoid identifier clash with POSIX function 'remove' defined as a macro.
40613         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
40614         to 'remove_elt'.
40615         (gl_list_remove): Update.
40616         * lib/gl_list.c (gl_list_remove): Update.
40617         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
40618         to 'remove_elt'.
40619         (gl_oset_remove): Update.
40620         * lib/gl_list.c (gl_oset_remove): Update.
40621         Reported by Eric Blake.
40622
40623 2009-09-28  Eric Blake  <ebb9@byu.net>
40624
40625         doc: mention yet more cygwin 1.7 status
40626         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
40627         cygwin.
40628         * doc/glibc-functions/execvpe.texi (execvpe): New file.
40629         * doc/gnulib.texi (Glibc unistd.h): Mention it.
40630
40631         argp: fix test failure
40632         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
40633         that are not upper-case.  Pass correct range to tolower.
40634
40635 2009-09-27  Jim Meyering  <meyering@redhat.com>
40636
40637         test-yesno: work around sparc-dash here-document infelicity
40638         Without this change, the literal \177 byte in a here document
40639         would make dash 0.5.5.1-3 access uninitialized memory.
40640         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
40641         Instead, use a marker, "@", and filter through tr to create the desired
40642         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
40643
40644 2009-09-27  Bruno Haible  <bruno@clisp.org>
40645
40646         Disable untested support for new flavours of ACLs on AIX.
40647         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
40648         progress.
40649         * lib/set-mode-acl.c (qset_acl): Likewise.
40650
40651 2008-12-07  Bruno Haible  <bruno@clisp.org>
40652
40653         Add support for new flavours of ACLs on AIX. (Untested.)
40654         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
40655         (file_has_acl): Add support for newer AIX.
40656         * lib/set-mode-acl.c (qset_acl): Likewise.
40657         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
40658         Rainer Tammer <tammer@tammer.net>.
40659
40660 2009-09-26  Eric Blake  <ebb9@byu.net>
40661
40662         argp: fix compilation of getopt
40663         * lib/getopt.in.h (includes): Use different guard than glibc.
40664         Reported by Sergey Poznyakoff.
40665
40666         doc: mention more cygwin 1.7 status
40667         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
40668         bug.
40669         * doc/posix-functions/execl.texi (execl): Likewise.
40670         * doc/posix-functions/execle.texi (execle): Likewise.
40671         * doc/posix-functions/execlp.texi (execlp): Likewise.
40672         * doc/posix-functions/execv.texi (execv): Likewise.
40673         * doc/posix-functions/execve.texi (execve): Likewise.
40674         * doc/posix-functions/execvp.texi (execvp): Likewise.
40675         * doc/glibc-functions/canonicalize_file_name.texi
40676         (canonicalize_file_name): Cygwin 1.7 now provides this.
40677         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
40678         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
40679         on AT_SYMLINK_NOFOLLOW.
40680
40681 2009-09-24  Eric Blake  <ebb9@byu.net>
40682
40683         test-linkat: make test more robust
40684         * tests/test-linkat.c (main): Avoid collision with EEXIST.
40685
40686         getopt: fix inclusion guards for cygwin
40687         * modules/getopt-posix (Depends-on): Add include-next.
40688         (Makefile.am): Substitute more items in replacement header.
40689         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
40690         <getopt.h>.
40691         * lib/getopt.in.h (includes): Use split inclusion guard, and
40692         prefer <getopt.h> over include <unistd.h> when one is present.
40693         (option): Also override name of 'struct option'.
40694
40695         same-inode: revert prior change; it is not yet ready
40696         * NEWS: Undo mention of this change.
40697         * lib/same-inode.h (same-inode.h): Undo tri-state change.
40698         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40699         * lib/cycle-check.c (cycle_check): Likewise.
40700         * lib/same.c (same_name): Likewise.
40701         * lib/at-func2.c (at_func2): Likewise.
40702
40703 2009-09-23  Eric Blake  <ebb9@byu.net>
40704
40705         linkat: new module
40706         * modules/linkat: New file.
40707         * lib/at-func2.c (at_func2): Likewise.
40708         * lib/linkat.c (linkat): Likewise.
40709         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
40710         * lib/openat-priv.h (at_func2): Add declaration.
40711         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40712         * modules/unistd (Makefile.am): Substitute them.
40713         * lib/unistd.in.h (linkat): Declare it.
40714         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40715         * doc/posix-functions/linkat.texi (linkat): Likewise.
40716         * doc/posix-functions/link.texi (link): Tweak wording.
40717         * tests/test-link.c (main): Move guts...
40718         * tests/test-link.h (test_link): ...into new file.
40719         * modules/linkat-tests: New test.
40720         * tests/test-linkat.c: Likewise.
40721         * modules/link-tests (Files): Ship new file.
40722         (Depends-on): Add stdbool.
40723
40724         dirname: add library-safe mdir_name
40725         * lib/dirname.h (mdir_name): New prototype.
40726         * lib/dirname.c (dir_name): Move guts...
40727         (mdir_name): ...to new function that avoids xalloc_die.
40728
40729         fchdir: another mingw fix
40730         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
40731         * lib/fchdir.c (get_name): New helper method; skips canonicalize
40732         on mingw (where it has not yet been ported), and make it optional
40733         elsewhere.
40734         (_gl_register_fd): Use it.
40735
40736         same-inode: make SAME_INODE tri-state, to port to mingw
40737         * NEWS: Mention this change.
40738         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
40739         st_ino always being 0.
40740         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
40741         * lib/cycle-check.c (cycle_check): Likewise.
40742         * lib/same.c (same_name): Likewise.
40743
40744         lstat: avoid mingw compilation error
40745         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
40746         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
40747         lstat ourselves.
40748         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
40749         was adequate.
40750         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
40751         the checks for lstat.
40752         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
40753
40754         link: fix test failure on Solaris 9
40755         * lib/link.c (rpl_link): Don't assume link will catch bogus
40756         trailing slash on source.
40757
40758         test-symlinkat: enhance test
40759         * tests/test-readlink.c (main): Move guts...
40760         * tests/test-readlink.h (test_readlink): ...into new file.
40761         * tests/test-symlink.c (main): Move guts...
40762         * tests/test-symlink.h (test_symlink): ...into new file.
40763         * tests/test-symlinkat.c (main): Use new files for further
40764         coverage.
40765         (do_symlink, do_readlink): New helper functions.
40766         * modules/symlink-tests (Files): Ship new file.
40767         (Depends-on): Add stdbool.
40768         * modules/readlink-tests (Files): Ship new file.
40769         (Depends-on): Add stdbool.
40770         * modules/symlinkat-tests (Files): Use new files.
40771
40772 2009-09-23  Eric Blake  <ebb9@byu.net>
40773
40774         readlink: document portability issue with symlink length
40775         * doc/posix-functions/lstat.texi (lstat): Mention that some file
40776         systems have bogus st_size on symlinks, and mention the
40777         areadlink-with-size module.
40778         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
40779         * doc/posix-functions/readlink.texi (readlink): Mention the
40780         areadlink module, and ERANGE failure.
40781         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40782         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
40783
40784         readlink: fix Solaris 9 bug with trailing slash
40785         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
40786         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
40787         * doc/posix-functions/readlink.texi (readlink): Document this.
40788         * modules/readlink-tests: New test.
40789         * tests/test-readlink.c: Likewise.
40790
40791         readlink: fix cygwin 1.5.x bug with return type
40792         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
40793         * lib/unistd.in.h (readlink): Use ssize_t.
40794         * lib/readlink.c (readlink): Likewise.
40795         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40796         * modules/unistd (Makefile.am): Substitute it.
40797         * lib/unistd.in.h (readlink): Declare replacement.
40798         * doc/posix-functions/readlink.texi (readlink): Document this.
40799
40800         symlink: use throughout gnulib
40801         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
40802         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
40803         symlink is not used.
40804         * modules/symlinkat (Depends-on): Add symlink.
40805         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40806         * modules/canonicalize-tests (Depends-on): Likewise.
40807         * modules/lstat-tests (Depends-on): Likewise.
40808         * modules/openat-tests (Depends-on): Likewise.
40809         * modules/remove-tests (Depends-on): Likewise.
40810         * modules/rmdir-tests (Depends-on): Likewise.
40811         * modules/unlink-tests (Depends-on): Likewise.
40812         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40813         * tests/test-canonicalize.c (symlink): Likewise.
40814         * tests/test-fstatat.c (symlink): Likewise.
40815         * tests/test-lstat.c (symlink): Likewise.
40816         * tests/test-remove.c (symlink): Likewise.
40817         * tests/test-rmdir.c (symlink): Likewise.
40818         * tests/test-unlink.c (symlink): Likewise.
40819         * tests/test-unlinkat.c (symlink): Likewise.
40820
40821         symlink: new module, for Solaris 9 bug
40822         * modules/symlink: New file.
40823         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40824         * lib/symlink.c: Likewise.
40825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40826         * modules/unistd (Makefile.am): Substitute them.
40827         * lib/unistd.in.h (symlink): Declare replacement.
40828         * MODULES.html.sh (File system functions): Mention it.
40829         * doc/posix-functions/symlink.texi (symlink): Likewise.
40830         * modules/symlink-tests: New test.
40831         * tests/test-symlink.c: Likewise.
40832
40833 2009-09-23  Bruno Haible  <bruno@clisp.org>
40834
40835         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40836         when needed.
40837         Test case: gnulib-tool --import --with-tests atexit inttypes.
40838         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40839
40840 2009-09-23  Bruno Haible  <bruno@clisp.org>
40841
40842         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40843         subcommand, not in a subshell.
40844
40845 2009-09-22  Eric Blake  <ebb9@byu.net>
40846
40847         unistd: sort replacement declarations
40848         * lib/unistd.in.h: Sort declarations.
40849
40850         open, openat: minor optimization
40851         * lib/open.c (open): If open succeeded, len is non-zero.
40852         * lib/openat.c (rpl_openat): Likewise.
40853
40854         link-follow: ensure correct result
40855         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40856         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40857         distinguish between possible failures.
40858
40859 2009-09-21  Eric Blake  <ebb9@byu.net>
40860
40861         fts: avoid compiler warning
40862         * lib/fts.c (dirent_inode_sort_may_be_useful)
40863         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40864
40865 2009-09-19  Bruno Haible  <bruno@clisp.org>
40866
40867         * lib/progreloc.c (canonicalize_file_name): New declaration.
40868
40869 2009-09-19  Eric Blake  <ebb9@byu.net>
40870
40871         link: fix quoting
40872         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40873
40874         openat: fix openat bugs on Solaris 9
40875         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40876         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40877         * modules/openat (Depends-on): Add open.
40878         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40879         * modules/fcntl-h (Makefile.am): Substitute it.
40880         * lib/fcntl.in.h (openat): Declare replacement.
40881         * doc/posix-functions/openat.texi (openat): Document this.
40882
40883         openat: move fstatat and unlinkat into correct files
40884         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40885         compiled.
40886         * lib/openat.c (fstatat, unlinkat): Move...
40887         * lib/fstatat.c (fstatat): ...into correct files.
40888         * lib/unlinkat.c (unlinkat): Likewise.
40889
40890         openat: fix unlinkat bugs on Solaris 9
40891         * lib/unlinkat.c (unlinkat): New file.
40892         * modules/openat (Depends-on): Add unlink.
40893         (Files): Distribute it.
40894         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40895         trailing slash behavior is broken.
40896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40897         * modules/unistd (Makefile.am): Substitute it.
40898         * lib/unistd.in.h (unlinkat): Declare replacement.
40899         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40900
40901         openat: fix fstatat bugs on Solaris 9
40902         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40903         stat.
40904         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40905
40906         test-unlinkat: enhance test, to expose Solaris 9 bug
40907         * tests/test-unlink.c (main): Factor guts...
40908         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40909         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40910         * tests/test-rmdir.c (main): Adjust caller.
40911         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40912         (unlinker): New helper function.
40913         (rmdirat): Enhance check.
40914         * modules/rmdir-tests (Depends-on): Add stdbool.
40915         * modules/unlink-tests (Depends-on): Likewise.
40916         (Files): Add test-unlink.h.
40917         * modules/openat-tests (Files): Likewise.
40918         (Depends-on): Add unlinkdir.
40919
40920         test-fstatat: new test, to expose Solaris 9 bugs
40921         * tests/test-stat.c (main): Factor guts...
40922         * tests/test-stat.h (test_stat_func): ...into new file.
40923         * tests/test-lstat.c (main): Factor guts...
40924         * tests/test-lstat.h (test_lstat_func): ...into new file.
40925         * tests/test-fstatat.c: New file.
40926         * modules/stat-tests (Files): Add test-stat.h.
40927         * modules/lstat-tests (Files): Add test-lstat.h.
40928         (Depends-on): Add stdbool.
40929         * modules/openat-tests (Depends-on): Add pathmax.
40930         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40931         (Makefile.am): Run new test.
40932
40933         remove: new module, for mingw and Solaris 9 bugs
40934         * modules/remove: New file.
40935         * lib/remove.c: Likewise.
40936         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40937         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40938         * modules/stdio (Makefile.am): Use them.
40939         * lib/stdio.in.h (remove): Declare replacement.
40940         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40941         * doc/posix-functions/remove.texi (remove): Likewise.
40942         * modules/remove-tests: New test.
40943         * tests/test-remove.c: Likewise.
40944
40945         unlink: new module, for Solaris 9 bug
40946         * modules/unlink: New file.
40947         * lib/unlink.c: Likewise.
40948         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40950         * modules/unistd (Makefile.am): Use them.
40951         * lib/unistd.in.h (stat): Declare replacement.
40952         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40953         * doc/posix-functions/unlink.texi (unlink): Likewise.
40954         * modules/unlink-tests: New test.
40955         * tests/test-unlink.c: Likewise.
40956
40957         lstat: fix Solaris 9 bug
40958         * lib/lstat.c (lstat): Also check for trailing slash on
40959         non-symlink, non-directories.  Use stat module to simplify logic.
40960         * doc/posix-functions/lstat.texi (lstat): Document it.
40961         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40962         (configure.ac): Check for symlink.
40963         * tests/test-lstat.c (main): Add more tests.
40964
40965         stat: add as dependency to other modules
40966         * modules/chown (Depends-on): Add stat.
40967         * modules/euidaccess (Depends-on): Likewise.
40968         * modules/fchdir (Depends-on): Likewise.
40969         * modules/isdir (Depends-on): Likewise.
40970         * modules/link (Depends-on): Likewise.
40971         * modules/lstat (Depends-on): Likewise.
40972         * modules/mkdir-p (Depends-on): Likewise.
40973         * modules/modechange (Depends-on): Likewise.
40974         * modules/open (Depends-on): Likewise.
40975         * modules/readlink (Depends-on): Likewise.
40976         * modules/same (Depends-on): Likewise.
40977
40978         stat: fix Solaris 9 bug
40979         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40980         slash.
40981         * lib/stat.c (rpl_stat): Work around it.
40982         * doc/posix-functions/stat.texi (stat): Update documentation.
40983
40984         stat: new module, for mingw bug
40985         * modules/stat: New file.
40986         * lib/stat.c: Likewise.
40987         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40988         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40989         * modules/sys_stat (Makefile.am): Use them.
40990         * lib/sys_stat.in.h (stat): Declare replacement.
40991         * lib/openat.c (fstatat): Deal with lstat and stat being function
40992         macros.
40993         * modules/openat (Depends-on): Add inline.
40994         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40995         * doc/posix-functions/stat.texi (stat): Likewise.
40996         * modules/stat-tests: New test.
40997         * tests/test-stat.c: Likewise.
40998
40999 2009-09-19  Jim Meyering  <meyering@redhat.com>
41000
41001         syntax-check: detect unnecessary inclusion of canonicalize.h
41002         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
41003
41004 2009-09-19  Eric Blake  <ebb9@byu.net>
41005
41006         canonicalize-lgpl: adjust clients to use correct header
41007         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41008         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
41009         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
41010         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
41011         * lib/progreloc.c (includes): Likewise.
41012
41013 2009-09-19  Jim Meyering  <meyering@redhat.com>
41014
41015         test-posixtm.c: correct a comment
41016         * tests/test-posixtm.c: Correct first-line comment.
41017         Spotted by Eric Blake.
41018
41019 2009-09-16  Jim Meyering  <meyering@redhat.com>
41020
41021         posixtm-tests: make T const-correct; add a test case
41022         * tests/test-posixtm.c (T): Declare const.
41023         Add a test for -(2^31+1).
41024         Remove useless can-succeed-only-in-2002 test.
41025
41026         posixtm-tests: adjust the sole failing test
41027         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
41028         expected output matches what mktime now produces.  Cross-checked via
41029         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
41030
41031         posixtm: move #ifdef'd tests into a new module
41032         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
41033         * tests/test-posixtm.c: ... this new file.
41034         * modules/posixtm-tests: New module.
41035
41036 2009-09-19  Eric Blake  <ebb9@byu.net>
41037
41038         openat: simplify use of at-func.c
41039         * lib/at-func.c (includes): Include prerequisites here, to
41040         simplify requirements on client files.
41041         * lib/openat-priv.h: Add double-inclusion guard.
41042         * lib/faccessat.c (includes): Simplify.
41043         * lib/fchmodat.c (includes): Likewise.
41044         * lib/fchownat.c (includes): Likewise.
41045         * lib/mkdirat.c (includes): Likewise.
41046         * lib/mkfifoat.c (includes): Likewise.
41047         * lib/symlinkat.c (includes): Likewise.
41048
41049         openat: allow return of fd 0
41050         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
41051         * modules/save-cwd (Depends-on): Replace fcntl-safer with
41052         unistd-safer.
41053         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
41054         <fcntl.h>; this module does not leak fds.
41055         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
41056         must be allowed to return 0, leaving openat_safer to add the
41057         safety.
41058         (openat_permissive): Avoid writing to just-opened fd 2 if
41059         restoring the current directory fails.
41060         * lib/openat-die.c (openat_restore_fail): Add comment.
41061         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
41062         (save_cwd): Guarantee safe fd, but without use of open_safer.
41063         * tests/test-openat.c: New test.
41064         * modules/openat-tests (Files, Makefile.am): Distribute and build
41065         new file.
41066
41067         relocatable-prog-wrapper: fix build
41068         * modules/relocatable-prog-wrapper (Files): Update name of
41069         canonicalize m4 file, broken on 2009-09-17.
41070         Reported by emad hajjar <aleppos@hotmail.com>.
41071
41072 2009-09-19  Bruno Haible  <bruno@clisp.org>
41073
41074         * lib/safe-alloc.h: Use the standard header with GPL copyright.
41075         * lib/safe-alloc.c: Likewise.
41076         Reported by Ian Beckwith <ianb@erislabs.net>.
41077
41078 2009-09-18  Bruno Haible  <bruno@clisp.org>
41079
41080         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
41081         Reported by <erobles@sensacd.com.mx>.
41082
41083 2009-09-17  Eric Blake  <ebb9@byu.net>
41084
41085         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
41086         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
41087         slashes when checking if last component is missing.
41088         * tests/test-canonicalize.c (main): Test this.
41089
41090         canonicalize, canonicalize-lgpl: honor // if distinct from /
41091         * modules/canonicalize (Files): Add double-slash-root.m4.
41092         * modules/canonicalize-lgpl (Files): Likewise.
41093         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
41094         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
41095         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
41096         fallback definition.
41097         (canonicalize_filename_mode): Use it to protect //.
41098         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
41099         (__realpath): Likewise.
41100         * tests/test-canonicalize.c (main): Test this.
41101         * tests/test-canonicalize-lgpl.c (main): Likewise.
41102         * modules/canonicalize-tests (Depends-on): Add same-inode.
41103         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
41104
41105         canonicalize-lgpl: fix glibc bug with trailing slash
41106         * m4/canonicalize-lgpl.m4: Move contents...
41107         * m4/canonicalize.m4: ...here.
41108         (gl_CANONICALIZE_LGPL): Factor realpath check...
41109         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
41110         glibc 2.3.5 bug, fixed 2005-04-27.
41111         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
41112         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
41113         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
41114         * modules/canonicalize-lgpl (Files): Manage file rename.
41115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41116         * modules/stdlib (Makefile.am): Substitute witness.
41117         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
41118         is needed.
41119         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
41120         replacement is required.
41121         * lib/canonicalize.c (canonicalize_file_name): Likewise.
41122         * doc/glibc-functions/canonicalize_file_name.texi
41123         (canonicalize_file_name): Document this.
41124         * doc/posix-functions/realpath.texi (realpath): Likewise.
41125
41126         canonicalize-lgpl: reject non-directory with trailing slash
41127         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
41128         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
41129         catches failures in glibc 2.3.5.
41130         * tests/test-canonicalize.c (main): Likewise.
41131
41132         canonicalize-lgpl: use native realpath if it works
41133         * lib/canonicalize-lgpl.c (realpath): Guard with
41134         FUNC_REALPATH_WORKS.
41135         * lib/stdlib.in.h (realpath): Make declaration optional based on
41136         HAVE_REALPATH.
41137         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
41138         native realpath works.
41139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
41140         * modules/stdlib (Makefile.am): Substitute witness.
41141
41142         canonicalize, canonicalize-lgpl: use <stdlib.h>
41143         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
41144         (Include): Mention <stdlib.h>.
41145         (configure.ac): Mention functions we provide.
41146         * modules/canonicalize (configure.ac): Likewise.
41147         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
41148         realpath if canonicalize_file_name is missing.
41149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
41150         * modules/stdlib (Makefile.am): Substitute witnesses.
41151         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
41152         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
41153         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
41154         * NEWS: Document this.
41155         * doc/glibc-functions/canonicalize_file_name.texi
41156         (canonicalize_file_name): Likewise.
41157         * doc/posix-functions/realpath.texi (realpath): Likewise.
41158         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
41159
41160         test-canonicalize: consolidate into single C program
41161         * tests/test-canonicalize.sh: Delete; move setup into...
41162         * tests/test-canonicalize.c (main): ...the program, making it
41163         easier to run in debugger.  Add some tests.
41164         * modules/canonicalize-tests (Files): Remove unused file.
41165         (Depends-on): Add progname.
41166         (configure.ac, Makefile.am): Simplify.
41167
41168         test-canonicalize-lgpl: consolidate into single C program
41169         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
41170         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
41171         easier to run in debugger.  Add some tests.
41172         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
41173         (configure.ac, Makefile.am): Simplify.
41174
41175         canonicalize: avoid resolvepath
41176         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
41177         unnecessary checks.
41178         * lib/canonicalize.c (includes): Simplify.
41179         (canonicalize_file_name): Drop resolvepath implementation.
41180         * modules/canonicalize (Depends-on): Drop filenamecat.
41181
41182         canonicalize: don't lose errno
41183         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
41184         over calls to free.
41185
41186         canonicalize: simplify errno handling
41187         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
41188         assignment.
41189
41190         canonicalize, canonicalize-lgpl: update module dependencies
41191         * modules/canonicalize (Depends-on): Add extensions, lstat,
41192         pathmax, stdlib.
41193         (Files): Drop pathmax.h.
41194         (configure.ac): Adjust macro name.
41195         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
41196         lstat, stdlib, sys_stat.
41197         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
41198         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
41199         extensions.
41200         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
41201         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
41202         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
41203         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
41204         declaration, if available.
41205         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
41206         we can rely on the readlink module.
41207         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
41208         (includes): Use <unistd.h> unconditionally.
41209
41210 2009-09-17  Eric Blake  <ebb9@byu.net>
41211
41212         maint: make Include sections of modules consistent
41213         * modules/alloca: Use only header name; no need to list #include.
41214         * modules/alloca-opt: Likewise.
41215         * modules/arpa_inet: Likewise.
41216         * modules/canon-host: Likewise.
41217         * modules/configmake: Likewise.
41218         * modules/dirent: Likewise.
41219         * modules/eealloc: Likewise.
41220         * modules/environ: Likewise.
41221         * modules/fchdir: Likewise.
41222         * modules/fcntl: Likewise.
41223         * modules/fcntl-h: Likewise.
41224         * modules/gethrxtime: Likewise.
41225         * modules/gettime: Likewise.
41226         * modules/ignore-value: Likewise.
41227         * modules/inet_ntop: Likewise.
41228         * modules/inet_pton: Likewise.
41229         * modules/inttypes: Likewise.
41230         * modules/isnand-nolibm: Likewise.
41231         * modules/isnanf-nolibm: Likewise.
41232         * modules/mbchar: Likewise.
41233         * modules/mbfile: Likewise.
41234         * modules/mbiter: Likewise.
41235         * modules/mbuiter: Likewise.
41236         * modules/netdb: Likewise.
41237         * modules/netinet_in: Likewise.
41238         * modules/nproc: Likewise.
41239         * modules/pagealign_alloc: Likewise.
41240         * modules/poll: Likewise.
41241         * modules/printf-frexp: Likewise.
41242         * modules/pthread: Likewise.
41243         * modules/putenv: Likewise.
41244         * modules/random_r: Likewise.
41245         * modules/relocatable-prog: Likewise.
41246         * modules/search: Likewise.
41247         * modules/select: Likewise.
41248         * modules/selinux-h: Likewise.
41249         * modules/settime: Likewise.
41250         * modules/signal: Likewise.
41251         * modules/size_max: Likewise.
41252         * modules/socklen: Likewise.
41253         * modules/ssize_t: Likewise.
41254         * modules/stdarg: Likewise.
41255         * modules/stdbool: Likewise.
41256         * modules/stddef: Likewise.
41257         * modules/stdint: Likewise.
41258         * modules/stdio: Likewise.
41259         * modules/stdlib: Likewise.
41260         * modules/string: Likewise.
41261         * modules/strings: Likewise.
41262         * modules/sys_file: Likewise.
41263         * modules/sys_ioctl: Likewise.
41264         * modules/sys_select: Likewise.
41265         * modules/sys_socket: Likewise.
41266         * modules/sys_stat: Likewise.
41267         * modules/sys_time: Likewise.
41268         * modules/sys_times: Likewise.
41269         * modules/sys_utsname: Likewise.
41270         * modules/sys_wait: Likewise.
41271         * modules/sysexits: Likewise.
41272         * modules/time: Likewise.
41273         * modules/times: Likewise.
41274         * modules/tmpfile: Likewise.
41275         * modules/trim: Likewise.
41276         * modules/unistd: Likewise.
41277         * modules/wchar: Likewise.
41278         * modules/wctype: Likewise.
41279
41280 2009-09-17  Bruno Haible  <bruno@clisp.org>
41281
41282         Make getdate.y compile on QNX and NetBSD 5 / i386.
41283         * m4/getdate.m4 (gl_GETDATE): Conditionally define
41284         TIME_T_FITS_IN_LONG_INT.
41285         * lib/getdate.y (long_time_t): New type.
41286         (relative_time): Change type of 'seconds' field to long_time_t.
41287         (get_date): Update types of local variables. Check against overflow
41288         during conversion from long_time_t to time_t.
41289         Reported by Matt Kraai <kraai@ftbfs.org>
41290         and Hasso Tepper <hasso@netbsd.org>.
41291
41292 2009-09-17  Bruno Haible  <bruno@clisp.org>
41293
41294         * modules/COPYING: Update copyright years.
41295         * modules/README: Likeiwse.
41296         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
41297         Reported by Ian Beckwith <ianb@erislabs.net>.
41298
41299 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41300
41301         * users.txt: Update references for gnuit package.
41302
41303 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
41304
41305         * m4/getdelim.m4: Fix typo in copyright line.
41306
41307 2009-09-17  Bruno Haible  <bruno@clisp.org>
41308
41309         * lib/atoll.c: Use the standard header with GPL copyright.
41310         * lib/argz.in.h: Likewise.
41311         * lib/glob.c: Likewise.
41312         * lib/glob-libc.h: Likewise.
41313         * lib/random_r.c: Likewise.
41314         * lib/siglist.h: Likewise.
41315         * lib/strsignal.c: Likewise.
41316         Reported by Ian Beckwith <ianb@erislabs.net>.
41317
41318 2009-09-17  Eric Blake  <ebb9@byu.net>
41319
41320         rmdir: ensure correct dependency order
41321         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
41322
41323 2009-09-17  Bruno Haible  <bruno@clisp.org>
41324
41325         Disable assertion that fails on NetBSD 5 / i386.
41326         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
41327         Reported by Sam Steingold <sds@gnu.org>
41328         and Hasso Tepper <hasso@netbsd.org>.
41329
41330 2009-09-16  Eric Blake  <ebb9@byu.net>
41331
41332         unlinkdir: port to mingw
41333         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
41334         on which no one can unlink a directory.
41335
41336         stdlib: sort witness names
41337         * modules/stdlib (Makefile.am): Sort replacements.
41338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
41339         * lib/stdlib.in.h: Likewise.
41340
41341         parse-duration-tests: avoid link failure
41342         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
41343         LIBINTL.
41344         Reported by Tom G. Christensen.
41345
41346         openat-tests: ensure unlinkat behaves like rmdir
41347         * tests/test-rmdir.c (main): Factor guts...
41348         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
41349         * modules/rmdir-tests (Files): Ship new file.
41350         * modules/openat-tests: New test.
41351         * tests/test-unlinkat.c: Likewise.
41352
41353         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
41354         * modules/rmdir-errno (Status, Notice): Now obsolete.
41355
41356         rmdir: work around cygwin 1.5.x and mingw bugs
41357         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
41358         * lib/rmdir.c (rmdir): Work around it.
41359         * modules/rmdir (Status, Notice): No longer obsolete.
41360         (Files): Add dos.m4.
41361         (Depends-on): Add unistd.
41362         (configure.ac): Set witnesses.
41363         (License): Relax to LGPLv2+.
41364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
41365         * modules/unistd (Makefile.am): Substitute witnesses.
41366         * lib/unistd.in.h (rmdir): Declare replacement.
41367         * doc/posix-functions/rmdir.texi (rmdir): Document this.
41368         * modules/rmdir-tests: New tests.
41369         * tests/test-rmdir.c: Likewise.
41370
41371 2009-09-15  Eric Blake  <ebb9@byu.net>
41372
41373         fchdir: improve use of replacement functions
41374         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
41375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
41376         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
41377         REPLACE_CLOSEDIR.
41378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
41379         * modules/sys_stat (Makefile.am): Substitute correct witness.
41380         * modules/dirent (Makefile.am): Likewise.
41381         * modules/unistd (Makefile.am): Likewise.
41382         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
41383         * lib/unistd.in.h (dup): Likewise.
41384         * lib/sys_stat.in.h (fstat): Likewise.
41385
41386         maint: ignore gnulib-tool temp files
41387         * .gitignore: Ignore files created during gnulib-tool --test.
41388
41389 2009-09-13  Jim Meyering  <meyering@redhat.com>
41390
41391         posixtm: don't reject a time that specify "60" as the number of seconds
41392         * lib/posixtm.c (posixtime): The code to reject invalid dates
41393         would also reject a time specified with the .60 suffix.
41394         But POSIX allows that, in order to accommodate leap seconds.
41395         So don't reject it.
41396         (main): Adjust tests accordingly.
41397         * modules/posixtm (Depends-on): Add stpcpy.
41398
41399 2009-09-11  Jim Meyering  <meyering@redhat.com>
41400
41401         announce-gen: include [$release_type] in emitted Subject:
41402         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
41403         e.g., [stable] in the emitted Subject: line.
41404
41405 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41406
41407         Remove obsolete macros from several modules.
41408         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
41409         obsolete Autoconf macros with their modern counterparts.
41410         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
41411         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
41412         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
41413         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41414         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
41415         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
41416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41417         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
41418         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
41419         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
41420         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41421         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41422         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
41423         * m4/sockets.m4 (gl_SOCKETS): Likewise.
41424         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
41425         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
41426         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41427         * m4/time_r.m4 (gl_TIME_R): Likewise.
41428         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
41429         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
41430         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41431
41432         Fix copyright header in build-aux scripts.
41433         * build-aux/git-version-gen: Fix copyright header to match GPLv3
41434         recommendation.
41435         * build-aux/ncftpput-ftp: Likewise.
41436         * build-aux/update-copyright: Likewise.
41437
41438 2009-09-09  Eric Blake  <ebb9@byu.net>
41439
41440         test-link: allow Linux choice of errno
41441         * tests/test-link.c (main): Relax test for alternate error.
41442
41443         strndup: fix improper m4 caching
41444         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
41445         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
41446         (gl_PREREQ_STRNDUP): Delete.
41447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
41448         * modules/string (Makefile.am): Substitute it.
41449         * lib/string.in.h (strndup): Modernize prototype.
41450
41451         getcwd: port to mingw
41452         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
41453         different from the POSIX assumptions made throughout the getcwd
41454         module; fortunately, the mingw getcwd does not need replacement.
41455         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
41456         * modules/getcwd-tests: New test.
41457         * tests/test-getcwd.c: Likewise.
41458
41459         link: fix platform bugs
41460         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
41461         * lib/link.c (link): Work around them.  Fix related mingw bug.
41462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
41463         * modules/unistd (Makefile.am): Substitute it.
41464         * lib/unistd.in.h (link): Declare replacement.
41465         * doc/posix-functions/link.texi (link): Document this.
41466         * modules/link (Depends-on): Add strdup-posix, sys_stat.
41467
41468         test-link: consolidate into single C program, test more cases
41469         * tests/test-link.sh: Delete.
41470         * tests/test-link.c: Test more error conditions.  Exposes bugs on
41471         at least Cygwin and Solaris.
41472         * modules/link-tests (Files): Remove unused file.
41473         (Depends-on): Add errno, sys_stat.
41474         (Makefile.am): Simplify.
41475
41476 2009-09-08  Bruno Haible  <bruno@clisp.org>
41477
41478         Work around towlower, towupper bug on mingw.
41479         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
41480         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
41481         * doc/posix-functions/towlower.texi: Mention the mingw bug.
41482         * doc/posix-functions/towupper.texi: Likewise.
41483         Reported by Eric Blake.
41484
41485 2009-09-08  Jim Meyering  <meyering@redhat.com>
41486
41487         build: don't try to run autoheader if we don't use it
41488         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
41489         is not used in configure.ac.
41490
41491 2009-09-08  Eric Blake  <ebb9@byu.net>
41492
41493         euidaccess: fix compilation error
41494         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
41495
41496         rawmemchr: relax license
41497         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
41498         okay.
41499         Reported by Jim Meyering.
41500
41501         mkfifoat: new module
41502         * modules/mkfifoat: New file.
41503         * lib/mkfifoat.c: Likewise.
41504         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
41505         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41506         * modules/sys_stat (Makefile.am): Use them.
41507         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
41508         * MODULES.html.sh (File system functions): Mention module.
41509         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41510         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41511         * modules/mkfifoat-tests: New test.
41512         * tests/test-mkfifoat.c: Likewise.
41513
41514         strchrnul: relax license
41515         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
41516         okay.
41517         Reported by Jim Meyering.
41518
41519 2009-09-08  Eric Blake  <ebb9@byu.net>
41520
41521         fstatat: fix compilation on Solaris
41522         * lib/fstatat.c (includes): Add fcntl.h.
41523         Reported by Pádraig Brady.
41524
41525 2009-09-07  Eric Blake  <ebb9@byu.net>
41526
41527         rename: modernize replacement
41528         * modules/rename (Depends-on): Add stdio.
41529         (configure.ac): Declare witness.
41530         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
41531         stdio take care of replacement.
41532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
41533         * modules/stdio (Makefile.am): Substitute them.
41534         * lib/stdio.in.h (rename): Declare replacement.
41535         * lib/rename.c (includes): Allow cross-compilation to non-windows
41536         machines.
41537         * doc/posix-functions/rename.texi (rename): Improve
41538         documentation.
41539
41540         stdio: sort witness names
41541         * modules/stdio (Makefile.am): Sort replacements.
41542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41543         * lib/stdio.in.h: Likewise.
41544
41545         getcwd: minor cleanups
41546         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
41547         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
41548
41549         openat: provide more convenience names
41550         * modules/faccessat (configure.ac): Add C witness.
41551         * lib/unistd.in.h (readlinkat): Fix typo.
41552         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
41553         convenience wrappers.
41554         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
41555         wrappers in syntax checks.
41556
41557 2009-09-06  Eric Blake  <ebb9@byu.net>
41558
41559         doc: fix comments in recent patches
41560         * lib/faccessat.c: Mention correct function.
41561         * lib/fchmodat.c: Likewise.
41562         * lib/fchownat.c: Likewise.
41563         * lib/symlinkat.c: Likewise.
41564         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
41565         constants.
41566
41567         faccessat, symlinkat: continue cleanup of previous patch
41568         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
41569         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41570         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
41571         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
41572         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
41573         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
41574         set.
41575
41576 2009-09-06  Bruno Haible  <bruno@clisp.org>
41577
41578         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
41579         (fstatat): Declare if GNULIB_FSTATAT is set.
41580         (mkdirat): Declare if GNULIB_MKDIRAT is set.
41581         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
41582         (unlinkat): Declare if GNULIB_UNLINKAT is set.
41583         * modules/fcntl-h (Files): Remove m4/openat.m4.
41584         * modules/sys_stat (Files): Remove m4/openat.m4.
41585         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
41586         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
41587         * modules/unistd (Files): Remove m4/openat.m4.
41588         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
41589         GNULIB_OPENAT.
41590         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
41591         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
41592         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
41593         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
41594         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
41595         gl_OPENAT_DEFAULTS.
41596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
41597         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
41598         Don't require gl_OPENAT_DEFAULTS.
41599         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
41600         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
41601         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
41602         (gl_OPENAT_DEFAULTS): Remove macro.
41603
41604 2009-09-06  Bruno Haible  <bruno@clisp.org>
41605
41606         * modules/openat (configure.ac): Remove unneeded witness.
41607
41608 2009-09-06  Bruno Haible  <bruno@clisp.org>
41609
41610         Set errno to ENOSYS when a function is entirely unsupported.
41611         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
41612         EOPNOTSUPP.
41613         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41614         * modules/chown (Depends-on): Remove errno.
41615
41616 2009-09-06  Bruno Haible  <bruno@clisp.org>
41617
41618         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
41619
41620 2009-09-06  Bruno Haible  <bruno@clisp.org>
41621
41622         * lib/sys_stat.in.h: Fix preprocessor command indentation.
41623
41624 2009-09-06  Ben Pfaff  <blp@gnu.org>
41625             Bruno Haible  <bruno@clisp.org>
41626
41627         Work around a glibc bug in strtok_r.
41628         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
41629         Undefine if UNDEFINE_STRTOK_R is set.
41630         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
41631         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
41632         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
41633         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
41634         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
41635         UNDEFINE_STRTOK_R.
41636         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
41637
41638 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
41639
41640         exclude: minor fix
41641         * lib/exclude.c: Include wctype.h
41642
41643 2009-09-06  Akim Demaille  <demaille@gostai.com>
41644
41645         bootstrap: improve error message
41646         * build-aux/bootstrap (find_tool): Upon failure, report the list
41647         of candidates.
41648         Honor the initial value of the envvar.
41649
41650 2009-09-05  Eric Blake  <ebb9@byu.net>
41651
41652         symlinkat: new module
41653         * modules/symlinkat: New file.
41654         * lib/symlinkat.c: Likewise.
41655         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
41656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
41657         * modules/unistd (Makefile.am): Use them.
41658         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
41659         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
41660         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
41661         * MODULES.html.sh (File system functions): Mention module.
41662         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41663         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41664         * modules/symlinkat-tests: New test.
41665         * tests/test-symlinkat.c: Likewise.
41666
41667         test-openat-safer: add more checks
41668         * tests/test-openat-safer.c (main): Check more code paths.
41669
41670 2009-09-05  Jim Meyering  <meyering@redhat.com>
41671
41672         syntax-check: detect unnecessary inclusion of openat.h
41673         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
41674
41675 2009-09-05  Bruno Haible  <bruno@clisp.org>
41676
41677         Support towlower, towupper.
41678         * doc/posix-functions/towlower.texi: Mention module wctype.
41679         * doc/posix-functions/towupper.texi: Likewise.
41680         * lib/wctype.in.h (towlower, towupper): New functions.
41681         * tests/test-wctype.c: Include stdio.h, stdlib.h.
41682         (ASSERT): New macro.
41683         (e): New variable.
41684         (main): Test also towlower, towupper. Test WEOF argument.
41685         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41686
41687 2009-09-05  Bruno Haible  <bruno@clisp.org>
41688
41689         Fix conversion behaviour when the input is invalid.
41690         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
41691         mark occurring in first pass of indirect conversion.
41692         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
41693         input.
41694         Found by clang's static analyzer.
41695
41696 2009-09-05  Bruno Haible  <bruno@clisp.org>
41697
41698         * tests/test-striconveh.c (main): Test indirect conversion on platforms
41699         where direct conversion is possible.
41700
41701 2009-09-04  Eric Blake  <ebb9@byu.net>
41702
41703         openat: fail with ENOENT on empty name
41704         * lib/openat-proc.c (openat_proc_name): Special-case the empty
41705         buffer.
41706
41707         link-follow: fix logic bug in prior patch
41708         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
41709         reversed sense of yes and no in prior patch.  Avoid confusing
41710         compilation failure with desired semantics.
41711
41712         link-follow: accomodate mingw and cross-compilation
41713         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
41714         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
41715         cross-compilation results to -1, to make linkat easier to
41716         implement when cross-compiling.  Trivially support mingw.
41717         * modules/link-follow (configure.ac): Call new name.
41718         * NEWS: Mention this.
41719
41720 2009-09-03  Eric Blake  <ebb9@byu.net>
41721
41722         faccessat: compile replacement
41723         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
41724         needed.
41725
41726         fts: fix compilation error
41727         * lib/fts.c (includes): Re-add "openat.h", for
41728         openat_needs_fchdir.
41729
41730         faccessat: new module
41731         * modules/faccessat: New file.
41732         * lib/faccessat.c: Likewise.
41733         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
41734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41735         * modules/unistd (Makefile.am): Use it.
41736         * lib/unistd.in.h (faccessat): Declare it.
41737         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
41738         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
41739         * MODULES.html.sh (File system functions): Mention it.
41740         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
41741         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
41742
41743         euidaccess: prefer POSIX over non-standard implementation
41744         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
41745         * lib/euidaccess.c (euidaccess): Use it if available.
41746
41747         openat: make template easier to use
41748         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
41749         AT_FUNC_F2 to be undefined.
41750         (VALIDATE_FLAG): New macro; use it to reject bad flags.
41751         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
41752         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
41753         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
41754         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
41755         Likewise.
41756         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
41757         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
41758         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
41759         Likewise.
41760
41761         openat: declare in POSIX headers
41762         * NEWS: Mention this.
41763         * modules/openat (configure.ac): Declare witnesses.
41764         (Depends-on): Add fcntl-h, sys_stat, unistd.
41765         (Include): Mention correct headers.
41766         * modules/fcntl-h (Depends-on): Add link-warning.
41767         (Files): Add openat.m4.
41768         (Makefile.am): Substitute witnesses.
41769         * modules/sys_stat (Files, Makefile.am): Likewise.
41770         * modules/unistd (Files, Makefile.am): Likewise.
41771         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
41772         (gl_OPENAT_DEFAULTS): New macro.
41773         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
41774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
41775         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
41776         (SYS_STAT_H): Remove unused variable.
41777         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
41778         * lib/fcntl--.h (includes): Remove unneeded header.
41779         * lib/openat-safer.c (includes): Likewise.
41780         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
41781         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
41782         appropriate headers.
41783         (__OPENAT_PREFIX): Delete.
41784         * lib/fcntl.in.h (openat): Provide declaration.
41785         (AT_FDCWD): Fix Solaris bug.
41786         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
41787         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
41788         * lib/fchmodat.c (includes):  Adjust to find declaration.
41789         * lib/fchownat.c (includes): Likewise.
41790         * lib/mkdirat.c (includes): Likewise.
41791         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
41792         still visible.
41793
41794 2009-09-02  Eric Blake  <ebb9@byu.net>
41795
41796         errno: use consistently
41797         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
41798         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
41799         * lib/canonicalize.c (ELOOP): Likewise.
41800         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
41801         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
41802         * lib/lchown.c (EOPNOTSUPP): Likewise.
41803         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
41804         * lib/savewd.c (ESTALE): Likewise.
41805         * lib/settime.c (ENOSYS): Likewise.
41806         * lib/utimens.c (ENOSYS): Likewise.
41807         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41808         * lib/chdir-safer.c (ELOOP): Likewise.
41809         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41810         * modules/c-stack (Depends-on): Add errno.
41811         * modules/canonicalize (Depends-on): Likewise.
41812         * modules/chdir-safer (Depends-on): Likewise.
41813         * modules/fdopendir (Depends-on): Likewise.
41814         * modules/inet_ntop (Depends-on): Likewise.
41815         * modules/inet_pton (Depends-on): Likewise.
41816         * modules/lchown (Depends-on): Likewise.
41817         * modules/openat (Depends-on): Likewise.
41818         * modules/savewd (Depends-on): Likewise.
41819         * modules/settime (Depends-on): Likewise.
41820         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41821
41822         fts: avoid leaking fds
41823         * modules/fts (Depends-on): Add cloexec.
41824         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41825         flag.
41826
41827         fts: make directory fds more robust
41828         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41829         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41830
41831         backupfile, chdir-long, fts, savedir: make safer
41832         * lib/backupfile.c (includes): Use "dirent--.h", since
41833         numbered_backup can write to stderr during readdir.
41834         * lib/savedir.c (includes): Likewise.
41835         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41836         emulation can write to stderr on failure.
41837         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41838         * lib/getcwd.c: Document why opendir_safer is unused.
41839         * lib/glob.c: Likewise.
41840         * lib/scandir.c: Likewise.
41841         * lib/openat-proc.c: Likewise, for open_safer.
41842         * modules/backupfile (Depends-on): Add dirent-safer.
41843         * modules/savedir (Depends-on): Likewise.
41844         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41845         * modules/chdir-long (Depends-on): Add openat-safer.
41846
41847         openat-safer: new module
41848         * modules/openat-safer: New file.
41849         * lib/openat-safer.c: Likewise.
41850         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41851         * lib/fcntl-safer.h (openat_safer): Declare.
41852         * lib/fcntl--.h (openat): Override.
41853         * MODULES.html.sh (File descriptor based I/O): Mention it.
41854         * lib/openat.h: Add double-inclusion guards.
41855         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41856         "fcntl--.h", so we can implement openat.
41857         * modules/openat-safer-tests: New test.
41858         * tests/test-openat-safer.c: New file.
41859
41860         dirent-safer: new module
41861         * modules/dirent-safer: New file.
41862         * lib/dirent--.h: Likewise.
41863         * lib/dirent-safer.h: Likewise.
41864         * lib/opendir-safer.c: Likewise.
41865         * m4/dirent-safer.m4: Likewise.
41866         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41867         * modules/dirent-safer-tests: New test.
41868         * tests/test-dirent-safer.c: New file.
41869         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41870
41871         fdopendir: optimize on mingw
41872         * lib/unistd.in.h (_gl_directory_name): New prototype.
41873         * lib/fchdir.c (_gl_directory_name): Implement it.
41874         (fchdir): Use it to simplify implementation.
41875         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41876         fchdir, when available, to avoid calling [f]chdir().
41877
41878         fdopendir: split into its own module
41879         * lib/openat.c (fdopendir): Move...
41880         * lib/fdopendir.c: ...into new file.
41881         * modules/fdopendir: New module.
41882         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41883         * modules/openat (Depends-on): Add fdopendir.
41884         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41885         fdopendir here.
41886         * modules/savedir (Depends-on): Only need fdopendir, not full
41887         openat.
41888         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41889         * lib/openat.h (fdopendir): Drop prototype.
41890         * lib/dirent.in.h (fdopendir): Provide prototype.
41891         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41892         * modules/dirent (Makefile.am): Substitute them.
41893         * MODULES.html.sh (File system functions): Mention it.
41894         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41895         * modules/fdopendir-tests: New file.
41896         * tests/test-fdopendir.c: Likewise.
41897
41898         fchdir: use more consistent macro convention
41899         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41900         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41901         REPLACE_FCHDIR, rather than relying on config.h macros.
41902         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41903         inside a single make-time REPLACE_FCHDIR block, rather than using
41904         the config.h FCHDIR_REPLACEMENT.
41905         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41906         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41907         Manage fstat replacement.
41908         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41909         REPLACE_FCHDIR.
41910         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41911         (Makefile.am): Substitute REPLACE_FCHDIR.
41912         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41913         FCHDIR_REPLACEMENT.
41914         * lib/dup-safer.c (dup_safer): Likewise.
41915         * lib/dup2.c (rpl_dup2): Likewise.
41916         * lib/dup3.c (rpl_dup3): Likewise.
41917         * lib/open.c (rpl_open): Likewise.
41918
41919         fchdir: simplify error handling, and support dup3
41920         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41921         stdbool, malloc-posix, realloc-posix.
41922         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41923         (ensure_dirs_slot): Return false on allocation failure.
41924         (rpl_dup2): Delete.
41925         (_gl_register_dup): New function.
41926         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41927         (_gl_register_fd): Close fd on allocation failure.
41928         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41929         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41930         prototype.
41931         (rpl_dup2_fchdir): Delete prototype.
41932         * lib/open.c (open): Update caller.
41933         * lib/dup2.c (dup2): Track fchdir metadata.
41934         * lib/dup3.c (dup3): Likewise.
41935         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41936         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41937
41938 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41939
41940         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41941         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41942         don't pass arguments to AC_OUTPUT.
41943
41944 2009-09-02  Bruno Haible  <bruno@clisp.org>
41945
41946         * modules/mkdtemp (License): Relicense under LGPLv2+.
41947         Reported by Paolo Bonzini.
41948
41949 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41950
41951         Replace uses of obsolete autoconf macros in Jim's modules.
41952         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41953         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41954         can evoke a warning from autoconf when run with -Wobsolete
41955         enabled.  They were declared obsolete for good reasons (see
41956         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41957         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41958         should not continue using the deprecated macros.
41959         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41960         obsolete Autoconf macros with modern counterparts.
41961         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41962         * m4/dos.m4 (gl_AC_DOS): Likewise.
41963         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41964         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41965         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41966         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41967         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41968         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41969         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41970         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41971         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41972         Likewise.
41973         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41974         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41975         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41976         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41977         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41978         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41979
41980 2009-09-01  Eric Blake  <ebb9@byu.net>
41981
41982         fchdir: fix off-by-one bug in previous patch
41983         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41984         (_gl_unregister_fd): Delete useless if.
41985
41986 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41987
41988         maint.mk: sort the list of syntax-check rules
41989         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41990         easier to get a sense of progress when the rules are run sequentially
41991         and take a long time.
41992
41993 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41994
41995         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41996         * modules/netinet_in: Likewise.
41997         * modules/sys_file: Likewise.
41998         * modules/sys_ioctl: Likewise.
41999         * modules/sys_select: Likewise.
42000         * modules/sys_socket: Likewise.
42001         * modules/sys_stat: Likewise.
42002         * modules/sys_time: Likewise.
42003         * modules/sys_times: Likewise.
42004         * modules/sys_utsname: Likewise.
42005         * modules/sys_wait: Likewise.
42006
42007 2009-09-01  Jim Meyering  <meyering@redhat.com>
42008
42009         fts: help ensure that return values are not ignored
42010         * lib/fts_.h (__GNUC_PREREQ): Define.
42011         (__attribute_warn_unused_result__): Define.
42012         (fts_children, fts_close, fts_open, fts_read): Declare with
42013         __attribute_warn_unused_result__.
42014
42015         fts: fts_close now fails also when closing a dir file descriptor fails
42016         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
42017         and propagate to caller, along with errno.
42018
42019         announce-gen: correct formatting in --help output
42020         * build-aux/announce-gen (usage): Move the one-line description in
42021         --help output "up", to where it belongs, just after Usage:.
42022
42023 2009-08-31  Eric Blake  <ebb9@byu.net>
42024
42025         fchdir: port to mingw
42026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
42027         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
42028         opened, then use a substitute.
42029         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
42030         replacement.
42031         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
42032         (_gl_register_fd): No need to check stat if open already filters
42033         all directories.
42034         (fchdir): Fix error condition to match POSIX.
42035         * modules/fchdir (Depends-on): Add sys_stat.
42036         * doc/posix-functions/open.texi (open): Document the limitation.
42037         * modules/fchdir-tests: New file.
42038         * tests/test-fchdir.c: Likewise.
42039
42040         canonicalize: allow cross-testing from cygwin to mingw
42041         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
42042         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
42043         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
42044         Likewise.
42045         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
42046         target does not support symlinks.
42047         * tests/test-canonicalize-lgpl.sh: Likewise.
42048
42049         chown: avoid compilation warning on mingw
42050         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
42051         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
42052         mingw.
42053         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
42054         * modules/chown (Depends-on): Add errno.
42055
42056 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42057
42058         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
42059         command.
42060
42061 2009-08-31  Jim Meyering  <meyering@redhat.com>
42062
42063         canonicalize: remove useless initialization
42064         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
42065         initialization of local, "end".
42066
42067 2009-08-30  Bruno Haible  <bruno@clisp.org>
42068
42069         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
42070         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
42071         ENOSYS.
42072
42073 2009-08-30  Bruno Haible  <bruno@clisp.org>
42074
42075         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
42076         /usr/xpg4/bin/tr when it exists.
42077         * tests/test-pipe-filter-gi1.sh: Likewise.
42078
42079 2009-08-30  Bruno Haible  <bruno@clisp.org>
42080
42081         Work around deficient /usr/bin/id program on Solaris.
42082         * tests/test-file-has-acl.sh (ID): New variable.
42083         * tests/test-set-mode-acl.sh (ID): Likewise.
42084         * tests/test-copy-acl.sh (ID): Likewise.
42085         * tests/test-copy-file.sh (ID): Likewise.
42086
42087 2009-08-30  Bruno Haible  <bruno@clisp.org>
42088
42089         New module 'xstriconveh'.
42090         * lib/xstriconveh.h: New file.
42091         * lib/xstriconveh.c: New file.
42092         * modules/xstriconveh: New file.
42093
42094 2009-08-30  Bruno Haible  <bruno@clisp.org>
42095
42096         Make it easier to use mem_cd_iconveh.
42097         * lib/striconveh.h (iconveh_t): New type.
42098         (iconveh_open, iconveh_close): New declarations.
42099         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42100         with a single 'const iconveh_t *' argument.
42101         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
42102         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
42103         with a single 'const iconveh_t *' argument.
42104         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
42105         * tests/test-striconveh.c (main): Update.
42106         * NEWS: Mention the change.
42107
42108 2009-08-30  Bruno Haible  <bruno@clisp.org>
42109
42110         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
42111         problem.
42112
42113 2009-08-30  Bruno Haible  <bruno@clisp.org>
42114
42115         Work around iconv_open problem on Solaris.
42116         * lib/iconv_open-solaris.gperf: New file.
42117         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
42118         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
42119         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
42120         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
42121         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
42122         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
42123
42124 2009-08-29  Jim Meyering  <meyering@redhat.com>
42125
42126         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
42127         * top/maint.mk (cvs-check): Remove target; it was just an alias
42128         to the better-named vc-diff-check.
42129         (maintainer-distcheck): Remove rule.  It was used only from
42130         the (alpha/beta/major) target, and all of its commands but one
42131         were coreutils-specific.
42132         (vc-dist): Remove rule.
42133         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
42134         Run vc-diff-check, not vc-dist.
42135         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
42136
42137 2009-08-27  Bruno Haible  <bruno@clisp.org>
42138
42139         * tests/test-bitrotate.c (main): Remove test that uses a shift count
42140         of 0.
42141
42142 2009-08-27  Bruno Haible  <bruno@clisp.org>
42143
42144         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
42145         compilers.
42146         * doc/func.texi: Document the SunPRO C bug.
42147
42148 2009-08-27  Bruno Haible  <bruno@clisp.org>
42149
42150         Fix link error on Solaris.
42151         * tests/test-parse-duration.c (xstrdup): Remove function.
42152
42153 2009-08-26  Pádraig Brady  <P@draigbrady.com>
42154
42155         ignore-value: handle pointer types, too
42156         * lib/ignore-value.h (__attribute__): Remove definition.
42157         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
42158         of a more concise and more-often effective "(void) i" statement.
42159         (ignore_ptr): New function to suppress warnings from functions that
42160         return pointers, and to make it explicit that one function doesn't
42161         handle all cases.
42162
42163 2009-08-25  Bruno Haible  <bruno@clisp.org>
42164
42165         dup2: work around a Linux bug.
42166         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
42167         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
42168         * doc/posix-functions/dup2.texi: Mention the Linux bug.
42169         Reported by Simon Josefsson.
42170
42171 2009-08-25  Jim Meyering  <meyering@redhat.com>
42172
42173         libguestfs uses gnulib
42174         * users.txt: Add libguestfs.
42175
42176 2009-08-24  Eric Blake  <ebb9@byu.net>
42177
42178         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
42179         * lib/pipe2.c (includes): Add binary-io.h.
42180         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
42181
42182 2009-08-24  Bruno Haible  <bruno@clisp.org>
42183
42184         Tolerate declared but missing accept4 syscall.
42185         * lib/accept4.c (accept4): Invoke original accept4 function first, if
42186         available.
42187         * lib/sys_socket.in.h (accept4): If the function is already present,
42188         override it.
42189         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
42190         * modules/accept4 (Makefile.am): Compile accept4.c always.
42191         Reported by Paolo Bonzini and Eric Blake.
42192
42193 2009-08-23  Bruno Haible  <bruno@clisp.org>
42194
42195         New module 'accept4'.
42196         * lib/sys_socket.in.h (accept4): New declaration.
42197         * lib/accept4.c: New file.
42198         * m4/accept4.m4: New file.
42199         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42200         GNULIB_ACCEPT4, HAVE_ACCEPT4.
42201         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
42202         HAVE_ACCEPT4.
42203         * modules/accept4: New file.
42204         * doc/glibc-functions/accept4.texi: Mention the new module.
42205
42206 2009-08-24  Jim Meyering  <meyering@redhat.com>
42207
42208         progname: also set global program_invocation_name, when possible
42209         Before this change, a libtool-enabled program that calls glibc's
42210         error function would report the program name as
42211         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
42212         * modules/progname (configure.ac): Check for a declaration of
42213         program_invocation_name.
42214         * lib/progname.c:  Include <errno.h>.
42215         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
42216         Set program_invocation_name.
42217
42218 2009-08-23  Bruno Haible  <bruno@clisp.org>
42219
42220         * lib/dup3.c: Include <string.h>.
42221
42222 2009-08-23  Bruno Haible  <bruno@clisp.org>
42223
42224         * lib/dup3.c (dup3): Test only once whether the system actually exists.
42225         * lib/pipe2.c (pipe2): Likewise.
42226         Suggested by Eric Blake.
42227
42228 2009-08-23  Bruno Haible  <bruno@clisp.org>
42229
42230         Tolerate declared but missing dup3 syscall.
42231         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
42232         * lib/unistd.in.h (dup3): If the function is already present,
42233         override it.
42234         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
42235         * modules/dup3 (Makefile.am): Compile dup3.c always.
42236         Reported by Paolo Bonzini.
42237
42238 2009-08-23  Bruno Haible  <bruno@clisp.org>
42239
42240         Tolerate declared but missing pipe2 syscall.
42241         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
42242         available.
42243         * lib/unistd.in.h (pipe2): If the function is already present,
42244         override it.
42245         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
42246         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
42247         Reported by Paolo Bonzini.
42248
42249 2009-08-23  Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/pipe2.c (pipe2): Move #ifs inside function.
42252
42253 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42254
42255         quotearg: document limitations of quote_these_too
42256         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
42257         those limitations are created.
42258         * lib/quotearg.h (set_char_quoting): Document that digits and
42259         letters that are special after backslash are not permitted.
42260         (quotearg_char): Cross-reference set_char_quoting documentation.
42261
42262 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
42263
42264         quotearg: implement custom_quoting_style
42265         * lib/quotearg.c: (struct quoting_options): Add left_quote and
42266         right_quote fields.
42267         (set_custom_quoting): New public function.
42268         (quotearg_buffer_restyled): Add left_quote and right_quote
42269         arguments, handle them very much like locale quoting, and update
42270         all uses.
42271         (quotearg_n_custom): New public function.
42272         (quotearg_n_custom_mem): New public function.
42273         (quotearg_custom): New public function.
42274         (quotearg_custom_mem): New public function.
42275         * lib/quotearg.h: Prototype and document new public functions.
42276         (enum quoting_style): For escape_quoting_style and
42277         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
42278         ignored even though they're otherwise like c_quoting_style.
42279         Add custom_quoting_style member and document with comparison to
42280         clocale_quoting_style.
42281         * tests/test-quotearg.c (custom_quotes): New array.
42282         (custom_results): New array.
42283         (main): Extend to test custom quoting.
42284
42285 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42286
42287         quotearg: fix right quote escaping when it's in quote_these_too
42288         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
42289         quote, be sure to prepend only one backslash.
42290         * tests/test-quotearg.c (use_quote_double_quotes): New function.
42291         (main): Test it.
42292
42293 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
42294
42295         quotearg-tests: test escaping of embedded locale quotes
42296         * tests/test-quotearg.c (struct result_strings): Add member for
42297         new input.
42298         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
42299         (inputs): Add new input.
42300         (results_g): Add expected results.
42301         (flag_results): Likewise.
42302         (locale_results): Likewise.
42303         (compare_strings): Check those.
42304
42305 2009-08-23  Bruno Haible  <bruno@clisp.org>
42306
42307         Tests for module 'dup3'.
42308         * modules/dup3-tests: New file.
42309         * tests/test-dup3.c: New file.
42310
42311         New module 'dup3'.
42312         * lib/unistd.in.h (dup3): New declaration.
42313         * lib/dup3.c: New file.
42314         * m4/dup3.m4: New file.
42315         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
42316         HAVE_DUP3.
42317         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
42318         * modules/dup3: New file.
42319         * doc/glibc-functions/dup3.texi: Mention the new module.
42320
42321 2009-08-23  Bruno Haible  <bruno@clisp.org>
42322
42323         Tweak the dup2 test.
42324         * tests/test-dup2.c (main): Create the test file empty. Verify that an
42325         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
42326         the test file is still empty. Fix argument order of lseek.
42327
42328 2009-08-23  Bruno Haible  <bruno@clisp.org>
42329
42330         Avoid test link errors when the modules getopt-gnu, gettext are used.
42331         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
42332         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42333
42334 2009-08-23  Bruno Haible  <bruno@clisp.org>
42335
42336         Fix getdtablesize() on mingw.
42337         * lib/getdtablesize.c (getdtablesize): Implement differently.
42338         * lib/unistd.in.h (getdtablesize): Improve comment.
42339
42340 2009-08-23  Bruno Haible  <bruno@clisp.org>
42341
42342         New module 'mkostemp'.
42343         Based on Ulrich Drepper's 2007-08-10 change in glibc.
42344         * lib/stdlib.in.h (mksotemp): New declaration.
42345         * lib/mkostemp.c: New file, from glibc with modifications.
42346         * lib/tempname.h (GT_FILE): Remove outdated comment.
42347         (gen_tempname): Add flags argument.
42348         * lib/tempname.c (__GT_BIGFILE): Remove macro.
42349         (__GT_FILE): Map to 1.
42350         (small_open, large_open): Remove macros.
42351         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
42352         * lib/mkstemp.c (mkstemp): Update.
42353         * lib/mkdtemp.c (mkdtemp): Likewise.
42354         * m4/mkostemp.m4: New file.
42355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
42356         HAVE_MKOSTEMP.
42357         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
42358         HAVE_MKOSTEMP.
42359         * modules/mkostemp: New file, based on modules/mkstemp.
42360         * doc/glibc-functions/mkostemp.texi: Mention the new module.
42361         * NEWS: Mention the change.
42362
42363 2009-08-23  Bruno Haible  <bruno@clisp.org>
42364
42365         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
42366         Reported by Eric Blake.
42367
42368 2009-08-23  Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
42371         Reported by Eric Blake.
42372
42373 2009-08-23  Bruno Haible  <bruno@clisp.org>
42374
42375         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
42376         * modules/pipe2 (Depends-on): Likewise.
42377
42378 2009-08-23  Eric Blake  <ebb9@byu.net>
42379
42380         fcntl-h: add O_TTY_INIT support
42381         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
42382         * tests/test-fcntl-h.c (o): Test it.
42383         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42384
42385         fcntl-h: rename from fcntl, in preparation for fcntl(2)
42386         * modules/fcntl: Move <fcntl.h> header replacement...
42387         * modules/fcntl-h: ...to new name, so as not to collide with
42388         like-named function.
42389         * tests/test-fcntl.c: Rename...
42390         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
42391         * modules/fcntl-tests: Rename...
42392         * modules/fcntl-h-tests: ...to this.  Update test file name.
42393         * modules/chdir-long (Depends-on): Update clients.
42394         * modules/chdir-safer (Depends-on): Likewise.
42395         * modules/fcntl-safer (Depends-on): Likewise.
42396         * modules/fts (Depends-on): Likewise.
42397         * modules/mkancesdirs (Depends-on): Likewise.
42398         * modules/mkdir-p (Depends-on): Likewise.
42399         * modules/open (Depends-on): Likewise.
42400         * modules/savewd (Depends-on): Likewise.
42401         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
42402         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
42403
42404 2009-08-22  Bruno Haible  <bruno@clisp.org>
42405
42406         * modules/binary-io (License): Relicense under LGPL.
42407         * modules/pipe2 (License): Likewise.
42408
42409 2009-08-22  Bruno Haible  <bruno@clisp.org>
42410
42411         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
42412         return value.
42413         * lib/pipe-filter-gi.c (filter_init): Likewise.
42414         Reported by Eric Blake.
42415
42416 2009-08-22  Bruno Haible  <bruno@clisp.org>
42417
42418         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
42419         * modules/pipe (Depends-on): Add pipe2.
42420
42421 2009-08-22  Bruno Haible  <bruno@clisp.org>
42422
42423         Tests for module 'pipe2'.
42424         * modules/pipe2-tests: New file.
42425         * tests/test-pipe2.c: New file.
42426
42427         New module 'pipe2'.
42428         * lib/unistd.in.h (pipe2): New declaration.
42429         * lib/pipe2.c: New file.
42430         * m4/pipe2.m4: New file.
42431         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
42432         HAVE_PIPE2.
42433         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
42434         * modules/pipe2: New file.
42435         * doc/glibc-functions/pipe2.texi: Mention the new module.
42436
42437 2009-08-22  Bruno Haible  <bruno@clisp.org>
42438
42439         Reference some new glibc functions.
42440         * doc/glibc-functions/accept4.texi: New file.
42441         * doc/glibc-functions/dup3.texi: New file.
42442         * doc/glibc-functions/mkostemp.texi: New file.
42443         * doc/glibc-functions/pipe2.texi: New file.
42444         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
42445         (Glibc sys/socket.h): Refer to accept4.
42446         (Glibc unistd.h): Refer to dup3, pipe2.
42447         Reported by Eric Blake.
42448
42449 2009-08-22  Jim Meyering  <meyering@redhat.com>
42450             Bruno Haible  <bruno@clisp.org>
42451
42452         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
42453         This makes it so packages using automake-1.11's silent-rules option
42454         can print e.g., a single "GEN    configmake.h" line, rather than
42455         the 30+ statements that perform the job.  If you want to see the
42456         actual commands, you can still run "make V=1".
42457         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
42458         so that make output is abbreviated when those variables are defined
42459         appropriately.
42460         * modules/argz: Likewise.
42461         * modules/arpa_inet: Likewise.
42462         * modules/byteswap: Likewise.
42463         * modules/configmake: Likewise.
42464         * modules/dirent: Likewise.
42465         * modules/errno: Likewise.
42466         * modules/fcntl: Likewise.
42467         * modules/float: Likewise.
42468         * modules/fnmatch: Likewise.
42469         * modules/getopt-posix: Likewise.
42470         * modules/glob: Likewise.
42471         * modules/iconv_open: Likewise.
42472         * modules/inttypes: Likewise.
42473         * modules/localcharset: Likewise.
42474         * modules/locale: Likewise.
42475         * modules/math: Likewise.
42476         * modules/netdb: Likewise.
42477         * modules/netinet_in: Likewise.
42478         * modules/poll: Likewise.
42479         * modules/posix_spawnp-tests: Likewise.
42480         * modules/sched: Likewise.
42481         * modules/search: Likewise.
42482         * modules/selinux-h: Likewise.
42483         * modules/signal: Likewise.
42484         * modules/spawn: Likewise.
42485         * modules/stdarg: Likewise.
42486         * modules/stdbool: Likewise.
42487         * modules/stddef: Likewise.
42488         * modules/stdint: Likewise.
42489         * modules/stdio: Likewise.
42490         * modules/stdlib: Likewise.
42491         * modules/string: Likewise.
42492         * modules/strings: Likewise.
42493         * modules/sys_file: Likewise.
42494         * modules/sys_ioctl: Likewise.
42495         * modules/sys_select: Likewise.
42496         * modules/sys_socket: Likewise.
42497         * modules/sys_stat: Likewise.
42498         * modules/sys_time: Likewise.
42499         * modules/sys_times: Likewise.
42500         * modules/sys_utsname: Likewise.
42501         * modules/sys_wait: Likewise.
42502         * modules/sysexits: Likewise.
42503         * modules/time: Likewise.
42504         * modules/unistd: Likewise.
42505         * modules/wchar: Likewise.
42506         * modules/wctype: Likewise.
42507
42508 2009-08-22  Jim Meyering  <meyering@redhat.com>
42509
42510         announce-gen: detect write failure
42511         * build-aux/announce-gen: Add Coda at end.
42512         Remove equivalent-but-more-verbose block at top.
42513
42514 2009-08-19  Akim Demaille  <demaille@gostai.com>
42515
42516         bootstrap: --help to stdout.
42517         * bootstrap (usage): Don't send --help to stderr.
42518         Use a here doc instead of a long string.
42519
42520 2009-08-21  Eric Blake  <ebb9@byu.net>
42521
42522         test-popen-safer: split from test-popen
42523         * tests/test-popen.c (main): Move...
42524         * tests/test-popen.h: ...into new file.
42525         * tests/test-popen-safer2.c: New file.
42526         * modules/popen-tests (Files): Add test-popen.h.
42527         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
42528         Suggested by Bruno Haible.
42529
42530         test-fcntl-safer: split from test-open
42531         * tests/test-open.c (main): Move...
42532         * tests/test-open.h: ...into new file.
42533         * tests/test-fcntl-safer.c: New file.
42534         * modules/open-tests (Files): Add test-open.h.
42535         * modules/fcntl-safer-tests: New file.
42536         Suggested by Bruno Haible.
42537
42538         test-fopen-safer: split from test-fopen
42539         * tests/test-fopen.c (main): Move...
42540         * tests/test-fopen.h: ...into new file.
42541         * tests/test-fopen-safer.c: New file.
42542         * modules/fopen-tests (Files): Add test-fopen.h.
42543         * modules/fopen-safer-tests: New file.
42544         Suggested by Bruno Haible.
42545
42546 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42547
42548         popen-safer: test O_CLOEXEC at run-time.
42549         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
42550
42551 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
42552
42553         fcntl: move more flags to the header
42554         * lib/cloexec.c: Do not define FD_CLOEXEC here.
42555         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
42556         * lib/fcntl.in.h: Do both things here.
42557
42558 2009-08-21  Jim Meyering  <meyering@redhat.com>
42559
42560         consistently remove $@-t before redirecting to it
42561         * modules/argz: Remove $@-t and $@ before redirecting to the former.
42562         * modules/alloca-opt: Likewise.
42563         * modules/byteswap: Likewise.
42564         * modules/fnmatch: Likewise.
42565         * modules/getopt-posix: Likewise.
42566         * modules/glob: Likewise.
42567         * modules/poll: Likewise.
42568         * modules/posix_spawnp-tests: Likewise.
42569         * modules/sys_socket: Likewise.
42570         * modules/sysexits: Likewise.
42571
42572 2009-08-21  Eric Blake  <ebb9@byu.net>
42573
42574         popen: simplify access to original popen
42575         * lib/popen.c (rpl_popen): No need to worry about popen being a
42576         macro.
42577         Reported by Bruno Haible.
42578
42579 2009-08-20  Eric Blake  <ebb9@byu.net>
42580
42581         build: avoid some compiler warnings
42582         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
42583         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
42584         type.
42585         (new_exclude_segment, excluded_file_pattern_p)
42586         (excluded_file_name_p): Reduce scope.
42587         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
42588         old-style declaration.
42589
42590 2009-08-20  Simon Josefsson  <simon@josefsson.org>
42591
42592         * tests/test-exclude1.sh: Handle Windows EOL.
42593         * tests/test-exclude2.sh: Likewise.
42594         * tests/test-exclude3.sh: Likewise.
42595         * tests/test-exclude4.sh: Likewise.
42596         * tests/test-exclude5.sh: Likewise.
42597         * tests/test-exclude6.sh: Likewise.
42598         * tests/test-exclude7.sh: Likewise.
42599
42600 2009-08-19  Akim Demaille  <demaille@gostai.com>
42601
42602         bootstrap: find sha1sum when named gsha1sum.
42603         * bootstrap (find_tool): New.
42604         ($SHA1SUM): New.
42605         Use it.
42606
42607 2009-08-20  Jim Meyering  <meyering@redhat.com>
42608
42609         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
42610         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
42611         expression that converts "." in a file name to "\." in the resulting
42612         regexp.  Start with a dummy statement, so that prior shell variable
42613         definitions are expanded portably.  Reported by Simon Josefsson.
42614
42615 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
42616
42617         Fix polling for writeability of a screen buffer.
42618         * lib/poll.c: Distinguish input and screen buffers for the
42619         Win32 implementation.
42620         * lib/select.c: Likewise.
42621
42622 2009-08-19  Eric Blake  <ebb9@byu.net>
42623
42624         popen-safer: prevent popen from clobbering std descriptors
42625         * modules/popen-safer: New file.
42626         * lib/popen-safer.c: Likewise.
42627         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
42628         * lib/stdio--.h (popen): Provide override.
42629         * lib/stdio-safer.h (popen_safer): Provide declaration.
42630         * tests/test-popen.c (includes): Partially test this.
42631         * modules/popen-safer-tests: New file, for more tests.
42632         * tests/test-popen-safer.c: Likewise.
42633         * MODULES.html.sh (file stream based Input/Output): Mention it.
42634
42635         tests: test some of the *-safer modules
42636         * modules/fopen-safer (Depends-on): Add fopen.
42637         * modules/fcntl-safer (Depends-on): Add fcntl.
42638         * modules/stdlib-safer (Depends-on): Add stdlib.
42639         (configure.ac): Set indicator.
42640         * modules/unistd-safer (configure.ac): Likewise.
42641         * modules/tmpfile-safer (configure.ac): Likewise.
42642         (Depends-on): Add tmpfile.
42643         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
42644         active.
42645         * tests/test-fopen.c (includes): Test safer versions when they are
42646         in use.
42647         * tests/test-open.c (includes): Likewise.
42648
42649         popen: fix cygwin 1.5 bug when stdin closed
42650         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
42651         * modules/popen: New file.
42652         * modules/popen-tests: Likewise.
42653         * tests/test-popen.c: Likewise.
42654         * m4/popen.m4: Likewise.
42655         * lib/popen.c: Likewise.
42656         * lib/stdio.in.h (popen): New declaration.
42657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
42658         * modules/stdio (Makefile.am): Likewise.
42659         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
42660
42661 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
42662
42663         maint.mk: give full control over update-copyright exclusions
42664         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
42665         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
42666         (update-copyright): Don't force inclusion of top-level
42667         ChangeLog.  Don't force exclusion of all COPYING files, but make
42668         them the default exclusion instead.
42669
42670 2009-08-16  Bruno Haible  <bruno@clisp.org>
42671
42672         Fix test failures on Solaris 10.
42673         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
42674         tests when Solaris iconv() is used.
42675         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
42676         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
42677         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
42678         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
42679         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
42680
42681 2009-08-16  Bruno Haible  <bruno@clisp.org>
42682
42683         Fix test failures on Solaris 10.
42684         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
42685         'tr' program and pass it as first argument.
42686         * tests/test-pipe-filter-gi1.sh: Likewise.
42687         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
42688         program as first argument.
42689         * tests/test-pipe-filter-gi1.c (main): Likewise.
42690
42691 2009-08-16  Eric Blake  <ebb9@byu.net>
42692
42693         fpurge: fix previous commits
42694         * modules/fpurge (Makefile.am): Make replacement conditional,
42695         partially reverting 2007-04-29 change; missed in previous
42696         attempt.
42697         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
42698         is missing.
42699
42700 2009-08-16  Bruno Haible  <bruno@clisp.org>
42701
42702         Clarify fpurge's effect on the file position.
42703         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
42704         * tests/test-fpurge.c (main): Make a second pass for checking the file
42705         position.
42706
42707 2009-08-16  Bruno Haible  <bruno@clisp.org>
42708
42709         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
42710         declaration of fpurge is missing.
42711         * tests/test-fpurge.c (main): Check that the file has not more contents
42712         than expected. Close the file before removing it.
42713
42714 2009-08-15  Eric Blake  <ebb9@byu.net>
42715
42716         fpurge: don't wrap working cygwin implementation
42717         * lib/fpurge.c (fpurge): Fix comment typo.
42718         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
42719         1.7 to avoid replacement.
42720         * tests/test-fpurge.c (main): Enhance test.
42721
42722 2009-08-15  Eric Blake  <ebb9@byu.net>
42723         and Jim Meyering  <meyering@redhat.com>
42724
42725         test-update-copyright: skip if perl is insufficient
42726         * tests/test-update-copyright.sh: Failure to run maintainer tool
42727         should not cause testsuite failure on cygwin 1.5.
42728
42729 2009-08-14  Eric Blake  <ebb9@byu.net>
42730
42731         doc: mention more functions added in cygwin 1.7.0
42732         * doc/posix-headers/limits.texi (limits.h): Update for recent
42733         cygwin additions.
42734         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
42735         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
42736         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
42737         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
42738         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
42739
42740 2009-08-14  Eric Blake  <ebb9@byu.net>
42741
42742         maint.mk: simplify update-copyright rule
42743         * top/maint.mk (update-copyright-local): Delete, and document how
42744         to do it in cfg.mk instead.
42745         (update-copyright-exclude-regexp): Delete, and document how to do
42746         it in .x-update-copyright instead.
42747         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
42748         exclude ChangeLog.
42749
42750 2009-08-14  Bruno Haible  <bruno@clisp.org>
42751
42752         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
42753
42754 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42755
42756         maint.mk: support update-copyright-env
42757         * top/maint.mk (update-copyright-env): Define place-holder.
42758         (update-copyright): Expand $(update-copyright-env) before
42759         invoking update-copyright.
42760
42761 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42762
42763         update-copyright: implement forced reformatting
42764         * build-aux/update-copyright: Implement and document
42765         UPDATE_COPYRIGHT_FORCE.
42766         * tests/test-update-copyright.sh: Test it.
42767
42768 2009-08-14  Eric Blake  <ebb9@byu.net>
42769         and Bruno Haible  <bruno@clisp.org>
42770
42771         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
42772         * tests/test-locale.c: Revert previous patch related to NULL.
42773         * tests/test-stdio.c: Likewise.
42774         * tests/test-stdlib.c: Likewise.
42775         * tests/test-string.c: Likewise.
42776         * tests/test-unistd.c: Likewise.
42777         * modules/time-tests (Depends-on): Add verify.
42778         * modules/wchar-tests (Depends-on): Likewise.
42779         * tests/test-time.c: Test for NULL compliance.
42780         * tests/test-wchar.c: Likewise.
42781         * modules/locale (Depends-on): Add stddef.
42782         * modules/stdio (Depends-on): Likewise.
42783         * modules/stdlib (Depends-on): Likewise.
42784         * modules/string (Depends-on): Likewise.
42785         * modules/time (Depends-on): Likewise.
42786         * modules/unistd (Depends-on): Likewise.
42787         * modules/wchar (Depends-on): Likewise.
42788         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
42789         * lib/stdlib.in.h (includes): Likewise.
42790         * lib/string.in.h (includes): Likewise.
42791         * lib/time.in.h (includes): Likewise.
42792         * lib/unistd.in.h (includes): Likewise.
42793         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
42794         replaced.
42795         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42796         * m4/stddef_h.m4: New file.
42797         * modules/stddef: Likewise.
42798         * lib/stddef.in.h: Likewise.
42799         * modules/stddef-tests: Likewise.
42800         * tests/test-stddef.c: Likewise.
42801         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
42802         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
42803         * doc/posix-headers/locale.texi (locale.h): Likewise.
42804         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
42805         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
42806         * doc/posix-headers/string.texi (string.h): Likewise.
42807         * doc/posix-headers/time.texi (time.h): Likewise.
42808         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42809         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42810
42811 2009-08-14  Eric Blake  <ebb9@byu.net>
42812
42813         doc: improve git diff of texinfo files
42814         * .gitattributes: Add rule for *.texi files, with hint on how to
42815         use it.
42816         Copied from m4, and based on a report by Bruno Haible.
42817
42818 2009-08-14  Bruno Haible  <bruno@clisp.org>
42819
42820         Disable multithread support by default on Cygwin 1.5.x for real.
42821         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42822
42823 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42824
42825         update-copyright: much ado about intervals
42826         * build-aux/update-copyright: Implement and document
42827         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42828         of copyright year intervals.
42829         Also, document UPDATE_COPYRIGHT_YEAR.
42830         * tests/test-update-copyright.sh: Test it.
42831
42832         update-copyright: convert 2-digit to 4-digit years
42833         * build-aux/update-copyright: Implement and document.
42834         * tests/test-update-copyright.sh: Update.
42835
42836 2009-08-14  Jim Meyering  <meyering@redhat.com>
42837
42838         test-exclude: avoid coreutils "make check" failure
42839         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42840         just as in test-argmatch.c.
42841
42842 2009-08-13  Eric Blake  <ebb9@byu.net>
42843
42844         test-dup2: fix bad assumption
42845         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42846         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42847
42848         test-version-etc: fix CRLF portability issue
42849         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42850         recognize \r.
42851         * tests/test-argp-version-etc-1.sh: Likewise.
42852
42853         getopt: update client modules
42854         * modules/argp (Depends-on): Use getopt-gnu.
42855         * modules/git-merge-changelog (Depends-on): Likewise.
42856         * modules/long-options (Depends-on): Likewise.
42857         * modules/xstrtol (Depends-on): Likewise.
42858
42859 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42860
42861         * tests/test-version-etc.sh: Don't fail on different
42862         project/version.  Don't fail on CRLF differences.  Rewrite to use
42863         multiple -e instead of multiple sed forks, suggested by Eric Blake
42864         <ebb9@byu.net>.
42865         * tests/test-argp-version-etc-1.sh: Likewise.
42866
42867 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42868
42869         * tests/test-version-etc.sh: Don't fail on different
42870         project/version.
42871
42872 2009-08-12  Bruno Haible  <bruno@clisp.org>
42873
42874         Tests for modules 'getopt-posix', 'getopt-gnu'.
42875         * modules/getopt-posix-tests: New file.
42876         * tests/test-getopt.c: New file.
42877         * tests/test-getopt.h: New file.
42878         * tests/test-getopt_long.h: New file.
42879
42880         New modules 'getopt-posix', 'getopt-gnu'.
42881         * modules/getopt-gnu: New file, renamed from modules/getopt.
42882         * modules/getopt-posix: New file.
42883         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42884         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42885         (gl_GETOPT): Remove macro.
42886         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42887         Disable the test against BSD systems that declare optreset. Test
42888         against mingw bug. Test against lack of support of optional arguments
42889         on many platforms.
42890         * doc/glibc-headers/getopt.texi: Update module name and list of
42891         relevant platforms.
42892         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42893         'getopt-gnu' and more portability problems.
42894         * NEWS: Mention the changes.
42895
42896 2009-08-12  Bruno Haible  <bruno@clisp.org>
42897
42898         Ensure that optarg etc. get declared by <unistd.h>.
42899         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42900         AC_USE_SYSTEM_EXTENSIONS.
42901         * modules/getopt (Depends-on): Add 'extensions'.
42902
42903 2009-08-12  Bruno Haible  <bruno@clisp.org>
42904
42905         Avoid test link errors.
42906         * modules/pipe-filter-ii-tests (Makefile.am): Define
42907         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42908         * modules/pipe-filter-gi-tests (Makefile.am): Define
42909         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42910         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42911
42912 2009-08-12  Bruno Haible  <bruno@clisp.org>
42913
42914         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42915         gl_GETOPT_SUBSTITUTE before.
42916         (gl_GETOPT): Use it.
42917         * m4/argp.m4 (gl_ARGP): Update.
42918         Reported by Sergey Poznyakoff.
42919
42920         * m4/getopt.m4: Reorder macros.
42921         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42922         (gl_GETOPT_SUBSTITUTE): Remove macro.
42923
42924 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42925
42926         Minor improvement in gitlog-to-changelog
42927
42928         * build-aux/gitlog-to-changelog: New option `--format' makes
42929         output format string configurable.
42930
42931 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42932
42933         Optimize exclude: use hash tables for non-wildcard patterns.
42934
42935         * lib/exclude.c: Include hash.h and mbuiter.h
42936         (struct exclude_pattern, exclude_segment): New data types.
42937         (struct exclude): Rewrite.
42938         (fnmatch_pattern_has_wildcards): New function.
42939         (new_exclude_segment, free_exclude_segment): New functions.
42940         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42941         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42942         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42943         * modules/exclude: Depend on hash and mbuiter.
42944
42945         * modules/exclude-tests: New file.
42946         * tests/test-exclude.c: New file.
42947         * tests/test-exclude1.sh: New file.
42948         * tests/test-exclude2.sh: New file.
42949         * tests/test-exclude3.sh: New file.
42950         * tests/test-exclude4.sh: New file.
42951         * tests/test-exclude5.sh: New file.
42952         * tests/test-exclude6.sh: New file.
42953         * tests/test-exclude7.sh: New file.
42954
42955 2009-08-12  Bruno Haible  <bruno@clisp.org>
42956
42957         Ensure that getopt() gets declared by <unistd.h>.
42958         * lib/unistd.in.h: Conditionally include getopt.h.
42959         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42960         Set GNULIB_UNISTD_H_GETOPT.
42961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42962         GNULIB_UNISTD_H_GETOPT.
42963         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42964
42965 2009-08-12  Bruno Haible  <bruno@clisp.org>
42966
42967         Clarify logic.
42968         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42969         gl_replace_getopt instead of GETOPT_H.
42970
42971 2009-08-12  Bruno Haible  <bruno@clisp.org>
42972
42973         * m4/getopt.m4: Add comments.
42974
42975 2009-08-12  Bruno Haible  <bruno@clisp.org>
42976
42977         Disable multithread support by default on Cygwin 1.5.x.
42978         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42979         set gl_use_threads=no if not specified otherwise.
42980
42981 2009-08-11  Bruno Haible  <bruno@clisp.org>
42982
42983         Avoid compilation error on NetBSD 5.0.
42984         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42985         * tests/test-stdio.c: Likewise.
42986         * tests/test-stdlib.c: Likewise.
42987         * tests/test-string.c: Likewise.
42988         * tests/test-unistd.c: Likewise.
42989         Reported by Greg Troxel <gdt@ir.bbn.com>
42990         at <https://savannah.gnu.org/support/?106973>.
42991
42992 2009-08-11  Bruno Haible  <bruno@clisp.org>
42993
42994         * modules/dup2-tests (Depends-on): Remove close.
42995
42996         Undo 2009-07-19 commit.
42997         * modules/acl-tests (Depends-on): Remove close.
42998         * modules/binary-io-tests (Depends-on): Likewise.
42999         * modules/closein-tests (Depends-on): Likewise.
43000         * modules/flock-tests (Depends-on): Likewise.
43001         * modules/fsync-tests (Depends-on): Likewise.
43002         * modules/lseek-tests (Depends-on): Likewise.
43003         * modules/pipe-tests (Depends-on): Likewise.
43004         * modules/posix_spawn-tests (Depends-on): Likewise.
43005         * modules/posix_spawnp-tests (Depends-on): Likewise.
43006         * modules/stat-time-tests (Depends-on): Likewise.
43007         * modules/yesno-tests (Depends-on): Likewise.
43008
43009 2009-08-10  Bruno Haible  <bruno@clisp.org>
43010
43011         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
43012
43013 2009-08-10  Bruno Haible  <bruno@clisp.org>
43014
43015         Fix a gcc warning.
43016         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
43017
43018 2009-08-10  Bruno Haible  <bruno@clisp.org>
43019
43020         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
43021         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
43022         not only the first time.
43023         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
43024         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
43025         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
43026         is 1, not only the the first time.
43027
43028 2009-08-10  Bruno Haible  <bruno@clisp.org>
43029
43030         Make it possible to use module 'gethostname' without module 'close'.
43031         * lib/unistd.in.h (close): Evoke a link error only if
43032         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43034         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43035         * modules/unistd (Makefile.am): Substitute
43036         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43037         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
43038         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
43039         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
43040         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43041         * modules/sys_ioctl (Makefile.am): Substitute
43042         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43043         * modules/socket (configure.ac): On native Windows, set
43044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
43045         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
43046         Reported by Sam Steingold <sds@gnu.org>.
43047
43048 2009-08-10  Bruno Haible  <bruno@clisp.org>
43049
43050         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
43051         * modules/ioctl (configure.ac): Likewise.
43052
43053 2009-08-10  Bruno Haible  <bruno@clisp.org>
43054
43055         Avoid collision between gnulib wrapper and libintl wrapper.
43056         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
43057         already defined in intl/printf.c.
43058         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
43059         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
43060
43061 2009-08-09  Bruno Haible  <bruno@clisp.org>
43062
43063         Make <sys/select.h> really self-contained, also on Solaris 10.
43064         * lib/sys_select.in.h: Include <string.h>.
43065         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
43066         Solaris 10 problem.
43067         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
43068         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
43069         Reported by Jim Meyering.
43070
43071 2009-08-09  Bruno Haible  <bruno@clisp.org>
43072
43073         Avoid warnings from 'aclocal' that are due to a use of macro name
43074         AM_XGETTEXT_OPTION that is not defined in automake.
43075         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
43076         automake.
43077         * modules/error (configure.ac): Likewise.
43078         * modules/propername (configure.ac): Likewise.
43079         * modules/vasprintf (configure.ac): Likewise.
43080         * modules/verror (configure.ac): Likewise.
43081         * modules/xprintf (configure.ac): Likewise.
43082         * modules/xvasprintf (configure.ac): Likewise.
43083
43084 2009-08-08  Bruno Haible  <bruno@clisp.org>
43085
43086         Avoid compilation error in C++ mode.
43087         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
43088         Reported by Sam Steingold <sds@gnu.org>.
43089
43090 2009-08-08  Bruno Haible  <bruno@clisp.org>
43091
43092         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
43093         for the various Unix platforms.
43094         * doc/posix-headers/limits.texi: Update platforms list regarding
43095         HOST_NAME_MAX.
43096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43097
43098 2009-08-07  Jim Meyering  <meyering@redhat.com>
43099
43100         selinux-at: fix typo in a comment
43101         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
43102         Spotted by Paolo Bonzini.
43103
43104         selinux-at: remove redundant m4 code, add documentation
43105         * modules/selinux-at (configure.ac): Remove redundant code.
43106         LIB_SELINUX is already set via the dependent module, selinux-h.
43107         (Include): Add quotes around selinux-at.h.
43108         * lib/selinux-at.h: Add documentation.
43109         Reported by Bruno Haible in
43110         http://marc.info/?l=gnulib-bug&m=124958988300749
43111
43112 2009-08-07  Bruno Haible  <bruno@clisp.org>
43113
43114         Avoid link error on MacOS X 10.3 and 10.4.
43115         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
43116         on non-ELF systems.
43117         * lib/argp-pv.c (argp_program_version): Likewise.
43118         Reported by Simon Josefsson.
43119
43120 2009-08-07  Simon Josefsson  <simon@josefsson.org>
43121
43122         * tests/test-version-etc.sh: Use $EXEEXT.
43123
43124 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
43125
43126         update-copyright: update documentation to point to maint.mk
43127         * build-aux/update-copyright: Here.
43128
43129 2009-08-06  Jim Meyering  <meyering@redhat.com>
43130
43131         maint.mk: support update-copyright-local
43132         * top/maint.mk (update-copyright-local): Define place-holder.
43133         (update-copyright): Depend on $(update-copyright-local).
43134
43135 2009-08-06  Jim Meyering  <meyering@redhat.com>
43136
43137         selinux-at: new module
43138         Initially written for coreutils, this module will soon be
43139         used by findutils, too.
43140         * MODULES.html.sh [Misc]: Add selinux-at.
43141         * lib/selinux-at.h: New file, from coreutils.
43142         * lib/selinux-at.c: Likewise.
43143         * modules/selinux-at: Likewise.
43144         (License): Change from LGPL to GPL, since it depends
43145         on the GPL'd openat module.
43146
43147         doc: update README
43148         * README: Remove references to cogito.
43149         Remove cvs-repo-updating instructions from 2007.
43150         Don't imply that CVS is better if you have limited disk space.
43151
43152 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43153
43154         update-copyright: support C-style comments
43155         * build-aux/update-copyright: Implement and document.
43156         * tests/test-update-copyright.sh: Test.
43157
43158 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43159
43160         update-copyright: support omitted "(C)"
43161         * build-aux/update-copyright: Implement and document.  Also,
43162         allow variable whitespace before "(C)".
43163         * tests/test-update-copyright.sh: Test.
43164
43165 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43166
43167         update-copyright: don't trip on non-FSF copyright statements
43168         * build-aux/update-copyright: Fix so that the first correctly
43169         formatted FSF copyright statement is recognized no matter what
43170         appears before it.  Update documentation.
43171         * tests/test-update-copyright.sh: Test that.
43172
43173 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43174
43175         update-copyright: clean up code a little
43176         * build-aux/update-copyright: Append "_re" to the name of any
43177         variable holding a regular expression.
43178         Replace "old" and "new" with "stmt" in variable names.
43179         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
43180         handled correctly.
43181         Format code more consistently.
43182
43183 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
43184
43185         update-copyright-tests: improve portability
43186         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
43187         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
43188
43189 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43190
43191         update-copyright: support @copyright{} and &copy;
43192         * build-aux/update-copyright: Implement and document.
43193         * tests/test-update-copyright.sh: Test.
43194
43195 2009-08-04  Jim Meyering  <meyering@redhat.com>
43196
43197         update-copyright-tests: correctly test EOL=\r\n handling
43198         * tests/test-update-copyright.sh: Put \r at the end of some lines
43199         for the dos-eol tests.  Based on a patch by Joel E. Denny.
43200
43201         maint.mk: make update-copyright exclusion list more configurable
43202         * top/maint.mk (update-copyright): Default to excluding COPYING,
43203         but allow an override, in case someone does want to update that file.
43204
43205         maint.mk: don't update copyright date in COPYING
43206         * top/maint.mk (update-copyright): Exclude COPYING.
43207
43208         maint.mk: add a copyright-updating rule
43209         * top/maint.mk (update-copyright): New rule.
43210         Derived from coreutils/Makefile.am.
43211
43212         update-copyright: rename some variables
43213         * build-aux/update-copyright: Rename a few variables for clarity.
43214         Tweak syntax.  List Joel E. Denny as coauthor.
43215
43216 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
43217
43218         update-copyright: fix bug for 2-digit last year and add tests
43219         * build-aux/update-copyright: Fix bug.
43220         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
43221         specified.
43222         * modules/update-copyright-tests: New
43223         * tests/test-update-copyright.sh: New.
43224
43225 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43226
43227         update-copyright: handle leading tabs in line prefix
43228         * build-aux/update-copyright: Count leading tabs as 8 spaces
43229         when computing margin.  This helps with the formatting of
43230         ChangeLogs, for example.
43231         Fix documentation a little.
43232
43233 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43234
43235         update-copyright: support EOL=\r\n
43236         * build-aux/update-copyright: Implement that.
43237
43238 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
43239
43240         update-copyright: automatically format copyright statements
43241         * build-aux/update-copyright: Implement that.
43242         Also, be a little more predictable and safer by always failing
43243         when the full copyright format is not perfectly recognized as an
43244         unbroken whole.  Discussed at
43245         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
43246         Rewrite documentation.
43247
43248 2009-08-03  Bruno Haible  <bruno@clisp.org>
43249
43250         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
43251
43252 2009-08-02  Bruno Haible  <bruno@clisp.org>
43253
43254         Tests for module 'uname'.
43255         * modules/uname-tests: New file.
43256         * tests/test-uname.c: New file.
43257
43258         New module 'uname'.
43259         * lib/uname.c: New file.
43260         * m4/uname.m4: New file.
43261         * modules/uname: New file.
43262         * doc/posix-functions/uname.texi: Mention the new module.
43263
43264 2009-08-02  Bruno Haible  <bruno@clisp.org>
43265
43266         Tests for module 'sys_utsname'.
43267         * modules/sys_utsname-tests: New file.
43268         * tests/test-sys_utsname.c: New file.
43269
43270         New module 'sys_utsname'.
43271         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
43272         * m4/sys_utsname_h.m4: New file.
43273         * modules/sys_utsname: New file.
43274         * doc/posix-headers/sys_utsname.texi: Mention the new module.
43275
43276 2009-08-02  Bruno Haible  <bruno@clisp.org>
43277
43278         Implicitly initialize the sockets library.
43279         * lib/gethostname.c: Include sockets.h.
43280         (rpl_gethostname): Invoke gl_sockets_startup.
43281         * lib/socket.c: Include sockets.h.
43282         (rpl_socket): Invoke gl_sockets_startup.
43283         * modules/gethostname (Depends-on): Add sockets.
43284         * modules/socket (Depends-on): Likewise.
43285         * tests/test-poll.c: Don't include sockets.h.
43286         (main): Don't invoke gl_sockets_startup.
43287         * tests/test-select.c: Don't include sockets.h.
43288         (main): Don't invoke gl_sockets_startup.
43289
43290 2009-08-02  Bruno Haible  <bruno@clisp.org>
43291
43292         Allow multiple calls to gl_sockets_startup.
43293         * lib/sockets.c (initialized_sockets_version): New variable.
43294         (gl_sockets_startup): Do nothing if already called for this or a higher
43295         version.
43296         (gl_sockets_cleanup): Reset initialized_sockets_version.
43297
43298 2009-08-03  Simon Josefsson  <simon@josefsson.org>
43299
43300         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
43301         different project/version.
43302
43303 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
43304             Bruno Haible  <bruno@clisp.org>
43305
43306         Tests for module 'pipe-filter-gi'.
43307         * modules/pipe-filter-gi-tests: New file.
43308         * tests/test-pipe-filter-gi1.sh: New file.
43309         * tests/test-pipe-filter-gi1.c: New file.
43310         * tests/test-pipe-filter-gi2.sh: New file.
43311         * tests/test-pipe-filter-gi2-main.c: New file.
43312         * tests/test-pipe-filter-gi2-child.c: New file.
43313
43314         New module 'pipe-filter-gi'.
43315         * lib/pipe-filter-gi.c: New file.
43316         * modules/pipe-filter-gi: New file.
43317
43318 2009-08-02  Bruno Haible  <bruno@clisp.org>
43319             Paolo Bonzini  <bonzini@gnu.org>
43320
43321         Tests for module 'pipe-filter-ii'.
43322         * modules/pipe-filter-ii-tests: New file.
43323         * tests/test-pipe-filter-ii1.sh: New file.
43324         * tests/test-pipe-filter-ii1.c: New file.
43325         * tests/test-pipe-filter-ii2.sh: New file.
43326         * tests/test-pipe-filter-ii2-main.c: New file.
43327         * tests/test-pipe-filter-ii2-child.c: New file.
43328
43329         New module 'pipe-filter-ii'.
43330         * lib/pipe-filter.h: New file.
43331         * lib/pipe-filter-ii.c: New file.
43332         * lib/pipe-filter-aux.h: New file.
43333         * modules/pipe-filter-ii: New file.
43334
43335 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43336
43337         * lib/gc-libgcrypt.c: Change copyright to FSF.
43338         * lib/gc-gnulib.c: Likewise.
43339
43340 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
43341
43342         * lib/gethostname.c: Include limits.h.
43343
43344 2009-08-02  Simon Josefsson  <simon@josefsson.org>
43345             Bruno Haible  <bruno@clisp.org>
43346
43347         Ensure HOST_NAME_MAX as part of the gethostname module.
43348         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
43349         define also HOST_NAME_MAX.
43350         * tests/test-gethostname.c: Include <limits.h>.
43351         (main): Check also HOST_NAME_MAX.
43352         * doc/posix-headers/limits.texi: Document the mingw problem.
43353
43354 2009-08-02  Bruno Haible  <bruno@clisp.org>
43355
43356         * lib/gethostname.c (gethostname): Fix handling of large len argument.
43357         Add comments.
43358
43359 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43360
43361         * lib/gethostname.c: Add Windows wrapper.
43362         * m4/gethostname.m4: Look for gethostname in -lws2_32.
43363         * modules/gethostname: Depend on sys_socket & errno, for also
43364         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
43365         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
43366
43367 2009-07-31  Jim Meyering  <meyering@redhat.com>
43368
43369         getloadavg: fix symbol name in comment
43370         * lib/getloadavg.c: Correct a typo I introduced when adding
43371         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
43372         Matt Kraai spotted the problem.
43373
43374 2009-07-29  Matt Kraai  <mkraai@beckman.com>
43375
43376         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
43377         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
43378         code also if ! defined N_NAME_POINTER.
43379         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
43380         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
43381         but the n_name member is a 12-byte array.
43382
43383 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
43384
43385         update-copyright: generalize comment handling
43386         * build-aux/update-copyright: Handle copyright statements
43387         within more comment styles.
43388         Document usage.
43389         Report any file with an external copyright holder or parse failure.
43390
43391 2009-07-29  Jim Meyering  <meyering@redhat.com>
43392
43393         mktime: correct setting of REPLACE_MKTIME
43394         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
43395
43396         update-copyright: new module
43397         * modules/update-copyright: New file.
43398         * build-aux/update-copyright: New file.
43399         * MODULES.html.sh (maint+release support): Add update-copyright.
43400
43401 2009-07-27  Bruno Haible  <bruno@clisp.org>
43402
43403         Fix compilation error when <ctime> is used and mktime is replaced.
43404         * lib/time.in.h (mktime): New declaration.
43405         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
43406         REPLACE_MKTIME instead of defining mktime in config.h.
43407         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
43408         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
43409         Reported by Ross McFarland <rwmcfa1@neces.com>.
43410
43411 2009-07-27  Bruno Haible  <bruno@clisp.org>
43412
43413         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
43414         Reported by Matt Kraai <mkraai@beckman.com>.
43415
43416 2009-07-25  Jim Meyering  <meyering@redhat.com>
43417
43418         maint.mk: avoid warnings about missing files
43419         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
43420         diagnostic when .prev-version does not exist.
43421         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
43422         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
43423         nonexistent cfg.mk.
43424         Suggestions from Simon Josefsson.
43425
43426 2009-07-25  Bruno Haible  <bruno@clisp.org>
43427
43428         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
43429         defined as macros. Needed on QNX 6.4.1.
43430         Reported by Matt Kraai <mkraai@beckman.com>.
43431
43432 2009-07-23  Jim Meyering  <meyering@redhat.com>
43433
43434         maint.mk: invoke "make dist" with a working value of XZ_OPT
43435         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
43436
43437 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
43438
43439         Make fseeko.c compile on QNX.
43440         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
43441
43442 2009-07-22  Peter Simons  <simons@cryp.to>
43443
43444         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
43445         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
43446         * lib/md4.h: Likewise.
43447         * lib/md5.h: Likewise.
43448         * lib/sha1.h: Likewise.
43449         * lib/sha256.h: Likewise.
43450         * lib/sha512.h: Likewise.
43451
43452         tests-sha1: don't assign literal string to 'char *' variable
43453         * tests/test-sha1.c (main): Declare locals with "const" to match
43454         attributes of the right hand side.
43455
43456 2009-07-21  Eric Blake  <ebb9@byu.net>
43457
43458         dup2: fix more mingw problems
43459         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
43460         fd to itself.
43461         * doc/posix-functions/dup2.texi (dup2): Document the bug.
43462         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
43463         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
43464         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
43465         care of mingw bugs.
43466
43467 2009-07-21  Jim Meyering  <meyering@redhat.com>
43468
43469         vc-list-files: avoid failure when /bin/sh is dash
43470         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
43471         On some Debian based systems, /bin/sh is a symlink to dash, and running
43472         this command would omit the "/" following each 'tests' prefix:
43473           dash -x build-aux/vc-list-files -C . tests
43474         That is because bash and dash work differently:
43475           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
43476           bash ok
43477           dash odd
43478
43479 2009-07-21  Eric Blake  <ebb9@byu.net>
43480
43481         dup2-tests: test previous patch
43482         * modules/dup2-tests: New file.
43483         * tests/test-dup2.c: Likewise.
43484         * tests/test-open.c (main): Avoid unspecified behavior.
43485         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
43486         test.
43487
43488         dup2: work around mingw and cygwin 1.5 bug
43489         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
43490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43491         * modules/unistd (Makefile.am): Substitute it.
43492         * lib/unistd.in.h (dup2): Declare the replacement.
43493         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
43494         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
43495         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
43496         * modules/execute (Depends-on): Add dup2.
43497         * modules/fseterr (Depends-on): Likewise.
43498         * modules/pipe (Depends-on): Likewise.
43499         * modules/posix_spawn-internal (Depends-on): Likewise.
43500
43501 2009-07-21  Bruno Haible  <bruno@clisp.org>
43502
43503         * modules/.gitattributes: New file.
43504
43505 2009-07-20  Bruno Haible  <bruno@clisp.org>
43506
43507         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
43508         (main): Use it.
43509
43510 2009-07-20  Eric Blake  <ebb9@byu.net>
43511
43512         test-pipe: make a bit more robust.
43513         * tests/test-pipe.c (myerr): Allow error messages regardless of
43514         what we do to stderr.
43515         (test_pipe): Rearrange to avoid deadlock.
43516         (child_main): Try a larger read, to ensure we avoided deadlock.
43517         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
43518         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
43519         if misused.
43520
43521 2009-07-19  Jim Meyering  <meyering@redhat.com>
43522
43523         fts: avoid false-positive cycle-detection
43524         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
43525         for each new command line argument.
43526
43527 2009-07-19  Bruno Haible  <bruno@clisp.org>
43528
43529         Fix build error on mingw with the modules sys_select and unistd.
43530         * modules/acl-tests (Depends-on): Add close.
43531         * modules/binary-io-tests (Depends-on): Likewise.
43532         * modules/closein-tests (Depends-on): Likewise.
43533         * modules/flock-tests (Depends-on): Likewise.
43534         * modules/fsync-tests (Depends-on): Likewise.
43535         * modules/lseek-tests (Depends-on): Likewise.
43536         * modules/pipe-tests (Depends-on): Likewise.
43537         * modules/posix_spawn-tests (Depends-on): Likewise.
43538         * modules/posix_spawnp-tests (Depends-on): Likewise.
43539         * modules/stat-time-tests (Depends-on): Likewise.
43540         * modules/yesno-tests (Depends-on): Likewise.
43541
43542 2009-07-19  Bruno Haible  <bruno@clisp.org>
43543
43544         Unify conditionals.
43545         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
43546         macros, not at the compiler macros.
43547         * lib/pipe.c: Likewise.
43548         * lib/execute.c: Likewise.
43549         * lib/spawni.c: Likewise.
43550
43551 2009-07-19  Bruno Haible  <bruno@clisp.org>
43552
43553         Fix handling of closed stdin/stdout/stderr on mingw.
43554         * lib/w32spawn.h: Include unistd.h.
43555         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
43556         file descriptor with O_NOINHERIT flag.
43557         (fd_safer_noinherit): New function, based on fd-safer.c.
43558         (dup_safer_noinherit): New function, based on dup-safer.c.
43559         (undup_safer_noinherit): New function.
43560         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
43561         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
43562         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
43563         instead of fd_safer.
43564         * tests/test-pipe.c: Include <windows.h>.
43565         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
43566         result.
43567
43568         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
43569         from main.
43570         (test_pipe): Pass an extra argument for disambiguation.
43571         (main): Invoke parent_main or child_main.
43572
43573         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
43574         consistently.
43575
43576 2009-07-18  Eric Blake  <ebb9@byu.net>
43577
43578         test-pipe: fix mingw build
43579         * tests/test-pipe.c (main): Avoid fcntl on mingw.
43580
43581 2009-07-18  Bruno Haible  <bruno@clisp.org>
43582
43583         * modules/pipe-tests (Makefile.am): Fix typo.
43584
43585 2009-07-18  Eric Blake  <ebb9@byu.net>
43586
43587         error: fix mingw build
43588         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
43589         Reported by Bruno Haible.
43590
43591         error: avoid undefined use of stdout
43592         * lib/error.c (error, error_at_line): Check that fd 1 is open
43593         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
43594         is handling faults and the close_stdout module wants to report the
43595         detection of closed stdout as an error.
43596
43597 2009-07-17  Eric Blake  <ebb9@byu.net>
43598
43599         pipe: be robust in face of closed fds
43600         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
43601         should cause child to misbehave.
43602         * modules/pipe-tests: New module.
43603         * tests/test-pipe.c: New file.
43604         * tests/test-pipe.sh: New file.
43605         Reported by Akim Demaille.
43606
43607 2009-07-14  Bruno Haible  <bruno@clisp.org>
43608
43609         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
43610         Reported by anonymous kc.
43611
43612 2009-07-07  Jim Meyering  <meyering@redhat.com>
43613
43614         maint.mk: don't look for translatable strings in *.m4 or *.mk
43615         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
43616         when searching for translatable strings.
43617
43618 2009-07-05  Jim Meyering  <meyering@redhat.com>
43619
43620         remove superfluous parentheses in STREQ definition
43621         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
43622         * lib/getugroups.c (STREQ): Likewise.
43623         * lib/fnmatch.c (STREQ): Likewise.
43624         Spotted by Bruno Haible.
43625
43626 2009-07-04  Jim Meyering  <meyering@redhat.com>
43627
43628         argv-iter: new module
43629         * MODULES.html.sh: Add argv-iter.
43630         * lib/argv-iter.c, lib/argv-iter.h: New files.
43631         * modules/argv-iter: New file.
43632         * modules/argv-iter-tests: New file.
43633         * tests/test-argv-iter.c: Test it.
43634
43635 2009-07-04  Bruno Haible  <bruno@clisp.org>
43636
43637         Fix assertion.
43638         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
43639         contains more exact copies of a given entry than file2, leave the extra
43640         copies unpaired rather than aborting.
43641         Reported by Eric Blake.
43642
43643 2009-07-02  Bruno Haible  <bruno@clisp.org>
43644
43645         Speedup git-merge-changelog for git cherry-pick.
43646         * lib/git-merge-changelog.c (struct entries_mapping): New type.
43647         (entries_mapping_get): New function, extracted from compute_mapping.
43648         (entries_mapping_reverse_get): New function.
43649         (compute_mapping): Add a 'full' argument. Return the result in a
43650         'struct entries_mapping'.
43651         (main): Update. Access the mappings through entries_mapping_get.
43652         Reported by Eric Blake.
43653
43654 2009-07-02  Bruno Haible  <bruno@clisp.org>
43655
43656         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
43657         best_i.
43658
43659 2009-07-02  Bruno Haible  <bruno@clisp.org>
43660
43661         Speed up approximate search for matching ChangeLog entries.
43662         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
43663         argument. Call fstrcmp_bounded instead of fstrcmp.
43664         (compute_mapping, try_split_merged_entry, main): Update callers.
43665
43666 2009-07-02  Bruno Haible  <bruno@clisp.org>
43667
43668         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
43669
43670 2009-06-30  Bruno Haible  <bruno@clisp.org>
43671
43672         Reduce the number of uc_is_cased calls.
43673         * lib/unicase.h (casing_suffix_context_t): Add
43674         'first_char_except_ignorable' field.
43675         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
43676         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
43677         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
43678         Update initializer.
43679         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
43680         case-ignorable characters.
43681         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
43682         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
43683         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
43684         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
43685         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
43686
43687 2009-06-30  Bruno Haible  <bruno@clisp.org>
43688
43689         Tests for module 'unicase/ignorable'.
43690         * modules/unicase/ignorable-tests: New file.
43691         * tests/unicase/test-ignorable.c: New file, generated by
43692         gen-uni-tables.
43693
43694         Tests for module 'unicase/cased'.
43695         * modules/unicase/cased-tests: New file.
43696         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
43697         * tests/unicase/test-predicate-part1.h: New file, derived from
43698         tests/unictype/test-predicate-part1.h.
43699         * tests/unicase/test-predicate-part2.h: New file, same as
43700         tests/unictype/test-predicate-part2.h.
43701
43702         Fix evaluation of "Before C" condition of FINAL_SIGMA.
43703         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
43704         (output_casing_properties): New function.
43705         (main): Call it.
43706         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
43707         * lib/unicase/cased.c: Include unictype/bitmap.h.
43708         (uc_is_cased): Define through a bitmap lookup.
43709         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
43710         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
43711         (uc_is_case_ignorable): Define through a bitmap lookup.
43712         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
43713         lib/unictype/bitmap.h.
43714         (Depends-on): Add inline. Clean up.
43715         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
43716         lib/unictype/bitmap.h.
43717         (Depends-on): Add inline. Clean up.
43718         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
43719         recognition.
43720         * tests/unicase/test-u16-tolower.c (main): Likewise.
43721         * tests/unicase/test-u32-tolower.c (main): Likewise.
43722
43723 2009-06-30  Bruno Haible  <bruno@clisp.org>
43724
43725         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
43726         * lib/unicase/u16-casemap.c: Likewise.
43727         * lib/unicase/u32-casemap.c: Likewise.
43728
43729 2009-06-29  Bruno Haible  <bruno@clisp.org>
43730
43731         Define u32_casefold as a wrapper around u32_ct_casefold.
43732         * lib/unicase/u32-casefold.c: Update.
43733         * modules/unicase/u32-casefold (Depends-on): Add
43734         unicase/u32-ct-casefold, unicase/empty-prefix-context,
43735         unicase/empty-suffix-context. Clean up.
43736
43737         Define u16_casefold as a wrapper around u16_ct_casefold.
43738         * lib/unicase/u16-casefold.c: Update.
43739         * modules/unicase/u16-casefold (Depends-on): Add
43740         unicase/u16-ct-casefold, unicase/empty-prefix-context,
43741         unicase/empty-suffix-context. Clean up.
43742
43743         Define u8_casefold as a wrapper around u8_ct_casefold.
43744         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
43745         * lib/unicase/u8-casefold.c: Update.
43746         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
43747         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43748
43749         Define u32_totitle as a wrapper around u32_ct_totitle.
43750         * lib/unicase/u32-totitle.c: Update.
43751         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
43752         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43753
43754         Define u16_totitle as a wrapper around u16_ct_totitle.
43755         * lib/unicase/u16-totitle.c: Update.
43756         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
43757         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43758
43759         Define u8_totitle as a wrapper around u8_ct_totitle.
43760         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
43761         functions.
43762         (FUNC): Delegate to U_CT_TOTITLE.
43763         * lib/unicase/u8-totitle.c: Update.
43764         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
43765         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
43766
43767         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
43768         invocation.
43769         * modules/unicase/u32-tolower (Depends-on): Add
43770         unicase/empty-prefix-context, unicase/empty-suffix-context.
43771
43772         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
43773         invocation.
43774         * modules/unicase/u16-tolower (Depends-on): Add
43775         unicase/empty-prefix-context, unicase/empty-suffix-context.
43776
43777         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
43778         * modules/unicase/u8-tolower (Depends-on): Add
43779         unicase/empty-prefix-context, unicase/empty-suffix-context.
43780
43781         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
43782         invocation.
43783         * modules/unicase/u32-toupper (Depends-on): Add
43784         unicase/empty-prefix-context, unicase/empty-suffix-context.
43785
43786         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
43787         invocation.
43788         * modules/unicase/u16-toupper (Depends-on): Add
43789         unicase/empty-prefix-context, unicase/empty-suffix-context.
43790
43791         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
43792         * modules/unicase/u8-toupper (Depends-on): Add
43793         unicase/empty-prefix-context, unicase/empty-suffix-context.
43794
43795         New module 'unicase/u32-ct-casefold'.
43796         * lib/unicase/u32-ct-casefold.c: New file.
43797         * modules/unicase/u32-ct-casefold: New file.
43798
43799         New module 'unicase/u16-ct-casefold'.
43800         * lib/unicase/u16-ct-casefold.c: New file.
43801         * modules/unicase/u16-ct-casefold: New file.
43802
43803         New module 'unicase/u8-ct-casefold'.
43804         * lib/unicase/u8-ct-casefold.c: New file.
43805         * lib/unicase/u-ct-casefold.h: New file, derived from
43806         lib/unicase/u-casefold.h.
43807         * modules/unicase/u8-ct-casefold: New file.
43808
43809         New module 'unicase/u32-ct-totitle'.
43810         * lib/unicase/u32-ct-totitle.c: New file.
43811         * modules/unicase/u32-ct-totitle: New file.
43812
43813         New module 'unicase/u16-ct-totitle'.
43814         * lib/unicase/u16-ct-totitle.c: New file.
43815         * modules/unicase/u16-ct-totitle: New file.
43816
43817         New module 'unicase/u8-ct-totitle'.
43818         * lib/unicase/u8-ct-totitle.c: New file.
43819         * lib/unicase/u-ct-totitle.h: New file, derived from
43820         lib/unicase/u-totitle.h.
43821         * modules/unicase/u8-ct-totitle: New file.
43822
43823         New module 'unicase/u32-ct-tolower'.
43824         * lib/unicase/u32-ct-tolower.c: New file.
43825         * modules/unicase/u32-ct-tolower: New file.
43826
43827         New module 'unicase/u16-ct-tolower'.
43828         * lib/unicase/u16-ct-tolower.c: New file.
43829         * modules/unicase/u16-ct-tolower: New file.
43830
43831         New module 'unicase/u8-ct-tolower'.
43832         * lib/unicase/u8-ct-tolower.c: New file.
43833         * modules/unicase/u8-ct-tolower: New file.
43834
43835         New module 'unicase/u32-ct-toupper'.
43836         * lib/unicase/u32-ct-toupper.c: New file.
43837         * modules/unicase/u32-ct-toupper: New file.
43838
43839         New module 'unicase/u16-ct-toupper'.
43840         * lib/unicase/u16-ct-toupper.c: New file.
43841         * modules/unicase/u16-ct-toupper: New file.
43842
43843         New module 'unicase/u8-ct-toupper'.
43844         * lib/unicase/u8-ct-toupper.c: New file.
43845         * modules/unicase/u8-ct-toupper: New file.
43846
43847         Add context arguments to u*_casemap functions.
43848         * lib/unicase/unicasemap.h: Include unicase.h.
43849         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43850         suffix_context arguments.
43851         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43852         functions.
43853         (FUNC): Add prefix_context and suffix_context arguments. Use
43854         uc_is_cased and uc_is_case_ignorable.
43855         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43856         * lib/unicase/u16-casemap.c: Likewise.
43857         * lib/unicase/u32-casemap.c: Likewise.
43858         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43859         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43860         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43861         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43862         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43863         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43864
43865         New module 'unicase/u32-suffix-context'.
43866         * lib/unicase/u32-suffix-context.c: New file.
43867         * modules/unicase/u32-suffix-context: New file.
43868
43869         New module 'unicase/u16-suffix-context'.
43870         * lib/unicase/u16-suffix-context.c: New file.
43871         * modules/unicase/u16-suffix-context: New file.
43872
43873         New module 'unicase/u8-suffix-context'.
43874         * lib/unicase/u8-suffix-context.c: New file.
43875         * lib/unicase/u-suffix-context.h: New file.
43876         * modules/unicase/u8-suffix-context: New file.
43877
43878         New module 'unicase/empty-suffix-context'.
43879         * lib/unicase/empty-suffix-context.c: New file.
43880         * modules/unicase/empty-suffix-context: New file.
43881
43882         New module 'unicase/u32-prefix-context'.
43883         * lib/unicase/u32-prefix-context.c: New file.
43884         * modules/unicase/u32-prefix-context: New file.
43885
43886         New module 'unicase/u16-prefix-context'.
43887         * lib/unicase/u16-prefix-context.c: New file.
43888         * modules/unicase/u16-prefix-context: New file.
43889
43890         New module 'unicase/u8-prefix-context'.
43891         * lib/unicase/u8-prefix-context.c: New file.
43892         * lib/unicase/u-prefix-context.h: New file.
43893         * lib/unicase/context.h: New file.
43894         * modules/unicase/u8-prefix-context: New file.
43895
43896         New module 'unicase/empty-prefix-context'.
43897         * lib/unicase/empty-prefix-context.c: New file.
43898         * modules/unicase/empty-prefix-context: New file.
43899
43900         New module 'unicase/ignorable'.
43901         * lib/unicase/ignorable.c: New file.
43902         * modules/unicase/ignorable: New file.
43903
43904         New module 'unicase/cased'.
43905         * lib/unicase/caseprop.h: New file.
43906         * lib/unicase/cased.c: New file.
43907         * modules/unicase/cased: New file.
43908
43909         New functions for case mapping of substrings.
43910         * lib/unicase.h (casing_prefix_context_t): New type.
43911         (unicase_empty_prefix_context): New variable.
43912         (u8_casing_prefix_context, u16_casing_prefix_context,
43913         u32_casing_prefix_context, u8_casing_prefixes_context,
43914         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43915         declarations.
43916         (casing_suffix_context_t): New type.
43917         (unicase_empty_suffix_context): New variable.
43918         (u8_casing_suffix_context, u16_casing_suffix_context,
43919         u32_casing_suffix_context, u8_casing_suffixes_context,
43920         u16_casing_suffixes_context, u32_casing_suffixes_context,
43921         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43922         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43923         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43924         declarations.
43925
43926 2009-06-28  Jim Meyering  <meyering@redhat.com>
43927
43928         boostrap: indent only with spaces
43929         * build-aux/bootstrap: Indent only with spaces, never TABs.
43930
43931         bootstrap: split long lines
43932         * build-aux/bootstrap: Keep line length < 80.
43933
43934         bootstrap: sync from coreutils
43935         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43936         just as autoreconf does.  Verify a list of prerequisite
43937         package-name,version-number pairs if defined in bootstrap.conf.
43938         Refer to README-prereq, if prerequisites are not satisfied.
43939
43940 2009-06-27  Eric Blake  <ebb9@byu.net>
43941
43942         tests: add test for bogus NULL definition
43943         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43944         * tests/test-stdlib.c: Likewise.
43945         * tests/test-string.c: Likewise.
43946         * tests/test-locale.c: Likewise.
43947         * tests/test-unistd.c: Likewise.
43948         * modules/stdio-tests (Depends-on): Add verify.
43949         * modules/stdlib-tests (Depends-on): Likewise.
43950         * modules/string-tests (Depends-on): Likewise.
43951         * modules/locale-tests (Depends-on): Likewise.
43952         * modules/unistd-tests (Depends-on): Likewise.
43953
43954 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43955
43956         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43957         self-explaining comment.
43958         * m4/selinux-selinux-h: Update serial.
43959         (gl_LIBSELINUX): New macro, adding a warning for missing development
43960         packages to code extracted from...
43961         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43962         Add warning for missing development packages here, too.
43963
43964 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43965
43966         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43967
43968 2009-06-25  Eric Blake  <ebb9@byu.net>
43969
43970         version-etc: fix regression
43971         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43972         gcc.
43973         (version_etc): Use it, to catch bugs with trailing NULL.
43974         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43975         (version_etc_va): Fix logic bug.
43976         * modules/version-etc-tests: Add test.
43977         * tests/test-version-etc.c: New file.
43978         * tests/test-version-etc.sh: Likewise.
43979
43980 2009-06-25  Sam Steingold  <sds@gnu.org>
43981
43982         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43983         mbtowc declaration.
43984
43985 2009-06-25  Eric Blake  <ebb9@byu.net>
43986
43987         fpurge: migrate into <stdio.h>
43988         * lib/fpurge.h: Delete...
43989         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43990         * lib/fpurge.c (fpurge): Change declaring header.
43991         * modules/fpurge (Files): Drop deleted file.
43992         (Depends-on): Add stdio.
43993         (configure.ac): Set witness.
43994         * modules/stdio (Makefile.am): Support fpurge macros.
43995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43996         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43997         * lib/fflush.c: Update client.
43998         * tests/test-fpurge.c: Likewise.
43999         * NEWS: Mention the change.
44000
44001 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44002
44003         * lib/argp-version-etc.c (program_authors): Add const
44004         qualifier.
44005         * lib/version-etc.c: Fix typos in the comments.
44006         * modules/argp-version-etc: Depends on version-etc.
44007
44008 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44009
44010         argp-version-etc: new module.
44011
44012         * lib/argp-version-etc.c: New file.
44013         * lib/argp-version-etc.h: New file.
44014         * modules/argp-version-etc: New file.
44015         * modules/argp-version-etc-tests: New file.
44016         * tests/test-argp-version-etc.c: New test.
44017         * tests/test-argp-version-etc-1.sh: New test.
44018
44019 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
44020
44021         Provide additional interfaces and documentation for version-etc
44022         module.
44023
44024         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
44025         interfaces.
44026         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
44027         prototypes.
44028
44029 2009-06-24  Bruno Haible  <bruno@clisp.org>
44030
44031         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
44032         HAVE_LIB${NAME} macro.
44033         Reported by Sam Steingold <sds@gnu.org>.
44034
44035 2009-06-23  Simon Josefsson  <simon@josefsson.org>
44036
44037         * modules/hash-tests (test_hash_LDADD): Link to libintl when
44038         needed.
44039
44040 2009-06-21  Bruno Haible  <bruno@clisp.org>
44041
44042         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
44043         work.
44044         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
44045         together with LIB${NAME}, LTLIB${NAME}.
44046         Reported by Sam Steingold <sds@gnu.org>.
44047
44048 2009-06-20  Jim Meyering  <meyering@redhat.com>
44049
44050         tests: make sc_require_test_exit_idiom more generic
44051         * top/maint.mk (Exit_witness_file): New overridable variable.
44052         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
44053         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
44054
44055 2009-06-19  Jim Meyering  <meyering@redhat.com>
44056
44057         hash: reverse order of src/dst parameters in an internal interface
44058         * lib/hash.c (transfer_entries): Reverse order of parameters to
44059         put DST before SRC.  Adjust callers.
44060
44061         tests: test-hash: avoid wholesale duplication
44062         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
44063         Instead, use a loop and add a single conditional.
44064
44065         tests: test-hash: allow seed selection via a command line argument
44066         * tests/test-hash.c (get_seed): New function.
44067         (main): Use it.
44068
44069 2009-06-19  Eric Blake  <ebb9@byu.net>
44070
44071         hash: avoid memory leak on allocation failure
44072         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
44073         failure.  Factor repeated algorithm...
44074         (transfer_entries): ...into new helper routine.
44075         (hash_delete): React to hash_rehash return value.
44076
44077         hash: reduce memory pressure in hash_rehash no-op case
44078         * lib/hash.c (next_prime): Avoid overflow.
44079         (hash_initialize): Factor bucket size computation...
44080         (compute_bucket_size): ...into new helper function.
44081         (hash_rehash): Use new function and open coding to reduce memory
44082         pressure, and avoid a memory leak in USE_OBSTACK code.
44083         Reported by Jim Meyering.
44084
44085 2009-06-18  Eric Blake  <ebb9@byu.net>
44086
44087         hash: make rotation more obvious
44088         * modules/hash (Depends-on): Add bitrotate and stdint.
44089         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
44090         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
44091         (SIZE_MAX): Rely on headers for definition.
44092         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
44093         (raw_hasher): Use rotr_sz.
44094         Suggested by Jim Meyering.
44095
44096         hash: fix memory leak in last patch
44097         * lib/hash.c (hash_rehash): Avoid memory leak.
44098
44099         hash: avoid no-op rehashing
44100         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
44101
44102         hash: provide default callback functions
44103         * lib/hash.c (raw_hasher, raw_comparator): New functions.
44104         (hash_initialize): Use them as defaults.
44105         * tests/test-hash.c (main): Test this.
44106
44107         hash: minor optimization
44108         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
44109         when possible.
44110         (hash_initialize): Document this promise.
44111         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
44112         * tests/test-hash.c (hash_compare_strings): Test this.
44113
44114 2009-06-18  Bruno Haible  <bruno@clisp.org>
44115
44116         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
44117         going to be replaced anyway.
44118
44119 2009-06-18  Bruno Haible  <bruno@clisp.org>
44120
44121         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
44122         in one place.
44123         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
44124         be replaced anyway.
44125
44126 2009-06-18  Eric Blake  <ebb9@byu.net>
44127
44128         hash: check for resize before insertion
44129         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
44130         threshold before insertion, so that a pathological hash_rehash
44131         that fills every bucket can still trigger another rehash.
44132
44133 2009-06-18  Jim Meyering  <meyering@redhat.com>
44134
44135         hash-tests: add a loop around the small tests
44136         * tests/test-hash.c (main): Repeat small tests with selected
44137         small initial table sizes.
44138
44139 2009-06-17  Eric Blake  <ebb9@byu.net>
44140
44141         hash: minor cleanups
44142         * lib/hash.h (hash_entry): Make opaque, by moving...
44143         * lib/hash.c (hash_entry): ...here.
44144         (hash_insert): Clarify restrictions on what can be inserted.
44145         (hash_get_next): Clarify when it is safe to remove an element
44146         during traversal.
44147         (check_tuning): Skip verification when tuning is known safe.
44148         (hash_initialize): Clarify restrictions on tuning.
44149
44150 2009-06-17  Jim Meyering  <jim@meyering.net>
44151         and Eric Blake  <ebb9@byu.net>
44152
44153         hash-tests: new module
44154         * modules/hash-tests: New file.
44155         * tests/test-hash.c: New file.
44156
44157 2009-06-17  Eric Blake  <ebb9@byu.net>
44158
44159         strstr-simple: document new module
44160         * MODULES.html.sh: Document new module.
44161
44162         strstr, strcasestr: replace on platforms with broken memchr
44163         * modules/strstr: Split into...
44164         * modules/strstr-simple: ...new module that does not care about
44165         performance, but does care about glibc bug.
44166         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
44167         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
44168         if platform memchr is broken, per Debian bug 521737.
44169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
44170         memchr.
44171         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
44172         * doc/posix-functions/strstr.texi (strstr): Document the fix.
44173         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
44174         * modules/mountlist (Depends-on): Add strstr-simple.
44175         * modules/gen-uni-tables (Depends-on): Likewise.
44176         * modules/argz (Depends-on): Add strstr.
44177
44178 2009-06-17  Bruno Haible  <bruno@clisp.org>
44179
44180         * modules/posix_spawn-internal (Depends-on): Add errno.
44181
44182 2009-06-17  Bruno Haible  <bruno@clisp.org>
44183
44184         Define missing ESTALE on Interix 3.5.
44185         * lib/errno.in.h (ESTALE): Assign a value if missing.
44186         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
44187         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
44188         missing.
44189         * doc/posix-headers/errno.texi: Mention the Interix bug.
44190         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
44191
44192 2009-06-15  Eric Blake  <ebb9@byu.net>
44193
44194         memchr, memchr2: add valgrind exception
44195         * lib/memchr.valgrind: New file.
44196         * lib/memchr2.valgrind: New file.
44197         * modules/memchr (Files): Distribute valgrind file.
44198         * modules/memchr2 (Files): Likewise.
44199
44200         docs: memchr is no longer obsolete
44201         * MODULES.html.sh: Move memchr from obsolete to string.h section.
44202         * lib/string.in.h (memchr): Simplify logic.
44203
44204 2009-06-14  Jim Meyering  <meyering@redhat.com>
44205
44206         link-follow: fix the "checking..." message to not mention trailing slash
44207         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
44208         never considered trailing slashes.
44209
44210 2009-06-14  Bruno Haible  <bruno@clisp.org>
44211
44212         * m4/memchr.m4: Mention also the bug on IA-64.
44213         * doc/posix-functions/memchr.texi: Likewise.
44214
44215 2009-06-12  Eric Blake  <ebb9@byu.net>
44216
44217         memchr: detect broken x86_64 and alpha implementations
44218         * modules/memchr-tests (Depends-on): Move mmap detection...
44219         * modules/memchr (Depends-on): ...here.
44220         (configure.ac): Set indicator.
44221         * lib/string.in.h (memchr): Declare replacement.
44222         * modules/string (Makefile.am): Trigger replacement.
44223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
44224         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
44225         bugs.
44226         * doc/posix-functions/memchr.texi (memchr): Document the bug.
44227         * modules/getpagesize (License): Relax license.
44228
44229 2009-06-11  Bruno Haible  <bruno@clisp.org>
44230
44231         * lib/idpriv.h: Add more references.
44232
44233 2009-06-08  Bruno Haible  <bruno@clisp.org>
44234
44235         Tests for module 'idpriv-droptemp'.
44236         * modules/idpriv-droptemp-tests: New file.
44237         * tests/test-idpriv-droptemp.sh: New file.
44238         * tests/test-idpriv-droptemp.su.sh: New file.
44239         * tests/test-idpriv-droptemp.c: New file.
44240
44241         New module 'idpriv-droptemp'.
44242         * lib/idpriv-droptemp.c: New file.
44243         * modules/idpriv-droptemp: New file.
44244
44245 2009-06-08  Bruno Haible  <bruno@clisp.org>
44246
44247         Tests for module 'idpriv-drop'.
44248         * modules/idpriv-drop-tests: New file.
44249         * tests/test-idpriv-drop.sh: New file.
44250         * tests/test-idpriv-drop.su.sh: New file.
44251         * tests/test-idpriv-drop.c: New file.
44252
44253         New module 'idpriv-drop'.
44254         * lib/idpriv.h: New file.
44255         * lib-idpriv-drop.c: New file.
44256         * m4/idpriv.m4: New file.
44257         * modules/idpriv-drop: New file.
44258
44259 2009-06-08  Bruno Haible  <bruno@clisp.org>
44260
44261         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
44262         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44263         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44264         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44265         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44266         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44267         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44268
44269 2009-06-08  Eric Blake  <ebb9@byu.net>
44270
44271         test-strstr: use memory fence, when possible
44272         * tests/test-strstr.c (main): Use memory fence, in order to be
44273         more likely to trigger Debian bug 521737.
44274         * modules/strstr-tests (Files): Pull in additional files.
44275
44276         memchr: no longer obsolete, for wider field testing
44277         * modules/memchr (Status, Notice): Delete, this module is no
44278         longer obsolete.
44279         * modules/vasnprintf (Depends-on): Add memchr.
44280
44281 2009-06-07  Jim Meyering  <meyering@redhat.com>
44282
44283         hash: declare some functions with the warn_unused_result attribute
44284         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
44285
44286 2009-06-07  Bruno Haible  <bruno@clisp.org>
44287
44288         * tests/test-alignof.c: Don't test int64_t if it does not exist.
44289         Reported by Eric Blake.
44290
44291 2009-06-06  Eric Blake  <ebb9@byu.net>
44292
44293         test-alignof: fix typo with long double
44294         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
44295         compiler error.
44296
44297 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
44298
44299         Escape non-texinfo { and }s.
44300         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
44301         markup error.
44302
44303 2009-06-04  Jim Meyering  <meyering@redhat.com>
44304
44305         gitlog-to-changelog: don't infloop on an empty commit log
44306         * build-aux/gitlog-to-changelog: Warn about an empty log message.
44307         Reported by Boris Petersen <transacid@centerim.org>.
44308
44309 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
44310
44311         version-etc: extend for packagers
44312         Add three new configure options, intended for packagers:
44313           --with-packager="packager name"
44314           --with-packager-version="packager-specific version"
44315           --with-packager-bug-reports="packager bug reporting"
44316         An example with coreutils:
44317           $ ./configure \
44318             --with-packager=Gentoo \
44319             --with-packager-bug-report=http://bugs.gentoo.org/ \
44320             --with-packager-version="patchset 1.6"
44321           $ ./src/ls --version | head -n2
44322           ls (GNU coreutils) 7.1-dirty
44323           Packaged by Gentoo (patchset 1.6)
44324         Note that the bug reporting info via --help doesn't show up because
44325         coreutils uses its own custom emit_bug_reporting_address() implementation
44326         in src/system.h.  If it didn't, it'd look like:
44327           $ ./src/ls --help | tail -n4
44328           Report bugs to <bug-coreutils@gnu.org>.
44329           Report Gentoo bugs to <http://bugs.gentoo.org/>.
44330           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
44331           General help using GNU software: <http://www.gnu.org/gethelp/>.
44332         * lib/version-etc.c: Print new information, if provided.
44333         * m4/version-etc.m4: New file.
44334         * modules/version-etc (Files): Add m4/version-etc.m4.
44335         (configure.ac): Add gl_VERSION_ETC.
44336
44337 2009-05-31  Bruno Haible  <bruno@clisp.org>
44338
44339         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
44340         and 'int64_t'.
44341         * modules/alignof-tests (Dependencies): Add stdint.
44342         Reported by Eric Blake.
44343
44344 2009-05-31  Bruno Haible  <bruno@clisp.org>
44345
44346         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
44347         restriction due to compiler bugs.
44348         Reported by Eric Blake.
44349
44350 2009-05-31  Simon Josefsson  <simon@josefsson.org>
44351             Bruno Haible  <bruno@clisp.org>
44352
44353         Fix test-alignof failure.
44354         * lib/alignof.h (alignof_slot): New macro.
44355         (alignof_type): New macro, with the same semantics as the previous
44356         'alignof'.
44357         (alignof): Alias to alignof_slot.
44358         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
44359         check that the results are usable as constant expressions.
44360
44361 2009-05-31  Bruno Haible  <bruno@clisp.org>
44362
44363         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
44364         * tests/test-memchr.c (main): Check that memchr does not read past the
44365         first occurrence of the byte.
44366         * tests/test-strstr.c (main): Update comment.
44367         Suggested by Eric Blake.
44368
44369 2009-05-30  Bruno Haible  <bruno@clisp.org>
44370
44371         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
44372         detail how to use dumpbin.
44373         Reported by David Byron <dbyron@dbyron.com>.
44374
44375 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44376
44377         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
44378
44379 2009-06-02  Simon Josefsson  <simon@josefsson.org>
44380
44381         * m4/manywarnings.m4: Add GCC 4.4 warnings.
44382
44383 2009-05-28  Bruno Haible  <bruno@clisp.org>
44384
44385         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
44386         build-aux/ files.
44387
44388 2009-05-28  Simon Josefsson  <simon@josefsson.org>
44389
44390         * gnulib-tool (func_import): Transform license on build-aux/ files too.
44391
44392 2009-05-27  Simon Josefsson  <simon@josefsson.org>
44393
44394         * gnulib-tool (sed_transform_main_lib_file)
44395         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
44396         regexps.
44397
44398 2009-05-26  Simon Josefsson  <simon@josefsson.org>
44399
44400         * tests/test-strstr.c: Add another self-test.
44401         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
44402         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
44403
44404 2009-05-23  Bruno Haible  <bruno@clisp.org>
44405
44406         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
44407         change.
44408
44409 2009-05-21  Bruno Haible  <bruno@clisp.org>
44410
44411         Simplify use of mode_t varargs.
44412         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
44413         uses 'mode_t' or 'int'.
44414         * lib/openat.c (openat): Likewise.
44415         * lib/open-safer.c (open_safer): Likewise.
44416         * m4/mode_t.m4: New file.
44417         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
44418         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
44419         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
44420         * modules/open (Files): Add m4/mode_t.m4.
44421         * modules/openat (Files): Likewise.
44422         * modules/fcntl-safer (Files): Likewise.
44423         Suggested by Eric Blake.
44424
44425 2009-05-21  Pádraig Brady  <P@draigbrady.com>
44426
44427         * doc/glibc-functions/fallocate.texi: New file.
44428         * doc/gnulib.texi: Include it.
44429
44430 2009-05-21  Eric Blake  <ebb9@byu.net>
44431             Bruno Haible  <bruno@clisp.org>
44432
44433         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
44434         invocations.
44435         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
44436
44437 2009-05-21  Eric Blake  <ebb9@byu.net>
44438             Bruno Haible  <bruno@clisp.org>
44439
44440         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
44441         include_next. Fix of 2008-11-20 commit.
44442         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
44443         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
44444         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
44445         NEXT_MATH_H.
44446         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
44447         instead of NEXT_MATH_H.
44448
44449 2009-05-21  Bruno Haible  <bruno@clisp.org>
44450
44451         Avoid redefinition warnings for SIZE_MAX.
44452         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
44453         Reported by Simon Josefsson.
44454
44455 2009-05-21  Bruno Haible  <bruno@clisp.org>
44456
44457         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
44458         AC_CACHE_VAL.
44459
44460 2009-05-20  Bruno Haible  <bruno@clisp.org>
44461
44462         Make zeroptr.h work on mingw.
44463         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
44464         mprotect.
44465         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
44466         * modules/memchr2-tests (configure.ac): Likewise.
44467         * modules/memcmp-tests (configure.ac): Likewise.
44468         * modules/memmem-tests (configure.ac): Likewise.
44469         * modules/memrchr-tests (configure.ac): Likewise.
44470         Reported by Simon Josefsson.
44471
44472 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44473
44474         * tests/test-glob.c: Include string.h for strcmp prototype.
44475
44476 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44477
44478         * modules/getdelim (Depends-on): Add explicit stdint, although it
44479         was implicitly already pulled in via realloc-posix.
44480         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
44481
44482 2009-05-20  Simon Josefsson  <simon@josefsson.org>
44483
44484         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
44485         G. Christensen" <tgc@jupiterrise.com>.
44486         * m4/sys_socket_h.m4: Check for sa_family_t.
44487         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
44488         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
44489         * tests/test-sys_socket.c: Check that sa_family_t works.
44490
44491 2009-05-18  Eric Blake  <ebb9@byu.net>
44492
44493         maint.mk: allow gnulib_dir in VPATH build
44494         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
44495
44496 2009-05-15  Jim Meyering  <meyering@redhat.com>
44497
44498         maint.mk: Give gnulib_dir a default definition.
44499         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
44500         Thus, most packages no longer need to specify this variable in cfg.mk
44501
44502 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
44503
44504         rename.m4: fix typos that would make non-mingw cross-configure fail
44505         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
44506
44507 2009-05-13  Eric Blake  <ebb9@byu.net>
44508
44509         mmap-anon: avoid out-of-order autoconf expansion
44510         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
44511         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
44512         * modules/memchr-tests (Depends-on): Add extensions.
44513         * modules/memchr2-tests (Depends-on): Add extensions.
44514         * modules/memcmp-tests (Depends-on): Add extensions.
44515         * modules/memmem-tests (Depends-on): Add extensions.
44516         * modules/memrchr-tests (Depends-on): Add extensions.
44517
44518 2009-05-13  Bruno Haible  <bruno@clisp.org>
44519
44520         Make some tests ISO C 99 compliant.
44521         * tests/zerosize-ptr.h: New file.
44522         * tests/test-memchr.c: Include zerosize-ptr.h.
44523         (main): Use a zero-size object pointer instead of NULL.
44524         * tests/test-memchr2.c: Include zerosize-ptr.h.
44525         (main): Use a zero-size object pointer instead of NULL.
44526         * tests/test-memcmp.c: Include zerosize-ptr.h.
44527         (main): Use a zero-size object pointer instead of NULL.
44528         * tests/test-memmem.c: Include zerosize-ptr.h.
44529         (main): Use a zero-size object pointer instead of NULL.
44530         * tests/test-memrchr.c: Include zerosize-ptr.h.
44531         (main): Use a zero-size object pointer instead of NULL.
44532         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
44533         m4/mmap-anon.m4.
44534         (Depends-on): Add getpagesize.
44535         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44536         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
44537         m4/mmap-anon.m4.
44538         (Depends-on): Add getpagesize.
44539         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44540         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
44541         m4/mmap-anon.m4.
44542         (Depends-on): Add getpagesize.
44543         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44544         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
44545         m4/mmap-anon.m4.
44546         (Depends-on): Add getpagesize.
44547         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44548         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
44549         m4/mmap-anon.m4.
44550         (Depends-on): Add getpagesize.
44551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
44552
44553 2009-05-12  Bruno Haible  <bruno@clisp.org>
44554
44555         Tests for module 'alignof'.
44556         * modules/alignof-tests: New file.
44557         * tests/test-alignof.c: New file.
44558
44559 2009-05-12  Bruno Haible  <bruno@clisp.org>
44560
44561         Fix alignof macro.
44562         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
44563         vendor compilers that are always correct.
44564
44565 2009-05-12  Bruno Haible  <bruno@clisp.org>
44566
44567         Make the MAP_ANONYMOUS detection work on HP-UX 11.
44568         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
44569         not whether its fully works.
44570
44571 2009-05-12  Bruno Haible  <bruno@clisp.org>
44572
44573         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
44574
44575 2009-05-12  Jim Meyering  <meyering@redhat.com>
44576
44577         * top/maint.mk: Adjust backslash alignment.
44578
44579 2009-05-11  Simon Josefsson  <simon@josefsson.org>
44580
44581         * top/maint.mk: Make $(srcdir)/build-aux configurable.
44582
44583 2009-05-11  Eric Blake  <ebb9@byu.net>
44584
44585         argp: avoid undefined behavior
44586         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
44587         macros.
44588
44589 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44590
44591         * tests/test-vc-list-files-git.sh: Do git config of user.email and
44592         user.name to prevent git commit from complaining.
44593
44594 2009-05-10  Bruno Haible  <bruno@clisp.org>
44595
44596         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
44597         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
44598         it rewrites every file name only once.
44599         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
44600
44601 2009-05-08  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
44604         instead of 'max'.
44605
44606 2009-05-08  Simon Josefsson  <simon@josefsson.org>
44607
44608         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
44609         sockaddr_storage test.
44610
44611 2009-05-07  Simon Josefsson  <simon@josefsson.org>
44612
44613         * modules/sys_socket (Makefile.am): Substitute
44614         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
44615         * m4/sys_socket_h.m4: Check for sockaddr_storage.
44616         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
44617         * tests/test-sys_socket.c: Check sockaddr_storage.
44618
44619 2009-05-08  Bruno Haible  <bruno@clisp.org>
44620
44621         New module 'alignof'.
44622         * lib/alignof.h: New file.
44623         * modules/alignof: New file.
44624
44625 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44626             Bruno Haible  <bruno@clisp.org>
44627
44628         Fix test-file-has-acl on FreeBSD.
44629         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
44630         mask is implicitly added.
44631         * tests/test-file-has-acl.c: Include <signal.h>.
44632         (main): Terminate the test after 5 seconds.
44633         * modules/acl-tests (configure.ac): Check for alarm function.
44634
44635 2009-05-04  Bruno Haible  <bruno@clisp.org>
44636
44637         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
44638         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
44639         * modules/errno (configure.ac): Drop AC_REQUIRE.
44640         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
44641         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
44642
44643 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44644
44645         * modules/glob-tests: New module.
44646         * tests/test-glob.c: Add.
44647
44648 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44649
44650         * modules/fnmatch-tests: New module.
44651         * tests/test-fnmatch.c: Add.
44652
44653 2009-05-04  Eric Blake  <ebb9@byu.net>
44654
44655         maint: make the new no-submodule-changes rule VPATH-safe
44656         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
44657
44658 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44659             Bruno Haible  <bruno@clisp.org>
44660
44661         acl: Fix infinite loop on FreeBSD.
44662         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
44663         of return value from acl_get_entry.
44664         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
44665         Likewise.
44666
44667 2009-05-03  Bruno Haible  <bruno@clisp.org>
44668
44669         * lib/acl-internal.h (acl_entries): Clarify return value.
44670         * lib/acl_entries.c (acl_entries): Likewise.
44671
44672 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44673
44674         Bug fix in acl module.
44675         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
44676
44677 2009-05-03  Bruno Haible  <bruno@clisp.org>
44678
44679         Create gperf-generated file in the source dir, not in the build dir.
44680         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
44681         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
44682         * modules/unicase/locale-language (unicase/locale-languages.h):
44683         Likewise.
44684         * modules/unicase/special-casing (unicase/special-casing-table.h):
44685         Likewise.
44686         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
44687         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
44688         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
44689         Reported by Ralf Wildenhues.
44690
44691 2009-05-03  Bruno Haible  <bruno@clisp.org>
44692
44693         * modules/fnmatch (Description, configure.ac): Taken from
44694         fnmatch-posix.
44695         * modules/fnmatch-posix: Turn into a symbolic reference to the
44696         'fnmatch' module, and deprecate.
44697         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
44698
44699 2009-05-03  Bruno Haible  <bruno@clisp.org>
44700
44701         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
44702         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
44703         Reported by Ralf Wildenhues.
44704
44705 2009-05-04  Simon Josefsson  <simon@josefsson.org>
44706
44707         * m4/fnmatch.m4: Fix fnmatch re-define.
44708
44709 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
44710
44711         priv-set: new module and tests; adapt write-any-file
44712         * lib/priv-set.c: New file.
44713         * lib/priv-set.h: New file.
44714         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
44715         * lib/write-any-file.c: Simplify by using priv-set module.
44716         * m4/priv-set.m4: New file.
44717         * modules/priv-set: New file.
44718         * modules/unlinkdir: Add dependency on priv-set module.
44719         * modules/write-any-file: Likewise.
44720
44721         Tests for module 'priv-set'.
44722         * modules/priv-set-tests: New file.
44723         * tests/test-priv-set.c: New file.
44724
44725 2009-05-03  Jim Meyering  <meyering@redhat.com>
44726             Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
44729         use the converted UTF-8 variant of the name instead.
44730
44731 2009-05-03  Jim Meyering  <meyering@redhat.com>
44732
44733         tests: tighten some getdate tests
44734         * tests/test-getdate.c (main): Tighten tests: require equality,
44735         not just greater than.  Set TZ envvar to UTC0.
44736
44737 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
44738
44739         getdate: correctly interpret "next monday" when run on a Monday
44740         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
44741         that e.g., "next tues" (when run on a tuesday) results in a date
44742         that is one week in the future, and not today's date.
44743         I.e., add a week when the wday is the same as the current one.
44744         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
44745         and earlier by Martin Bernreuther and Jan Minář.
44746         * tests/test-getdate.c (main): Check that "next DAY" is always in
44747         the future and that "last DAY" is always in the past.
44748
44749 2009-05-02  Jim Meyering  <meyering@redhat.com>
44750
44751         build: ensure that a release build fails when a submodule is unclean
44752         * top/maint.mk (no-submodule-changes): New rule.
44753         (alpha beta major): Depend on it.
44754
44755 2009-05-02  Bruno Haible  <bruno@clisp.org>
44756
44757         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
44758         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
44759         shell variable gl_fnmatch_required to detect which variant is
44760         requested.
44761         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
44762         gl_FUNC_FNMATCH_POSIX.
44763         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
44764         exclude fnmatch-posix.
44765
44766 2009-05-02  Bruno Haible  <bruno@clisp.org>
44767
44768         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
44769         * modules/mbsrtowcs (License): Change to LGPLv2+.
44770         * modules/strnlen1 (License): Likewise.
44771         Reported by Simon Josefsson.
44772
44773 2009-05-02  Bruno Haible  <bruno@clisp.org>
44774
44775         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
44776         "cross".
44777         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
44778         gnulib-tool was called with option --source-base=lib.
44779
44780 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44781
44782         Use automake *-local hooks without commands, for extensibility.
44783         * modules/localcharset (Makefile.am): Rename install-exec-local
44784         rule to install-exec-localcharset, and make it a prerequisite of
44785         install-exec-local.  Likewise, rename the uninstall-local rule to
44786         uninstall-localcharset, and make it a prerequisite of the former.
44787
44788 2009-05-01  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
44791         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44792         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
44793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
44794         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
44795         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44796         m4/locale-zh.m4, m4/codeset.m4.
44797
44798         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
44799         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
44800         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
44801         m4/locale-zh.m4.
44802
44803         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
44804         REPLACE_WCRTOMB if mbstate_t must be replaced.
44805         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
44806         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
44807
44808 2009-05-01  Bruno Haible  <bruno@clisp.org>
44809
44810         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44811         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44812         dngettext, dcngettext, textdomain, bindtextdomain,
44813         bind_textdomain_codeset): Undefine before redefining.
44814
44815 2009-04-30  Bruno Haible  <bruno@clisp.org>
44816
44817         Fix bug introduced on 2009-04-25.
44818         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44819         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44820         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44821         is defined.
44822         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44823         is defined.
44824         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44825         is defined.
44826         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44827
44828 2009-04-28  Bruno Haible  <bruno@clisp.org>
44829
44830         Comment tweaks.
44831         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44832         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44833         * lib/unicase.h (u*_casexfrm): Likewise.
44834         Reported by Paolo Bonzini.
44835
44836 2009-04-28  Bruno Haible  <bruno@clisp.org>
44837
44838         Fix a compilation error.
44839         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44840         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44841         Reported by Jim Meyering.
44842
44843 2009-04-27  Bruno Haible  <bruno@clisp.org>
44844
44845         New module 'libunistring'.
44846         * modules/libunistring: New file.
44847         * m4/libunistring.m4: New file.
44848         * MODULES.html.sh (Unicode string functions): Add it.
44849
44850 2009-04-27  Eric Blake  <ebb9@byu.net>
44851
44852         maint.mk: allow package-specific header to provide <config.h>
44853         * top/maint.mk (sc_require_config_h): New variable.
44854         (sc_require_config_h, sc_require_config_h_first): Use it.
44855
44856 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44857
44858         * top/maint.mk (sc_avoid_if_before_free): Except
44859         useless-if-before-free script.
44860
44861 2009-04-27  Eric Blake  <ebb9@byu.net>
44862
44863         maintainer-makefile: depend on all required helper scripts
44864         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44865         useless-if-before-free.
44866         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44867         version, rather than assuming gnulib checkout is available.
44868         Reported by Simen Josefsson.
44869
44870 2009-04-26  Bruno Haible  <bruno@clisp.org>
44871
44872         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44873         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44874         "../" or "..".
44875
44876 2009-04-26  Bruno Haible  <bruno@clisp.org>
44877
44878         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44879         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44880         AC_LIB_HAVE_LINKFLAGS.
44881
44882 2009-04-26  Bruno Haible  <bruno@clisp.org>
44883
44884         Simplify calling convention of u*_conv_from_encoding.
44885         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44886         u32_conv_from_encoding): Expect a resultbuf argument and return the
44887         result directly as a pointer.
44888         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44889         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44890         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44891         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44892         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44893         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44894         Update.
44895         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44896         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44897         * lib/vasnprintf.c (VASNPRINTF): Update.
44898         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44899         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44900         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44901         * NEWS: Mention the change.
44902
44903 2009-04-26  Bruno Haible  <bruno@clisp.org>
44904
44905         Simplify calling convention of u*_conv_to_encoding.
44906         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44907         u32_conv_to_encoding): Expect a resultbuf argument and return the
44908         result directly as a pointer.
44909         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44910         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44911         freeing scaled_offsets if mem_iconveha failed.
44912         * lib/unicase/u-casexfrm.h (FUNC): Update.
44913         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44914         * lib/vasnprintf.c (VASNPRINTF): Update.
44915         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44916         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44917         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44918         * NEWS: Mention the change.
44919
44920 2009-04-26  Bruno Haible  <bruno@clisp.org>
44921
44922         Avoid test failures on AIX and OSF/1.
44923         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44924         malloc(0).
44925         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44926         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44927         Likewise.
44928         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44929         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44930         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44931         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44932         * doc/posix-functions/malloc.texi: Document the portability problem
44933         related to malloc(0).
44934
44935 2009-04-26  Bruno Haible  <bruno@clisp.org>
44936
44937         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44938         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44939         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44940
44941 2009-04-25  Bruno Haible  <bruno@clisp.org>
44942
44943         Avoid link error when creating a namespace clean library.
44944         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44945         as macro with arguments if already defined as an alias.
44946         * lib/signbitf.c (gl_signbitf): Don't undefine.
44947         * lib/signbitd.c (gl_signbitd): Don't undefine.
44948         * lib/signbitl.c (gl_signbitl): Don't undefine.
44949
44950 2009-04-25  Jim Meyering  <meyering@redhat.com>
44951
44952         vc-list-files: fix another quoting bug
44953         * build-aux/vc-list-files: Avoid sed backslash expansion
44954         of pathological directory names.
44955
44956 2009-04-25  Eric Blake  <ebb9@byu.net>
44957
44958         vc-list-files: fix shell quoting error
44959         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44960         timestamp.
44961
44962 2009-04-25  Jim Meyering  <meyering@redhat.com>
44963
44964         vc-list-files: restore lost functionality with subdir argument
44965         * build-aux/vc-list-files: When given a non-"." sub-directory
44966         argument, substitute the $dir/ prefix back onto each resulting name.
44967         Otherwise, coreutils' root_tests check would fail.
44968
44969 2009-04-24  Eric Blake  <ebb9@byu.net>
44970
44971         vc-list-files: ignore git symlinks
44972         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44973         than ls-files, to ignore git symlinks.
44974
44975         maint.mk: import improvements from m4
44976         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44977         (move_if_change): Delete unused macro.
44978         (news-date-check, vc-diff-check): Support VPATH builds.
44979         (announcement): Likewise.  Split --bootstrap-tools list...
44980         (boostrap-tools): ...into separate list, which can be overridden
44981         in cfg.mk.
44982         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44983         requiring dependency on useless-if-before-free module.
44984         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44985         Support VPATH builds.
44986
44987 2009-04-24  Jim Meyering  <meyering@redhat.com>
44988
44989         maint.mk: remove coreutils-specific rules and variables
44990         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44991         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44992         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44993
44994         maint.mk: remove obsolete rule
44995         * top/maint.mk (rel-check): Remove rule.
44996         (WGET, WGETFLAGS): Remove now-unused variables.
44997
44998 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44999
45000         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
45001         consistency.
45002
45003         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
45004         '$(PATH_SEPARATOR)' instead of ':'.
45005
45006 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45007
45008         * lib/getopt1.c (main): Use 'const' for static array.
45009
45010 2009-04-24  Simon Josefsson  <simon@josefsson.org>
45011
45012         * top/maint.mk: Sync with coreutils.
45013         * NEWS: Explain incompatibilities.
45014
45015 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45016             Bruno Haible  <bruno@clisp.org>
45017
45018         Fix cross-compilation results.
45019         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
45020         statement, as third argument of AC_TRY_RUN.
45021         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
45022         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
45023         Likewise.
45024         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
45025         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
45026         Likewise.
45027         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
45028         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
45029         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
45030
45031 2009-04-20  Bruno Haible  <bruno@clisp.org>
45032
45033         Avoid test failure on mingw.
45034         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
45035
45036 2009-04-20  Bruno Haible  <bruno@clisp.org>
45037
45038         Avoid compilation error on mingw.
45039         * modules/localename-tests (Depends-on): Add locale.
45040
45041 2009-04-19  Bruno Haible  <bruno@clisp.org>
45042
45043         Support for building a shared library on Windows platforms.
45044         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
45045         (main): Test the presence of UNINORM_NFC here.
45046         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
45047         (main): Test the presence of UNINORM_NFD here.
45048         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
45049         (main): Test the presence of UNINORM_NFKC here.
45050         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
45051         (main): Test the presence of UNINORM_NFKD here.
45052
45053 2009-04-19  Bruno Haible  <bruno@clisp.org>
45054
45055         Avoid a compiler warning.
45056         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
45057         Change type of variable 'sequence'.
45058
45059 2009-04-19  Bruno Haible  <bruno@clisp.org>
45060
45061         * modules/configmake (Makefile.am): When the contents of configmake.h
45062         does not change, arrange to preserve its modification time.
45063
45064 2009-04-17  Simon Josefsson  <simon@josefsson.org>
45065
45066         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
45067         gettext domain.
45068
45069 2009-04-16  Jim Meyering  <meyering@redhat.com>
45070
45071         useless-if-before-free: improve conversion code
45072         * build-aux/useless-if-before-free: Adjust code-in-comment to match
45073         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
45074
45075 2009-04-14  Bruno Haible  <bruno@clisp.org>
45076
45077         * modules/fcntl (Depends-on): Add extensions.
45078         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
45079
45080 2009-04-12  Ben Pfaff  <blp@gnu.org>
45081
45082         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
45083         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
45084
45085 2009-03-20  Ben Pfaff  <blp@gnu.org>
45086
45087         Make rename replace existing destinations on Windows.
45088         * m4/rename.m4: Add test for Mingw.
45089         * lib/rename.c: Add rename replacement that uses MoveFileEx with
45090         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
45091         * doc/posix-functions/rename.texi: Document.
45092
45093 2009-04-10  Bruno Haible  <bruno@clisp.org>
45094
45095         New include file "iconveh.h".
45096         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
45097         * lib/striconveh.h: Include it.
45098         (enum iconv_ilseq_handler): Remove definition.
45099         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
45100         striconveh.h.
45101         * lib/striconveha.c: Include striconveh.h.
45102         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
45103         * modules/striconveh (Files): Add lib/iconveh.h.
45104         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
45105         lib/striconveh.h.
45106
45107 2009-04-10  Bruno Haible  <bruno@clisp.org>
45108
45109         * lib/uniconv.h: Update comment.
45110
45111 2009-04-10  Bruno Haible  <bruno@clisp.org>
45112
45113         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
45114         always.
45115         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
45116         * lib/unistr/u16-mbtouc-aux.c: Likewise.
45117         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
45118         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
45119         "unistring-notinline.h", so that the function gets defined always.
45120         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
45121         * lib/unistr/u8-uctomb.c: Likewise.
45122         * lib/unistr/u16-mbtouc.c: Likewise.
45123         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
45124         * lib/unistr/u16-uctomb.c: Likewise.
45125         * lib/unistr/u32-mbtouc.c: Likewise.
45126         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
45127         * lib/unistr/u32-uctomb.c: Likewise.
45128
45129 2009-04-10  Bruno Haible  <bruno@clisp.org>
45130
45131         Mark 'utime' obsolete.
45132         * modules/utime (Status, Notice): New sections.
45133         Suggested by Jim Meyering.
45134
45135         Fix cross-compile guess for utime test.
45136         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
45137         autoconf.
45138         * doc/posix-functions/utime.texi: Give more precisions.
45139         Reported by Jan <ipif@ymail.com>.
45140
45141 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
45142
45143         filevercmp: correct today's change
45144         * lib/filevercmp.c: Also handle coreutils' test inputs.
45145         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
45146
45147         Fix regression in 'filevercmp' module. Thanks Sven Joachim
45148         for reporting it.
45149         * lib/filevercmp.c: Special handle for "", "." and "..".
45150         * tests/test-filevercmp.c: Enlarge the set suite.
45151
45152 2009-04-07  Jim Meyering  <meyering@redhat.com>
45153
45154         useless-if-before-free: show how to remove braced useless free, too
45155         * build-aux/useless-if-before-free: still only in a comment, though.
45156
45157 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
45158
45159         maint.mk: import changes to syntax-check macros from coreutils
45160         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
45161         Use them in the relevant macros.
45162
45163 2009-04-06  Bruno Haible  <bruno@clisp.org>
45164
45165         Fix unportable use of bit-fields.
45166         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
45167         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
45168         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
45169
45170 2009-04-06  Bruno Haible  <bruno@clisp.org>
45171
45172         Avoid test failures on AIX and OSF/1.
45173         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
45174         that malloc(0) = NULL.
45175         * tests/unicase/test-u8-tolower.c (check): Likewise.
45176         * tests/unicase/test-u8-totitle.c (check): Likewise.
45177         * tests/unicase/test-u8-toupper.c (check): Likewise.
45178         * tests/unicase/test-u16-casefold.c (check): Likewise.
45179         * tests/unicase/test-u16-tolower.c (check): Likewise.
45180         * tests/unicase/test-u16-totitle.c (check): Likewise.
45181         * tests/unicase/test-u16-toupper.c (check): Likewise.
45182         * tests/unicase/test-u32-casefold.c (check): Likewise.
45183         * tests/unicase/test-u32-tolower.c (check): Likewise.
45184         * tests/unicase/test-u32-totitle.c (check): Likewise.
45185         * tests/unicase/test-u32-toupper.c (check): Likewise.
45186         * tests/uninorm/test-u8-nfc.c (check): Likewise.
45187         * tests/uninorm/test-u8-nfd.c (check): Likewise.
45188         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
45189         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
45190         * tests/uninorm/test-u16-nfc.c (check): Likewise.
45191         * tests/uninorm/test-u16-nfd.c (check): Likewise.
45192         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
45193         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
45194         * tests/uninorm/test-u32-nfc.c (check): Likewise.
45195         * tests/uninorm/test-u32-nfd.c (check): Likewise.
45196         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
45197         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
45198
45199 2009-04-05  Bruno Haible  <bruno@clisp.org>
45200
45201         Work around an autoconf limitation.
45202         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
45203         comment line if it would be longer than 3 KB.
45204
45205 2009-04-05  Bruno Haible  <bruno@clisp.org>
45206
45207         Avoid test failure with libiconv-1.13.
45208         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
45209         of the expected test results.
45210
45211 2009-04-05  Bruno Haible  <bruno@clisp.org>
45212
45213         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
45214         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
45215         that it should be installed.
45216
45217 2009-04-05  Bruno Haible  <bruno@clisp.org>
45218
45219         * gnulib-tool: New option --copy-file.
45220         (func_usage): Document it.
45221         (func_dest_tmpfilename): Moved out of func_import.
45222         (func_add_file, func_update_file): New functions, extracted from
45223         func_import.
45224         (func_import): Update.
45225
45226 2009-04-05  Karl Berry  <karl@gnu.org>
45227
45228         * README: prominently mention gnulib-tool.
45229         Rearrange sections so getting the code is near the top.
45230
45231 2009-04-05  Bruno Haible  <bruno@clisp.org>
45232
45233         * lib/unicase.h: Mention u*_cmp2.
45234         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45235         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
45236         * lib/unicase/ulc-casecmp.c: Likewise.
45237         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
45238         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
45239         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
45240         unistr/u8-cmp.
45241         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
45242         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
45243         unistr/u16-cmp.
45244         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
45245         unistr/u32-cmp.
45246
45247         * lib/uninorm.h: Mention u*_cmp2.
45248         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
45249         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
45250         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
45251         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
45252         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
45253         unistr/u8-cmp.
45254         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
45255         unistr/u16-cmp.
45256         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
45257         unistr/u32-cmp.
45258
45259         New module 'unistr/u32-cmp2'.
45260         * lib/unistr/u32-cmp2.c: New file.
45261         * modules/unistr/u32-cmp2: New file.
45262
45263         New module 'unistr/u16-cmp2'.
45264         * lib/unistr/u16-cmp2.c: New file.
45265         * modules/unistr/u16-cmp2: New file.
45266
45267         New module 'unistr/u8-cmp2'.
45268         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
45269         * lib/unistr/u8-cmp2.c: New file.
45270         * lib/unistr/u-cmp2.h: New file.
45271         * modules/unistr/u8-cmp2: New file.
45272
45273 2009-04-05  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/unictype.h (uc_property_is_valid): New macro.
45276         * tests/unictype/test-pr_byname.c (main): Use it.
45277
45278         * lib/unistr.h: Doc fixes.
45279         * lib/uniconv.h: Doc fixes.
45280         * lib/unictype.h: Doc fixes.
45281
45282 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
45283
45284         Port coreutils 7.2 to Solaris 8.
45285
45286         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
45287         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
45288         for Solaris 8.  This is a bit of a hack, as it means it's the
45289         caller's responsibility to add -lnsl if needed, but most likely it
45290         won't be needed since only getaddrinfo uses this and getaddrinfo
45291         isn't needed on Solaris 8.
45292
45293         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
45294         problem to Solaris 8 encountered with coreutils 7.2, which
45295         resulted in a message "fnmatch.c:292: warning: passing argument 4
45296         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
45297         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
45298
45299 2009-04-03  Simon Josefsson  <simon@josefsson.org>
45300
45301         * m4/ld-version-script.m4: Add FIXME comment.
45302
45303 2009-04-02  Simon Josefsson  <simon@josefsson.org>
45304
45305         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
45306         SOVERSION variable.
45307
45308 2009-04-02  Bruno Haible  <bruno@clisp.org>
45309
45310         * Makefile (info, html, dvi, pdf): Combine the rules.
45311         Suggested by Jim Meyering.
45312
45313 2009-04-01  Bruno Haible  <bruno@clisp.org>
45314
45315         * Makefile (info, html, dvi, pdf): New targets.
45316         Reported by Reuben Thomas <rrt@sc3d.org>.
45317
45318 2009-04-01  Bruno Haible  <bruno@clisp.org>
45319
45320         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
45321         can be put into PATH.
45322         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
45323
45324 2009-04-01  Bruno Haible  <bruno@clisp.org>
45325
45326         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
45327
45328 2009-04-01  Bruno Haible  <bruno@clisp.org>
45329
45330         Rename module 'visibility'.
45331         * modules/lib-symbol-visibility: Renamed from modules/visibility.
45332         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
45333         * doc/gnulib.texi: Update.
45334         * MODULES.html.sh (Misc): Update.
45335         * NEWS: Mention the change.
45336
45337 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45338
45339         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
45340         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
45341         Eric Blake <ebb9@byu.net> for review.
45342         * MODULES.html.sh: Add lib-msvc-compat.
45343         * doc/gnulib.texi: Link to new section.
45344         * m4/ld-output-def.m4: New file.
45345         * doc/ld-output-def.texi: New file.
45346
45347 2009-04-01  Simon Josefsson  <simon@josefsson.org>
45348
45349         Rename ld-version-script to lib-symbol-versions.  Suggested by
45350         Bruno Haible <bruno@clisp.org>.
45351         * modules/ld-version-script: Renamed to lib-symbol-versions.
45352         * doc/ld-version-script.texi: Fix module name.
45353         * MODULES.html.sh: Add lib-symbol-versions.
45354
45355 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45356
45357         * modules/u64-tests: New file.
45358         * tests/test-u64.c: New file.
45359
45360 2009-03-04  Simon Josefsson  <simon@josefsson.org>
45361
45362         * MODULES.html.sh: Mention u64.
45363         * modules/u64: New module.
45364         * modules/crypto/sha512: Depend on u64 module instead of providing
45365         u64.h.
45366
45367 2009-03-27  Eric Blake  <ebb9@byu.net>
45368
45369         test-strerror: make debugging EAI_SYSTEM easier
45370         * modules/getaddrinfo-tests (Depends-on): Add strerror.
45371         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
45372         failure was EAI_SYSTEM.
45373
45374 2009-03-25  Bruno Haible  <bruno@clisp.org>
45375
45376         Fix a problem with --enable-relocatable on Solaris 7.
45377         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
45378         since 2008-02-24.
45379
45380 2009-03-25  Eric Blake  <ebb9@byu.net>
45381
45382         test-sockets: avoid gcc warning
45383         * tests/test-sockets.c (main): Silence compiler warning.
45384
45385 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
45386
45387         New modules nproc, pthread, contributed by Glen Lenker.
45388
45389         * MODULES.html.sh: Add pthread, nproc.
45390         * lib/nproc.c: New file.
45391         * lib/nproc.h: New file.
45392         * lib/pthread.in.h: New file.
45393         * m4/pthread.m4: New file.
45394         * modules/nproc: New file.
45395         * modules/pthread: New file.
45396
45397 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45398
45399         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
45400         New variable.
45401
45402 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
45403
45404         filevercmp: handle simple~ and numbered.~3~ backup suffixes
45405         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
45406         * tests/test-filevercmp.c: Add tests for backup suffixes.
45407
45408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45409
45410         * modules/stdlib (Depends-on): Add stdint, needed when defining
45411         struct random_data on, for example, HP-UX 10.20.  Reported by
45412         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45413
45414 2009-03-24  Simon Josefsson  <simon@josefsson.org>
45415
45416         * lib/readline.c (readline): Call fflush on stdout after printing
45417         prompt.
45418
45419 2009-03-20  Bruno Haible  <bruno@clisp.org>
45420
45421         Remove dependency from 'close' module to -lws2_32 on native Windows.
45422         * lib/close-hook.h: New file.
45423         * lib/close-hook.c: New file.
45424         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
45425         w32sock.h.
45426         (_gl_close_fd_maybe_socket): Remove function.
45427         (rpl_close): Invoke execute_all_close_hooks instead of
45428         _gl_close_fd_maybe_socket.
45429         * lib/sockets.c: Include close-hook.h, w32sock.h.
45430         (close_fd_maybe_socket): New function, essentially from lib/close.c.
45431         (close_sockets_hook): New variable.
45432         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
45433         (gl_sockets_cleanup): Unregister it.
45434         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
45435         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
45436         * modules/close-hook: New file.
45437         * modules/close (Files): Remove lib/w32sock.h.
45438         (Depends-on): Add close-hook.
45439         (Link): Remove section.
45440         * modules/sockets (Files): Add lib/w32sock.h.
45441         (Depends-on): Add close-hook.
45442         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
45443         invocation.
45444         * NEWS: Mention that LIB_CLOSE is gone.
45445
45446 2009-03-23  Eric Blake  <ebb9@byu.net>
45447
45448         signal-tests: test previous patch
45449         * tests/test-signal.c: New file.
45450         * modules/signal-tests: Likewise.
45451
45452         signal.h: always support 'volatile sig_atomic_t'
45453         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
45454         (gl_SIGNAL_H_DEFAULTS): Add a default.
45455         * modules/signal (Makefile.am): Substitute if needed.
45456         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
45457         users can blindly add volatile.
45458         * doc/posix-headers/signal.texi (signal.h): Document it.
45459         Reported by Matthew Woehlke.
45460
45461 2009-03-23  Jim Meyering  <meyering@redhat.com>
45462
45463         pathmax: PATH_MAX: use pathconf only when available
45464         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
45465         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
45466         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
45467         This avoids a link failure in a PSP cross-compilation environment
45468         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
45469
45470         * lib/vasnprintf.c (divide): Fix typo in comment.
45471
45472 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45473
45474         * gnulib-tool (func_filter_filelist): Fix comment.
45475
45476 2009-03-20  Bruno Haible  <bruno@clisp.org>
45477
45478         Make sockets.h self-contained.
45479         * lib/sockets.c: Include sockets.h first.
45480         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
45481
45482 2009-03-19  Eric Blake  <ebb9@byu.net>
45483
45484         doc: mention more functions added in cygwin 1.7.0
45485         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
45486         addition.
45487         * doc/posix-functions/log2f.texi: Likewise.
45488
45489 2009-03-19  Jim Meyering  <meyering@redhat.com>
45490
45491         fsusage: avoid syntax error due to statement-before-declaration
45492         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
45493         after all declarations.  Reported by Matthew Woehlke in
45494         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
45495
45496 2009-03-18  Eric Blake  <ebb9@byu.net>
45497
45498         build-aux/compile: sync from automake
45499         * build-aux/compile: New file, from automake.
45500         * config/srclist.txt: Mention build-aux/compile.
45501
45502 2009-03-17  Bruno Haible  <bruno@clisp.org>
45503
45504         * lib/git-merge-changelog.c: Fix typo in comment.
45505         Reported by Reuben Thomas <rrt@sc3d.org>.
45506
45507 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
45508
45509         * m4/regex.m4: update and improve help for
45510         --without-included-regex.
45511
45512 2009-03-17  Simon Josefsson  <simon@josefsson.org>
45513
45514         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
45515         failure on missing include files.
45516
45517 2009-03-17  Eric Blake  <ebb9@byu.net>
45518
45519         doc: mention more functions added in cygwin 1.7.0
45520         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
45521         addition.
45522         * doc/posix-functions/fwscanf.texi: Likewise.
45523         * doc/posix-functions/swprintf.texi: Likewise.
45524         * doc/posix-functions/swscanf.texi: Likewise.
45525         * doc/posix-functions/vfwprintf.texi: Likewise.
45526         * doc/posix-functions/vfwscanf.texi: Likewise.
45527         * doc/posix-functions/vswprintf.texi: Likewise.
45528         * doc/posix-functions/vswscanf.texi: Likewise.
45529         * doc/posix-functions/vwprintf.texi: Likewise.
45530         * doc/posix-functions/vwscanf.texi: Likewise.
45531         * doc/posix-functions/wcscasecmp.texi: Likewise.
45532         * doc/posix-functions/wcsdup.texi: Likewise.
45533         * doc/posix-functions/wcsftime.texi: Likewise.
45534         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45535         * doc/posix-functions/wprintf.texi: Likewise.
45536         * doc/posix-functions/wscanf.texi: Likewise.
45537         * doc/glibc-functions/gethostbyname2.texi: Likewise.
45538
45539 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45540
45541         maint.mk: really add $(AM_MAKEFLAGS)
45542         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
45543         was inadvertently omitted in the last commit.
45544         Spotted by Bruno Haible.
45545
45546         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
45547         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
45548         $(AM_MAKEFLAGS)' rather than plain `make'.
45549
45550         gnulib-tool: execute $MAKE not make
45551         * gnulib-tool: Default $MAKE to 'make'.
45552         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
45553         than make.  Initialize $MAKE in the do-autobuild script.
45554
45555         gnulib-tool: use $MAKE not make in generated files
45556         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
45557         make, in generated files.  Initialize $MAKE in the do-autobuild
45558         script.
45559
45560         * top/GNUmakefile (_have-git-version-gen): Fix typo.
45561
45562         GNUmakefile: disable parallelism only for multiple, recursive targets
45563         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
45564         additions in the Makefile.
45565         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
45566         by Automake.
45567         (.NOTPARALLEL): Only disable parallel builds if multiple targets
45568         are listed on the command line and at least one of them is
45569         listed in $(ALL_RECURSIVE_TARGETS).
45570
45571 2009-03-14  Bruno Haible  <bruno@clisp.org>
45572
45573         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
45574         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
45575         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
45576         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
45577         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
45578         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
45579         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
45580         unistr/u8-uctomb.
45581         * modules/unistr/u8-strchr (Depends-on): Likewise.
45582         * modules/unistr/u8-strrchr (Depends-on): Likewise.
45583         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
45584         unistr/u16-uctomb.
45585         * modules/unistr/u16-strchr (Depends-on): Likewise.
45586         * modules/unistr/u16-strrchr (Depends-on): Likewise.
45587
45588 2009-03-12  Bruno Haible  <bruno@clisp.org>
45589
45590         Work around select() bug on Interix 3.5.
45591         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
45592         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
45593         * m4/select.m4: New file.
45594         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
45595         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
45596         * modules/select (Files): Add m4/select.m4.
45597         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
45598         * modules/nanosleep (Depends-on): Add select.
45599         * modules/poll (Depends-on): Likewise.
45600         * doc/posix-functions/select.texi: Mention the Interix bug.
45601         Reported by Markus Duft <mduft@gentoo.org>.
45602
45603         * lib/select.c: Renamed from lib/winsock-select.c.
45604         * modules/select (Files): Add lib/select.c, remove
45605         lib/winsock-select.c.
45606         (configure.ac): Update.
45607
45608 2009-03-12  Jim Meyering  <meyering@redhat.com>
45609
45610         avoid gcc warnings about unused macro definitions
45611         * lib/readtokens.c (STREQ): Remove unused definition.
45612         * lib/xmalloc.c (SIZE_MAX): Likewise.
45613         * lib/openat-die.c (N_): Likewise.
45614         * lib/mountlist.c (SIZE_MAX): Remove definition.
45615         Instead, include <stdint.h>.
45616         * lib/readutmp.c: Likewise.
45617         * modules/readutmp (Depends-on): Add stdint.
45618         * modules/mountlist (Depends-on): Add stdint.
45619         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
45620
45621 2009-03-10  Bruno Haible  <bruno@clisp.org>
45622
45623         Tests for module 'mbmemcasecoll'.
45624         * modules/mbmemcasecoll-tests: New file.
45625         * tests/test-mbmemcasecoll1.sh: New file.
45626         * tests/test-mbmemcasecoll2.sh: New file.
45627         * tests/test-mbmemcasecoll3.sh: New file.
45628         * tests/test-mbmemcasecoll.c: New file.
45629
45630         New module 'mbmemcasecoll'.
45631         * lib/mbmemcasecoll.h: New file.
45632         * lib/mbmemcasecoll.c: New file.
45633         * modules/mbmemcasecoll: New file.
45634
45635         * tests/test-mbmemcasecmp.h: New file, extracted from
45636         tests/test-mbmemcasecmp.c.
45637         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
45638         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
45639         (main): Update.
45640         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
45641
45642 2009-03-09  Bruno Haible  <bruno@clisp.org>
45643
45644         Tests for module 'mbmemcasecmp'.
45645         * modules/mbmemcasecmp-tests: New file.
45646         * tests/test-mbmemcasecmp1.sh: New file.
45647         * tests/test-mbmemcasecmp2.sh: New file.
45648         * tests/test-mbmemcasecmp3.sh: New file.
45649         * tests/test-mbmemcasecmp.c: New file.
45650
45651         New module 'mbmemcasecmp'.
45652         * lib/mbmemcasecmp.h: New file.
45653         * lib/mbmemcasecmp.c: New file.
45654         * modules/mbmemcasecmp: New file.
45655
45656 2009-03-09  Bruno Haible  <bruno@clisp.org>
45657
45658         Tests for module 'unicase/ulc-casecoll'.
45659         * modules/unicase/ulc-casecoll-tests: New file.
45660         * tests/unicase/test-ulc-casecoll1.sh: New file.
45661         * tests/unicase/test-ulc-casecoll2.sh: New file.
45662         * tests/unicase/test-ulc-casecoll.c: New file.
45663
45664         New module 'unicase/ulc-casecoll'.
45665         * lib/unicase.h (ulc_casecoll): New declaration.
45666         * lib/unicase/ulc-casecoll.c: New file.
45667         * modules/unicase/ulc-casecoll: New file.
45668
45669         New module 'unicase/ulc-casexfrm'.
45670         * lib/unicase.h (ulc_casexfrm): New declaration.
45671         * lib/unicase/ulc-casexfrm.c: New file.
45672         * modules/unicase/ulc-casexfrm: New file.
45673
45674 2009-03-09  Bruno Haible  <bruno@clisp.org>
45675
45676         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
45677         invocations.
45678
45679         * m4/mbscasecmp.m4: Remove file.
45680         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
45681         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
45682
45683         * m4/mbscasestr.m4: Remove file.
45684         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
45685         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
45686
45687         * m4/mbschr.m4: Remove file.
45688         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
45689         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
45690
45691         * m4/mbscspn.m4: Remove file.
45692         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
45693         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
45694
45695         * m4/mbslen.m4: Remove file.
45696         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
45697         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
45698
45699         * m4/mbsncasecmp.m4: Remove file.
45700         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
45701         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
45702
45703         * m4/mbsnlen.m4: Remove file.
45704         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
45705         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
45706
45707         * m4/mbspbrk.m4: Remove file.
45708         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
45709         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
45710
45711         * m4/mbspcasecmp.m4: Remove file.
45712         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
45713         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
45714
45715         * m4/mbsrchr.m4: Remove file.
45716         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
45717         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
45718
45719         * m4/mbssep.m4: Remove file.
45720         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
45721         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
45722
45723         * m4/mbsspn.m4: Remove file.
45724         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
45725         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
45726
45727         * m4/mbsstr.m4: Remove file.
45728         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
45729         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
45730
45731         * m4/mbstok_r.m4: Remove file.
45732         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
45733         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
45734
45735         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
45736
45737         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
45738         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
45739
45740         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
45741
45742 2009-03-08  Bruno Haible  <bruno@clisp.org>
45743
45744         Tests for module 'unicase/ulc-casecmp'.
45745         * modules/unicase/ulc-casecmp-tests: New file.
45746         * tests/unicase/test-ulc-casecmp1.sh: New file.
45747         * tests/unicase/test-ulc-casecmp2.sh: New file.
45748         * tests/unicase/test-ulc-casecmp.c: New file.
45749
45750         New module 'unicase/ulc-casecmp'.
45751         * lib/unicase.h (ulc_casecmp): New declaration.
45752         * lib/unicase/ulc-casecmp.c: New file.
45753         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
45754         'const SRC_UNIT *'.
45755         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
45756         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
45757         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
45758         * modules/unicase/ulc-casecmp: New file.
45759
45760         Tests for module 'unicase/u32-is-cased'.
45761         * modules/unicase/u32-is-cased-tests: New file.
45762         * tests/unicase/test-u32-is-cased.c: New file.
45763
45764         Tests for module 'unicase/u16-is-cased'.
45765         * modules/unicase/u16-is-cased-tests: New file.
45766         * tests/unicase/test-u16-is-cased.c: New file.
45767
45768         Tests for module 'unicase/u8-is-cased'.
45769         * modules/unicase/u8-is-cased-tests: New file.
45770         * tests/unicase/test-u8-is-cased.c: New file.
45771         * tests/unicase/test-is-cased.h: New file.
45772
45773         New module 'unicase/u32-is-cased'.
45774         * lib/unicase/u32-is-cased.c: New file.
45775         * modules/unicase/u32-is-cased: New file.
45776
45777         New module 'unicase/u16-is-cased'.
45778         * lib/unicase/u16-is-cased.c: New file.
45779         * modules/unicase/u16-is-cased: New file.
45780
45781         New module 'unicase/u8-is-cased'.
45782         * lib/unicase/u8-is-cased.c: New file.
45783         * lib/unicase/u-is-cased.h: New file.
45784         * modules/unicase/u8-is-cased: New file.
45785
45786         Tests for module 'unicase/u32-is-casefolded'.
45787         * modules/unicase/u32-is-casefolded-tests: New file.
45788         * tests/unicase/test-u32-is-casefolded.c: New file.
45789
45790         Tests for module 'unicase/u16-is-casefolded'.
45791         * modules/unicase/u16-is-casefolded-tests: New file.
45792         * tests/unicase/test-u16-is-casefolded.c: New file.
45793
45794         Tests for module 'unicase/u8-is-casefolded'.
45795         * modules/unicase/u8-is-casefolded-tests: New file.
45796         * tests/unicase/test-u8-is-casefolded.c: New file.
45797         * tests/unicase/test-is-casefolded.h: New file.
45798
45799         New module 'unicase/u32-is-casefolded'.
45800         * lib/unicase/u32-is-casefolded.c: New file.
45801         * modules/unicase/u32-is-casefolded: New file.
45802
45803         New module 'unicase/u16-is-casefolded'.
45804         * lib/unicase/u16-is-casefolded.c: New file.
45805         * modules/unicase/u16-is-casefolded: New file.
45806
45807         New module 'unicase/u8-is-casefolded'.
45808         * lib/unicase/u8-is-casefolded.c: New file.
45809         * modules/unicase/u8-is-casefolded: New file.
45810
45811         Tests for module 'unicase/u32-is-titlecase'.
45812         * modules/unicase/u32-is-titlecase-tests: New file.
45813         * tests/unicase/test-u32-is-titlecase.c: New file.
45814
45815         Tests for module 'unicase/u16-is-titlecase'.
45816         * modules/unicase/u16-is-titlecase-tests: New file.
45817         * tests/unicase/test-u16-is-titlecase.c: New file.
45818
45819         Tests for module 'unicase/u8-is-titlecase'.
45820         * modules/unicase/u8-is-titlecase-tests: New file.
45821         * tests/unicase/test-u8-is-titlecase.c: New file.
45822         * tests/unicase/test-is-titlecase.h: New file.
45823
45824         New module 'unicase/u32-is-titlecase'.
45825         * lib/unicase/u32-is-titlecase.c: New file.
45826         * modules/unicase/u32-is-titlecase: New file.
45827
45828         New module 'unicase/u16-is-titlecase'.
45829         * lib/unicase/u16-is-titlecase.c: New file.
45830         * modules/unicase/u16-is-titlecase: New file.
45831
45832         New module 'unicase/u8-is-titlecase'.
45833         * lib/unicase/u8-is-titlecase.c: New file.
45834         * modules/unicase/u8-is-titlecase: New file.
45835
45836         Tests for module 'unicase/u32-is-lowercase'.
45837         * modules/unicase/u32-is-lowercase-tests: New file.
45838         * tests/unicase/test-u32-is-lowercase.c: New file.
45839
45840         Tests for module 'unicase/u16-is-lowercase'.
45841         * modules/unicase/u16-is-lowercase-tests: New file.
45842         * tests/unicase/test-u16-is-lowercase.c: New file.
45843
45844         Tests for module 'unicase/u8-is-lowercase'.
45845         * modules/unicase/u8-is-lowercase-tests: New file.
45846         * tests/unicase/test-u8-is-lowercase.c: New file.
45847         * tests/unicase/test-is-lowercase.h: New file.
45848
45849         New module 'unicase/u32-is-lowercase'.
45850         * lib/unicase/u32-is-lowercase.c: New file.
45851         * modules/unicase/u32-is-lowercase: New file.
45852
45853         New module 'unicase/u16-is-lowercase'.
45854         * lib/unicase/u16-is-lowercase.c: New file.
45855         * modules/unicase/u16-is-lowercase: New file.
45856
45857         New module 'unicase/u8-is-lowercase'.
45858         * lib/unicase/u8-is-lowercase.c: New file.
45859         * modules/unicase/u8-is-lowercase: New file.
45860
45861         Tests for module 'unicase/u32-is-uppercase'.
45862         * modules/unicase/u32-is-uppercase-tests: New file.
45863         * tests/unicase/test-u32-is-uppercase.c: New file.
45864
45865         Tests for module 'unicase/u16-is-uppercase'.
45866         * modules/unicase/u16-is-uppercase-tests: New file.
45867         * tests/unicase/test-u16-is-uppercase.c: New file.
45868
45869         Tests for module 'unicase/u8-is-uppercase'.
45870         * modules/unicase/u8-is-uppercase-tests: New file.
45871         * tests/unicase/test-u8-is-uppercase.c: New file.
45872         * tests/unicase/test-is-uppercase.h: New file.
45873
45874         New module 'unicase/u32-is-uppercase'.
45875         * lib/unicase/u32-is-uppercase.c: New file.
45876         * modules/unicase/u32-is-uppercase: New file.
45877
45878         New module 'unicase/u16-is-uppercase'.
45879         * lib/unicase/u16-is-uppercase.c: New file.
45880         * modules/unicase/u16-is-uppercase: New file.
45881
45882         New module 'unicase/u8-is-uppercase'.
45883         * lib/unicase/u8-is-uppercase.c: New file.
45884         * modules/unicase/u8-is-uppercase: New file.
45885
45886         New module 'unicase/u32-is-invariant'.
45887         * lib/unicase/u32-is-invariant.c: New file.
45888         * modules/unicase/u32-is-invariant: New file.
45889
45890         New module 'unicase/u16-is-invariant'.
45891         * lib/unicase/u16-is-invariant.c: New file.
45892         * modules/unicase/u16-is-invariant: New file.
45893
45894         New module 'unicase/u8-is-invariant'.
45895         * lib/unicase/u8-is-invariant.c: New file.
45896         * lib/unicase/invariant.h: New file.
45897         * lib/unicase/u-is-invariant.h: New file.
45898         * modules/unicase/u8-is-invariant: New file.
45899
45900         Tests for module 'unicase/u32-casecoll'.
45901         * modules/unicase/u32-casecoll-tests: New file.
45902         * tests/unicase/test-u32-casecoll.c: New file.
45903
45904         Tests for module 'unicase/u16-casecoll'.
45905         * modules/unicase/u16-casecoll-tests: New file.
45906         * tests/unicase/test-u16-casecoll.c: New file.
45907
45908         Tests for module 'unicase/u8-casecoll'.
45909         * modules/unicase/u8-casecoll-tests: New file.
45910         * tests/unicase/test-u8-casecoll.c: New file.
45911
45912         New module 'unicase/u32-casecoll'.
45913         * lib/unicase/u32-casecoll.c: New file.
45914         * modules/unicase/u32-casecoll: New file.
45915
45916         New module 'unicase/u16-casecoll'.
45917         * lib/unicase/u16-casecoll.c: New file.
45918         * modules/unicase/u16-casecoll: New file.
45919
45920         New module 'unicase/u8-casecoll'.
45921         * lib/unicase/u8-casecoll.c: New file.
45922         * lib/unicase/u-casecoll.h: New file.
45923         * modules/unicase/u8-casecoll: New file.
45924
45925         New module 'unicase/u32-casexfrm'.
45926         * lib/unicase/u32-casexfrm.c: New file.
45927         * modules/unicase/u32-casexfrm: New file.
45928
45929         New module 'unicase/u16-casexfrm'.
45930         * lib/unicase/u16-casexfrm.c: New file.
45931         * modules/unicase/u16-casexfrm: New file.
45932
45933         New module 'unicase/u8-casexfrm'.
45934         * lib/unicase/u8-casexfrm.c: New file.
45935         * lib/unicase/u-casexfrm.h: New file.
45936         * modules/unicase/u8-casexfrm: New file.
45937
45938         Tests for module 'unicase/u32-casecmp'.
45939         * modules/unicase/u32-casecmp-tests: New file.
45940         * tests/unicase/test-u32-casecmp.c: New file.
45941
45942         Tests for module 'unicase/u16-casecmp'.
45943         * modules/unicase/u16-casecmp-tests: New file.
45944         * tests/unicase/test-u16-casecmp.c: New file.
45945
45946         Tests for module 'unicase/u8-casecmp'.
45947         * modules/unicase/u8-casecmp-tests: New file.
45948         * tests/unicase/test-u8-casecmp.c: New file.
45949         * tests/unicase/test-casecmp.h: New file.
45950
45951         New module 'unicase/u32-casecmp'.
45952         * lib/unicase/u32-casecmp.c: New file.
45953         * modules/unicase/u32-casecmp: New file.
45954
45955         New module 'unicase/u16-casecmp'.
45956         * lib/unicase/u16-casecmp.c: New file.
45957         * modules/unicase/u16-casecmp: New file.
45958
45959         New module 'unicase/u8-casecmp'.
45960         * lib/unicase/u8-casecmp.c: New file.
45961         * lib/unicase/u-casecmp.h: New file.
45962         * modules/unicase/u8-casecmp: New file.
45963
45964         Tests for module 'unicase/u32-casefold'.
45965         * modules/unicase/u32-casefold-tests: New file.
45966         * tests/unicase/test-u32-casefold.c: New file.
45967
45968         Tests for module 'unicase/u16-casefold'.
45969         * modules/unicase/u16-casefold-tests: New file.
45970         * tests/unicase/test-u16-casefold.c: New file.
45971
45972         Tests for module 'unicase/u8-casefold'.
45973         * modules/unicase/u8-casefold-tests: New file.
45974         * tests/unicase/test-u8-casefold.c: New file.
45975
45976         New module 'unicase/u32-casefold'.
45977         * lib/unicase/u32-casefold.c: New file.
45978         * modules/unicase/u32-casefold: New file.
45979
45980         New module 'unicase/u16-casefold'.
45981         * lib/unicase/u16-casefold.c: New file.
45982         * modules/unicase/u16-casefold: New file.
45983
45984         New module 'unicase/u8-casefold'.
45985         * lib/unicase/u8-casefold.c: New file.
45986         * lib/unicase/u-casefold.h: New file.
45987         * modules/unicase/u8-casefold: New file.
45988
45989         New module 'unicase/tocasefold'.
45990         * lib/unicase/casefold.h: New file.
45991         * lib/unicase/tocasefold.c: New file.
45992         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45993         * modules/unicase/tocasefold: New file.
45994
45995         Tests for module 'unicase/u32-totitle'.
45996         * modules/unicase/u32-totitle-tests: New file.
45997         * tests/unicase/test-u32-totitle.c: New file.
45998
45999         Tests for module 'unicase/u16-totitle'.
46000         * modules/unicase/u16-totitle-tests: New file.
46001         * tests/unicase/test-u16-totitle.c: New file.
46002
46003         Tests for module 'unicase/u8-totitle'.
46004         * modules/unicase/u8-totitle-tests: New file.
46005         * tests/unicase/test-u8-totitle.c: New file.
46006
46007         New module 'unicase/u32-totitle'.
46008         * lib/unicase/u32-totitle.c: New file.
46009         * modules/unicase/u32-totitle: New file.
46010
46011         New module 'unicase/u16-totitle'.
46012         * lib/unicase/u16-totitle.c: New file.
46013         * modules/unicase/u16-totitle: New file.
46014
46015         New module 'unicase/u8-totitle'.
46016         * lib/unicase/u8-totitle.c: New file.
46017         * lib/unicase/u-totitle.h: New file.
46018         * modules/unicase/u8-totitle: New file.
46019
46020         Tests for module 'unicase/u32-tolower'.
46021         * modules/unicase/u32-tolower-tests: New file.
46022         * tests/unicase/test-u32-tolower.c: New file.
46023
46024         Tests for module 'unicase/u16-tolower'.
46025         * modules/unicase/u16-tolower-tests: New file.
46026         * tests/unicase/test-u16-tolower.c: New file.
46027
46028         Tests for module 'unicase/u8-tolower'.
46029         * modules/unicase/u8-tolower-tests: New file.
46030         * tests/unicase/test-u8-tolower.c: New file.
46031
46032         New module 'unicase/u32-tolower'.
46033         * lib/unicase/u32-tolower.c: New file.
46034         * modules/unicase/u32-tolower: New file.
46035
46036         New module 'unicase/u16-tolower'.
46037         * lib/unicase/u16-tolower.c: New file.
46038         * modules/unicase/u16-tolower: New file.
46039
46040         New module 'unicase/u8-tolower'.
46041         * lib/unicase/u8-tolower.c: New file.
46042         * modules/unicase/u8-tolower: New file.
46043
46044         Tests for module 'unicase/u32-toupper'.
46045         * modules/unicase/u32-toupper-tests: New file.
46046         * tests/unicase/test-u32-toupper.c: New file.
46047
46048         Tests for module 'unicase/u16-toupper'.
46049         * modules/unicase/u16-toupper-tests: New file.
46050         * tests/unicase/test-u16-toupper.c: New file.
46051
46052         Tests for module 'unicase/u8-toupper'.
46053         * modules/unicase/u8-toupper-tests: New file.
46054         * tests/unicase/test-u8-toupper.c: New file.
46055
46056         New module 'unicase/u32-toupper'.
46057         * lib/unicase/u32-toupper.c: New file.
46058         * modules/unicase/u32-toupper: New file.
46059
46060         New module 'unicase/u16-toupper'.
46061         * lib/unicase/u16-toupper.c: New file.
46062         * modules/unicase/u16-toupper: New file.
46063
46064         New module 'unicase/u8-toupper'.
46065         * lib/unicase/u8-toupper.c: New file.
46066         * modules/unicase/u8-toupper: New file.
46067
46068         New module 'unicase/u32-casemap'.
46069         * lib/unicase/u32-casemap.c: New file.
46070         * modules/unicase/u32-casemap: New file.
46071
46072         New module 'unicase/u16-casemap'.
46073         * lib/unicase/u16-casemap.c: New file.
46074         * modules/unicase/u16-casemap: New file.
46075
46076         New module 'unicase/u8-casemap'.
46077         * lib/unicase/unicasemap.h: New file.
46078         * lib/unicase/u8-casemap.c: New file.
46079         * lib/unicase/u-casemap.h: New file.
46080         * modules/unicase/u8-casemap: New file.
46081
46082         New module 'unicase/special-casing'.
46083         * lib/unicase/special-casing.h: New file.
46084         * lib/unicase/special-casing.c: New file.
46085         * lib/unicase/special-casing-table.gperf: New file, generated by
46086         gen-uni-tables.c.
46087         * modules/unicase/special-casing: New file.
46088
46089         Tests for module 'unicase/locale-language'.
46090         * modules/unicase/locale-language-tests: New file.
46091         * tests/unicase/test-locale-language.sh: New file.
46092         * tests/unicase/test-locale-language.c: New file.
46093
46094         New module 'unicase/locale-language'.
46095         * lib/unicase/locale-language.c: New file.
46096         * lib/unicase/locale-languages.gperf: New file.
46097         * modules/unicase/locale-language: New file.
46098
46099         Generate more tables for case conversion and case folding.
46100         * lib/gen-uni-tables.c (SCC_*): New enum items.
46101         (struct special_casing_rule): New type.
46102         (casing_rules, num_casing_rules, allocated_casing_rules): New
46103         variables.
46104         (add_casing_rule, fill_casing_rules): New functions.
46105         (struct casefold_rule): New type.
46106         (casefolding_rules, num_casefolding_rules,
46107         allocated_casefolding_rules): New variables.
46108         (fill_casefolding_rules): New function.
46109         (unicode_casefold): New variable.
46110         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
46111         sort_casing_rules, output_casing_rules): New functions.
46112         (main): Accept to more arguments: SpecialCasing.txt and
46113         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
46114         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
46115         Output mapping for casefolding.
46116
46117         * lib/unicase.h: Include stdbool.h, uninorm.h.
46118         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
46119         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
46120         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
46121         arguments.
46122         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
46123         resultp arguments.
46124         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
46125         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
46126         resultp arguments.
46127         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
46128         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
46129         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
46130         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
46131         declarations.
46132         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
46133
46134 2009-03-08  Bruno Haible  <bruno@clisp.org>
46135
46136         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46137         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
46138         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
46139         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46140
46141 2009-03-07  Bruno Haible  <bruno@clisp.org>
46142
46143         Adjust u*_normcmp, u*_normcoll API.
46144         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
46145         u16_normcoll, u32_normcoll): Change failure conventions.
46146         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
46147         errno and return -1.
46148         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
46149
46150 2009-03-07  Bruno Haible  <bruno@clisp.org>
46151
46152         Tests for module 'uninorm/u32-normcoll'.
46153         * modules/uninorm/u32-normcoll-tests: New file.
46154         * tests/uninorm/test-u32-normcoll.c: New file.
46155
46156         Tests for module 'uninorm/u16-normcoll'.
46157         * modules/uninorm/u16-normcoll-tests: New file.
46158         * tests/uninorm/test-u16-normcoll.c: New file.
46159
46160         Tests for module 'uninorm/u8-normcoll'.
46161         * modules/uninorm/u8-normcoll-tests: New file.
46162         * tests/uninorm/test-u8-normcoll.c: New file.
46163
46164 2009-03-07  Bruno Haible  <bruno@clisp.org>
46165
46166         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
46167         tests/uninorm/test-u32-normcmp.c.
46168         * tests/uninorm/test-u32-normcmp.c: Include it.
46169         (test_nonascii): New function, extracted from main. Add some more
46170         tests.
46171         (main): Invoke test_ascii and test_nonascii.
46172         * modules/uninorm/u32-normcmp-tests (Files): Add
46173         tests/uninorm/test-u32-normcmp.h.
46174         (Depends-on): Remove uninorm/u32-normcmp.
46175
46176         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
46177         tests/uninorm/test-u16-normcmp.c.
46178         * tests/uninorm/test-u16-normcmp.c: Include it.
46179         (test_nonascii): New function, extracted from main. Add some more
46180         tests.
46181         (main): Invoke test_ascii and test_nonascii.
46182         * modules/uninorm/u16-normcmp-tests (Files): Add
46183         tests/uninorm/test-u16-normcmp.h.
46184         (Depends-on): Remove uninorm/u16-normcmp.
46185
46186         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
46187         tests/uninorm/test-u8-normcmp.c.
46188         * tests/uninorm/test-u8-normcmp.c: Include it.
46189         (test_nonascii): New function, extracted from main. Add some more
46190         tests.
46191         (main): Invoke test_ascii and test_nonascii.
46192         * modules/uninorm/u8-normcmp-tests (Files): Add
46193         tests/uninorm/test-u8-normcmp.h.
46194         (Depends-on): Remove uninorm/u8-normcmp.
46195
46196 2009-03-07  Bruno Haible  <bruno@clisp.org>
46197
46198         New module 'uninorm/u32-normcoll'.
46199         * lib/uninorm/u32-normcoll.c: New file.
46200         * modules/uninorm/u32-normcoll: New file.
46201
46202         New module 'uninorm/u16-normcoll'.
46203         * lib/uninorm/u16-normcoll.c: New file.
46204         * modules/uninorm/u16-normcoll: New file.
46205
46206         New module 'uninorm/u8-normcoll'.
46207         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
46208         declarations.
46209         * lib/uninorm/u8-normcoll.c: New file.
46210         * lib/uninorm/u-normcoll.h: New file.
46211         * modules/uninorm/u8-normcoll: New file.
46212
46213         New module 'uninorm/u32-normxfrm'.
46214         * lib/uninorm/u32-normxfrm.c: New file.
46215         * modules/uninorm/u32-normxfrm: New file.
46216
46217         New module 'uninorm/u16-normxfrm'.
46218         * lib/uninorm/u16-normxfrm.c: New file.
46219         * modules/uninorm/u16-normxfrm: New file.
46220
46221         New module 'uninorm/u8-normxfrm'.
46222         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
46223         declarations.
46224         * lib/uninorm/u8-normxfrm.c: New file.
46225         * lib/uninorm/u-normxfrm.h: New file.
46226         * modules/uninorm/u8-normxfrm: New file.
46227
46228 2009-03-07  Bruno Haible  <bruno@clisp.org>
46229
46230         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
46231         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
46232         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
46233
46234 2009-03-07  Bruno Haible  <bruno@clisp.org>
46235
46236         New module 'memxfrm'.
46237         * lib/memxfrm.h: New file.
46238         * lib/memxfrm.c: New file.
46239         * modules/memxfrm: New file.
46240
46241 2009-03-07  Bruno Haible  <bruno@clisp.org>
46242
46243         New module 'memcmp2'.
46244         * lib/memcmp2.h: New file.
46245         * lib/memcmp2.c: New file.
46246         * modules/memcmp2: New file.
46247
46248 2009-03-07  Bruno Haible  <bruno@clisp.org>
46249
46250         Tests for module 'uninorm/decomposing-form'.
46251         * modules/uninorm/decomposing-form-tests: New file.
46252         * tests/uninorm/test-decomposing-form.c: New file.
46253
46254         New module 'uninorm/decomposing-form'.
46255         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
46256         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
46257         Add 'decomposing_variant' field.
46258         * lib/uninorm/decomposing-form.c: New file.
46259         * lib/uninorm/nfc.c (uninorm_nfc): Update.
46260         * lib/uninorm/nfd.c (uninorm_nfd): Update.
46261         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
46262         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
46263         * modules/uninorm/decomposing-form: New file.
46264         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
46265         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
46266
46267 2009-03-07  Bruno Haible  <bruno@clisp.org>
46268
46269         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
46270         strings.
46271
46272 2009-03-06  Bruno Haible  <bruno@clisp.org>
46273
46274         Tests for module 'uninorm/u32-normcmp'.
46275         * tests/uninorm/test-u32-normcmp.c: New file.
46276         * modules/uninorm/u32-normcmp-tests: New file.
46277
46278         Tests for module 'uninorm/u16-normcmp'.
46279         * tests/uninorm/test-u16-normcmp.c: New file.
46280         * modules/uninorm/u16-normcmp-tests: New file.
46281
46282         Tests for module 'uninorm/u8-normcmp'.
46283         * tests/uninorm/test-u8-normcmp.c: New file.
46284         * modules/uninorm/u8-normcmp-tests: New file.
46285
46286         New module 'uninorm/u32-normcmp'.
46287         * lib/uninorm/u32-normcmp.c: New file.
46288         * modules/uninorm/u32-normcmp: New file.
46289
46290         New module 'uninorm/u16-normcmp'.
46291         * lib/uninorm/u16-normcmp.c: New file.
46292         * modules/uninorm/u16-normcmp: New file.
46293
46294         New module 'uninorm/u8-normcmp'.
46295         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
46296         declarations.
46297         * lib/uninorm/u8-normcmp.c: New file.
46298         * lib/uninorm/u-normcmp.h: New file.
46299         * modules/uninorm/u8-normcmp: New file.
46300
46301 2009-03-06  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
46304         Reported by Eric Blake.
46305
46306 2009-03-06  Eric Blake  <ebb9@byu.net>
46307             Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
46310         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
46311         condition.
46312         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46313         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
46314         condition.
46315         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
46316
46317 2009-03-06  Eric Blake  <ebb9@byu.net>
46318
46319         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
46320         to avoid compiler warnings.
46321         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
46322
46323 2009-03-05  Bruno Haible  <bruno@clisp.org>
46324
46325         * tests/test-ftell.c (main): Disable test beyond end of file on
46326         FreeMiNT.
46327         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46328
46329 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
46330
46331         * lib/filevercmp.c: Move hidden files up in ordering.
46332         * tests/test-filevercmp.c: Add tests for hidden files.
46333
46334 2009-03-04  Bruno Haible  <bruno@clisp.org>
46335
46336         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
46337         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
46338         AM_CFLAGS.
46339         Reported by Simon Josefsson.
46340
46341 2009-03-03  Bruno Haible  <bruno@clisp.org>
46342
46343         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
46344         Reported by Simon Josefsson.
46345
46346         * doc/ld-version-script.texi: Update node reference.
46347
46348 2009-03-03  Bruno Haible  <bruno@clisp.org>
46349
46350         * modules/visibility (License): Change to 'unlimited'.
46351         Suggested by Simon Josefsson.
46352
46353 2009-03-03  Jim Meyering  <meyering@redhat.com>
46354
46355         unlinkdir: cannot_unlink_dir may modify process state
46356         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
46357         it's neither thread-safe nor appropriate for use in a library.
46358
46359 2009-03-03  Eric Blake  <ebb9@byu.net>
46360
46361         test-closein: silence test under Darwin
46362         * tests/test-closein.sh: Ignore stderr from cat, since we don't
46363         care if it dies from EPIPE or EBADF.
46364
46365 2009-03-03  Bruno Haible  <bruno@clisp.org>
46366
46367         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
46368         earlier.
46369         * doc/visibility.texi: Fix @node and @section.
46370
46371 2009-03-03  Simon Josefsson  <simon@josefsson.org>
46372
46373         * doc/gnulib.texi: Link to sections for ld version script and
46374         visibility.
46375         * doc/visibility.texi: Add @node and @section.
46376         * modules/ld-version-script: New module.
46377         * m4/ld-version-script.m4: New file.
46378         * doc/ld-version-script.texi: New file.
46379
46380 2009-03-02  David Lutterkort  <lutter@redhat.com>
46381
46382         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
46383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46384
46385 2009-03-02  Bruno Haible  <bruno@clisp.org>
46386
46387         * doc/visibility.texi: Mention libtool's -export-symbols option.
46388
46389 2009-03-02  Jim Meyering  <meyering@redhat.com>
46390
46391         announce-gen: new option: --no-print-checksums
46392         * build-aux/announce-gen (usage): Describe it.
46393         (print_checksums): Print a newline here, not in the [*] footnote.
46394         (main): Honor it.
46395
46396 2009-03-01  Bruno Haible  <bruno@clisp.org>
46397
46398         Use socklen_t in the native Windows replacements prototypes.
46399         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
46400         instead of 'int'.
46401         * lib/getsockopt.c (rpl_getsockopt): Likewise.
46402         * lib/setsockopt.c (rpl_setsockopt): Likewise.
46403         * modules/getsockopt (Depends-on): Add socklen.
46404         * modules/setsockopt (Depends-on): Add socklen.
46405
46406 2009-03-01  Bruno Haible  <bruno@clisp.org>
46407
46408         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
46409         least 4.2.
46410
46411 2009-03-01  Eric Blake  <ebb9@byu.net>
46412             Bruno Haible  <bruno@clisp.org>
46413
46414         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
46415         error messages.
46416         * lib/wait-process.c (wait_subprocess): Omit error message about
46417         deadly signal sent to the child of termsigp != NULL.
46418
46419 2009-03-01  Eric Blake  <ebb9@byu.net>
46420
46421         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
46422
46423 2009-03-01  Bruno Haible  <bruno@clisp.org>
46424
46425         Avoid a gcc warning.
46426         * tests/test-sched.c (b): Make global.
46427         Reported by Eric Blake.
46428
46429 2009-01-19  Martin Lambers  <marlam@marlam.de>
46430
46431         Provide POSIX semantics for socket timeout options on W32.
46432         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
46433         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
46434         * modules/setsockopt: Depend on sys_time module for struct timeval.
46435         * modules/getsockopt: Depend on sys_time module for struct timeval.
46436
46437 2009-03-01  Simon Josefsson  <simon@josefsson.org>
46438
46439         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
46440         __USE_GNU, for consistency with netdb.in.h.
46441         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46442
46443 2009-03-01  Bruno Haible  <bruno@clisp.org>
46444
46445         More support for FreeMiNT.
46446         * lib/fseeko.c (rpl_fseeko): Complete last commit.
46447         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46448
46449 2009-03-01  Bruno Haible  <bruno@clisp.org>
46450
46451         More support for FreeMiNT.
46452         * lib/fpurge.c (fpurge): Correct last commit.
46453         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46454
46455 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46456
46457         Fix unportable awk script in vc-list-files.
46458         * build-aux/vc-list-files: In the replacement awk script, use
46459         substr with a second argument of 1, not zero.
46460         Report by Simon Josefsson.
46461
46462 2009-02-28  Bruno Haible  <bruno@clisp.org>
46463
46464         More support for FreeMiNT.
46465         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
46466         to FreeMiNT today.
46467         * lib/fwriting.c (fwriting): Likewise.
46468         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
46469
46470 2009-02-28  Bruno Haible  <bruno@clisp.org>
46471
46472         * tests/test-freadseek.c (main): Disable test beyond end of file on
46473         FreeMiNT.
46474         * tests/test-ftello.c (main): Likewise.
46475         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
46476
46477 2009-02-28  Bruno Haible  <bruno@clisp.org>
46478
46479         Add tentative support for FreeMiNT.
46480         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
46481         * lib/fpurge.c (fpurge): Likewise.
46482         * lib/freadable.c (freadable): Likewise.
46483         * lib/freading.c (freading): Likewise.
46484         * lib/freadptr.c (freadptr): Likewise.
46485         * lib/freadseek.c (freadptrinc): Likewise.
46486         * lib/fseeko.c (rpl_fseeko): Likewise.
46487         * lib/fseterr.c (fseterr): Likewise.
46488         * lib/fwritable.c (fwritable): Likewise.
46489         * lib/fwriting.c (fwriting): Likewise.
46490         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
46491         Hourihane.
46492         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
46493
46494 2009-02-28  Bruno Haible  <bruno@clisp.org>
46495
46496         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
46497         SIGCHLD.
46498         Reported by Jim Meyering.
46499
46500 2009-02-28  Bruno Haible  <bruno@clisp.org>
46501
46502         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
46503         Mention the results of these tests on various platforms.
46504         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
46505         order.
46506         * doc/posix-functions/printf.texi: Likewise.
46507         * doc/posix-functions/snprintf.texi: Likewise.
46508         * doc/posix-functions/sprintf.texi: Likewise.
46509         * doc/posix-functions/vfprintf.texi: Likewise.
46510         * doc/posix-functions/vprintf.texi: Likewise.
46511         * doc/posix-functions/vsnprintf.texi: Likewise.
46512         * doc/posix-functions/vsprintf.texi: Likewise.
46513         * doc/glibc-functions/obstack_printf.texi: Likewise.
46514         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
46515
46516 2009-02-28  Bruno Haible  <bruno@clisp.org>
46517
46518         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
46519         Reported by Loïc Minier <lool@dooz.org>.
46520
46521 2009-02-27  Bruno Haible  <bruno@clisp.org>
46522
46523         * gnulib-tool (func_import): Make the sed expression used to create the
46524         sed script for updating the .gitignore file POSIX compliant.
46525         Reported by Eric Blake.
46526
46527 2009-02-27  Bruno Haible  <bruno@clisp.org>
46528
46529         * gnulib-tool (sed): Don't alias as "sed --posix".
46530         Reported by Eric Blake.
46531
46532 2009-02-27  Bruno Haible  <bruno@clisp.org>
46533
46534         Avoid test link errors.
46535         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
46536         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
46537         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
46538         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
46539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46540
46541 2009-02-27  Bruno Haible  <bruno@clisp.org>
46542
46543         Avoid spurious "(cached)" in configure output.
46544         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
46545         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
46546         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
46547         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
46548         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
46549         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
46550         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
46551         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
46552         Reported by Eric Blake.
46553
46554 2009-02-27  Eric Blake  <ebb9@byu.net>
46555
46556         printf: fix regression in previous patch
46557         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
46558
46559 2009-02-27  Bruno Haible  <bruno@clisp.org>
46560
46561         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
46562         value.
46563         * lib/stdint.in.h: Likewise.
46564         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
46565
46566 2009-02-27  Eric Blake  <ebb9@byu.net>
46567
46568         doc: mention more functions added in cygwin 1.7.0
46569         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
46570         addition.
46571         * doc/posix-functions/open_wmemstream.texi: Likewise.
46572         * doc/posix-functions/wcsnlen.texi: Likewise.
46573         * doc/posix-functions/wcsnrtombs.texi: Likewise.
46574         * doc/posix-functions/wcstod.texi: Likewise.
46575         * doc/posix-functions/wcstof.texi: Likewise.
46576         * doc/posix-functions/wcstoimax.texi: Likewise.
46577         * doc/posix-functions/wcstok.texi: Likewise.
46578         * doc/posix-functions/wcstoumax.texi: Likewise.
46579
46580         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
46581         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
46582         * doc/posix-functions/fprintf.texi: Update.
46583         * doc/posix-functions/printf.texi: Update.
46584         * doc/posix-functions/snprintf.texi: Update.
46585         * doc/posix-functions/sprintf.texi: Update.
46586         * doc/posix-functions/vfprintf.texi: Update.
46587         * doc/posix-functions/vprintf.texi: Update.
46588         * doc/posix-functions/vsnprintf.texi: Update.
46589         * doc/posix-functions/vsprintf.texi: Update.
46590         * doc/glibc-functions/obstack_printf.texi: Update.
46591         * doc/glibc-functions/obstack_vprintf.texi: Update.
46592
46593 2009-02-26  Eric Blake  <ebb9@byu.net>
46594
46595         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
46596         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
46597         compilation bug by using runtime conversion.
46598         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
46599         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
46600         * modules/ceill-tests (Files): Use nan.h.
46601         * modules/floorl-tests (Files): Likewise.
46602         * modules/frexpl-tests (Files): Likewise.
46603         * modules/isnanl-tests (Files): Likewise.
46604         * modules/ldexpl-tests (Files): Likewise.
46605         * modules/roundl-tests (Files): Likewise.
46606         * modules/truncl-tests (Files): Likewise.
46607         * tests/test-ceill.c (main): Use a working NaN.
46608         * tests/test-floorl.c (main): Likewise.
46609         * tests/test-frexpl.c (main): Likewise.
46610         * tests/test-isnan.c (test_long_double): Likewise.
46611         * tests/test-isnanl.h (main): Likewise.
46612         * tests/test-ldexpl.h (main): Likewise.
46613         * tests/test-roundl.h (main): Likewise.
46614         * tests/test-truncl.h (main): Likewise.
46615         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
46616
46617 2009-02-26  Eric Blake  <ebb9@byu.net>
46618             Bruno Haible  <bruno@clisp.org>
46619
46620         Work around a *printf bug with %ls on Solaris.
46621         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
46622         precision is specified, sprintf stops converting the wide string
46623         argument when the number of bytes that have been produced by this
46624         conversion equals or exceeds the precision.
46625         * doc/posix-functions/fprintf.texi: Update.
46626         * doc/posix-functions/printf.texi: Update.
46627         * doc/posix-functions/snprintf.texi: Update.
46628         * doc/posix-functions/sprintf.texi: Update.
46629         * doc/posix-functions/vfprintf.texi: Update.
46630         * doc/posix-functions/vprintf.texi: Update.
46631         * doc/posix-functions/vsnprintf.texi: Update.
46632         * doc/posix-functions/vsprintf.texi: Update.
46633         * doc/glibc-functions/obstack_printf.texi: Update.
46634         * doc/glibc-functions/obstack_vprintf.texi: Update.
46635
46636 2009-02-26  Eric Blake  <ebb9@byu.net>
46637
46638         stdlib: favor compiler check of random.h
46639         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
46640         to avoid an ObjC random.h installed by Swarm.
46641
46642 2009-02-26  Bruno Haible  <bruno@clisp.org>
46643
46644         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
46645         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
46646         Reported by Gary V. Vaughan <gary@gnu.org>.
46647
46648 2009-02-26  Bruno Haible  <bruno@clisp.org>
46649
46650         Fix *printf behaviour regarding the %ls directive.
46651         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
46652         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
46653         NEED_PRINTF_DIRECTIVE_LS.
46654         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
46655         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
46656         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
46657         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
46658         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
46659         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
46660         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
46661         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
46662         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
46663         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
46664         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
46665         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
46666         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
46667         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46668         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
46669         * doc/posix-functions/fprintf.texi: Update.
46670         * doc/posix-functions/printf.texi: Update.
46671         * doc/posix-functions/snprintf.texi: Update.
46672         * doc/posix-functions/sprintf.texi: Update.
46673         * doc/posix-functions/vfprintf.texi: Update.
46674         * doc/posix-functions/vprintf.texi: Update.
46675         * doc/posix-functions/vsnprintf.texi: Update.
46676         * doc/posix-functions/vsprintf.texi: Update.
46677         * doc/glibc-functions/obstack_printf.texi: Update.
46678         * doc/glibc-functions/obstack_vprintf.texi: Update.
46679         Reported by Eric Blake.
46680
46681 2009-02-25  Bruno Haible  <bruno@clisp.org>
46682
46683         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
46684         with known value.
46685         Reported by Gary V. Vaughan <gary@gnu.org>.
46686
46687 2009-02-25  Bruno Haible  <bruno@clisp.org>
46688
46689         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
46690         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
46691         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
46692         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
46693         Reported by Gary V. Vaughan <gary@gnu.org>.
46694
46695 2009-02-25  Bruno Haible  <bruno@clisp.org>
46696
46697         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
46698         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
46699         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
46700         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
46701         Reported by Gary V. Vaughan <gary@gnu.org>.
46702
46703 2009-02-25  Eric Blake  <ebb9@byu.net>
46704
46705         tests: skip fseek/ftell tests if ungetc is broken
46706         * m4/ungetc.m4: New file.
46707         * modules/fseek-tests: Split test, so ungetc dependency is
46708         separate from rest of test.
46709         * modules/fseeko-tests: Likewise.
46710         * modules/ftell-tests: Likewise.
46711         * modules/ftello-tests: Likewise.
46712         * tests/test-fseek.c (main): Isolate ungetc dependency.
46713         * tests/test-fseeko.c (main): Likewise.
46714         * tests/test-ftell.c (main): Likewise.
46715         * tests/test-ftello.c (main): Likewise.
46716         * tests/test-fseek2.sh: New file.
46717         * tests/test-fseeko2.sh: Likewise.
46718         * tests/test-ftell2.sh: Likewise.
46719         * tests/test-ftello2.sh: Likewise.
46720
46721 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
46722
46723         test-getaddrinfo: fix usage of skip return code 77
46724         * tests/test-gettaddrinfo.c: Return skip code 77 only
46725         for first occurance of skip (4x77 is not 77)
46726
46727 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
46728
46729         strtod: avoid C99 decl-after-statement
46730         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
46731
46732 2009-02-24  Eric Blake  <ebb9@byu.net>
46733
46734         strtod: detect HP-UX 11.31 bug
46735         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
46736         Reported by Gary V. Vaughan.
46737
46738 2009-02-23  Bruno Haible  <bruno@clisp.org>
46739
46740         Fix invalid read past end of memory block.
46741         * lib/vasnprintf.c (DCHAR_SET): Define.
46742         (local_wcslen): Define only when needed.
46743         (local_strnlen, local_wcsnlen): New functions.
46744         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
46745         directives that involve a conversion ourselves.
46746         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
46747         wcsnlen, mbrtowc, wcrtomb.
46748         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
46749         * tests/test-vasprintf-posix.c (test_function): Likewise.
46750         * tests/test-snprintf-posix.h (test_function): Likewise.
46751         * tests/test-sprintf-posix.h (test_function): Likewise.
46752         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46753
46754 2009-02-22  Bruno Haible  <bruno@clisp.org>
46755
46756         Implement new clarified decomposition of Hangul syllables.
46757         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
46758         of type LTV, return only a pairwise decomposition.
46759         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
46760         Likewise.
46761         * tests/uninorm/test-decomposition.c (main): Updated expected result.
46762         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
46763         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
46764
46765 2009-02-22  Bruno Haible  <bruno@clisp.org>
46766
46767         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
46768         zero-length results and shrink excess allocated memory.
46769         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
46770         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
46771         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
46772         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
46773         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
46774         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
46775         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
46776         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
46777         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
46778         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
46779         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
46780         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
46781
46782 2009-02-21  Bruno Haible  <bruno@clisp.org>
46783
46784         * doc/gnulib.texi: Include safe-alloc.texi earlier.
46785         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
46786         spaces after a period. Put a space between a macro name and its
46787         argument list. Trivial rewordings.
46788         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
46789         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
46790         (main): Return 0 explicitly.
46791
46792 2009-02-21  Bruno Haible  <bruno@clisp.org>
46793
46794         Tests for module 'uninorm/filter'.
46795         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
46796         * modules/uninorm/filter-tests: New file.
46797
46798         New module 'uninorm/filter'.
46799         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
46800         uninorm_filter_flush, uninorm_filter_free): New declarations.
46801         * lib/uninorm/uninorm-filter.c: New file.
46802         * modules/uninorm/filter: New file.
46803
46804 2009-02-21  Bruno Haible  <bruno@clisp.org>
46805
46806         Tests for module 'uninorm/nfkc'.
46807         * tests/uninorm/test-nfkc.c: New file.
46808         * tests/uninorm/test-u8-nfkc.c: New file.
46809         * tests/uninorm/test-u16-nfkc.c: New file.
46810         * tests/uninorm/test-u32-nfkc.c: New file.
46811         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46812         * tests/uninorm/test-u32-nfkc-big.c: New file.
46813         * modules/uninorm/nfkc-tests: New file.
46814
46815         New module 'uninorm/nfkc'.
46816         * lib/uninorm/nfkc.c: New file.
46817         * modules/uninorm/nfkc: New file.
46818
46819         Tests for module 'uninorm/nfkd'.
46820         * tests/uninorm/test-nfkd.c: New file.
46821         * tests/uninorm/test-u8-nfkd.c: New file.
46822         * tests/uninorm/test-u16-nfkd.c: New file.
46823         * tests/uninorm/test-u32-nfkd.c: New file.
46824         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46825         * tests/uninorm/test-u32-nfkd-big.c: New file.
46826         * modules/uninorm/nfkd-tests: New file.
46827
46828         New module 'uninorm/nfkd'.
46829         * lib/uninorm/nfkd.c: New file.
46830         * modules/uninorm/nfkd: New file.
46831
46832         Tests for module 'uninorm/nfc'.
46833         * tests/uninorm/test-nfc.c: New file.
46834         * tests/uninorm/test-u8-nfc.c: New file.
46835         * tests/uninorm/test-u16-nfc.c: New file.
46836         * tests/uninorm/test-u32-nfc.c: New file.
46837         * tests/uninorm/test-u32-nfc-big.sh: New file.
46838         * tests/uninorm/test-u32-nfc-big.c: New file.
46839         * modules/uninorm/nfc-tests: New file.
46840
46841         New module 'uninorm/nfc'.
46842         * lib/uninorm/nfc.c: New file.
46843         * modules/uninorm/nfc: New file.
46844
46845         Tests for module 'uninorm/nfd'.
46846         * tests/uninorm/test-nfd.c: New file.
46847         * tests/uninorm/test-u8-nfd.c: New file.
46848         * tests/uninorm/test-u16-nfd.c: New file.
46849         * tests/uninorm/test-u32-nfd.c: New file.
46850         * tests/uninorm/test-u32-nfd-big.sh: New file.
46851         * tests/uninorm/test-u32-nfd-big.c: New file.
46852         * tests/uninorm/test-u32-normalize-big.h: New file.
46853         * tests/uninorm/test-u32-normalize-big.c: New file.
46854         * tests/uninorm/NormalizationTest.txt: New file, created from
46855         Unicode 5.1.0 NormalizationTest.txt.
46856         * modules/uninorm/nfd-tests: New file.
46857
46858         New module 'uninorm/nfd'.
46859         * lib/uninorm/nfd.c: New file.
46860         * modules/uninorm/nfd: New file.
46861
46862         New module 'uninorm/u32-normalize'.
46863         * lib/uninorm/u32-normalize.c: New file.
46864         * modules/uninorm/u32-normalize: New file.
46865
46866         New module 'uninorm/u16-normalize'.
46867         * lib/uninorm/u16-normalize.c: New file.
46868         * modules/uninorm/u16-normalize: New file.
46869
46870         New module 'uninorm/u8-normalize'.
46871         * lib/uninorm/u8-normalize.c: New file.
46872         * lib/uninorm/normalize-internal.h: New file.
46873         * lib/uninorm/u-normalize-internal.h: New file.
46874         * modules/uninorm/u8-normalize: New file.
46875
46876         New module 'uninorm/decompose-internal'.
46877         * lib/uninorm/decompose-internal.c: New file.
46878         * modules/uninorm/decompose-internal: New file.
46879
46880         Tests for module 'uninorm/composition'.
46881         * tests/uninorm/test-composition.c: New file.
46882         * modules/uninorm/composition-tests: New file.
46883
46884         New module 'uninorm/composition'.
46885         * lib/uninorm/composition.c: New file.
46886         * lib/uninorm/composition-table.gperf: New file, generated by
46887         gen-uni-tables.
46888         * modules/uninorm/composition: New file.
46889
46890         Tests for module 'uninorm/compat-decomposition'.
46891         * tests/uninorm/test-compat-decomposition.c: New file.
46892         * modules/uninorm/compat-decomposition-tests: New file.
46893
46894         New module 'uninorm/compat-decomposition'.
46895         * lib/uninorm/decompose-internal.h: New file.
46896         * lib/uninorm/compat-decomposition.c: New file.
46897         * modules/uninorm/compat-decomposition: New file.
46898
46899         Tests for module 'uninorm/canonical-decomposition'.
46900         * tests/uninorm/test-canonical-decomposition.c: New file.
46901         * modules/uninorm/canonical-decomposition-tests: New file.
46902
46903         New module 'uninorm/canonical-decomposition'.
46904         * lib/uninorm/canonical-decomposition.c: New file.
46905         * modules/uninorm/canonical-decomposition: New file.
46906
46907         Tests for module 'uninorm/decomposition'.
46908         * tests/uninorm/test-decomposition.c: New file.
46909         * modules/uninorm/decomposition-tests: New file.
46910
46911         New module 'uninorm/decomposition'.
46912         * lib/uninorm/decomposition.c: New file.
46913         * modules/uninorm/decomposition: New file.
46914
46915         New module 'uninorm/decomposition-table'.
46916         * lib/uninorm/decomposition-table.h: New file.
46917         * lib/uninorm/decomposition-table.c: New file.
46918         * lib/uninorm/decomposition-table1.h: New file, generated by
46919         gen-uni-tables.
46920         * lib/uninorm/decomposition-table2.h: New file, generated by
46921         gen-uni-tables.
46922         * modules/uninorm/decomposition-table: New file.
46923
46924         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46925         (UC_DECOMP_*): New enumeration items.
46926         (get_decomposition): New function.
46927         (struct decomp_table): New type.
46928         (output_decomposition, output_decomposition_tables): New functions.
46929         (unicode_composition_exclusions): New variable.
46930         (fill_composition_exclusions, debug_output_composition_tables): New
46931         functions.
46932         (main): Accept one more argument. Invoke fill_composition_exclusions.
46933         Output decomposition and composition tables.
46934
46935         New module 'uninorm/base'.
46936         * lib/uninorm.h: New file.
46937         * lib/unictype.h: Update comment.
46938         * modules/uninorm/base: New file.
46939
46940 2009-02-21  David Lutterkort  <lutter@redhat.com>
46941
46942         Tests for module 'safe-alloc'.
46943         * tests/test-safe-alloc.c: New file.
46944         * modules/safe-alloc-tests: New file.
46945
46946         New module 'safe-alloc'.
46947         * lib/safe-alloc.h: New file.
46948         * lib/safe-alloc.c: New file.
46949         * m4/safe-alloc.m4: New file.
46950         * modules/safe-alloc: New file.
46951         * doc/safe-alloc.texi: New file.
46952         * doc/gnulib.texi: Include it.
46953         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46954         safe-alloc.
46955
46956 2009-02-18  Bruno Haible  <bruno@clisp.org>
46957
46958         Fix link error on non-glibc systems.
46959         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46960         variable.
46961         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46962
46963 2009-02-18  Jim Meyering  <meyering@redhat.com>
46964
46965         fts: avoid used-uninitialized error due to recent change
46966         * lib/fts.c (fts_read): Guard uses of the new member,
46967         parent->fts_n_dirs_remaining, since it's not relevant for
46968         the parent of a directory specified on the command-line.
46969
46970 2009-02-17  James Youngman  <jay@gnu.org>
46971             Bruno Haible  <bruno@clisp.org>
46972
46973         * m4/include_next.m4: Reformulate comment.
46974
46975 2009-02-16  Jim Meyering  <meyering@redhat.com>
46976
46977         fts: add #if guards so that the fts_lgpl module still builds
46978         * lib/fts.c: Guard just-added hash-table-using parts with
46979         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46980         Reported by Simon Josefsson.
46981
46982 2009-02-15  Bruno Haible  <bruno@clisp.org>
46983
46984         * modules/array-mergesort-tests: New file.
46985         * tests/test-array-mergesort.c: New file.
46986
46987         New module 'array-mergesort'.
46988         * modules/array-mergesort: New file.
46989         * lib/array-mergesort.h: New file.
46990
46991 2009-02-15  Bruno Haible  <bruno@clisp.org>
46992
46993         Fix 2009-02-07 commit.
46994         * lib/gen-uni-tables.c (output_predicate, output_category,
46995         output_combclass, output_bidi_category, output_decimal_digit,
46996         output_digit, output_numeric, output_mirror, output_scripts,
46997         output_ident_category, output_simple_mapping): Fix format directives.
46998         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46999
47000 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
47001
47002         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
47003         fixes are available from IBM.
47004
47005 2009-02-13  Jim Meyering  <meyering@redhat.com>
47006
47007         fts: arrange not to stat non-directories in more cases
47008         This makes GNU find (when it doesn't need to stat each file)
47009         *much* more efficient at traversing reiserfs file systems.
47010         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
47011         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
47012         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
47013         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
47014         (leaf_optimization_applies): New function.
47015         (LCO_hash, LCO_compare): New helper functions.
47016         (link_count_optimize_ok): New function.
47017         (fts_stat): Initialize new member (if dir).
47018         (fts_read): Decrement parent's fts_n_dirs_remaining count if
47019         we've just stat'ed a directory.  Skip the stat call when possible.
47020         ---
47021         Note this AFS-related exchange:
47022         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
47023         and note find's pioctl call in find/fstype.c.
47024         But that is necessary only if you want to enable the
47025         optimization for AFS, and for now, I don't.
47026
47027         fts: move a function definition "up" (no semantic change)
47028         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
47029         "up" to precede upcoming use of a related function.
47030
47031 2009-02-11  Jim Meyering  <meyering@redhat.com>
47032
47033         fts: correct internal computation of nlinks (optimization-related)
47034         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
47035         whether the current entry is a directory, so don't test it.
47036
47037 2009-02-10  Bruno Haible  <bruno@clisp.org>
47038
47039         Tests for module 'uniwbrk/ulc-wordbreaks'.
47040         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
47041         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
47042         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
47043
47044         Tests for module 'uniwbrk/u32-wordbreaks'.
47045         * modules/uniwbrk/u32-wordbreaks-tests: New file.
47046         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
47047
47048         Tests for module 'uniwbrk/u16-wordbreaks'.
47049         * modules/uniwbrk/u16-wordbreaks-tests: New file.
47050         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
47051
47052         Tests for module 'uniwbrk/u8-wordbreaks'.
47053         * modules/uniwbrk/u8-wordbreaks-tests: New file.
47054         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
47055
47056 2009-02-10  Bruno Haible  <bruno@clisp.org>
47057
47058         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
47059         property.
47060         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
47061         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
47062         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
47063
47064 2009-02-10  Simon Josefsson  <simon@josefsson.org>
47065
47066         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
47067         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
47068
47069 2009-02-10  Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
47072         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
47073         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
47074         * lib/unilbrk/u8-possible-linebreaks.c: Update.
47075         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
47076         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
47077
47078 2009-02-09  Simon Josefsson  <simon@josefsson.org>
47079
47080         * lib/sockets.h (gl_fd_to_handle): New function.
47081
47082         * tests/test-sockets.c: Call gl_fd_to_handle.
47083
47084 2009-02-09  Bruno Haible  <bruno@clisp.org>
47085
47086         * doc/havelib.texi: Document the conventions on bi-arch systems.
47087
47088 2009-02-08  Bruno Haible  <bruno@clisp.org>
47089
47090         Document the AC_LIB_LINKFLAGS macro.
47091         * doc/havelib.texi: New file, mostly written on 2005-05-24.
47092         * doc/gnulib.texi: Include it.
47093
47094 2009-02-08  Bruno Haible  <bruno@clisp.org>
47095
47096         Fix wrong order of sections, compared to TOC.
47097         * doc/gnulib.texi: Include relocatable-maint.texi after the
47098         "Regular expressions" node, not before.
47099
47100 2009-02-08  Bruno Haible  <bruno@clisp.org>
47101
47102         Tests for module 'unicase/totitle'.
47103         * modules/unicase/totitle-tests: New file.
47104
47105         Tests for module 'unicase/tolower'.
47106         * modules/unicase/tolower-tests: New file.
47107
47108         Tests for module 'unicase/toupper'.
47109         * modules/unicase/toupper-tests: New file.
47110         * tests/unicase/test-mapping-part1.h: New file.
47111         * tests/unicase/test-mapping-part2.h: New file.
47112
47113         New module 'unicase/totitle'.
47114         * modules/unicase/totitle: New file.
47115         * lib/unicase/totitle.c: New file.
47116
47117         New module 'unicase/tolower'.
47118         * modules/unicase/tolower: New file.
47119         * lib/unicase/tolower.c: New file.
47120
47121         New module 'unicase/toupper'.
47122         * modules/unicase/toupper: New file.
47123         * lib/unicase/toupper.c: New file.
47124         * lib/unicase/simple-mapping.h: New file.
47125
47126         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
47127         (mapping_table): New structure.
47128         (output_simple_mapping): New function.
47129         (main): Invoke output_simple_mapping_test and output_simple_mapping.
47130         * modules/gen-uni-tables (Description): Update.
47131         * lib/unicase/toupper.h: New file, automatically generated by
47132         gen-uni-tables.
47133         * lib/unicase/tolower.h: New file, automatically generated by
47134         gen-uni-tables.
47135         * lib/unicase/totitle.h: New file, automatically generated by
47136         gen-uni-tables.
47137         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
47138         gen-uni-tables.
47139         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
47140         gen-uni-tables.
47141         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
47142         gen-uni-tables.
47143
47144         New module 'unicase/base'.
47145         * modules/unicase/base: New file.
47146         * lib/unicase.h: New file.
47147
47148 2009-02-08  Bruno Haible  <bruno@clisp.org>
47149
47150         New module 'uniwbrk/ulc-wordbreaks'.
47151         * modules/uniwbrk/ulc-wordbreaks: New file.
47152         * lib/uniwbrk/ulc-wordbreaks.c: New file.
47153
47154         New module 'uniwbrk/u32-wordbreaks'.
47155         * modules/uniwbrk/u32-wordbreaks: New file.
47156         * lib/uniwbrk/u32-wordbreaks.c: New file.
47157
47158         New module 'uniwbrk/u16-wordbreaks'.
47159         * modules/uniwbrk/u16-wordbreaks: New file.
47160         * lib/uniwbrk/u16-wordbreaks.c: New file.
47161
47162         New module 'uniwbrk/u8-wordbreaks'.
47163         * modules/uniwbrk/u8-wordbreaks: New file.
47164         * lib/uniwbrk/u8-wordbreaks.c: New file.
47165         * lib/uniwbrk/u-wordbreaks.h: New file.
47166
47167         New module 'uniwbrk/table'.
47168         * modules/uniwbrk/table: New file.
47169         * lib/uniwbrk/wbrktable.h: New file.
47170         * lib/uniwbrk/wbrktable.c: New file.
47171
47172         New module 'uniwbrk/wordbreak-property'.
47173         * modules/uniwbrk/wordbreak-property: New file.
47174         * lib/uniwbrk/wordbreak-property.c: New file.
47175
47176         * lib/gen-uni-tables.c (WBP_*): New enum items.
47177         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
47178         (unicode_org_wbp): New variable.
47179         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
47180         New functions.
47181         (wbp_table): New structure.
47182         (output_wbp, output_wbrk_tables): New functions.
47183         (main): Accept additional argument. Invoke fill_org_wbp,
47184         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
47185         output_wbrk_tables.
47186         * modules/gen-uni-tables (Description): Update.
47187         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
47188         gen-uni-tables.
47189
47190         New module 'uniwbrk/base'.
47191         * modules/uniwbrk/base: New file.
47192         * lib/uniwbrk.h: New file.
47193
47194 2009-02-08  Bruno Haible  <bruno@clisp.org>
47195
47196         Update to Unicode 5.1.0.
47197         * lib/gen-uni-tables.c (is_property_alphabetic): Include
47198         U+2185..U+2188.
47199         (is_property_default_ignorable_code_point): Don't include characters
47200         of category Cc or Cs and not-a-characters.
47201         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
47202         U+0D79, U+109E, U+109F, U+A60C.
47203         * lib/unictype/bidi_of.h: Regenerated.
47204         * lib/unictype/blocks.h: Regenerated.
47205         * lib/unictype/categ_C.h: Regenerated.
47206         * lib/unictype/categ_Cf.h: Regenerated.
47207         * lib/unictype/categ_Cn.h: Regenerated.
47208         * lib/unictype/categ_L.h: Regenerated.
47209         * lib/unictype/categ_Ll.h: Regenerated.
47210         * lib/unictype/categ_Lm.h: Regenerated.
47211         * lib/unictype/categ_Lo.h: Regenerated.
47212         * lib/unictype/categ_Lu.h: Regenerated.
47213         * lib/unictype/categ_M.h: Regenerated.
47214         * lib/unictype/categ_Mc.h: Regenerated.
47215         * lib/unictype/categ_Me.h: Regenerated.
47216         * lib/unictype/categ_Mn.h: Regenerated.
47217         * lib/unictype/categ_N.h: Regenerated.
47218         * lib/unictype/categ_Nd.h: Regenerated.
47219         * lib/unictype/categ_Nl.h: Regenerated.
47220         * lib/unictype/categ_No.h: Regenerated.
47221         * lib/unictype/categ_P.h: Regenerated.
47222         * lib/unictype/categ_Pd.h: Regenerated.
47223         * lib/unictype/categ_Pe.h: Regenerated.
47224         * lib/unictype/categ_Pf.h: Regenerated.
47225         * lib/unictype/categ_Pi.h: Regenerated.
47226         * lib/unictype/categ_Po.h: Regenerated.
47227         * lib/unictype/categ_Ps.h: Regenerated.
47228         * lib/unictype/categ_S.h: Regenerated.
47229         * lib/unictype/categ_Sk.h: Regenerated.
47230         * lib/unictype/categ_Sm.h: Regenerated.
47231         * lib/unictype/categ_So.h: Regenerated.
47232         * lib/unictype/categ_of.h: Regenerated.
47233         * lib/unictype/combining.h: Regenerated.
47234         * lib/unictype/ctype_alnum.h: Regenerated.
47235         * lib/unictype/ctype_alpha.h: Regenerated.
47236         * lib/unictype/ctype_graph.h: Regenerated.
47237         * lib/unictype/ctype_lower.h: Regenerated.
47238         * lib/unictype/ctype_print.h: Regenerated.
47239         * lib/unictype/ctype_punct.h: Regenerated.
47240         * lib/unictype/ctype_upper.h: Regenerated.
47241         * lib/unictype/decdigit.h: Regenerated.
47242         * lib/unictype/digit.h: Regenerated.
47243         * lib/unictype/mirror.h: Regenerated.
47244         * lib/unictype/numeric.h: Regenerated.
47245         * lib/unictype/pr_alphabetic.h: Regenerated.
47246         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
47247         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
47248         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
47249         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
47250         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
47251         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
47252         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
47253         * lib/unictype/pr_combining.h: Regenerated.
47254         * lib/unictype/pr_dash.h: Regenerated.
47255         * lib/unictype/pr_decimal_digit.h: Regenerated.
47256         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
47257         * lib/unictype/pr_deprecated.h: Regenerated.
47258         * lib/unictype/pr_diacritic.h: Regenerated.
47259         * lib/unictype/pr_extender.h: Regenerated.
47260         * lib/unictype/pr_format_control.h: Regenerated.
47261         * lib/unictype/pr_grapheme_base.h: Regenerated.
47262         * lib/unictype/pr_grapheme_extend.h: Regenerated.
47263         * lib/unictype/pr_grapheme_link.h: Regenerated.
47264         * lib/unictype/pr_id_continue.h: Regenerated.
47265         * lib/unictype/pr_id_start.h: Regenerated.
47266         * lib/unictype/pr_ideographic.h: Regenerated.
47267         * lib/unictype/pr_ignorable_control.h: Regenerated.
47268         * lib/unictype/pr_lowercase.h: Regenerated.
47269         * lib/unictype/pr_math.h: Regenerated.
47270         * lib/unictype/pr_numeric.h: Regenerated.
47271         * lib/unictype/pr_other_alphabetic.h: Regenerated.
47272         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
47273         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
47274         * lib/unictype/pr_other_id_continue.h: Regenerated.
47275         * lib/unictype/pr_other_lowercase.h: Regenerated.
47276         * lib/unictype/pr_other_math.h: Regenerated.
47277         * lib/unictype/pr_punctuation.h: Regenerated.
47278         * lib/unictype/pr_sentence_terminal.h: Regenerated.
47279         * lib/unictype/pr_soft_dotted.h: Regenerated.
47280         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
47281         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
47282         * lib/unictype/pr_unified_ideograph.h: Regenerated.
47283         * lib/unictype/pr_uppercase.h: Regenerated.
47284         * lib/unictype/pr_xid_continue.h: Regenerated.
47285         * lib/unictype/pr_xid_start.h: Regenerated.
47286         * lib/unictype/pr_zero_width.h: Regenerated.
47287         * lib/unictype/scripts.h: Regenerated.
47288         * lib/unictype/scripts_byname.gperf: Regenerated.
47289         * lib/unictype/sy_java_ident.h: Regenerated.
47290         * lib/unilbrk/lbrkprop1.h: Regenerated.
47291         * lib/unilbrk/lbrkprop2.h: Regenerated.
47292         * tests/unictype/test-categ_C.c: Regenerated.
47293         * tests/unictype/test-categ_Cf.c: Regenerated.
47294         * tests/unictype/test-categ_Cn.c: Regenerated.
47295         * tests/unictype/test-categ_L.c: Regenerated.
47296         * tests/unictype/test-categ_Ll.c: Regenerated.
47297         * tests/unictype/test-categ_Lm.c: Regenerated.
47298         * tests/unictype/test-categ_Lo.c: Regenerated.
47299         * tests/unictype/test-categ_Lu.c: Regenerated.
47300         * tests/unictype/test-categ_M.c: Regenerated.
47301         * tests/unictype/test-categ_Mc.c: Regenerated.
47302         * tests/unictype/test-categ_Me.c: Regenerated.
47303         * tests/unictype/test-categ_Mn.c: Regenerated.
47304         * tests/unictype/test-categ_N.c: Regenerated.
47305         * tests/unictype/test-categ_Nd.c: Regenerated.
47306         * tests/unictype/test-categ_Nl.c: Regenerated.
47307         * tests/unictype/test-categ_No.c: Regenerated.
47308         * tests/unictype/test-categ_P.c: Regenerated.
47309         * tests/unictype/test-categ_Pd.c: Regenerated.
47310         * tests/unictype/test-categ_Pe.c: Regenerated.
47311         * tests/unictype/test-categ_Pf.c: Regenerated.
47312         * tests/unictype/test-categ_Pi.c: Regenerated.
47313         * tests/unictype/test-categ_Po.c: Regenerated.
47314         * tests/unictype/test-categ_Ps.c: Regenerated.
47315         * tests/unictype/test-categ_S.c: Regenerated.
47316         * tests/unictype/test-categ_Sk.c: Regenerated.
47317         * tests/unictype/test-categ_Sm.c: Regenerated.
47318         * tests/unictype/test-categ_So.c: Regenerated.
47319         * tests/unictype/test-ctype_alnum.c: Regenerated.
47320         * tests/unictype/test-ctype_alpha.c: Regenerated.
47321         * tests/unictype/test-ctype_graph.c: Regenerated.
47322         * tests/unictype/test-ctype_lower.c: Regenerated.
47323         * tests/unictype/test-ctype_print.c: Regenerated.
47324         * tests/unictype/test-ctype_punct.c: Regenerated.
47325         * tests/unictype/test-ctype_upper.c: Regenerated.
47326         * tests/unictype/test-decdigit.h: Regenerated.
47327         * tests/unictype/test-digit.h: Regenerated.
47328         * tests/unictype/test-numeric.h: Regenerated.
47329         * tests/unictype/test-pr_alphabetic.c: Regenerated.
47330         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
47331         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
47332         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
47333         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
47334         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
47335         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
47336         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
47337         * tests/unictype/test-pr_combining.c: Regenerated.
47338         * tests/unictype/test-pr_dash.c: Regenerated.
47339         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
47340         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
47341         * tests/unictype/test-pr_deprecated.c: Regenerated.
47342         * tests/unictype/test-pr_diacritic.c: Regenerated.
47343         * tests/unictype/test-pr_extender.c: Regenerated.
47344         * tests/unictype/test-pr_format_control.c: Regenerated.
47345         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
47346         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
47347         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
47348         * tests/unictype/test-pr_id_continue.c: Regenerated.
47349         * tests/unictype/test-pr_id_start.c: Regenerated.
47350         * tests/unictype/test-pr_ideographic.c: Regenerated.
47351         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
47352         * tests/unictype/test-pr_lowercase.c: Regenerated.
47353         * tests/unictype/test-pr_math.c: Regenerated.
47354         * tests/unictype/test-pr_numeric.c: Regenerated.
47355         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
47356         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
47357         Regenerated.
47358         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
47359         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
47360         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
47361         * tests/unictype/test-pr_other_math.c: Regenerated.
47362         * tests/unictype/test-pr_punctuation.c: Regenerated.
47363         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
47364         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
47365         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
47366         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
47367         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
47368         * tests/unictype/test-pr_uppercase.c: Regenerated.
47369         * tests/unictype/test-pr_xid_continue.c: Regenerated.
47370         * tests/unictype/test-pr_xid_start.c: Regenerated.
47371         * tests/unictype/test-pr_zero_width.c: Regenerated.
47372
47373         Update to Unicode 5.1.0.
47374         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
47375         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
47376         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
47377         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
47378         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
47379         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
47380         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
47381         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
47382         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
47383         (nonspacing_table_ind): Update.
47384         * tests/uniwidth/test-uc_width2.sh: Update expected result.
47385
47386         Update to Unicode 5.1.0.
47387         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
47388         code transform.
47389         * lib/uniname/uniname.c (unicode_character_name,
47390         unicode_name_character): Add the range 0x1Fxxx to the code transform.
47391         * lib/uniname/uninames.h: Regenerated.
47392         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
47393
47394 2009-02-07  Bruno Haible  <bruno@clisp.org>
47395
47396         Merge gen-ctype and gen-lbrk into a single program.
47397         * lib/gen-uni-tables.c: New file, incorporating
47398         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
47399         Add directory prefixes to the names of the generated files.
47400         * lib/unictype/gen-ctype.c: Remove file.
47401         * lib/unilbrk/gen-lbrk.c: Remove file.
47402         * modules/gen-uni-tables: New file.
47403         * modules/unictype/gen-ctype: Remove file.
47404         * modules/unilbrk/gen-lbrk: Remove file.
47405
47406 2009-02-07  Bruno Haible  <bruno@clisp.org>
47407
47408         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
47409
47410         New module 'unistr/u32-strcoll'.
47411         * modules/unistr/u32-strcoll: New file.
47412         * lib/unistr/u32-strcoll.c: New file.
47413
47414         New module 'unistr/u16-strcoll'.
47415         * modules/unistr/u16-strcoll: New file.
47416         * lib/unistr/u16-strcoll.c: New file.
47417
47418         New module 'unistr/u8-strcoll'.
47419         * modules/unistr/u8-strcoll: New file.
47420         * lib/unistr/u8-strcoll.c: New file.
47421         * lib/unistr/u-strcoll.h: New file.
47422
47423 2009-02-07  Bruno Haible  <bruno@clisp.org>
47424
47425         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
47426         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47427         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
47428         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
47429         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
47430         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
47431
47432 2009-02-07  Bruno Haible  <bruno@clisp.org>
47433
47434         Make 64-bit clean.
47435         * lib/unictype/gen-ctype.c (output_predicate, output_category,
47436         output_combclass, output_bidi_category, output_decimal_digit,
47437         output_digit, output_numeric, output_mirror, output_scripts,
47438         output_ident_category): Use proper width specifier in format strings.
47439
47440 2009-02-07  Bruno Haible  <bruno@clisp.org>
47441
47442         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
47443         failure behaviour.
47444
47445 2009-02-07  Jim Meyering  <meyering@redhat.com>
47446
47447         regex: avoid compilation failure with upcoming gcc-4.4
47448         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
47449         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
47450         "... error: integer overflow in preprocessor expression".
47451
47452 2009-02-05  Ben Pfaff  <blp@gnu.org>
47453
47454         Fix link errors on Windows when close module is used.
47455         * modules/close: Add $(LIB_CLOSE) to Link section.
47456         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
47457         $(LIB_CLOSE) on Windows.
47458
47459 2009-02-05  Jim Meyering  <meyering@redhat.com>
47460
47461         still avoid unused-parameter warnings, but do it cleanly
47462         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
47463         (get_fs_usage): Cast to void instead.
47464         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
47465         (dev_from_mount_options, read_file_system_list): Cast to void.
47466         Prompted by Bruno Haible.
47467
47468 2009-02-04  Jim Meyering  <meyering@redhat.com>
47469
47470         fsusage.c: correct copyright year
47471         * lib/fsusage.c: Reflect year in which the change is pushed into
47472
47473         avoid misc. warnings
47474         * lib/fsusage.c (UNUSED_PARAM): Define.
47475         (get_fs_usage): Mark parameter "disk" as unused.
47476         * lib/getugroups.c (getgrent): Use "void" in prototype.
47477         * lib/mountlist.c: Mark unused parameters.
47478         (read_file_system_list): Declare a local with "const".
47479         * lib/nanosleep.c (getnow): Declare static.
47480         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
47481
47482         dirfd: set errno upon failure
47483         * lib/dirfd.c: Include <errno.h>.
47484         Set errno to ENOTSUP when returning -1.
47485         * modules/dirfd (Depends-on): Add errno.
47486         Suggested by John Kodis <kodis@comcast.net>.
47487
47488 2009-02-01  Bruno Haible  <bruno@clisp.org>
47489
47490         Don't assume sizeof (long) >= sizeof (void *).
47491         * lib/memcmp.c: Include stdint.h.
47492         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
47493         srcp2 to 'const byte *'.
47494         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
47495         types to uintptr_t.
47496         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
47497         * modules/memcmp (Depends-on): Add stdint.
47498         Reported by Ozkan Sezer <sezeroz@gmail.com>.
47499
47500 2009-01-30  Eric Blake  <ebb9@byu.net>
47501
47502         fix more require-before-expand issues
47503         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
47504         expand, AC_PROG_AWK.
47505         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
47506
47507 2009-01-28  Eric Blake  <ebb9@byu.net>
47508
47509         version-etc: use consistent URL formatting
47510         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
47511         Improve formatting.  Use fputs for string without %.
47512
47513 2009-01-28  Jim Meyering  <meyering@redhat.com>
47514
47515         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
47516         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
47517         "underquoted definition of NAME" from autoconf-2.59.
47518
47519 2009-01-28  Bruno Haible  <bruno@clisp.org>
47520
47521         * doc/gnulib.texi: Add "Obsolete modules" to index.
47522
47523 2009-01-28  Jim Meyering  <meyering@redhat.com>
47524
47525         useless-if-before-free: recognize more variants
47526         * build-aux/useless-if-before-free: Also recognize e.g.,
47527         if (NULL != p) free (p);
47528
47529 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
47530
47531         test-getaddrinfo: skip (don't fail) this test when there's no network
47532         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
47533         on the presumption that it means you lack network access.
47534
47535 2009-01-26  Jim Meyering  <meyering@redhat.com>
47536
47537         fflush: avoid warnings on modern systems
47538         * lib/fflush.c (rpl_fflush): Move declarations of locals,
47539         pos and result, into scopes where they're used.
47540
47541 2009-01-26  Eric Blake  <ebb9@byu.net>
47542
47543         Silence warning reintroduced by recent extensions patch.
47544         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
47545         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
47546         autoconf.
47547
47548         Backport improved autoconf semantics of AC_DEFUN_ONCE.
47549         * m4/00gnulib.m4: New file.
47550         * gnulib-tool (func_get_filelist): Always use it.
47551         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
47552         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
47553
47554 2009-01-25  Bruno Haible  <bruno@clisp.org>
47555
47556         Make test-quotearg work on MacOS X and AIX.
47557         * tests/test-quotearg.sh: New file.
47558         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
47559         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
47560         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
47561         include <libintl.h>.
47562         (fake_locale): Remove variable.
47563         (gettext, dgettext, dcgettext): Remove functions.
47564         (main): Instead of setting a fake locale, set a real locale. Call
47565         textdomain and bindtextdomain.
47566         * modules/quotearg-tests (Files): Add the new files.
47567         (Depends-on): Add gettext, setenv, unsetenv.
47568         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
47569         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
47570         Augment TESTS_ENVIRONMENT.
47571
47572 2009-01-25  Bruno Haible  <bruno@clisp.org>
47573
47574         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
47575         fr_FR.ISO8859-1 locale on MacOS X.
47576         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
47577         ja_JP.eucJP locale on MacOS X.
47578         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
47579         zh_CN.GB18030 locale on MacOS X.
47580
47581 2009-01-25  Bruno Haible  <bruno@clisp.org>
47582
47583         Avoid link errors on MacOS X 10.3.
47584         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
47585         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47586
47587 2009-01-25  Bruno Haible  <bruno@clisp.org>
47588
47589         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47590         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
47591         * modules/pipe (Files): Remove m4/posix_spawn.m4.
47592         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47593         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
47594         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47595         posix_spawnattr_init, posix_spawnattr_setsigmask,
47596         posix_spawnattr_setflags, posix_spawnattr_destroy.
47597
47598         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
47599         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
47600         * modules/execute (Files): Remove m4/posix_spawn.m4.
47601         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
47602         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
47603         posix_spawnattr_init, posix_spawnattr_setsigmask,
47604         posix_spawnattr_setflags, posix_spawnattr_destroy.
47605
47606 2009-01-25  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/glthread/threadlib.c: Include <stdlib.h>.
47609
47610 2009-01-25  Bruno Haible  <bruno@clisp.org>
47611
47612         * lib/glthread/threadlib.c (dummy): New declaration.
47613
47614 2009-01-25  Bruno Haible  <bruno@clisp.org>
47615
47616         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
47617         multibyte characters also for the GB18030 encoding. Don't crash when
47618         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
47619
47620 2009-01-25  Bruno Haible  <bruno@clisp.org>
47621
47622         Avoid redefining 'struct random_data' on OSF/1 5.1.
47623         * lib/stdlib.in.h: Include <random.h> if it exists.
47624         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
47625         HAVE_RANDOM_H. Include <random.h> when testing whether
47626         'struct random_data' exists.
47627         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
47628
47629 2009-01-25  Bruno Haible  <bruno@clisp.org>
47630
47631         Don't install charset.alias on MacOS X >= 10.3.
47632         * lib/localcharset.c (DARWIN7): New macro.
47633         (get_charset_aliases): Hardcode the result for Darwin7.
47634         * modules/localcharset (install-exec-local): Don't install
47635         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
47636
47637 2009-01-25  Bruno Haible  <bruno@clisp.org>
47638
47639         Don't install charset.alias on mingw and Cygwin.
47640         * modules/localcharset (install-exec-local): Don't install
47641         charset.alias on mingw and Cygwin, if the file does not yet exist.
47642         The result for these platforms is hardcoded in localcharset.c.
47643
47644 2009-01-25  Bruno Haible  <bruno@clisp.org>
47645
47646         Make it possible again to use AC_GNU_SOURCE together with gnulib.
47647         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
47648         before requiring AC_USE_SYSTEM_EXTENSIONS.
47649
47650 2009-01-25  Jim Meyering  <meyering@redhat.com>
47651
47652         c-strtod: avoid warnings
47653         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
47654         "assignment discards qualifiers from pointer target type" warnings.
47655
47656 2009-01-24  Bruno Haible  <bruno@clisp.org>
47657
47658         Add support for non-UTF-8 locales on MacOS X.
47659         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
47660         canonical encodings. For Darwin 7 and newer, don't map traditional
47661         encodings to UTF-8.
47662         Reported by Vincent Lefevre <vincent@vinc17.org>
47663         at <http://savannah.gnu.org/bugs/?25235>.
47664
47665 2009-01-24  Bruno Haible  <bruno@clisp.org>
47666
47667         * doc/gnulib.texi (Obsolete modules): New section.
47668         Reported by Mike Frysinger <vapier@gentoo.org>.
47669
47670 2009-01-24  Bruno Haible  <bruno@clisp.org>
47671
47672         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
47673         (%.dvi): New rule.
47674
47675 2009-01-24  Bruno Haible  <bruno@clisp.org>
47676
47677         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
47678         Reported by Eric Blake.
47679
47680 2009-01-24  Bruno Haible  <bruno@clisp.org>
47681
47682         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
47683         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
47684         Reported by Gary V. Vaughan <gary@gnu.org>.
47685
47686 2009-01-24  Bruno Haible  <bruno@clisp.org>
47687
47688         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
47689
47690 2009-01-23  Bruno Haible  <bruno@clisp.org>
47691
47692         Make c-strtod, c-strtold usable in libraries.
47693         * lib/c-strtod.c: Include string.h instead of xalloc.h.
47694         (C_STRTOD): Call strdup instead of xstrdup.
47695         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
47696         * modules/c-strtold (Depends-on): Likewise.
47697         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
47698         * NEWS: Mention the change.
47699         Reported by Michael Gold <mgold@ncf.ca>.
47700
47701 2009-01-23  Jim Meyering  <meyering@redhat.com>
47702
47703         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
47704         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
47705         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
47706
47707 2009-01-23  Simon Josefsson  <simon@josefsson.org>
47708
47709         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
47710         GNU CoreUtils.
47711         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
47712         * modules/version-etc (Description): Update.
47713
47714 2009-01-22  Bruno Haible  <bruno@clisp.org>
47715
47716         Cache the C locale object.
47717         * lib/c-strtod.c (c_locale_cache): New variable.
47718         (c_locale): New function.
47719         (C_STRTOD): Use it, and don't call freelocale.
47720         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
47721         Suggested by Paolo Bonzini.
47722
47723 2009-01-21  Bruno Haible  <bruno@clisp.org>
47724
47725         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
47726         conditions other than overflow.
47727
47728 2009-01-21  Bruno Haible  <bruno@clisp.org>
47729
47730         * lib/c-strtod.c: Include errno.h.
47731         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
47732         value from STRTOD_L and STRTOD.
47733
47734 2009-01-21  Bruno Haible  <bruno@clisp.org>
47735         and Jim Meyering  <meyering@redhat.com>
47736
47737         nanosleep: skip configure test (fail it) for apple universal builds
47738         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
47739         universal builds, assume that nanosleep does not work.
47740         * modules/nanosleep (Depends-on): Add multiarch.
47741
47742         mktime: skip configure test (fail it) for apple universal builds
47743         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
47744         universal builds, assume that mktime does not work.
47745         * modules/mktime (Depends-on): Add multiarch.
47746
47747 2009-01-21  Eric Blake  <ebb9@byu.net>
47748
47749         multiarch: avoid expand-before-require warning
47750         * modules/multiarch (configure.ac): Require, rather than expand,
47751         gl_MULTIARCH.
47752         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
47753         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
47754         enforce that all clients require it.  Partial reversion of
47755         2008-12-29 patch.
47756
47757         error: avoid expand-before-require warning
47758         * modules/errno (configure.ac): Require, rather than expand,
47759         gl_HEADER_ERRNO_H.
47760         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
47761         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
47762         enforce that all clients require it.
47763
47764         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
47765         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
47766         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
47767         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
47768
47769 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
47770
47771         Revert:
47772         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47773
47774         regex: do not depend on obsolete modules.
47775         * modules/regex: Remove memcmp and memmove.
47776
47777 2009-01-20  Bruno Haible  <bruno@clisp.org>
47778
47779         Make the 'link' module link on Windows NT 4.
47780         * lib/link.c (_WIN32_WINNT): Don't define.
47781         (CreateHardLinkFuncType): New type.
47782         (CreateHardLinkFunc, initialized): New variables.
47783         (initialize): New function.
47784         (link): Invoke CreateHardLink indirectly through the function pointer.
47785
47786 2009-01-20  Bruno Haible  <bruno@clisp.org>
47787
47788         Fix compilation failure on mingw.
47789         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
47790
47791 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
47792
47793         * doc/c-strtod.texi: Mention a couple of restrictions.
47794
47795 2009-01-20  Jim Meyering  <meyering@redhat.com>
47796
47797         gettimeofday: move more declarations out of functions
47798         * lib/gettimeofday.c: Move extern declarations of tzset and
47799         gmtime out of containing functions.  Prompted by Bruno Haible.
47800
47801 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
47802
47803         regex: do not depend on obsolete modules.
47804         * modules/regex: Remove memcmp and memmove.
47805
47806 2009-01-19  Bruno Haible  <bruno@clisp.org>
47807
47808         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47809         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47810         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47811         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47812         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47813
47814 2009-01-19  Bruno Haible  <bruno@clisp.org>
47815
47816         * tests/test-link.c: Include <errno.h>.
47817         (main): Exit with code 77 when a hard link cannot be created due to
47818         the file system.
47819         * tests/test-link.sh: Skip test when a hard link cannot be created due
47820         to the file system.
47821         Suggested by Eric Blake.
47822
47823 2009-01-19  Martin Lambers  <marlam@marlam.de>
47824
47825         * modules/link-tests: New file.
47826         * tests/test-link.sh: New file.
47827         * tests/test-link.c: New file.
47828
47829 2009-01-19  Eric Blake  <ebb9@byu.net>
47830
47831         doc: mention another function added in cygwin 1.7.0
47832         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47833         Another new function in cygwin 1.7.
47834
47835 2009-01-19  Bruno Haible  <bruno@clisp.org>
47836
47837         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47838         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47839         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47840         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47841         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47842         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47843         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47844         * m4/md4.m4 (gl_MD4): Likewise.
47845         * m4/md5.m4 (gl_MD5): Likewise.
47846         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47847         * m4/sha1.m4 (gl_SHA1): Likewise.
47848         * m4/sha256.m4 (gl_SHA256): Likewise.
47849         * m4/sha512.m4 (gl_SHA512): Likewise.
47850
47851 2009-01-19  Bruno Haible  <bruno@clisp.org>
47852
47853         * modules/uniname/uniname-tests (Depends-on): Add progname.
47854         * tests/uniname/test-uninames.c: Include progname.h.
47855         (main): Call set_program_name.
47856
47857         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47858         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47859         (main): Call set_program_name.
47860
47861         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47862         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47863         (main): Call set_program_name.
47864
47865         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47866         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47867         (main): Call set_program_name.
47868
47869         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47870         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47871         (main): Call set_program_name.
47872
47873         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47874         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47875         (main): Call set_program_name.
47876
47877         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47878         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47879         (main): Call set_program_name.
47880
47881         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47882         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47883         (main): Call set_program_name.
47884
47885         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47886         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47887         (main): Call set_program_name.
47888
47889 2009-01-19  Eric Blake  <ebb9@byu.net>
47890
47891         test-unistd: test previous patch
47892         * tests/test-unistd.c: Test *_FILENO macros.
47893
47894         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47895         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47896         Guarantee a definition.
47897         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47898         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47899         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47900         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47901         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47902         Likewise.
47903         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47904         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47905         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47906         Likewise.
47907         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47908         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47909         (STDERR_FILENO): Likewise.
47910         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47911         (STDERR_FILENO): Likewise.
47912         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47913         (STDERR_FILENO): Likewise.
47914         Reported by Elbert Pol.
47915
47916 2009-01-19  Eric Blake  <ebb9@byu.net>
47917
47918         doc: mention more functions added in cygwin 1.7.0
47919         * doc/posix-functions/abort.texi (abort): Update wording related
47920         to cygwin.
47921         * doc/posix-functions/daylight.texi (daylight): Likewise.
47922         * doc/posix-functions/optarg.texi (optarg): Likewise.
47923         * doc/posix-functions/optarg.texi (opterr): Likewise.
47924         * doc/posix-functions/optarg.texi (optind): Likewise.
47925         * doc/posix-functions/optarg.texi (optopt): Likewise.
47926         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47927         worked in 1.5.x, and was withdrawn in 1.7.
47928         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47929         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47930         cygwin versions.
47931         * doc/posix-functions/perror.texi (perror): Likewise.
47932         * doc/posix-functions/printf.texi (printf): Likewise.
47933         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47934         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47935         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47936         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47937         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47938         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47939         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47940         Likewise.
47941         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47942         Likewise.
47943         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47944         this function.
47945         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47946         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47947         Likewise.
47948         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47949         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47950         * doc/posix-functions/confstr.texi (confstr): Likewise.
47951         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47952         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47953         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47954         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47955         * doc/posix-functions/fputws.texi (fputws): Likewise.
47956         * doc/posix-functions/fwide.texi (fwide): Likewise.
47957         * doc/posix-functions/getwc.texi (getwc): Likewise.
47958         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47959         * doc/posix-functions/putwc.texi (putwc): Likewise.
47960         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47961         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47962         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47963         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47964         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47965         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47966         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47967         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47968         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47969         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47970         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47971
47972 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47973
47974         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47975         * lib/ioctl.c: Include <sys/ioctl.h>.
47976
47977 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47978
47979         * modules/getdate-tests (Depends-on): Add progname.
47980         * tests/test-getdate.c: Use progname module, to avoid link errors
47981         on non-glibc systems.
47982
47983 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47984
47985         * modules/filenamecat-tests (Depends-on): Add progname.
47986         * modules/fstrcmp-tests (Depends-on): Likewise.
47987
47988         * tests/test-filenamecat.c: Use progname module, to avoid link
47989         errors on non-glibc systems.
47990         * tests/test-fstrcmp.c: Likewise.
47991
47992 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47993
47994         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47995         * lib/gettimeofday.c: Move extern declaration out of function.
47996
47997 2009-01-18  Bruno Haible  <bruno@clisp.org>
47998
47999         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
48000         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
48001         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
48002
48003 2009-01-18  Bruno Haible  <bruno@clisp.org>
48004
48005         * lib/strftime.c (MEMPCPY): Remove unused macro.
48006         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
48007
48008 2009-01-18  Martin Lambers  <marlam@marlam.de>
48009
48010         New module 'link'.
48011         * lib/unistd.in.h (link): New declaration.
48012         * lib/link.c: New file.
48013         * m4/link.m4: New file.
48014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
48015         HAVE_LINK.
48016         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
48017         * modules/link: New file.
48018         * doc/posix-functions/link.texi: Mention the new module.
48019
48020 2009-01-18  Bruno Haible  <bruno@clisp.org>
48021
48022         * tests/test-avltree_list.c (main): Call set_program_name.
48023         * tests/test-avltree_oset.c (main): Likewise.
48024         * tests/test-obstack-printf.c: Include progname.h.
48025         (main): Call set_program_name.
48026         * tests/test-quotearg.c: Include progname.h.
48027         (main): Call set_program_name.
48028         * tests/test-xmemdup0.c: Include progname.h.
48029         (main): Call set_program_name.
48030
48031 2009-01-18  Bruno Haible  <bruno@clisp.org>
48032
48033         New module 'alphasort'.
48034         * lib/dirent.in.h (alphasort): New declaration.
48035         * lib/alphasort.c: New file, from glibc with modifications.
48036         * m4/alphasort.m4: New file.
48037         * modules/alphasort: New file.
48038         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
48039         HAVE_ALPHASORT.
48040         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
48041         HAVE_ALPHASORT.
48042         * doc/posix-functions/alphasort.texi: Mention the new module and the
48043         portability problems.
48044
48045 2009-01-18  Bruno Haible  <bruno@clisp.org>
48046
48047         New module 'scandir'.
48048         * lib/dirent.in.h (scandir): New declaration.
48049         * lib/scandir.c: New file, from glibc with modifications.
48050         * m4/scandir.m4: New file.
48051         * modules/scandir: New file.
48052         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
48053         HAVE_SCANDIR.
48054         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
48055         HAVE_SCANDIR.
48056         * doc/posix-functions/scandir.texi: Mention the new module and the
48057         portability problems.
48058
48059 2009-01-17  Bruno Haible  <bruno@clisp.org>
48060
48061         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
48062         Update documentation.
48063         (func_remove_suffix): Escape all dots in the suffix. Update
48064         documentation.
48065         (func_filter_filelist): Update documentation.
48066         Reported by Ralf Wildenhues.
48067
48068 2009-01-17  Bruno Haible  <bruno@clisp.org>
48069
48070         * modules/dprintf-posix-tests: New file.
48071         * tests/test-dprintf-posix.sh: New file.
48072         * tests/test-dprintf-posix.c: New file.
48073
48074         New modules 'dprintf', 'dprintf-posix'.
48075         * lib/stdio.in.h (dprintf): New declaration.
48076         * lib/dprintf.c: New file.
48077         * m4/dprintf.m4: New file.
48078         * m4/dprintf-posix.m4: New file.
48079         * modules/dprintf: New file.
48080         * modules/dprintf-posix: New file.
48081         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
48082         HAVE_DPRINTF, REPLACE_DPRINTF.
48083         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
48084         HAVE_DPRINTF, REPLACE_DPRINTF.
48085         * doc/posix-functions/dprintf.texi: Mention the new modules.
48086
48087 2009-01-17  Bruno Haible  <bruno@clisp.org>
48088
48089         * modules/vdprintf-posix-tests: New file.
48090         * tests/test-vdprintf-posix.sh: New file.
48091         * tests/test-vdprintf-posix.c: New file.
48092
48093         New modules 'vdprintf', 'vdprintf-posix'.
48094         * lib/stdio.in.h (vdprintf): New declaration.
48095         * lib/vdprintf.c: New file.
48096         * m4/vdprintf.m4: New file.
48097         * m4/vdprintf-posix.m4: New file.
48098         * modules/vdprintf: New file.
48099         * modules/vdprintf-posix: New file.
48100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
48101         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48102         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
48103         HAVE_VDPRINTF, REPLACE_VDPRINTF.
48104         * doc/posix-functions/vdprintf.texi: Mention the new modules.
48105
48106 2009-01-17  Bruno Haible  <bruno@clisp.org>
48107
48108         Fix replacement of fopen on mingw.
48109         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
48110         mingw.
48111
48112 2009-01-17  Bruno Haible  <bruno@clisp.org>
48113
48114         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
48115         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
48116
48117 2009-01-17  Bruno Haible  <bruno@clisp.org>
48118
48119         Avoid test-fflush2.sh failure on mingw.
48120         * tests/test-fflush2.c: Include binary-io.h.
48121         (main): Put standard input into binary mode.
48122         * modules/fflush-tests (Depends-on): Add binary-io.
48123
48124 2009-01-17  Bruno Haible  <bruno@clisp.org>
48125
48126         * lib/wchar.in.h: In another particular situation, include only the
48127         system's <wchar.h> file.
48128         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
48129         Reported by Albert Chin-A-Young <china@thewrittenword.com>
48130         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
48131
48132 2009-01-17  Bruno Haible  <bruno@clisp.org>
48133
48134         Support for stripping executables in --enable-relocatable.
48135         * build-aux/install-reloc: Expect one more argument, or an environment
48136         variable RELOC_STRIP_PROG. If set, strip the destination program and
48137         its wrapper.
48138         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
48139         RELOC_STRIP_PROG.
48140         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
48141         to set RELOCATABLE_STRIP.
48142         * NEWS: Mention the new Makefile requirement.
48143
48144 2009-01-17  Bruno Haible  <bruno@clisp.org>
48145
48146         * build-aux/install-reloc: Remove debugging information left over by
48147         C compiler on MacOS X.
48148
48149 2009-01-17  Bruno Haible  <bruno@clisp.org>
48150
48151         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
48152         * lib/progreloc.c (find_executable): Fix type of pointer passed to
48153         _NSGetExecutablePath.
48154
48155 2009-01-16  Jim Meyering  <meyering@redhat.com>
48156
48157         strerror: avoid warnings about discarding "const"
48158         * lib/strerror.c (rpl_strerror): Instead of returning a const
48159         string from each and every "case", use a variable, and add a single
48160         cast after the switch.
48161
48162 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
48163
48164         * lib/arpa_inet.in.h: Add extern "C" block for C++.
48165
48166 2009-01-16  Bruno Haible  <bruno@clisp.org>
48167
48168         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
48169         array initializer syntax that also works in C++ mode.
48170         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48171
48172 2009-01-16  Jim Meyering  <meyering@redhat.com>
48173
48174         poll: suppress a warning
48175         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
48176         to ignore "...unsigned expression < 0 is always false" warnings.
48177
48178 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
48179
48180         poll: remove declarations of unused variables
48181         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
48182         sockbuf and optlen.
48183
48184 2009-01-15  Bruno Haible  <bruno@clisp.org>
48185
48186         Make fflush-after-ungetc POSIX compliant on BSD systems.
48187         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
48188         (clear_ungetc_buffer): Implement also for other systems.
48189         (rpl_fflush): On glibc systems, invoke
48190         clear_ungetc_buffer_preserving_position. Otherwise, invoke
48191         clear_ungetc_buffer after fetching the stream's position, not before.
48192
48193 2009-01-15  Bruno Haible  <bruno@clisp.org>
48194
48195         Make fflush-after-ungetc POSIX compliant on glibc systems.
48196         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
48197         after ungetc.
48198         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
48199         (rpl_fflush): On glibc systems, simply call the system's fflush
48200         function after clearing the ungetc buffer.
48201         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
48202         Instead, lseek only to the end of file, then use the system's fseeko
48203         for the rest. On glibc systems, reset the EOF indicator bit.
48204
48205 2009-01-15  Jim Meyering  <meyering@redhat.com>
48206
48207         openmp.m4: revert quote-adding change, for portability to older autoconf
48208         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
48209         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
48210         Simon Josefsson noticed the problem when using autoconf-2.61.
48211
48212 2009-01-15  Bruno Haible  <bruno@clisp.org>
48213
48214         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
48215         * tests/test-fflush2.c (ASSERT): Always fail.
48216         (main): Add two tests for fflush() after ungetc(), taking into account
48217         the Austin Group's clarification.
48218         Suggested by Eric Blake.
48219
48220 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
48221
48222         mktime.m4: remove K&R-style function prototypes
48223         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
48224         for the Sun C++ compiler.
48225
48226 2009-01-14  Bruno Haible  <bruno@clisp.org>
48227
48228         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
48229         while including <wchar.h>.
48230         * lib/wchar.in.h: In two particular situations on HP-UX, include only
48231         the system's <wchar.h> file.
48232         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48233
48234 2009-01-14  Bruno Haible  <bruno@clisp.org>
48235
48236         * m4/csharp.m4: Don't mention gettext on the serial number line.
48237         * m4/csharpexec.m4: Likewise.
48238         * m4/eaccess.m4: Likewise.
48239         * m4/javaexec.m4: Likewise.
48240         * m4/sig_atomic_t.m4: Likewise.
48241         * m4/tmpdir.m4: Likewise.
48242         * m4/intldir.m4: Bump gettext version.
48243         * m4/lib-ld.m4: Likewise.
48244
48245 2009-01-14  Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/progname.c (set_program_name): Add more comments.
48248         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
48249
48250 2009-01-14  Simon Josefsson  <simon@josefsson.org>
48251
48252         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
48253         were sys/stat.h does not define it.
48254
48255 2009-01-14  Jim Meyering  <meyering@redhat.com>
48256
48257         many *.m4 files: improve m4 quoting
48258         99% of this change was performed by running the following commands:
48259         git ls-files | grep '\.m4$' | xargs perl -pi \
48260           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
48261           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48262           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
48263           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
48264         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
48265         The remainder were to add Copyright dates, increment serial numbers,
48266         undo some changes in comments, exclude m4/intl.m4, and add quotes
48267         around the "1" in ",1" where the unusual spacing prohibited the
48268         above regexps from doing the job.  For more details, see
48269         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
48270         * m4/acl.m4: Modified.
48271         * m4/afs.m4: Likewise.
48272         * m4/alloca.m4: Likewise.
48273         * m4/argp.m4: Likewise.
48274         * m4/argz.m4: Likewise.
48275         * m4/atexit.m4: Likewise.
48276         * m4/bison-i18n.m4: Likewise.
48277         * m4/bison.m4: Likewise.
48278         * m4/byteswap.m4: Likewise.
48279         * m4/c-stack.m4: Likewise.
48280         * m4/c-strtod.m4: Likewise.
48281         * m4/calloc.m4: Likewise.
48282         * m4/canonicalize-lgpl.m4: Likewise.
48283         * m4/chown.m4: Likewise.
48284         * m4/clock_time.m4: Likewise.
48285         * m4/codeset.m4: Likewise.
48286         * m4/copy-file.m4: Likewise.
48287         * m4/csharp.m4: Likewise.
48288         * m4/csharpcomp.m4: Likewise.
48289         * m4/csharpexec.m4: Likewise.
48290         * m4/d-ino.m4: Likewise.
48291         * m4/d-type.m4: Likewise.
48292         * m4/dirfd.m4: Likewise.
48293         * m4/double-slash-root.m4: Likewise.
48294         * m4/eaccess.m4: Likewise.
48295         * m4/eealloc.m4: Likewise.
48296         * m4/environ.m4: Likewise.
48297         * m4/errno_h.m4: Likewise.
48298         * m4/euidaccess.m4: Likewise.
48299         * m4/execute.m4: Likewise.
48300         * m4/fatal-signal.m4: Likewise.
48301         * m4/fchdir.m4: Likewise.
48302         * m4/fcntl_h.m4: Likewise.
48303         * m4/fileblocks.m4: Likewise.
48304         * m4/filenamecat.m4: Likewise.
48305         * m4/findprog.m4: Likewise.
48306         * m4/flexmember.m4: Likewise.
48307         * m4/fnmatch.m4: Likewise.
48308         * m4/fopen.m4: Likewise.
48309         * m4/fpending.m4: Likewise.
48310         * m4/fprintf-posix.m4: Likewise.
48311         * m4/free.m4: Likewise.
48312         * m4/frexp.m4: Likewise.
48313         * m4/frexpl.m4: Likewise.
48314         * m4/fsusage.m4: Likewise.
48315         * m4/ftruncate.m4: Likewise.
48316         * m4/gc-camellia.m4: Likewise.
48317         * m4/gc-random.m4: Likewise.
48318         * m4/gc.m4: Likewise.
48319         * m4/getaddrinfo.m4: Likewise.
48320         * m4/getcwd-abort-bug.m4: Likewise.
48321         * m4/getcwd-path-max.m4: Likewise.
48322         * m4/getdate.m4: Likewise.
48323         * m4/getdomainname.m4: Likewise.
48324         * m4/getgroups.m4: Likewise.
48325         * m4/gethostname.m4: Likewise.
48326         * m4/gethrxtime.m4: Likewise.
48327         * m4/getline.m4: Likewise.
48328         * m4/getloadavg.m4: Likewise.
48329         * m4/getndelim2.m4: Likewise.
48330         * m4/getpass.m4: Likewise.
48331         * m4/gettext.m4: Likewise.
48332         * m4/gettime.m4: Likewise.
48333         * m4/gettimeofday.m4: Likewise.
48334         * m4/gnulib-common.m4: Likewise.
48335         * m4/group-member.m4: Likewise.
48336         * m4/host-os.m4: Likewise.
48337         * m4/iconv.m4: Likewise.
48338         * m4/iconv_open.m4: Likewise.
48339         * m4/inet_ntop.m4: Likewise.
48340         * m4/inet_pton.m4: Likewise.
48341         * m4/inline.m4: Likewise.
48342         * m4/intldir.m4: Likewise.
48343         * m4/intlmacosx.m4: Likewise.
48344         * m4/intmax.m4: Likewise.
48345         * m4/intmax_t.m4: Likewise.
48346         * m4/inttypes.m4: Likewise.
48347         * m4/inttypes_h.m4: Likewise.
48348         * m4/inttypes-pri.m4: Likewise.
48349         * m4/isapipe.m4: Likewise.
48350         * m4/isnand.m4: Likewise.
48351         * m4/isnanf.m4: Likewise.
48352         * m4/isnanl.m4: Likewise.
48353         * m4/javacomp.m4: Likewise.
48354         * m4/javaexec.m4: Likewise.
48355         * m4/jm-winsz1.m4: Likewise.
48356         * m4/jm-winsz2.m4: Likewise.
48357         * m4/lchown.m4: Likewise.
48358         * m4/lcmessage.m4: Likewise.
48359         * m4/ldexpl.m4: Likewise.
48360         * m4/lib-ld.m4: Likewise.
48361         * m4/lib-link.m4: Likewise.
48362         * m4/libsigsegv.m4: Likewise.
48363         * m4/link-follow.m4: Likewise.
48364         * m4/localcharset.m4: Likewise.
48365         * m4/locale-fr.m4: Likewise.
48366         * m4/locale-ja.m4: Likewise.
48367         * m4/locale-tr.m4: Likewise.
48368         * m4/locale-zh.m4: Likewise.
48369         * m4/lock.m4: Likewise.
48370         * m4/longlong.m4: Likewise.
48371         * m4/ls-mntd-fs.m4: Likewise.
48372         * m4/lstat.m4: Likewise.
48373         * m4/malloc.m4: Likewise.
48374         * m4/mathl.m4: Likewise.
48375         * m4/mbrtowc.m4: Likewise.
48376         * m4/mbstate_t.m4: Likewise.
48377         * m4/mbswidth.m4: Likewise.
48378         * m4/memchr.m4: Likewise.
48379         * m4/memcmp.m4: Likewise.
48380         * m4/memcpy.m4: Likewise.
48381         * m4/memmem.m4: Likewise.
48382         * m4/memmove.m4: Likewise.
48383         * m4/mempcpy.m4: Likewise.
48384         * m4/memrchr.m4: Likewise.
48385         * m4/memset.m4: Likewise.
48386         * m4/minmax.m4: Likewise.
48387         * m4/mkdir-slash.m4: Likewise.
48388         * m4/mkdtemp.m4: Likewise.
48389         * m4/mktime.m4: Likewise.
48390         * m4/mmap-anon.m4: Likewise.
48391         * m4/mountlist.m4: Likewise.
48392         * m4/nanosleep.m4: Likewise.
48393         * m4/nls.m4: Likewise.
48394         * m4/nocrash.m4: Likewise.
48395         * m4/open.m4: Likewise.
48396         * m4/openat.m4: Likewise.
48397         * m4/openmp.m4: Likewise.
48398         * m4/pathmax.m4: Likewise.
48399         * m4/perl.m4: Likewise.
48400         * m4/physmem.m4: Likewise.
48401         * m4/pipe.m4: Likewise.
48402         * m4/po.m4: Likewise.
48403         * m4/poll.m4: Likewise.
48404         * m4/posixtm.m4: Likewise.
48405         * m4/posixver.m4: Likewise.
48406         * m4/printf-frexp.m4: Likewise.
48407         * m4/printf-frexpl.m4: Likewise.
48408         * m4/printf-posix.m4: Likewise.
48409         * m4/printf-posix-rpl.m4: Likewise.
48410         * m4/printf.m4: Likewise.
48411         * m4/progtest.m4: Likewise.
48412         * m4/putenv.m4: Likewise.
48413         * m4/readline.m4: Likewise.
48414         * m4/readlink.m4: Likewise.
48415         * m4/readutmp.m4: Likewise.
48416         * m4/realloc.m4: Likewise.
48417         * m4/regex.m4: Likewise.
48418         * m4/relocatable.m4: Likewise.
48419         * m4/relocatable-lib.m4: Likewise.
48420         * m4/rename-dest-slash.m4: Likewise.
48421         * m4/rename.m4: Likewise.
48422         * m4/rmdir-errno.m4: Likewise.
48423         * m4/rmdir.m4: Likewise.
48424         * m4/roundf.m4: Likewise.
48425         * m4/roundl.m4: Likewise.
48426         * m4/rpmatch.m4: Likewise.
48427         * m4/save-cwd.m4: Likewise.
48428         * m4/selinux-selinux-h.m4: Likewise.
48429         * m4/setenv.m4: Likewise.
48430         * m4/settime.m4: Likewise.
48431         * m4/sig2str.m4: Likewise.
48432         * m4/sig_atomic_t.m4: Likewise.
48433         * m4/signalblocking.m4: Likewise.
48434         * m4/signbit.m4: Likewise.
48435         * m4/sigpipe.m4: Likewise.
48436         * m4/sockets.m4: Likewise.
48437         * m4/sockpfaf.m4: Likewise.
48438         * m4/st_dm_mode.m4: Likewise.
48439         * m4/stat-time.m4: Likewise.
48440         * m4/stdbool.m4: Likewise.
48441         * m4/stdint.m4: Likewise.
48442         * m4/stdint_h.m4: Likewise.
48443         * m4/stpcpy.m4: Likewise.
48444         * m4/stpncpy.m4: Likewise.
48445         * m4/strcase.m4: Likewise.
48446         * m4/strchrnul.m4: Likewise.
48447         * m4/strcspn.m4: Likewise.
48448         * m4/strdup.m4: Likewise.
48449         * m4/strftime.m4: Likewise.
48450         * m4/strndup.m4: Likewise.
48451         * m4/strnlen.m4: Likewise.
48452         * m4/strpbrk.m4: Likewise.
48453         * m4/strptime.m4: Likewise.
48454         * m4/strsep.m4: Likewise.
48455         * m4/strtod.m4: Likewise.
48456         * m4/strtoimax.m4: Likewise.
48457         * m4/strtok_r.m4: Likewise.
48458         * m4/strtol.m4: Likewise.
48459         * m4/strtoll.m4: Likewise.
48460         * m4/strtoul.m4: Likewise.
48461         * m4/strtoull.m4: Likewise.
48462         * m4/strtoumax.m4: Likewise.
48463         * m4/strverscmp.m4: Likewise.
48464         * m4/threadlib.m4: Likewise.
48465         * m4/timegm.m4: Likewise.
48466         * m4/tm_gmtoff.m4: Likewise.
48467         * m4/tmpdir.m4: Likewise.
48468         * m4/tmpfile.m4: Likewise.
48469         * m4/tzset.m4: Likewise.
48470         * m4/uintmax_t.m4: Likewise.
48471         * m4/unlinkdir.m4: Likewise.
48472         * m4/unlocked-io.m4: Likewise.
48473         * m4/uptime.m4: Likewise.
48474         * m4/userspec.m4: Likewise.
48475         * m4/utimbuf.m4: Likewise.
48476         * m4/utime.m4: Likewise.
48477         * m4/utimes-null.m4: Likewise.
48478         * m4/utimes.m4: Likewise.
48479         * m4/vararrays.m4: Likewise.
48480         * m4/vasnprintf.m4: Likewise.
48481         * m4/vfprintf-posix.m4: Likewise.
48482         * m4/vprintf-posix.m4: Likewise.
48483         * m4/wait-process.m4: Likewise.
48484         * m4/wchar_t.m4: Likewise.
48485         * m4/wint_t.m4: Likewise.
48486         * m4/write-any-file.m4: Likewise.
48487         * m4/yield.m4: Likewise.
48488
48489 2009-01-13  Bruno Haible  <bruno@clisp.org>
48490
48491         Avoid test-copy-file.sh failures when ACL support insufficient.
48492         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
48493         TESTS_ENVIRONMENT.
48494         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
48495         Reported by Jim Meyering.
48496
48497 2009-01-13  Bruno Haible  <bruno@clisp.org>
48498
48499         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
48500         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
48501         * modules/unistdio/u8-printf-parse (Files): Likewise.
48502         * modules/unistdio/u32-printf-parse (Files): Likewise.
48503         * modules/unistdio/ulc-printf-parse (Files): Likewise.
48504
48505 2009-01-13  Simon Josefsson  <simon@josefsson.org>
48506
48507         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
48508         and m4/inttypes_h.m4 too.
48509
48510 2009-01-12  Eric Blake  <ebb9@byu.net>
48511
48512         tests: IRIX 6.2 cc can't compile -0.0 into .data
48513         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
48514         rather than at compile-time.
48515         * tests/test-floorl.c (minus_zero): Likewise.
48516         * tests/test-frexpl.c (minus_zero): Likewise.
48517         * tests/test-isnan.c (minus_zerol): Likewise.
48518         * tests/test-isnanl.h (minus_zero): Likewise.
48519         * tests/test-ldexpl.c (minus_zero): Likewise.
48520         * tests/test-roundl.c (minus_zero): Likewise.
48521         * tests/test-signbit.c (minus_zerol): Likewise.
48522         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
48523         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
48524         * tests/test-truncl.c (minus_zero): Likewise.
48525         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
48526         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
48527         Reported by Tom G. Christensen and Nelson H. F. Beebe.
48528
48529 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48530
48531         regex: fix glibc bug 9697
48532         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
48533         handling.
48534
48535 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48536
48537         regex: fix glibc bug 697
48538         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
48539         being NULL also if there are no backreferences.
48540
48541 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
48542
48543         regex: merge glibc changes
48544         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
48545         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
48546         re_string_skip_chars, re_string_reconstruct): Likewise.
48547         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
48548
48549 2009-01-07  Jim Meyering  <meyering@redhat.com>
48550
48551         poll: filter through cppi
48552         * lib/poll.c: Indent cpp directives to reflect nesting.
48553
48554 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
48555
48556         poll: don't return uninitialized
48557         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
48558
48559 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
48560
48561         avoid compile failure on AIX 6.1
48562         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
48563         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
48564
48565 2009-01-04  Jim Meyering  <meyering@redhat.com>
48566
48567         remove duplicate inclusion of <stdio.h>
48568         * tests/test-fprintf-posix.c: Likewise.
48569         * tests/test-printf-posix.c: Likewise.
48570         * tests/test-snprintf-posix.c: Likewise.
48571         * tests/test-sprintf-posix.c: Likewise.
48572         * tests/test-vasprintf-posix.c: Likewise.
48573         * tests/test-vfprintf-posix.c: Likewise.
48574         * tests/test-vprintf-posix.c: Likewise.
48575         * tests/test-vsnprintf-posix.c: Likewise.
48576         * tests/test-vsprintf-posix.c: Likewise.
48577
48578 2009-01-03  Jim Meyering  <meyering@redhat.com>
48579
48580         gnulib-tool: fix sed-based filtering
48581         * gnulib-tool (func_filter_filelist): Remove extra backslash
48582         in sed_fff_filter definition.
48583
48584 2009-01-02  Jim Meyering  <meyering@redhat.com>
48585
48586         strftime: avoid compilation failure on Solaris 2.6
48587         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
48588         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
48589         Don't #define mbrlen or mbsinit, since now they're guaranteed to
48590         be available.  Reported by Tom G. Christensen.  Details in
48591         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
48592
48593 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48594             Bruno Haible  <bruno@clisp.org>
48595
48596         Speed up gnulib-tool by doing more string processing through shell
48597         built-ins.
48598         * gnulib-tool (fast_func_append): New variable.
48599         (func_remove_prefix, func_remove_suffix): New functions.
48600         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
48601         (func_filter_filelist): New function.
48602         (func_get_dependencies): Use func_remove_suffix instead of sed.
48603         (func_get_automake_snippet): Use func_filter_filelist instead of a
48604         subshell and sed invocation.
48605
48606 2009-01-01  Bruno Haible  <bruno@clisp.org>
48607
48608         Fix a security bug.
48609         * gnulib-tool (func_import, import, update): Don't allow the characters
48610         '"', '$', '`', '\' in macro arguments that become part of commands that
48611         are evaluated.
48612
48613 2009-01-01  Bruno Haible  <bruno@clisp.org>
48614
48615         * gnulib-tool (func_reset_sigpipe): Add more comments.
48616
48617 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48618
48619         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
48620         func_emit_tests_Makefile_am, func_import): Abort loops early if we
48621         already know the answer.
48622
48623 2009-01-01  Jim Meyering  <meyering@redhat.com>
48624
48625         * lib/version-etc.c (version_etc_va): Update copyright year.
48626
48627 2008-12-30  Bruno Haible  <bruno@clisp.org>
48628
48629         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
48630         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
48631         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
48632
48633 2008-12-29  Eric Blake  <ebb9@byu.net>
48634
48635         multiarch: avoid autoconf AC_REQUIRE bug
48636         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
48637         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
48638         2.63 and older.
48639         Reported by Bruno Haible, and analyzed in
48640         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
48641
48642 2008-12-29  Bruno Haible  <bruno@clisp.org>
48643
48644         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
48645         files in subdirectories correctly.
48646         Reported by Ralf Wildenhues.
48647
48648 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48649
48650         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
48651         rather than 'join FILE -', for Solaris join.
48652
48653 2008-12-29  Bruno Haible  <bruno@clisp.org>
48654
48655         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
48656         quoting.
48657         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
48658         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
48659         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
48660         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
48661         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
48662         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
48663         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
48664         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
48665         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
48666         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
48667         * m4/nls.m4 (AM_NLS): Likewise.
48668         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
48669         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
48670         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
48671         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
48672         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
48673         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
48674         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
48675         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
48676         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
48677         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
48678         * m4/xsize.m4 (gl_XSIZE): Likewise.
48679         Suggested by Jim Meyering.
48680
48681 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48682
48683         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
48684         * lib/parse-duration.c: use a switch instead of cascading if's.
48685
48686 2008-12-29  Eric Blake  <ebb9@byu.net>
48687
48688         wchar.h: supply WEOF on Irix 5.3
48689         * lib/wchar.in.h (wint_t): Also supply WEOF.
48690         * lib/wctype.in.h (wint_t): Likewise.
48691         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
48692         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
48693         Reported by Tom G. Christensen.
48694
48695 2008-12-26  Bruno Haible  <bruno@clisp.org>
48696
48697         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
48698         i486, i586, i686.
48699
48700 2008-12-26  Bruno Haible  <bruno@clisp.org>
48701
48702         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
48703
48704 2008-12-26  Bruno Haible  <bruno@clisp.org>
48705
48706         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
48707         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
48708         not __STDC_CONSTANT_MACROS.
48709         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
48710
48711 2008-12-25  Bruno Haible  <bruno@clisp.org>
48712
48713         Add support for universal builds to vasnprintf.
48714         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
48715         universal builds, guess no.
48716         * modules/vasnprintf-posix (Depends-on): Add multiarch.
48717         * modules/vasprintf-posix (Depends-on): Likewise.
48718         * modules/fprintf-posix (Depends-on): Likewise.
48719         * modules/vfprintf-posix (Depends-on): Likewise.
48720         * modules/snprintf-posix (Depends-on): Likewise.
48721         * modules/vsnprintf-posix (Depends-on): Likewise.
48722         * modules/sprintf-posix (Depends-on): Likewise.
48723         * modules/vsprintf-posix (Depends-on): Likewise.
48724         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48725         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48726         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48727         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48728         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48729         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48730         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48731
48732         Add support for universal builds to <inttypes.h>.
48733         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
48734         _SCNu64_PREFIX): In Apple
48735         universal builds, define directly, using _LP64.
48736         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
48737         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
48738         * modules/inttypes (Depends-on): Add multiarch.
48739         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48740
48741         Add support for universal builds to <stdint.h>.
48742         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
48743         universal builds, define directly, using _LP64.
48744         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
48745         Apple universal builds, don't test for the size and suffix of ptrdiff_t
48746         and size_t.
48747         * modules/stdint (Depends-on): Add multiarch.
48748         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
48749
48750         New module 'multiarch'.
48751         * modules/multiarch: New file.
48752         * m4/multiarch.m4: New file.
48753
48754 2008-12-25  Bruno Haible  <bruno@clisp.org>
48755
48756         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
48757
48758 2008-12-25  Bruno Haible  <bruno@clisp.org>
48759
48760         * modules/btowc (License): Relicense under LGPLv2+.
48761         * modules/mbsinit (License): Likewise.
48762         * modules/mbrtowc (License): Likewise.
48763         * modules/wcrtomb (License): Likewise.
48764         * modules/streq (License): Likewise.
48765         Reported by David Lutterkort <lutter@redhat.com>.
48766
48767 2008-12-23  Bruno Haible  <bruno@clisp.org>
48768
48769         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
48770
48771 2008-12-23  Bruno Haible  <bruno@clisp.org>
48772
48773         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
48774         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
48775         GETADDRINFO_LIB, not in LIBS.
48776         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
48777         * modules/canon-host (Link): Likewise.
48778         * NEWS: Mention the change.
48779         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
48780         GETADDRINFO_LIB.
48781
48782 2008-12-22  Bruno Haible  <bruno@clisp.org>
48783
48784         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
48785         * doc/posix-functions/iswalpha_l.texi: Likewise.
48786         * doc/posix-functions/iswblank_l.texi: Likewise.
48787         * doc/posix-functions/iswcntrl_l.texi: Likewise.
48788         * doc/posix-functions/iswctype_l.texi: Likewise.
48789         * doc/posix-functions/iswdigit_l.texi: Likewise.
48790         * doc/posix-functions/iswgraph_l.texi: Likewise.
48791         * doc/posix-functions/iswlower_l.texi: Likewise.
48792         * doc/posix-functions/iswprint_l.texi: Likewise.
48793         * doc/posix-functions/iswpunct_l.texi: Likewise.
48794         * doc/posix-functions/iswspace_l.texi: Likewise.
48795         * doc/posix-functions/iswupper_l.texi: Likewise.
48796         * doc/posix-functions/iswxdigit_l.texi: Likewise.
48797         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
48798         * doc/posix-functions/open_wmemstream.texi: Likewise.
48799         * doc/posix-functions/swscanf.texi: Likewise.
48800         * doc/posix-functions/towctrans_l.texi: Likewise.
48801         * doc/posix-functions/towlower.texi: Likewise.
48802         * doc/posix-functions/towlower_l.texi: Likewise.
48803         * doc/posix-functions/towupper.texi: Likewise.
48804         * doc/posix-functions/towupper_l.texi: Likewise.
48805         * doc/posix-functions/vfwprintf.texi: Likewise.
48806         * doc/posix-functions/vfwscanf.texi: Likewise.
48807         * doc/posix-functions/vswscanf.texi: Likewise.
48808         * doc/posix-functions/vwprintf.texi: Likewise.
48809         * doc/posix-functions/vwscanf.texi: Likewise.
48810         * doc/posix-functions/wcpcpy.texi: Likewise.
48811         * doc/posix-functions/wcpncpy.texi: Likewise.
48812         * doc/posix-functions/wcscasecmp.texi: Likewise.
48813         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48814         * doc/posix-functions/wcscoll_l.texi: Likewise.
48815         * doc/posix-functions/wcsdup.texi: Likewise.
48816         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48817         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48818         * doc/posix-functions/wcsnlen.texi: Likewise.
48819         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48820         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48821         * doc/posix-functions/wctrans_l.texi: Likewise.
48822         * doc/posix-functions/wctype_l.texi: Likewise.
48823         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48824         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48825         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48826         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48827         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48828         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48829         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48830         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48831         * doc/glibc-functions/wcschrnul.texi: Likewise.
48832         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48833         * doc/glibc-functions/wcstod_l.texi: Likewise.
48834         * doc/glibc-functions/wcstof_l.texi: Likewise.
48835         * doc/glibc-functions/wcstol_l.texi: Likewise.
48836         * doc/glibc-functions/wcstold_l.texi: Likewise.
48837         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48838         * doc/glibc-functions/wcstoq.texi: Likewise.
48839         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48840         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48841         * doc/glibc-functions/wcstouq.texi: Likewise.
48842         * doc/glibc-functions/wmempcpy.texi: Likewise.
48843
48844 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48845             Eric Blake  <ebb9@byu.net>
48846             Paolo Bonzini  <bonzini@gnu.org>
48847             Bruno Haible  <bruno@clisp.org>
48848
48849         Make c-stack work on Haiku.
48850         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48851         (c_stack_action): Use SA_ONSTACK flag.
48852
48853 2008-12-22  Bruno Haible  <bruno@clisp.org>
48854
48855         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48856
48857 2008-12-22  Bruno Haible  <bruno@clisp.org>
48858
48859         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48860         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48861         being overridden.
48862         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48863         New macros.
48864         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48865         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48866         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48867         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48868
48869 2008-12-22  Bruno Haible  <bruno@clisp.org>
48870
48871         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48872         from test code.
48873
48874 2008-12-22  Eric Blake  <ebb9@byu.net>
48875
48876         Avoid gcc warnings on cygwin.
48877         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48878         Avoid unused variable.
48879         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48880         Likewise.
48881
48882 2008-12-22  Bruno Haible  <bruno@clisp.org>
48883
48884         Remove HAVE_MBRTOWC conditionals.
48885         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48886         (mbscasecmp): Assume mbrtowc function.
48887         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48888         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48889         * lib/mbschr.c: Include mbuiter.h unconditionally.
48890         (mbschr): Assume mbrtowc function.
48891         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48892         (mbscspn): Assume mbrtowc function.
48893         * lib/mbslen.c: Include mbuiter.h unconditionally.
48894         (mbslen): Assume mbrtowc function.
48895         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48896         (mbsncasecmp): Assume mbrtowc function.
48897         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48898         (mbsnlen): Assume mbrtowc function.
48899         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48900         (mbspbrk): Assume mbrtowc function.
48901         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48902         (mbspcasecmp): Assume mbrtowc function.
48903         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48904         (mbsrchr): Assume mbrtowc function.
48905         * lib/mbssep.c: Include mbuiter.h unconditionally.
48906         (mbssep): Assume mbrtowc function.
48907         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48908         (mbsspn): Assume mbrtowc function.
48909         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48910         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48911         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48912         (mbstok_r): Assume mbrtowc function.
48913         * lib/propername.c: Include mbuiter.h unconditionally.
48914         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48915         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48916         (trim2): Assume mbrtowc function.
48917         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48918         (mbsnwidth): Assume mbrtowc function.
48919         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48920         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48921         fallback definitions.
48922         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48923
48924 2008-12-22  Bruno Haible  <bruno@clisp.org>
48925
48926         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48927
48928 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48929
48930         * modules/regex: Request emulations for the mb*/wc* functions we need.
48931         * m4/regex.m4: Don't look for those functions here.
48932         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48933
48934 2008-12-22  Bruno Haible  <bruno@clisp.org>
48935
48936         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48937
48938 2008-12-21  Bruno Haible  <bruno@clisp.org>
48939
48940         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48941         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48942         (Include): Remove conditionalization.
48943         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48944         (Include): Remove conditionalization.
48945         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48946         (Include): Remove conditionalization.
48947         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48948         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48949         * NEWS: Mention the change.
48950         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48951         via Sergey Poznyakoff <gray@gnu.org.ua>.
48952
48953 2008-12-21  Bruno Haible  <bruno@clisp.org>
48954
48955         * MODULES.html.sh (Extended multibyte and wide character utilities
48956         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48957         wcrtomb, wcsrtombs.
48958         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48959         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48960         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48961         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48962
48963 2008-12-21  Bruno Haible  <bruno@clisp.org>
48964
48965         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48966
48967 2008-12-21  Bruno Haible  <bruno@clisp.org>
48968
48969         * modules/wcsnrtombs-tests: New file.
48970         * tests/test-wcsnrtombs1.sh: New file.
48971         * tests/test-wcsnrtombs2.sh: New file.
48972         * tests/test-wcsnrtombs3.sh: New file.
48973         * tests/test-wcsnrtombs4.sh: New file.
48974         * tests/test-wcsnrtombs.c: New file.
48975
48976         New module 'wcsnrtombs'.
48977         * lib/wchar.in.h (wcsnrtombs): New declaration.
48978         * lib/wcsnrtombs.c: New file.
48979         * lib/wcsrtombs-state.c: New file.
48980         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48981         (internal_state): Remove variable.
48982         * m4/wcsnrtombs.m4: New file.
48983         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48984         compilation units.
48985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48986         HAVE_WCSNRTOMBS.
48987         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48988         HAVE_WCSNRTOMBS.
48989         * modules/wcsnrtombs: New file.
48990         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48991         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48992
48993 2008-12-21  Bruno Haible  <bruno@clisp.org>
48994
48995         * modules/wcsrtombs-tests: New file.
48996         * tests/test-wcsrtombs1.sh: New file.
48997         * tests/test-wcsrtombs2.sh: New file.
48998         * tests/test-wcsrtombs3.sh: New file.
48999         * tests/test-wcsrtombs4.sh: New file.
49000         * tests/test-wcsrtombs.c: New file.
49001
49002         New module 'wcsrtombs'.
49003         * lib/wchar.in.h (wcsrtombs): New declaration.
49004         * lib/wcsrtombs.c: New file.
49005         * m4/wcsrtombs.m4: New file.
49006         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
49007         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49008         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
49009         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
49010         * modules/wcsrtombs: New file.
49011         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
49012         bugs.
49013
49014 2008-12-21  Bruno Haible  <bruno@clisp.org>
49015
49016         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
49017         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
49018         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
49019         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
49020         if not correct.
49021         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
49022         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
49023         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49024         m4/locale-zh.m4, m4/codeset.m4.
49025         * doc/posix-functions/wcrtomb.texi: Document the bug.
49026
49027 2008-12-21  Bruno Haible  <bruno@clisp.org>
49028
49029         Work around a btowc() bug on IRIX 6.5.
49030         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
49031         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
49032         REPLACE_WTOBC if not.
49033         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
49034         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
49035         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
49036
49037 2008-12-21  Bruno Haible  <bruno@clisp.org>
49038
49039         * modules/wcrtomb-tests: New file.
49040         * tests/test-wcrtomb.sh: New file.
49041         * tests/test-wcrtomb.c: New file.
49042
49043         New module 'wcrtomb'.
49044         * lib/wchar.in.h (wcrtomb): New declaration.
49045         * lib/wcrtomb.c: New file.
49046         * m4/wcrtomb.m4: New file.
49047         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
49048         HAVE_WCRTOMB.
49049         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
49050         HAVE_WCRTOMB.
49051         * modules/wcrtomb: New file.
49052         * doc/posix-functions/wcrtomb.texi: Mention the new module.
49053
49054 2008-12-21  Bruno Haible  <bruno@clisp.org>
49055
49056         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
49057         * modules/mbsrtowcs (Files): Likewise.
49058         * modules/wctob (Files): Likewise.
49059         * modules/c-strcase-tests (Files): Likewise.
49060         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
49061         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
49062         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
49063         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
49064         * modules/vasnprintf-posix-tests (Files): Likewise.
49065
49066 2008-12-21  William Pursell  <bill.pursell@gmail.com>
49067
49068         gitlog-to-changelog: pass all command-line arguments to git-log
49069         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
49070         it is sometimes convenient to filter the commits in various ways.
49071         gitlog-to-changelog only allows --since to specify a start date,
49072         but git-log itself supports many other filtering mechanisms.
49073         At the moment, I want to filter by branch name.  Rather than
49074         adding a --branch option to gitlog-to-changelog, it seems more
49075         flexible to simply pass all options directly to git-log and let
49076         git do the work.  Notice that this effectively makes --since a
49077         redundant option for gitlog-to-changelog, but removing it would
49078         require current usage to change since calls would then require
49079         an additional '--'.
49080
49081 2008-12-21  Bruno Haible  <bruno@clisp.org>
49082
49083         * modules/mbsnrtowcs-tests: New file.
49084         * tests/test-mbsnrtowcs1.sh: New file.
49085         * tests/test-mbsnrtowcs2.sh: New file.
49086         * tests/test-mbsnrtowcs3.sh: New file.
49087         * tests/test-mbsnrtowcs4.sh: New file.
49088         * tests/test-mbsnrtowcs.c: New file.
49089
49090         New module 'mbsnrtowcs'.
49091         * lib/wchar.in.h (mbsnrtowcs): New declaration.
49092         * lib/mbsnrtowcs.c: New file.
49093         * lib/mbsrtowcs-state.c: New file.
49094         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
49095         (internal_state): Remove variable.
49096         * m4/mbsnrtowcs.m4: New file.
49097         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
49098         compilation units.
49099         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
49100         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49101         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
49102         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
49103         * modules/mbsnrtowcs: New file.
49104         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
49105         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
49106         portability problem.
49107
49108 2008-12-21  Bruno Haible  <bruno@clisp.org>
49109
49110         Work around mbsrtowcs bug.
49111         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
49112         (gl_FUNC_MBSRTOWCS): Invoke it.
49113         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49114         m4/locale-zh.m4.
49115         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
49116
49117 2008-12-21  Bruno Haible  <bruno@clisp.org>
49118
49119         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
49120
49121 2008-12-21  Bruno Haible  <bruno@clisp.org>
49122
49123         Update doc for AIX.
49124         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
49125         16-bit wchar_t type.
49126         * doc/posix-functions/btowc.texi: Likewise.
49127         * doc/posix-functions/fgetwc.texi: Likewise.
49128         * doc/posix-functions/fgetws.texi: Likewise.
49129         * doc/posix-functions/fputwc.texi: Likewise.
49130         * doc/posix-functions/fputws.texi: Likewise.
49131         * doc/posix-functions/fwide.texi: Likewise.
49132         * doc/posix-functions/fwprintf.texi: Likewise.
49133         * doc/posix-functions/fwscanf.texi: Likewise.
49134         * doc/posix-functions/getwchar.texi: Likewise.
49135         * doc/posix-functions/getwc.texi: Likewise.
49136         * doc/posix-functions/iswalnum.texi: Likewise.
49137         * doc/posix-functions/iswalpha.texi: Likewise.
49138         * doc/posix-functions/iswblank.texi: Likewise.
49139         * doc/posix-functions/iswcntrl.texi: Likewise.
49140         * doc/posix-functions/iswctype.texi: Likewise.
49141         * doc/posix-functions/iswdigit.texi: Likewise.
49142         * doc/posix-functions/iswgraph.texi: Likewise.
49143         * doc/posix-functions/iswlower.texi: Likewise.
49144         * doc/posix-functions/iswprint.texi: Likewise.
49145         * doc/posix-functions/iswpunct.texi: Likewise.
49146         * doc/posix-functions/iswspace.texi: Likewise.
49147         * doc/posix-functions/iswupper.texi: Likewise.
49148         * doc/posix-functions/iswxdigit.texi: Likewise.
49149         * doc/posix-functions/mbrtowc.texi: Likewise.
49150         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49151         * doc/posix-functions/mbstowcs.texi: Likewise.
49152         * doc/posix-functions/mbtowc.texi: Likewise.
49153         * doc/posix-functions/putwchar.texi: Likewise.
49154         * doc/posix-functions/putwc.texi: Likewise.
49155         * doc/posix-functions/swprintf.texi: Likewise.
49156         * doc/posix-functions/tolower.texi: Likewise.
49157         * doc/posix-functions/toupper.texi: Likewise.
49158         * doc/posix-functions/towctrans.texi: Likewise.
49159         * doc/posix-functions/ungetwc.texi: Likewise.
49160         * doc/posix-functions/vswprintf.texi: Likewise.
49161         * doc/posix-functions/wcrtomb.texi: Likewise.
49162         * doc/posix-functions/wcscat.texi: Likewise.
49163         * doc/posix-functions/wcschr.texi: Likewise.
49164         * doc/posix-functions/wcscmp.texi: Likewise.
49165         * doc/posix-functions/wcscoll.texi: Likewise.
49166         * doc/posix-functions/wcscpy.texi: Likewise.
49167         * doc/posix-functions/wcscspn.texi: Likewise.
49168         * doc/posix-functions/wcsftime.texi: Likewise.
49169         * doc/posix-functions/wcslen.texi: Likewise.
49170         * doc/posix-functions/wcsncat.texi: Likewise.
49171         * doc/posix-functions/wcsncmp.texi: Likewise.
49172         * doc/posix-functions/wcsncpy.texi: Likewise.
49173         * doc/posix-functions/wcspbrk.texi: Likewise.
49174         * doc/posix-functions/wcsrchr.texi: Likewise.
49175         * doc/posix-functions/wcsrtombs.texi: Likewise.
49176         * doc/posix-functions/wcsspn.texi: Likewise.
49177         * doc/posix-functions/wcsstr.texi: Likewise.
49178         * doc/posix-functions/wcstod.texi: Likewise.
49179         * doc/posix-functions/wcstof.texi: Likewise.
49180         * doc/posix-functions/wcstoimax.texi: Likewise.
49181         * doc/posix-functions/wcstok.texi: Likewise.
49182         * doc/posix-functions/wcstold.texi: Likewise.
49183         * doc/posix-functions/wcstoll.texi: Likewise.
49184         * doc/posix-functions/wcstol.texi: Likewise.
49185         * doc/posix-functions/wcstombs.texi: Likewise.
49186         * doc/posix-functions/wcstoull.texi: Likewise.
49187         * doc/posix-functions/wcstoul.texi: Likewise.
49188         * doc/posix-functions/wcstoumax.texi: Likewise.
49189         * doc/posix-functions/wcswidth.texi: Likewise.
49190         * doc/posix-functions/wcsxfrm.texi: Likewise.
49191         * doc/posix-functions/wctob.texi: Likewise.
49192         * doc/posix-functions/wctomb.texi: Likewise.
49193         * doc/posix-functions/wctrans.texi: Likewise.
49194         * doc/posix-functions/wctype.texi: Likewise.
49195         * doc/posix-functions/wcwidth.texi: Likewise.
49196         * doc/posix-functions/wmemchr.texi: Likewise.
49197         * doc/posix-functions/wmemcmp.texi: Likewise.
49198         * doc/posix-functions/wmemcpy.texi: Likewise.
49199         * doc/posix-functions/wmemmove.texi: Likewise.
49200         * doc/posix-functions/wmemset.texi: Likewise.
49201         * doc/posix-functions/wprintf.texi: Likewise.
49202         * doc/posix-functions/wscanf.texi: Likewise.
49203
49204 2008-12-21  Bruno Haible  <bruno@clisp.org>
49205
49206         Update doc for HP-UX 11.11.
49207         * doc/posix-functions/btowc.texi: Clarify that the function is missing
49208         in HP-UX version 11.00, not in all versions of HP-UX 11.
49209         * doc/posix-functions/fwide.texi: Likewise.
49210         * doc/posix-functions/fwprintf.texi: Likewise.
49211         * doc/posix-functions/fwscanf.texi: Likewise.
49212         * doc/posix-functions/inet_ntop.texi: Likewise.
49213         * doc/posix-functions/inet_pton.texi: Likewise.
49214         * doc/posix-functions/mbrlen.texi: Likewise.
49215         * doc/posix-functions/mbrtowc.texi: Likewise.
49216         * doc/posix-functions/mbsinit.texi: Likewise.
49217         * doc/posix-functions/mbsrtowcs.texi: Likewise.
49218         * doc/posix-functions/swprintf.texi: Likewise.
49219         * doc/posix-functions/swscanf.texi: Likewise.
49220         * doc/posix-functions/towctrans.texi: Likewise.
49221         * doc/posix-functions/vfwprintf.texi: Likewise.
49222         * doc/posix-functions/vswprintf.texi: Likewise.
49223         * doc/posix-functions/vwprintf.texi: Likewise.
49224         * doc/posix-functions/wcrtomb.texi: Likewise.
49225         * doc/posix-functions/wcsrtombs.texi: Likewise.
49226         * doc/posix-functions/wcsstr.texi: Likewise.
49227         * doc/posix-functions/wctob.texi: Likewise.
49228         * doc/posix-functions/wctrans.texi: Likewise.
49229         * doc/posix-functions/wmemchr.texi: Likewise.
49230         * doc/posix-functions/wmemcmp.texi: Likewise.
49231         * doc/posix-functions/wmemcpy.texi: Likewise.
49232         * doc/posix-functions/wmemmove.texi: Likewise.
49233         * doc/posix-functions/wmemset.texi: Likewise.
49234         * doc/posix-functions/wprintf.texi: Likewise.
49235         * doc/posix-functions/wscanf.texi: Likewise.
49236
49237 2008-12-21  Bruno Haible  <bruno@clisp.org>
49238
49239         Work around a portability problem.
49240         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
49241         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
49242
49243 2008-12-20  Bruno Haible  <bruno@clisp.org>
49244
49245         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
49246         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
49247         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
49248         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
49249         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
49250
49251         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
49252         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
49253         set.
49254         (GNULIB_defined_mbstate_t): New macro.
49255         (mbsinit): Redefine if REPLACE_MBSINIT is set.
49256         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
49257         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
49258         reuses the system's mbrtowc function but works around the bugs.
49259         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
49260         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
49261         macros.
49262         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
49263         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
49264         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
49265         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
49266         REPLACE_MBSINIT if mbsinit needs to be overridden.
49267         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
49268         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49269         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
49270         REPLACE_MBSINIT, REPLACE_MBRTOWC.
49271         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
49272         m4/locale-zh.m4.
49273         (Depends): Add mbsinit.
49274         * modules/mbsinit (Depends): Add mbrtowc.
49275         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
49276
49277 2008-12-20  Bruno Haible  <bruno@clisp.org>
49278
49279         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
49280         so that there are no conversion errors on AIX.
49281         * tests/test-mbsrtowcs.c (main): LIkewise.
49282
49283 2008-12-20  Bruno Haible  <bruno@clisp.org>
49284
49285         Work around wctob bug on Solaris <= 9.
49286         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
49287         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
49288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
49289         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
49290         * modules/wctob (Files): Add m4/locale-fr.m4.
49291         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
49292
49293 2008-12-20  Bruno Haible  <bruno@clisp.org>
49294
49295         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
49296         /dev/null.
49297         * tests/test-select-in.sh: Likewise.
49298         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49299
49300 2008-12-20  Bruno Haible  <bruno@clisp.org>
49301
49302         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
49303         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
49304         Cygwin 1.5.x.
49305
49306 2008-12-20  Bruno Haible  <bruno@clisp.org>
49307
49308         Ensure mbstate_t is defined on HP-UX 11.11.
49309         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
49310         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
49311         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
49312         AC_USE_SYSTEM_EXTENSIONS.
49313         * modules/fnmatch (Depends-on): Add extensions.
49314         * modules/mbrlen (Depends-on): Likewise.
49315         * modules/mbrtowc (Depends-on): Likewise.
49316         * modules/mbsinit (Depends-on): Likewise.
49317         * modules/mbsrtowcs (Depends-on): Likewise.
49318         * modules/mbswidth (Depends-on): Likewise.
49319         * modules/quotearg (Depends-on): Likewise.
49320         * modules/strftime (Depends-on): Likewise.
49321
49322 2008-12-20  Bruno Haible  <bruno@clisp.org>
49323
49324         Ensure wctob is declared on IRIX 6.5.
49325         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
49326         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
49327         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
49328         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
49329         of HAVE_WCTOB.
49330         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
49331         HAVE_WCTOB.
49332         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
49333
49334 2008-12-19  Bruno Haible  <bruno@clisp.org>
49335
49336         * modules/mbsrtowcs-tests: New file.
49337         * tests/test-mbsrtowcs1.sh: New file.
49338         * tests/test-mbsrtowcs2.sh: New file.
49339         * tests/test-mbsrtowcs3.sh: New file.
49340         * tests/test-mbsrtowcs4.sh: New file.
49341         * tests/test-mbsrtowcs.c: New file.
49342
49343         New module 'mbsrtowcs'.
49344         * lib/wchar.in.h (mbsrtowcs): New declaration.
49345         * lib/mbsrtowcs.c: New file.
49346         * m4/mbsrtowcs.m4: New file.
49347         * modules/mbsrtowcs: New file.
49348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
49349         HAVE_MBSRTOWCS.
49350         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
49351         HAVE_MBSRTOWCS.
49352         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
49353
49354 2008-12-19  Bruno Haible  <bruno@clisp.org>
49355
49356         New module 'mbrlen'.
49357         * lib/wchar.in.h (mbrlen): New declaration.
49358         * lib/mbrlen.c: New file.
49359         * m4/mbrlen.m4: New file.
49360         * modules/mbrlen: New file.
49361         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
49362         HAVE_MBRLEN.
49363         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
49364         HAVE_MBRLEN.
49365         * doc/posix-functions/mbrlen.texi: Document the new module.
49366
49367 2008-12-19  Bruno Haible  <bruno@clisp.org>
49368
49369         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
49370         * modules/mbrtowc (Depends-on): Add verify.
49371         Suggested by Paul Eggert.
49372
49373 2008-12-18  Bruno Haible  <bruno@clisp.org>
49374
49375         * modules/mbsinit-tests: New file.
49376         * tests/test-mbsinit.sh: New file.
49377         * tests/test-mbsinit.c: New file.
49378
49379 2008-12-18  Bruno Haible  <bruno@clisp.org>
49380
49381         * modules/mbrtowc-tests: New file.
49382         * tests/test-mbrtowc1.sh: New file.
49383         * tests/test-mbrtowc2.sh: New file.
49384         * tests/test-mbrtowc3.sh: New file.
49385         * tests/test-mbrtowc4.sh: New file.
49386         * tests/test-mbrtowc.c: New file.
49387
49388         New module 'mbrtowc'.
49389         * lib/wchar.in.h (mbstate_t): Override when the system does not have
49390         mbsinit and mbrtowc.
49391         (mbrtowc): New declaration.
49392         * lib/mbrtowc.c: New file.
49393         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
49394         * modules/mbrtowc: New file.
49395         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
49396         HAVE_MBRTOWC.
49397         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
49398         HAVE_MBRTOWC.
49399         * doc/posix-functions/mbrtowc.texi: Document the new module.
49400
49401 2008-12-18  Bruno Haible  <bruno@clisp.org>
49402
49403         New module 'wctob'.
49404         * lib/wchar.in.h (wctob): New declaration.
49405         * lib/wctob.c: New file.
49406         * m4/wctob.m4: New file.
49407         * modules/wctob: New file.
49408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
49409         HAVE_WCTOB.
49410         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
49411         * doc/posix-functions/wctob.texi: Document the new module.
49412
49413 2008-12-18  Bruno Haible  <bruno@clisp.org>
49414
49415         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
49416         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
49417
49418 2008-12-18  Simon Josefsson  <simon@josefsson.org>
49419
49420         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
49421         G. Christensen" <tgc@jupiterrise.com>.
49422
49423         * lib/flock.c: Need to include errno.h.  Reported by "Tom
49424         G. Christensen" <tgc@jupiterrise.com>.
49425
49426         * lib/flock.c: Need to include string.h.  Reported by "Tom
49427         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
49428         <ebb9@byu.net>.
49429
49430 2008-12-18  Bruno Haible  <bruno@clisp.org>
49431
49432         * m4/locale-ja.m4: New file, from GNU gettext.
49433
49434 2008-12-17  Bruno Haible  <bruno@clisp.org>
49435
49436         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
49437         Suggested by Eric Blake.
49438
49439 2008-12-17  Bruno Haible  <bruno@clisp.org>
49440
49441         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
49442
49443 2008-12-17  Bruno Haible  <bruno@clisp.org>
49444
49445         * lib/mbsinit.c: Include verify.h. Verify an assumption.
49446         * modules/mbsinit (Depends-on): Add verify.
49447         Suggested by Paul Eggert.
49448
49449 2008-12-17  Bruno Haible  <bruno@clisp.org>
49450
49451         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
49452         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
49453         gl_FUNC_MBRTOWC.
49454         * m4/mbiter.m4 (gl_MBITER): LIkewise.
49455         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
49456         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
49457         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
49458         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
49459         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
49460         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
49461         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
49462         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
49463         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
49464         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
49465         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
49466         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
49467         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
49468         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
49469         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
49470         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
49471         * modules/trim (configure.ac): Likewise.
49472
49473 2008-12-17  Bruno Haible  <bruno@clisp.org>
49474
49475         * modules/btowc-tests: New file.
49476         * tests/test-btowc1.sh: New file.
49477         * tests/test-btowc2.sh: New file.
49478         * tests/test-btowc.c: New file.
49479
49480         New module 'btowc'.
49481         * lib/wchar.in.h (btowc): New declaration.
49482         * lib/btowc.c: New file.
49483         * m4/btowc.m4: New file.
49484         * modules/btowc: New file.
49485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
49486         HAVE_BTOWC.
49487         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
49488         * doc/posix-functions/btowc.texi: Document the new module.
49489
49490 2008-12-17  Bruno Haible  <bruno@clisp.org>
49491
49492         New module 'mbsinit'.
49493         * lib/wchar.in.h (mbsinit): New declaration.
49494         * lib/mbsinit.c: New file.
49495         * m4/mbsinit.m4: New file.
49496         * modules/mbsinit: New file.
49497         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
49498         HAVE_MBSINIT.
49499         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
49500         HAVE_MBSINIT.
49501         * doc/posix-functions/mbsinit.texi: Document the new module.
49502
49503 2008-12-16  Bruno Haible  <bruno@clisp.org>
49504
49505         * lib/unistd.in.h: Add comment.
49506         * tests/test-environ.c: Don't include <stdlib.h>.
49507
49508 2008-12-16  Bruno Haible  <bruno@clisp.org>
49509
49510         * lib/parse-duration.h (parse_duration): Document return value
49511         convention.
49512         * lib/parse-duration.c: Include specification header first. Add
49513         comments.
49514         (_): Remove macro.
49515         (parse_year_month_day, parse_hour_minute_second): Move side effects
49516         outside of strchr call.
49517         (parse_non_iso8601): Move side effects outside of isspace call.
49518         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
49519         call.
49520
49521 2008-12-16  Bruno Haible  <bruno@clisp.org>
49522
49523         * tests/test-parse-duration.sh: Produce no output when the test
49524         succeeds.
49525
49526 2008-12-16  Bruno Haible  <bruno@clisp.org>
49527
49528         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
49529         expressions.
49530
49531 2008-12-15  Bruno Haible  <bruno@clisp.org>
49532
49533         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
49534         * doc/glibc-functions/flistxattr.texi: Likewise.
49535         * doc/glibc-functions/fopencookie.texi: Likewise.
49536         * doc/glibc-functions/fremovexattr.texi: Likewise.
49537         * doc/glibc-functions/fsetxattr.texi: Likewise.
49538         * doc/glibc-functions/getxattr.texi: Likewise.
49539         * doc/glibc-functions/lgetxattr.texi: Likewise.
49540         * doc/glibc-functions/listxattr.texi: Likewise.
49541         * doc/glibc-functions/llistxattr.texi: Likewise.
49542         * doc/glibc-functions/lremovexattr.texi: Likewise.
49543         * doc/glibc-functions/lsetxattr.texi: Likewise.
49544         * doc/glibc-functions/removexattr.texi: Likewise.
49545         * doc/glibc-functions/setxattr.texi: Likewise.
49546         * doc/posix-functions/open_memstream.texi: Likewise.
49547
49548 2008-12-15  Eric Blake  <ebb9@byu.net>
49549
49550         Update doc for cygwin 1.7.
49551         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
49552         functions.
49553         * doc/posix-functions/fchmodat.texi: Likewise.
49554         * doc/posix-functions/fchownat.texi: Likewise.
49555         * doc/posix-functions/fdopendir.texi: Likewise.
49556         * doc/posix-functions/fmemopen.texi: Likewise.
49557         * doc/posix-functions/freeaddrinfo.texi: Likewise.
49558         * doc/posix-functions/fstatat.texi: Likewise.
49559         * doc/posix-functions/futimens.texi: Likewise.
49560         * doc/posix-functions/gai_strerror.texi: Likewise.
49561         * doc/posix-functions/getaddrinfo.texi: Likewise.
49562         * doc/posix-functions/getnameinfo.texi: Likewise.
49563         * doc/posix-functions/if_freenameindex.texi: Likewise.
49564         * doc/posix-functions/if_indextoname.texi: Likewise.
49565         * doc/posix-functions/if_nameindex.texi: Likewise.
49566         * doc/posix-functions/if_nametoindex.texi: Likewise.
49567         * doc/posix-functions/insque.texi: Likewise.
49568         * doc/posix-functions/linkat.texi: Likewise.
49569         * doc/posix-functions/llrint.texi: Likewise.
49570         * doc/posix-functions/llrintf.texi: Likewise.
49571         * doc/posix-functions/llrintl.texi: Likewise.
49572         * doc/posix-functions/lockf.texi: Likewise.
49573         * doc/posix-functions/lrintl.texi: Likewise.
49574         * doc/posix-functions/mkdirat.texi: Likewise.
49575         * doc/posix-functions/mkfifoat.texi: Likewise.
49576         * doc/posix-functions/mknodat.texi: Likewise.
49577         * doc/posix-functions/mq_close.texi: Likewise.
49578         * doc/posix-functions/mq_getattr.texi: Likewise.
49579         * doc/posix-functions/mq_notify.texi: Likewise.
49580         * doc/posix-functions/mq_open.texi: Likewise.
49581         * doc/posix-functions/mq_receive.texi: Likewise.
49582         * doc/posix-functions/mq_send.texi: Likewise.
49583         * doc/posix-functions/mq_setattr.texi: Likewise.
49584         * doc/posix-functions/mq_timedreceive.texi: Likewise.
49585         * doc/posix-functions/mq_timedsend.texi: Likewise.
49586         * doc/posix-functions/mq_unlink.texi: Likewise.
49587         * doc/posix-functions/open_memstream.texi: Likewise.
49588         * doc/posix-functions/openat.texi: Likewise.
49589         * doc/posix-functions/posix_fadvise.texi: Likewise.
49590         * doc/posix-functions/posix_fallocate.texi: Likewise.
49591         * doc/posix-functions/posix_madvise.texi: Likewise.
49592         * doc/posix-functions/posix_memalign.texi: Likewise.
49593         * doc/posix-functions/posix_openpt.texi: Likewise.
49594         * doc/posix-functions/readlinkat.texi: Likewise.
49595         * doc/posix-functions/remque.texi: Likewise.
49596         * doc/posix-functions/renameat.texi: Likewise.
49597         * doc/posix-functions/rintl.texi: Likewise.
49598         * doc/posix-functions/sem_unlink.texi: Likewise.
49599         * doc/posix-functions/shm_open.texi: Likewise.
49600         * doc/posix-functions/shm_unlink.texi: Likewise.
49601         * doc/posix-functions/signgam.texi: Likewise.
49602         * doc/posix-functions/sigset.texi: Likewise.
49603         * doc/posix-functions/stpcpy.texi: Likewise.
49604         * doc/posix-functions/stpncpy.texi: Likewise.
49605         * doc/posix-functions/strerror.texi: Likewise.
49606         * doc/posix-functions/strtod.texi: Likewise.
49607         * doc/posix-functions/symlinkat.texi: Likewise.
49608         * doc/posix-functions/unlinkat.texi: Likewise.
49609         * doc/posix-functions/utimensat.texi: Likewise.
49610         * doc/glibc-functions/bindresvport.texi: Likewise.
49611         * doc/glibc-functions/dn_expand.texi: Likewise.
49612         * doc/glibc-functions/exp10.texi: Likewise.
49613         * doc/glibc-functions/exp10f.texi: Likewise.
49614         * doc/glibc-functions/fgetxattr.texi: Likewise.
49615         * doc/glibc-functions/flistxattr.texi: Likewise.
49616         * doc/glibc-functions/fopencookie.texi: Likewise.
49617         * doc/glibc-functions/freeifaddrs.texi: Likewise.
49618         * doc/glibc-functions/fremovexattr.texi: Likewise.
49619         * doc/glibc-functions/fsetxattr.texi: Likewise.
49620         * doc/glibc-functions/getifaddrs.texi: Likewise.
49621         * doc/glibc-functions/getxattr.texi: Likewise.
49622         * doc/glibc-functions/lgetxattr.texi: Likewise.
49623         * doc/glibc-functions/listxattr.texi: Likewise.
49624         * doc/glibc-functions/llistxattr.texi: Likewise.
49625         * doc/glibc-functions/lremovexattr.texi: Likewise.
49626         * doc/glibc-functions/lsetxattr.texi: Likewise.
49627         * doc/glibc-functions/pow10.texi: Likewise.
49628         * doc/glibc-functions/pow10f.texi: Likewise.
49629         * doc/glibc-functions/rcmd_af.texi: Likewise.
49630         * doc/glibc-functions/removexattr.texi: Likewise.
49631         * doc/glibc-functions/res_init.texi: Likewise.
49632         * doc/glibc-functions/res_mkquery.texi: Likewise.
49633         * doc/glibc-functions/res_query.texi: Likewise.
49634         * doc/glibc-functions/res_querydomain.texi: Likewise.
49635         * doc/glibc-functions/res_send.texi: Likewise.
49636         * doc/glibc-functions/rresvport_af.texi: Likewise.
49637         * doc/glibc-functions/setxattr.texi: Likewise.
49638         * doc/glibc-functions/strcasestr.texi: Likewise.
49639
49640 2008-12-15  Bruno Haible  <bruno@clisp.org>
49641
49642         Fix compilation error on OSF/1 4.0.
49643         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
49644         <sys/time.h>, simply delegate to the system header.
49645         Reported by Daniel Richard G. <oss@teragram.com>.
49646
49647 2008-12-15  Bruno Haible  <bruno@clisp.org>
49648
49649         * doc/posix-functions/openat.texi: Mention the 'openat' module.
49650         * doc/posix-functions/fchmodat.texi: Likewise.
49651         * doc/posix-functions/fchownat.texi: Likewise.
49652         * doc/posix-functions/fdopendir.texi: Likewise.
49653         * doc/posix-functions/fstatat.texi: Likewise.
49654         * doc/posix-functions/mkdirat.texi: Likewise.
49655         * doc/posix-functions/unlinkat.texi: Likewise.
49656
49657 2008-12-14  Bruno Haible  <bruno@clisp.org>
49658
49659         Update doc for POSIX:2008.
49660         * doc/posix-functions/faccessat.texi: New file.
49661         * doc/posix-functions/fchmodat.texi: New file.
49662         * doc/posix-functions/fchownat.texi: New file.
49663         * doc/posix-functions/fdopendir.texi: New file.
49664         * doc/posix-functions/fstatat.texi: New file.
49665         * doc/posix-functions/futimens.texi: New file.
49666         * doc/posix-functions/linkat.texi: New file.
49667         * doc/posix-functions/mkdirat.texi: New file.
49668         * doc/posix-functions/mkfifoat.texi: New file.
49669         * doc/posix-functions/mknodat.texi: New file.
49670         * doc/posix-functions/open_wmemstream.texi: New file.
49671         * doc/posix-functions/openat.texi: New file.
49672         * doc/posix-functions/psiginfo.texi: New file.
49673         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
49674         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
49675         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
49676         * doc/posix-functions/readlinkat.texi: New file.
49677         * doc/posix-functions/renameat.texi: New file.
49678         * doc/posix-functions/strerror_l.texi: New file.
49679         * doc/posix-functions/symlinkat.texi: New file.
49680         * doc/posix-functions/unlinkat.texi: New file.
49681         * doc/posix-functions/utimensat.texi: New file.
49682         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49683
49684 2008-12-14  Bruno Haible  <bruno@clisp.org>
49685
49686         Update doc for POSIX:2008.
49687         * doc/posix-functions/alphasort.texi: Renamed from
49688         doc/glibc-functions/alphasort.texi.
49689         * doc/posix-functions/dirfd.texi: Renamed from
49690         doc/glibc-functions/dirfd.texi.
49691         * doc/posix-functions/dprintf.texi: Renamed from
49692         doc/glibc-functions/dprintf.texi.
49693         * doc/posix-functions/duplocale.texi: Renamed from
49694         doc/glibc-functions/duplocale.texi.
49695         * doc/posix-functions/fexecve.texi: Renamed from
49696         doc/glibc-functions/fexecve.texi.
49697         * doc/posix-functions/fmemopen.texi: Renamed from
49698         doc/glibc-functions/fmemopen.texi.
49699         * doc/posix-functions/freelocale.texi: Renamed from
49700         doc/glibc-functions/freelocale.texi.
49701         * doc/posix-functions/getdate_err.texi: Renamed from
49702         doc/glibc-functions/getdate_err.texi.
49703         * doc/posix-functions/isalnum_l.texi: Renamed from
49704         doc/glibc-functions/isalnum_l.texi.
49705         * doc/posix-functions/isalpha_l.texi: Renamed from
49706         doc/glibc-functions/isalpha_l.texi.
49707         * doc/posix-functions/isblank_l.texi: Renamed from
49708         doc/glibc-functions/isblank_l.texi.
49709         * doc/posix-functions/iscntrl_l.texi: Renamed from
49710         doc/glibc-functions/iscntrl_l.texi.
49711         * doc/posix-functions/isdigit_l.texi: Renamed from
49712         doc/glibc-functions/isdigit_l.texi.
49713         * doc/posix-functions/isgraph_l.texi: Renamed from
49714         doc/glibc-functions/isgraph_l.texi.
49715         * doc/posix-functions/islower_l.texi: Renamed from
49716         doc/glibc-functions/islower_l.texi.
49717         * doc/posix-functions/isprint_l.texi: Renamed from
49718         doc/glibc-functions/isprint_l.texi.
49719         * doc/posix-functions/ispunct_l.texi: Renamed from
49720         doc/glibc-functions/ispunct_l.texi.
49721         * doc/posix-functions/isspace_l.texi: Renamed from
49722         doc/glibc-functions/isspace_l.texi.
49723         * doc/posix-functions/isupper_l.texi: Renamed from
49724         doc/glibc-functions/isupper_l.texi.
49725         * doc/posix-functions/iswalnum_l.texi: Renamed from
49726         doc/glibc-functions/iswalnum_l.texi.
49727         * doc/posix-functions/iswalpha_l.texi: Renamed from
49728         doc/glibc-functions/iswalpha_l.texi.
49729         * doc/posix-functions/iswblank_l.texi: Renamed from
49730         doc/glibc-functions/iswblank_l.texi.
49731         * doc/posix-functions/iswcntrl_l.texi: Renamed from
49732         doc/glibc-functions/iswcntrl_l.texi.
49733         * doc/posix-functions/iswctype_l.texi: Renamed from
49734         doc/glibc-functions/iswctype_l.texi.
49735         * doc/posix-functions/iswdigit_l.texi: Renamed from
49736         doc/glibc-functions/iswdigit_l.texi.
49737         * doc/posix-functions/iswgraph_l.texi: Renamed from
49738         doc/glibc-functions/iswgraph_l.texi.
49739         * doc/posix-functions/iswlower_l.texi: Renamed from
49740         doc/glibc-functions/iswlower_l.texi.
49741         * doc/posix-functions/iswprint_l.texi: Renamed from
49742         doc/glibc-functions/iswprint_l.texi.
49743         * doc/posix-functions/iswpunct_l.texi: Renamed from
49744         doc/glibc-functions/iswpunct_l.texi.
49745         * doc/posix-functions/iswspace_l.texi: Renamed from
49746         doc/glibc-functions/iswspace_l.texi.
49747         * doc/posix-functions/iswupper_l.texi: Renamed from
49748         doc/glibc-functions/iswupper_l.texi.
49749         * doc/posix-functions/iswxdigit_l.texi: Renamed from
49750         doc/glibc-functions/iswxdigit_l.texi.
49751         * doc/posix-functions/isxdigit_l.texi: Renamed from
49752         doc/glibc-functions/isxdigit_l.texi.
49753         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
49754         doc/glibc-functions/mbsnrtowcs.texi.
49755         * doc/posix-functions/mkdtemp.texi: Renamed from
49756         doc/glibc-functions/mkdtemp.texi.
49757         * doc/posix-functions/newlocale.texi: Renamed from
49758         doc/glibc-functions/newlocale.texi.
49759         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
49760         doc/glibc-functions/nl_langinfo_l.texi.
49761         * doc/posix-functions/open_memstream.texi: Renamed from
49762         doc/glibc-functions/open_memstream.texi.
49763         * doc/posix-functions/opterr.texi: Renamed from
49764         doc/glibc-functions/opterr.texi.
49765         * doc/posix-functions/optind.texi: Renamed from
49766         doc/glibc-functions/optind.texi.
49767         * doc/posix-functions/optopt.texi: Renamed from
49768         doc/glibc-functions/optopt.texi.
49769         * doc/posix-functions/psignal.texi: Renamed from
49770         doc/glibc-functions/psignal.texi.
49771         * doc/posix-functions/scandir.texi: Renamed from
49772         doc/glibc-functions/scandir.texi.
49773         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
49774         doc/glibc-functions/sched_get_priority_min.texi.
49775         * doc/posix-functions/signgam.texi: Renamed from
49776         doc/glibc-functions/signgam.texi.
49777         * doc/posix-functions/stpcpy.texi: Renamed from
49778         doc/glibc-functions/stpcpy.texi.
49779         * doc/posix-functions/stpncpy.texi: Renamed from
49780         doc/glibc-functions/stpncpy.texi.
49781         * doc/posix-functions/strcasecmp_l.texi: Renamed from
49782         doc/glibc-functions/strcasecmp_l.texi.
49783         * doc/posix-functions/strcoll_l.texi: Renamed from
49784         doc/glibc-functions/strcoll_l.texi.
49785         * doc/posix-functions/strfmon_l.texi: Renamed from
49786         doc/glibc-functions/strfmon_l.texi.
49787         * doc/posix-functions/strftime_l.texi: Renamed from
49788         doc/glibc-functions/strftime_l.texi.
49789         * doc/posix-functions/strncasecmp_l.texi: Renamed from
49790         doc/glibc-functions/strncasecmp_l.texi.
49791         * doc/posix-functions/strndup.texi: Renamed from
49792         doc/glibc-functions/strndup.texi.
49793         * doc/posix-functions/strnlen.texi: Renamed from
49794         doc/glibc-functions/strnlen.texi.
49795         * doc/posix-functions/strsignal.texi: Renamed from
49796         doc/glibc-functions/strsignal.texi.
49797         * doc/posix-functions/strxfrm_l.texi: Renamed from
49798         doc/glibc-functions/strxfrm_l.texi.
49799         * doc/posix-functions/timer_gettime.texi: Renamed from
49800         doc/glibc-functions/timer_gettime.texi.
49801         * doc/posix-functions/tolower_l.texi: Renamed from
49802         doc/glibc-functions/tolower_l.texi.
49803         * doc/posix-functions/toupper_l.texi: Renamed from
49804         doc/glibc-functions/toupper_l.texi.
49805         * doc/posix-functions/towctrans_l.texi: Renamed from
49806         doc/glibc-functions/towctrans_l.texi.
49807         * doc/posix-functions/towlower_l.texi: Renamed from
49808         doc/glibc-functions/towlower_l.texi.
49809         * doc/posix-functions/towupper_l.texi: Renamed from
49810         doc/glibc-functions/towupper_l.texi.
49811         * doc/posix-functions/uselocale.texi: Renamed from
49812         doc/glibc-functions/uselocale.texi.
49813         * doc/posix-functions/vdprintf.texi: Renamed from
49814         doc/glibc-functions/vdprintf.texi.
49815         * doc/posix-functions/wcpcpy.texi:
49816         Renamed from doc/glibc-functions/wcpcpy.texi.
49817         * doc/posix-functions/wcpncpy.texi: Renamed from
49818         doc/glibc-functions/wcpncpy.texi.
49819         * doc/posix-functions/wcscasecmp.texi: Renamed from
49820         doc/glibc-functions/wcscasecmp.texi.
49821         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49822         doc/glibc-functions/wcscasecmp_l.texi.
49823         * doc/posix-functions/wcscoll_l.texi: Renamed from
49824         doc/glibc-functions/wcscoll_l.texi.
49825         * doc/posix-functions/wcsdup.texi: Renamed from
49826         doc/glibc-functions/wcsdup.texi.
49827         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49828         doc/glibc-functions/wcsncasecmp.texi.
49829         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49830         doc/glibc-functions/wcsncasecmp_l.texi.
49831         * doc/posix-functions/wcsnlen.texi: Renamed from
49832         doc/glibc-functions/wcsnlen.texi.
49833         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49834         doc/glibc-functions/wcsnrtombs.texi.
49835         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49836         doc/glibc-functions/wcsxfrm_l.texi.
49837         * doc/posix-functions/wctrans_l.texi: Renamed from
49838         doc/glibc-functions/wctrans_l.texi.
49839         * doc/posix-functions/wctype_l.texi: Renamed from
49840         doc/glibc-functions/wctype_l.texi.
49841         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49842         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49843         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49844         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49845         these subsections.
49846         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49847         Remove sections.
49848
49849 2008-12-14  Bruno Haible  <bruno@clisp.org>
49850
49851         Update doc for POSIX:2008.
49852         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49853
49854 2008-12-14  Bruno Haible  <bruno@clisp.org>
49855
49856         Update doc for POSIX:2008.
49857         * doc/pastposix-functions/bcmp.texi: Renamed from
49858         doc/posix-functions/bcmp.texi.
49859         * doc/pastposix-functions/bcopy.texi: Renamed from
49860         doc/posix-functions/bcopy.texi.
49861         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49862         doc/posix-functions/bsd_signal.texi.
49863         * doc/pastposix-functions/bzero.texi: Renamed from
49864         doc/posix-functions/bzero.texi.
49865         * doc/pastposix-functions/ecvt.texi: Renamed from
49866         doc/posix-functions/ecvt.texi.
49867         * doc/pastposix-functions/fcvt.texi: Renamed from
49868         doc/posix-functions/fcvt.texi.
49869         * doc/pastposix-functions/ftime.texi: Renamed from
49870         doc/posix-functions/ftime.texi.
49871         * doc/pastposix-functions/gcvt.texi: Renamed from
49872         doc/posix-functions/gcvt.texi.
49873         * doc/pastposix-functions/getcontext.texi: Renamed from
49874         doc/posix-functions/getcontext.texi.
49875         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49876         doc/posix-functions/gethostbyaddr.texi.
49877         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49878         doc/posix-functions/gethostbyname.texi.
49879         * doc/pastposix-functions/getwd.texi: Renamed from
49880         doc/posix-functions/getwd.texi.
49881         * doc/pastposix-functions/h_errno.texi: Renamed from
49882         doc/posix-functions/h_errno.texi.
49883         * doc/pastposix-functions/index.texi: Renamed from
49884         doc/posix-functions/index.texi.
49885         * doc/pastposix-functions/makecontext.texi: Renamed from
49886         doc/posix-functions/makecontext.texi.
49887         * doc/pastposix-functions/mktemp.texi: Renamed from
49888         doc/posix-functions/mktemp.texi.
49889         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49890         doc/posix-functions/pthread_attr_getstackaddr.texi.
49891         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49892         doc/posix-functions/pthread_attr_setstackaddr.texi.
49893         * doc/pastposix-functions/rindex.texi: Renamed from
49894         doc/posix-functions/rindex.texi.
49895         * doc/pastposix-functions/scalb.texi: Renamed from
49896         doc/posix-functions/scalb.texi.
49897         * doc/pastposix-functions/setcontext.texi: Renamed from
49898         doc/posix-functions/setcontext.texi.
49899         * doc/pastposix-functions/swapcontext.texi: Renamed from
49900         doc/posix-functions/swapcontext.texi.
49901         * doc/pastposix-functions/ualarm.texi: Renamed from
49902         doc/posix-functions/ualarm.texi.
49903         * doc/pastposix-functions/usleep.texi: Renamed from
49904         doc/posix-functions/usleep.texi.
49905         * doc/pastposix-functions/vfork.texi: Renamed from
49906         doc/posix-functions/vfork.texi.
49907         * doc/pastposix-functions/wcswcs.texi: Renamed from
49908         doc/posix-functions/wcswcs.texi.
49909         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49910         (Function Substitutes): Update.
49911
49912 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49913
49914         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49915         m4/strerror.m4.
49916
49917 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49918             Bruno Haible  <bruno@clisp.org>
49919
49920         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49921
49922 2008-12-13  Bruno Haible  <bruno@clisp.org>
49923
49924         * modules/strtoull (Depends-on): Remove unistd.
49925
49926 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49927
49928         * modules/strtoull (Depends-on): Add stdlib.
49929
49930 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49931
49932         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49933
49934 2008-12-10  Jim Meyering  <meyering@redhat.com>
49935
49936         gl_ASSERT: don't say assertions are disabled when they're not
49937         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49938         "checking whether to enable assertions... no", when they are in
49939         fact enabled.  This is solely a bug in the output of configure.
49940         In spite of saying "no", NDEBUG was not defined in that case.
49941         Also, as noted by Eric Blake, leave assertions enabled upon
49942         --enable-assert=INVALID.
49943
49944 2008-12-10  Bruno Haible  <bruno@clisp.org>
49945
49946         Change MODULES.html to refer to POSIX:2008 where possible.
49947         * MODULES.html.sh (POSIX2008_URL): New variable.
49948         (posix_headers): Remove sys/timeb, ucontext.
49949         (posix2001_headers): New variable.
49950         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49951         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49952         index, makecontext, mktemp, pthread_attr_getstackaddr,
49953         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49954         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49955         (posix2001_functions): New variable.
49956         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49957         otherwise.
49958
49959 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49960
49961         add missing include to parse-duration.c
49962         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49963         * modules/parse-duration (Depends-on): Add xalloc.
49964
49965         fix sed script reading maint.mk
49966         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49967         (syntax-check-rules): Use it.
49968
49969 2008-12-09  Bruno Haible  <bruno@clisp.org>
49970
49971         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49972         MacOS X 10.4/PowerPC.
49973         Reported by Simon Josefsson.
49974
49975 2008-12-08  Jim Meyering  <meyering@redhat.com>
49976
49977         work around mingw's lack of some S_IF definitions
49978         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49979         Reported by Simon Josefsson.
49980
49981 2008-12-08  Bruno Haible  <bruno@clisp.org>
49982
49983         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49984         applied to variables. Needed on MacOS X 10.4/PowerPC.
49985         Reported by Simon Josefsson.
49986
49987 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49988         and Eric Blake  <ebb9@byu.net>
49989
49990         assert: honor --enable-assert
49991         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49992         order to honor --enable-assert, rather than treating it as a
49993         synonym for --disable-assert.
49994
49995 2008-12-08  Jim Meyering  <meyering@redhat.com>
49996
49997         * lib/posixtm.c: Remove now-useless declaration of mktime.
49998
49999         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
50000
50001 2008-12-07  Bruno Haible  <bruno@clisp.org>
50002
50003         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
50004         test_once): Mark functions as static.
50005         * tests/test-tls.c (test_tls): Likewise.
50006
50007 2008-12-07  Bruno Haible  <bruno@clisp.org>
50008
50009         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
50010         iconv_register_autodetect.
50011
50012 2008-12-07  Jim Meyering  <meyering@redhat.com>
50013
50014         posixtm.c: avoid a warning
50015         * lib/posixtm.c (posixtime): Don't initialize tm0.
50016         It's no longer needed to placate gcc4's -Wuninitialized,
50017         and the attempt to placate would elicit a new warning.
50018
50019         unicodeio.c: mark unused parameters
50020         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50021         (fallback_failure_callback): Likewise.
50022
50023 2008-12-07  Bruno Haible  <bruno@clisp.org>
50024
50025         * gnulib-tool (func_create_testdir): When building the tests
50026         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
50027         Reported by Simon Josefsson.
50028
50029 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50030
50031         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
50032
50033 2008-12-06  Bruno Haible  <bruno@clisp.org>
50034
50035         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
50036         Suggested by Eric Blake.
50037
50038 2008-12-06  Bruno Haible  <bruno@clisp.org>
50039
50040         Fix a c-stack test failure on MacOS X.
50041         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
50042         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
50043         handler for SIGBUS as well.
50044         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
50045         install a signal handler for SIGBUS as well.
50046         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
50047
50048 2008-12-06  Bruno Haible  <bruno@clisp.org>
50049
50050         Advocacy documentation.
50051         * doc/gnulib-intro.texi (Benefits): New section.
50052         * doc/gnulib.texi: Update.
50053
50054 2008-12-06  Bruno Haible  <bruno@clisp.org>
50055
50056         Document the 'manywarnings' module.
50057         * doc/manywarnings.texi: New file.
50058         * doc/gnulib.texi: Include it.
50059
50060 2008-12-05  Eric Blake  <ebb9@byu.net>
50061
50062         tests: silence some gcc warnings
50063         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
50064         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
50065         type mismatches.
50066
50067 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50068             Bruno Haible  <bruno@clisp.org>
50069
50070         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
50071
50072 2008-11-29  Jim Meyering  <meyering@redhat.com>
50073
50074         unicodeio.c: mark unused parameters
50075         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
50076         (fallback_failure_callback): Likewise.
50077
50078         fts: fix a thinko
50079         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
50080         (set_stat_type): Return S_IF*-valued "type" directly.
50081         Prompted by James Youngman's spotting a related bug.
50082         Confirmed by further testing through find.
50083
50084         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
50085         * lib/fts.c (D_TYPE): Define.
50086         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
50087         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
50088         (s_ifmt_shift_bits): New function.
50089         (set_stat_type): New function.
50090         (fts_build): When not calling fts_stat, call set_stat_type
50091         to propagate dirent.d_type info to fts_read caller.
50092         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
50093         fts_statp->st_mode type information may be valid.
50094
50095 2008-11-28  Simon Josefsson  <simon@josefsson.org>
50096
50097         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
50098         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
50099         <sds@gnu.org>.
50100
50101 2008-11-20  Bruno Haible  <bruno@clisp.org>
50102
50103         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
50104         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
50105         INCLUDE_NEXT.
50106         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
50107         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
50108         * modules/math (Makefile.am): Substitute
50109         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
50110         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50111
50112 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
50113             Bruno Haible  <bruno@clisp.org>
50114
50115         * lib/stdint.in.h: Define all type macros so that their expansion is
50116         a single typedef'ed token. Fixes a compilation failure in Boost which
50117         does "using ::int8_t;".
50118
50119 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50120
50121         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
50122         gl_MANYWARN_ALL_GCC.
50123         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
50124         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
50125         * modules/manywarnings: New file.
50126         * MODULES.html.sh: Mention manywarnings module.
50127
50128 2008-11-18  Bruno Haible  <bruno@clisp.org>
50129
50130         * doc/gnulib-tool.texi (Unit tests): New section.
50131
50132 2008-11-18  Simon Josefsson  <simon@josefsson.org>
50133
50134         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
50135         paths like 'lib/po/foo.po'.
50136
50137 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50138
50139         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
50140         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
50141
50142 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50143
50144         * m4/warnings.m4: Use CPPFLAGS to really check whether the
50145         parameter works.
50146
50147 2008-11-17  Simon Josefsson  <simon@josefsson.org>
50148
50149         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
50150
50151 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50152
50153         * modules/parse-duration-tests: New file.
50154         * tests/test-parse-duration.sh: New file.
50155         * tests/test-parse-duration.c: New file.
50156
50157         New module 'parse-duration'.
50158         * lib/parse-duration.h: New file.
50159         * lib/parse-duration.c: New file.
50160         * modules/parse-duration: New file.
50161
50162 2008-11-17  Bruno Haible  <bruno@clisp.org>
50163
50164         * tests/test-select-out.sh: Comment out the first pipe test.
50165         Reported by Simon Josefsson.
50166
50167 2008-11-17  Bruno Haible  <bruno@clisp.org>
50168
50169         * modules/getaddrinfo (Depends-on): Add servent, hostent.
50170         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
50171         gl_HOSTENT.
50172
50173 2008-11-17  Bruno Haible  <bruno@clisp.org>
50174
50175         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
50176         -lnetwork and -lnet. Needed for Haiku and BeOS.
50177
50178 2008-11-16  Bruno Haible  <bruno@clisp.org>
50179
50180         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
50181
50182 2008-11-16  Bruno Haible  <bruno@clisp.org>
50183
50184         Avoid test failure on Haiku.
50185         * tests/test-fsync.c: Include <errno.h>.
50186         (main): Don't require that fsync (0) fails.
50187
50188 2008-11-15  Bruno Haible  <bruno@clisp.org>
50189
50190         New module 'hostent'.
50191         * modules/hostent: New file.
50192         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
50193
50194 2008-11-15  Bruno Haible  <bruno@clisp.org>
50195
50196         New module 'servent'.
50197         * modules/servent: New file.
50198         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
50199
50200 2008-11-15  Bruno Haible  <bruno@clisp.org>
50201
50202         Avoid generating same test program with two different rules.
50203         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
50204         test-frexp to test-frexp-nolibm.
50205         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
50206         test-frexpl to test-frexpl-nolibm.
50207
50208 2008-11-15  Bruno Haible  <bruno@clisp.org>
50209
50210         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
50211         $(FREXPL_LIBM).
50212
50213 2008-11-15  Bruno Haible  <bruno@clisp.org>
50214
50215         * lib/netdb.in.h: Activate the definitions also when the system's
50216         <netdb.h> has 'struct addrinfo'.
50217         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
50218         EAI_OVERFLOW or AI_NUMERICSERV.
50219         * doc/posix-headers/netdb.texi: Document the problem.
50220
50221 2008-11-15  Bruno Haible  <bruno@clisp.org>
50222
50223         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
50224
50225         Make the 'sched' module work on platforms where <sched.h> exists but
50226         is incomplete (such as Haiku).
50227         * lib/sched.in.h; Include the system's <sched.h> if it exists.
50228         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
50229         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
50230         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
50231         HAVE_STRUCT_SCHED_PARAM.
50232         * modules/sched (Depends-on): Add include_next.
50233         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
50234         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
50235         * doc/posix-headers/sched.texi: Document the issue.
50236
50237 2008-11-13  Jim Meyering  <meyering@redhat.com>
50238
50239         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
50240         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
50241         test would fail due to the difference in the Report bugs to ...
50242         line.  The expected address is empty, "<>", while the actual
50243         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
50244
50245 2008-11-12  Bruno Haible  <bruno@clisp.org>
50246
50247         lstat: don't compile lstat.c on systems lacking lstat
50248         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
50249         which don't have lstat; this is handled by lib/sys_stat.in.h already.
50250         Reported by Daniel P. Berrange via Jim Meyering.
50251
50252 2008-11-12  Jim Meyering  <meyering@redhat.com>
50253
50254         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
50255
50256 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50257
50258         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
50259         instead.
50260
50261 2008-11-12  Bruno Haible  <bruno@clisp.org>
50262
50263         * lib/unicodeio.c: Include unistr.h.
50264         (utf8_wctomb): Remove function.
50265         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
50266
50267 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50268
50269         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
50270         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
50271         <bruno@clisp.org>.
50272         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
50273
50274 2008-11-12  Simon Josefsson  <simon@josefsson.org>
50275
50276         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
50277         * doc/gnulib.texi: Add section for warnings.
50278
50279 2008-11-11  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/sockets.h: Add a comment.
50282
50283 2008-11-11  Karl Berry  <karl@gnu.org>
50284
50285         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
50286
50287 2008-11-11  Eric Blake  <ebb9@byu.net>
50288
50289         fdl.texi: avoid git symlinks
50290         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
50291
50292 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50293
50294         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
50295
50296 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50297
50298         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
50299         (gl_WARN_ADD): Substitute $2 if literal.
50300
50301 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50302
50303         * m4/warning.m4: Remove.
50304
50305 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
50306
50307         * m4/warnings.m4: Almost complete rewrite. :-)
50308
50309 2008-11-10  Simon Josefsson  <simon@josefsson.org>
50310
50311         * modules/warnings: New module.
50312         * m4/warnings.m4: New file.
50313         * MODULES.html.sh: Mention warnings module.
50314         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
50315         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50316
50317 2008-11-10  Eric Blake  <ebb9@byu.net>
50318
50319         fdl.texi: make a symlink to the latest version
50320         * doc/standards.texi: Revert today's earlier change.
50321         * doc/fdl-1.2.texi: Rename from old fdl.texi...
50322         * doc/fdl.texi: ...and replace this with a symlink to the newer
50323         fdl-1.3.texi.
50324
50325 2008-11-10  Bruno Haible  <bruno@clisp.org>
50326
50327         * tests/test-select-fd.c (main): Accept the result file name as fourth
50328         argument.
50329         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
50330         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
50331
50332 2008-11-10  Bruno Haible  <bruno@clisp.org>
50333
50334         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
50335         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
50336         as autoconf-substituted macros.
50337         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
50338         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
50339         gl_NETDB_H_DEFAULTS. Set these variables.
50340         * modules/netdb (Makefile.am): Substitute these variables.
50341
50342 2008-11-10  Eric Blake  <ebb9@byu.net>
50343
50344         standards.texi: include correct file for FDL 1.3
50345         * doc/standards.texi (GNU Free Documentation License): Change
50346         include file to pull in FDL 1.3, not 1.2.
50347
50348         fdl.texi: revert accidental change to license
50349         * doc/fdl.texi: This is FDL 1.2, not 1.3.
50350
50351 2008-11-10  Bruno Haible  <bruno@clisp.org>
50352
50353         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
50354         cross-compiling guesses also when the native compile gives no result.
50355
50356 2008-11-10  Bruno Haible  <bruno@clisp.org>
50357
50358         * lib/spawni.c (__spawni): Force variable into the stack.
50359
50360 2008-11-10  Bruno Haible  <bruno@clisp.org>
50361
50362         Add support for Haiku.
50363         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
50364         glibc and BeOS, but also on Haiku.
50365         * lib/fpurge.c (fpurge): Likewise.
50366         * lib/freadable.c (freadable): Likewise.
50367         * lib/freadahead.c (freadahead): Likewise.
50368         * lib/freading.c (freading): Likewise.
50369         * lib/freadptr.c (freadptr): Likewise.
50370         * lib/freadseek.c (freadptrinc): Likewise.
50371         * lib/fseeko.c (rpl_fseeko): Likewise.
50372         * lib/fseterr.c (fseterr): Likewise.
50373         * lib/fwritable.c (fwritable): Likewise.
50374         * lib/fwriting.c (fwriting): Likewise.
50375         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
50376
50377 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50378
50379         * lib/config.charset: Treat Haiku like BeOS.
50380
50381 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
50382
50383         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
50384         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
50385
50386 2008-11-08  Bruno Haible  <bruno@clisp.org>
50387
50388         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
50389         AC_CACHE_CHECK.
50390
50391 2008-11-08  Bruno Haible  <bruno@clisp.org>
50392
50393         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
50394
50395 2008-11-08  Bruno Haible  <bruno@clisp.org>
50396
50397         * tests/test-select-fd.c: New file.
50398         * tests/test-select-in.sh: New file.
50399         * tests/test-select-out.sh: New file.
50400         * tests/test-select-stdin.c: New file.
50401         * modules/select-tests (Files): Add the new files.
50402         (Depends-on): Add gettimeofday.
50403         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
50404         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
50405         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
50406
50407 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
50408             Bruno Haible  <bruno@clisp.org>
50409
50410         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
50411
50412 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
50413
50414         * build-aux/pmccabe2html: Added support for C++ source files.
50415
50416 2008-11-05  Ben Pfaff  <blp@gnu.org>
50417
50418         Fix lib/close.c build on Windows.
50419         * modules/close (Files): Add lib/w32sock.h.
50420
50421 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
50422
50423         Accept Bison's NEWS format.
50424         * build-aux/announce-gen (print_news_deltas): Tweak
50425         $re_prefix.
50426
50427 2008-11-04  Bruno Haible  <bruno@clisp.org>
50428
50429         * modules/random_r (Maintainer): Add glibc.
50430
50431 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50432
50433         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
50434         by karl@freefriends.org (Karl Berry).
50435         * doc/alloca.texi: Likewise.
50436         * doc/c-ctype.texi: Likewise.
50437         * doc/c-strcase.texi: Likewise.
50438         * doc/c-strcaseeq.texi: Likewise.
50439         * doc/c-strcasestr.texi: Likewise.
50440         * doc/c-strstr.texi: Likewise.
50441         * doc/c-strtod.texi: Likewise.
50442         * doc/c-strtold.texi: Likewise.
50443         * doc/ctime.texi: Likewise.
50444         * doc/error.texi: Likewise.
50445         * doc/fdl.texi: Likewise.
50446         * doc/gcd.texi: Likewise.
50447         * doc/getdate.texi: Likewise.
50448         * doc/gnulib-intro.texi: Likewise.
50449         * doc/gnulib-tool.texi: Likewise.
50450         * doc/gnulib.texi: Likewise.
50451         * doc/inet_ntoa.texi: Likewise.
50452         * doc/maintain.texi: Likewise.
50453         * doc/make-stds.texi: Likewise.
50454         * doc/quote.texi: Likewise.
50455         * doc/regexprops-generic.texi: Likewise.
50456         * doc/standards.texi: Likewise.
50457         * doc/verify.texi: Likewise.
50458         * doc/visibility.texi: Likewise.
50459         * doc/gnulib.texi (GNU Free Documentation License): Include
50460         fdl-1.3.texi instead of fdl.texi.
50461
50462 2008-11-04  Simon Josefsson  <simon@josefsson.org>
50463
50464         * doc/fdl-1.3.texi: New file, from
50465         <http://www.gnu.org/licenses/fdl-1.3.texi>.
50466         * modules/fdl-1.3: Add.
50467         * MODULES.html.sh: Add fdl-1.3.
50468
50469 2008-11-03  Bruno Haible  <bruno@clisp.org>
50470
50471         Make determination of absolute name of header file work with AIX xlc.
50472         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
50473         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
50474         preprocessing.
50475         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
50476         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
50477
50478 2008-11-03  Simon Josefsson  <simon@josefsson.org>
50479
50480         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
50481         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
50482         <ludo@gnu.org>.
50483
50484 2008-11-02  Bruno Haible  <bruno@clisp.org>
50485
50486         Mark 'strpbrk' obsolete.
50487         * modules/strpbrk (Status, Notice): New sections.
50488         * modules/strtok_r (Depends-on): Add strpbrk.
50489
50490 2008-11-02  Bruno Haible  <bruno@clisp.org>
50491
50492         Mark 'strdup' obsolete.
50493         * modules/strdup (Status, Notice): New sections.
50494         * modules/findprog (Depends-on): Add strdup.
50495         * modules/getaddrinfo (Depends-on): Likewise.
50496         * modules/localename (Depends-on): Likewise.
50497         * modules/relocatable-lib (Depends-on): Likewise.
50498         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
50499         * modules/relocatable-prog (Depends-on): Likewise.
50500         * modules/trim (Depends-on): Likewise.
50501         * modules/unictype/gen-ctype (Depends-on): Likewise.
50502         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50503
50504 2008-11-02  Bruno Haible  <bruno@clisp.org>
50505
50506         Mark 'strcspn' obsolete.
50507         * modules/strcspn (Status, Notice): New sections.
50508
50509 2008-11-02  Bruno Haible  <bruno@clisp.org>
50510
50511         Mark 'rmdir' obsolete.
50512         * modules/rmdir (Status, Notice): New sections.
50513         * modules/clean-temp (Depends-on): Add rmdir.
50514         * modules/openat (Depends-on): Likewise.
50515
50516 2008-11-02  Bruno Haible  <bruno@clisp.org>
50517
50518         Mark 'raise' obsolete.
50519         * modules/raise (Status, Notice): New sections.
50520         (Include): Specify <signal.h>.
50521         * modules/stdio (Depends-on): Add raise.
50522         * modules/write (Depends-on): Likewise.
50523
50524 2008-11-02  Bruno Haible  <bruno@clisp.org>
50525
50526         Mark 'memset' obsolete.
50527         * modules/memset (Status, Notice): New sections.
50528
50529 2008-11-02  Bruno Haible  <bruno@clisp.org>
50530
50531         Mark 'memmove' obsolete.
50532         * modules/memmove (Status, Notice): New sections.
50533         * modules/argp (Depends-on): Add memmove.
50534         * modules/argz (Depends-on): Likewise.
50535         * modules/canonicalize (Depends-on): Likewise.
50536         * modules/canonicalize-lgpl (Depends-on): Likewise.
50537         * modules/fts (Depends-on): Likewise.
50538         * modules/getcwd (Depends-on): Likewise.
50539         * modules/human (Depends-on): Likewise.
50540         * modules/regex (Depends-on): Likewise.
50541         * modules/striconveh (Depends-on): Likewise.
50542         * modules/trim (Depends-on): Likewise.
50543         * modules/unistr/u8-move (Depends-on): Likewise.
50544         * modules/unistr/u16-move (Depends-on): Likewise.
50545         * modules/unistr/u32-move (Depends-on): Likewise.
50546
50547 2008-11-02  Bruno Haible  <bruno@clisp.org>
50548
50549         Mark 'memcpy' obsolete.
50550         * modules/memcpy (Status, Notice): New sections.
50551
50552 2008-11-02  Bruno Haible  <bruno@clisp.org>
50553
50554         Mark 'memcmp' obsolete.
50555         * modules/memcmp (Status, Notice): New sections.
50556         * modules/argmatch (Depends-on): Add memchr.
50557         * modules/backupfile (Depends-on): Likewise.
50558         * modules/c-strcasestr (Depends-on): Likewise.
50559         * modules/crypto/des (Depends-on): Likewise.
50560         * modules/csharpcomp (Depends-on): Likewise.
50561         * modules/fnmatch (Depends-on): Likewise.
50562         * modules/git-merge-changelog (Depends-on): Likewise.
50563         * modules/isnand (Depends-on): Likewise.
50564         * modules/isnand-nolibm (Depends-on): Likewise.
50565         * modules/isnanf (Depends-on): Likewise.
50566         * modules/isnanf-nolibm (Depends-on): Likewise.
50567         * modules/isnanl (Depends-on): Likewise.
50568         * modules/isnanl-nolibm (Depends-on): Likewise.
50569         * modules/mbchar (Depends-on): Likewise.
50570         * modules/memcoll (Depends-on): Likewise.
50571         * modules/quotearg (Depends-on): Likewise.
50572         * modules/regex (Depends-on): Likewise.
50573         * modules/relocatable-prog (Depends-on): Likewise.
50574         * modules/same (Depends-on): Likewise.
50575         * modules/signbit (Depends-on): Likewise.
50576         * modules/strcasestr-simple (Depends-on): Likewise.
50577         * modules/unictype/gen-ctype (Depends-on): Likewise.
50578         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
50579         * modules/uniname/uniname (Depends-on): Likewise.
50580         * modules/unistr/u8-cmp (Depends-on): Likewise.
50581
50582 2008-11-02  Bruno Haible  <bruno@clisp.org>
50583
50584         Mark 'memchr' obsolete.
50585         * modules/memchr (Status, Notice): New sections.
50586         * modules/argp (Depends-on): Add memchr.
50587         * modules/base64 (Depends-on): Likewise.
50588         * modules/c-strcasestr (Depends-on): Likewise.
50589         * modules/chdir-long (Depends-on): Likewise.
50590         * modules/fnmatch (Depends-on): Likewise.
50591         * modules/getsubopt (Depends-on): Likewise.
50592         * modules/git-merge-changelog (Depends-on): Likewise.
50593         * modules/glob (Depends-on): Likewise.
50594         * modules/strcasestr-simple (Depends-on): Likewise.
50595         * modules/strnlen (Depends-on): Likewise.
50596
50597 2008-11-02  Bruno Haible  <bruno@clisp.org>
50598
50599         Mark 'atexit' obsolete.
50600         * modules/atexit (Status, Notice): New sections.
50601         * modules/chdir-long (Depends-on): Add atexit.
50602         * modules/wait-process (Depends-on): Likewise.
50603
50604 2008-11-02  Bruno Haible  <bruno@clisp.org>
50605
50606         * gnulib-tool: New option --with-obsolete.
50607         (func_usage): Document it.
50608         (func_modules_transitive_closure): Drop obsolete dependencies if
50609         incobsolete is not true.
50610         (func_import): Read and save the incobsolete variable to the cache.
50611
50612 2008-11-02  Bruno Haible  <bruno@clisp.org>
50613
50614         * modules/TEMPLATE-EXTENDED: New field 'Status'.
50615         * gnulib-tool: New option --extract-status.
50616         (func_usage): Document it.
50617         (sed_extract_prog): Recognize it.
50618         (func_get_status): New function.
50619
50620 2008-10-30  Simon Josefsson  <simon@josefsson.org>
50621
50622         * modules/sockets (License): Change from LGPL to LGPLv2+.
50623
50624 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50625
50626         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
50627
50628 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50629
50630         * MODULES.html.sh (Support for systems lacking POSIX:2001):
50631         Mention times and sys_times.
50632         * modules/sys_times, modules/sys_times-tests: New modules.
50633         * modules/times, modules/times-tests: Likewise
50634         * m4/sys_times_h.m4: New file.
50635         * lib/sys_times.in.h: Likewise
50636         * lib/times.c: Likewise.
50637         * tests/test-sys_times.c: Likewise.
50638         * tests/test-times.c: Likewise.
50639         * doc/posix-headers/sys_times.texi: Update.
50640         * doc/posix-functions/times.texi: Update.
50641
50642 2008-10-28  Jim Meyering  <meyering@redhat.com>
50643
50644         * modules/tempname (Depends-on): Add lstat.
50645
50646         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
50647
50648 2008-10-28  Simon Josefsson  <simon@josefsson.org>
50649
50650         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
50651         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
50652         using idiom used elsewhere in gnulib.
50653
50654 2008-10-27  Jim Meyering  <meyering@redhat.com>
50655
50656         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
50657
50658 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50659
50660         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
50661         TESTS_ENVIRONMENT, for shell scripts that needs to call built
50662         programs.
50663         * tests/test-argp-2.sh: Use $EXEEXT when needed.
50664
50665 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50666
50667         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
50668
50669 2008-10-27  Bruno Haible  <bruno@clisp.org>
50670
50671         * tests/test-lstat.c: Include <stdio.h>.
50672
50673 2008-10-27  Simon Josefsson  <simon@josefsson.org>
50674
50675         * modules/lstat-tests: New module.
50676         * tests/test-lstat.c: New file.
50677
50678 2008-10-26  Jim Meyering  <meyering@redhat.com>
50679
50680         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
50681
50682 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50683             Bruno Haible  <bruno@clisp.org>
50684
50685         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
50686         * modules/configmake (Include): Add a note that the include must come
50687         after all system headers.
50688         * lib/javaversion.c: Include configmake.h after all other includes.
50689
50690 2008-10-26  Bruno Haible  <bruno@clisp.org>
50691
50692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
50693         HAVE_STRUCT_RANDOM_DATA to 1.
50694         (gl_STDLIB_H): Simplify.
50695
50696 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50697
50698         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
50699         substitute HAVE_STRUCT_RANDOM_DATA.
50700         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
50701         random_data.
50702         * modules/stdlib (Makefile.am): Substitute
50703         HAVE_STRUCT_RANDOM_DATA.
50704
50705 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50706
50707         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
50708         * doc/gnulib-intro.texi (Copyright): Likewise.
50709
50710 2008-10-26  Simon Josefsson  <simon@josefsson.org>
50711
50712         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
50713         findings.
50714
50715 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
50716             Bruno Haible  <bruno@clisp.org>
50717
50718         * lib/unistd.in.h: Include <winsock2.h>.
50719         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
50720         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
50721         Provide dummy declarations.
50722         (gethostname): Override.
50723         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
50724         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
50725         gl_PREREQ_SYS_H_WINSOCK2.
50726         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
50727         * doc/posix-functions/gethostname.texi: More details.
50728
50729 2008-10-25  Bruno Haible  <bruno@clisp.org>
50730
50731         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50732         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
50733         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
50734
50735         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
50736         here ...
50737         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
50738         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
50739         gl_UNISTD_H_DEFAULTS.
50740
50741 2008-10-25  Eric Blake  <ebb9@byu.net>
50742
50743         signbit: avoid spurious compiler failure
50744         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
50745         declarations inside function.
50746
50747 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50748             Bruno Haible  <bruno@clisp.org>
50749
50750         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
50751         * modules/random_r (Depends-on): Add stdint.
50752
50753 2008-10-24  Bruno Haible  <bruno@clisp.org>
50754
50755         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
50756         Eggert.
50757         * modules/strerror (License): Likewise.
50758
50759 2008-10-24  Jim Meyering  <meyering@redhat.com>
50760
50761         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
50762         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
50763
50764 2008-10-24  Eric Blake  <ebb9@byu.net>
50765
50766         getgroups: fix compilation when getgroups is available
50767         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
50768         but with <config.h> override of getgroups disabled.
50769
50770 2008-10-24  Simon Josefsson  <simon@josefsson.org>
50771
50772         * doc/gnulib.texi (Header files): Add note about C++ problems.
50773         Explained by Bruno Haible <bruno@clisp.org>.
50774
50775 2008-10-23  Bruno Haible  <bruno@clisp.org>
50776
50777         Define a dummy SA_NODEFER macro on Interix.
50778         * lib/signal.in.h (SA_NODEFER): Define fallback.
50779         Reported by Aleksey Cheusov <cheusov@tut.by> via
50780         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
50781
50782 2008-10-23  Bruno Haible  <bruno@clisp.org>
50783
50784         * modules/freadahead (License): Change to LGPLv2+.
50785         Suggested by Simon Josefsson.
50786
50787 2008-10-23  Jim Meyering  <meyering@redhat.com>
50788
50789         random_r: new module
50790         * modules/random_r: New file.
50791         * m4/random_r.m4: New file.
50792         * lib/random_r.c: New file, from glibc.
50793         * modules/random_r-tests: New file.
50794         * tests/test-random_r.c: New file.
50795         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
50796          Declare.
50797         (RAND_MAX): Define.
50798         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
50799         * modules/stdlib: Substitute them, too.
50800         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
50801         * doc/glibc-functions/initstate_r.texi: Mention the new module.
50802         * doc/glibc-functions/random_r.texi: Likewise.
50803         * doc/glibc-functions/setstate_r.texi: Likewise.
50804         * doc/glibc-functions/srandom_r.texi: Likewise.
50805         * config/srclist.txt: Mention it.
50806
50807 2008-10-23  David Lutterkort  <lutter@redhat.com>
50808
50809         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50810         link requirement
50811
50812 2008-10-23  Jim Meyering  <meyering@redhat.com>
50813
50814         selinux-h: mark parameters of stub functions as intentionally unused
50815         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50816         * lib/se-context.in.h: Likewise.
50817
50818 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50819
50820         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50821
50822 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50823
50824         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50825
50826 2008-10-22  Eric Blake  <ebb9@byu.net>
50827
50828         glthread/thread: avoid compiler warning
50829         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50830         Add unreachable abort to silence compiler.
50831
50832 2008-10-22  Eric Blake  <ebb9@byu.net>
50833
50834         netdb: also supply struct addrinfo for cygwin 1.5.x
50835         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50836         older cygwin.
50837         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50838         cygwin.
50839         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50840
50841 2008-10-22  Bruno Haible  <bruno@clisp.org>
50842
50843         * users.txt: Update entry about pspp.
50844
50845 2008-10-21  Bruno Haible  <bruno@clisp.org>
50846
50847         Simplification.
50848         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50849         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50850
50851         Simplification.
50852         * lib/ioctl.c (ioctl): Don't undefine.
50853         * lib/socket.c (socket): Don't undefine.
50854
50855         Remove unused module indicator macros.
50856         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50857         GNULIB_$1 as a C macro.
50858
50859         * doc/posix-functions/close.texi: Undo last change.
50860         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50861         Windows platforms.
50862
50863 2008-10-21  Bruno Haible  <bruno@clisp.org>
50864
50865         Add gethostname() declaration to <unistd.h>.
50866         * lib/unistd.in.h (gethostname): New declaration.
50867         * lib/gethostname.c: Include <unistd.h>.
50868         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50869         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50871         and HAVE_GETHOSTNAME.
50872         * modules/gethostname (Depends-on): Add unistd.
50873         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50874         (Include): Specify <unistd.h>.
50875         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50876         HAVE_GETHOSTNAME.
50877         * tests/test-gethostname.c: Include <unistd.h> first.
50878
50879 2008-10-21  Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50882         * modules/select-tests (Depends-on): Likewise.
50883         Reported by Simon Josefsson.
50884
50885 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50886
50887         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50888         * lib/accept.c: New file, based on winsock.c.
50889         * lib/bind.c: New file, based on winsock.c.
50890         * lib/connect.c: New file, based on winsock.c.
50891         * lib/getpeername.c: New file, based on winsock.c.
50892         * lib/getsockname.c: New file, based on winsock.c.
50893         * lib/getsockopt.c: New file, based on winsock.c.
50894         * lib/ioctl.c: New file, based on winsock.c.
50895         * lib/listen.c: New file, based on winsock.c.
50896         * lib/recv.c: New file, based on winsock.c.
50897         * lib/recvfrom.c: New file, based on winsock.c.
50898         * lib/send.c: New file, based on winsock.c.
50899         * lib/sendto.c: New file, based on winsock.c.
50900         * lib/setsockopt.c: New file, based on winsock.c.
50901         * lib/shutdown.c: New file, based on winsock.c.
50902         * lib/socket.c: New file, based on winsock.c.
50903         * lib/w32sock.h: New file, based on winsock.c.
50904         * lib/winsock.c: Remove file.
50905         * modules/accept: Likewise.
50906         * modules/bind: Likewise.
50907         * modules/connect: Likewise.
50908         * modules/getpeername: Likewise.
50909         * modules/getsockname: Likewise.
50910         * modules/getsockopt: Likewise.
50911         * modules/ioctl: Likewise.
50912         * modules/listen: Likewise.
50913         * modules/recv: Likewise.
50914         * modules/recvfrom: Likewise.
50915         * modules/send: Likewise.
50916         * modules/sendto: Likewise.
50917         * modules/setsockopt: Likewise.
50918         * modules/shutdown: Likewise.
50919         * modules/socket: Use socket.c instead of winsock.c.
50920         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50921         * doc/posix-functions/accept.texi: Doc fix.
50922         * doc/posix-functions/bind.texi: Doc fix.
50923         * doc/posix-functions/close.texi: Doc fix.
50924         * doc/posix-functions/connect.texi: Doc fix.
50925         * doc/posix-functions/getpeername.texi: Doc fix.
50926         * doc/posix-functions/getsockname.texi: Doc fix.
50927         * doc/posix-functions/getsockopt.texi: Doc fix.
50928         * doc/posix-functions/ioctl.texi: Doc fix.
50929         * doc/posix-functions/listen.texi: Doc fix.
50930         * doc/posix-functions/recv.texi: Doc fix.
50931         * doc/posix-functions/recvfrom.texi: Doc fix.
50932         * doc/posix-functions/send.texi: Doc fix.
50933         * doc/posix-functions/sendto.texi: Doc fix.
50934         * doc/posix-functions/setsockopt.texi: Doc fix.
50935         * doc/posix-functions/shutdown.texi: Doc fix.
50936         * doc/posix-functions/socket.texi: Doc fix.
50937
50938 2008-10-20  Bruno Haible  <bruno@clisp.org>
50939
50940         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50941         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50942         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50943         as an alias for SIGABRT.
50944         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50945         (sigaction): Map it to SIGABRT.
50946         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50947
50948 2008-10-20  Bruno Haible  <bruno@clisp.org>
50949
50950         * lib/fts.c: Don't include lstat.h.
50951         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50952
50953         Move the lstat() declaration to <sys/stat.h>.
50954         * lib/lstat.h: Remove file.
50955         * lib/sys_stat.in.h: Add special invocation convention.
50956         (lstat): New declaration.
50957         * lib/lstat.c (orig_lstat): New function.
50958         (rpl_lstat): Use orig_lstat instead of lstat.
50959         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50960         AC_C_INLINE. Set REPLACE_LSTAT.
50961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50962         and REPLACE_LSTAT.
50963         * modules/lstat (Files): Remove lib/lstat.h.
50964         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50965         (Include): Specify <sys/stat.h> instead of lstat.h.
50966         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50967         REPLACE_LSTAT.
50968         * NEWS: Mention the change.
50969
50970 2008-10-20  Bruno Haible  <bruno@clisp.org>
50971
50972         * modules/posix_spawn-tests: New file.
50973         * tests/test-posix_spawn3.c: New file.
50974
50975 2008-10-20  Bruno Haible  <bruno@clisp.org>
50976
50977         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50978         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50979         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50980         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50981         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50982
50983 2008-10-20  Bruno Haible  <bruno@clisp.org>
50984
50985         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50986         of posix_spawn on AIX 5.3.
50987
50988 2008-10-20  Bruno Haible  <bruno@clisp.org>
50989
50990         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50991
50992 2008-10-20  Bruno Haible  <bruno@clisp.org>
50993
50994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50995         of AC_LANG_PROGRAM.
50996
50997 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50998
50999         * lib/netdb.in.h: Don't define GNU specific constants until they
51000         are supported or needed.  Reported by Bruno Haible
51001         <bruno@clisp.org>.
51002
51003 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51004
51005         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
51006
51007 2008-10-20  Simon Josefsson  <simon@josefsson.org>
51008
51009         * lib/getaddrinfo.h: Remove file.
51010         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
51011         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
51012         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
51013         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
51014         * modules/netdb: Substitute GNULIB_GETADDRINFO.
51015         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
51016         * tests/test-getaddrinfo.c: Likewise.
51017         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
51018         * NEWS: Mention change.
51019
51020 2008-10-19  Bruno Haible  <bruno@clisp.org>
51021
51022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
51023
51024 2008-10-19  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/wait-process.c: Include simply <sys/wait.h>.
51027         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
51028         WIFSTOPPED): Remove fallback definitions.
51029         * modules/wait-process (Depends-on): Add sys_wait.
51030
51031         New module 'sys_wait'.
51032         * modules/sys_wait: New file.
51033         * lib/sys_wait.in.h: New file, partially copied from
51034         lib/wait-process.c.
51035         * m4/sys_wait_h.m4: New file.
51036         * doc/posix-headers/sys_wait.texi: Mention the new module.
51037
51038 2008-10-19  Bruno Haible  <bruno@clisp.org>
51039
51040         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
51041
51042 2008-10-19  Bruno Haible  <bruno@clisp.org>
51043
51044         Assume that waitpid() fills an 'int' status, not a 'union wait'.
51045         * lib/wait-process.c (WAIT_T): Remove type.
51046         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
51047         (wait_subprocess): Update.
51048
51049 2008-10-19  Bruno Haible  <bruno@clisp.org>
51050
51051         New module 'atoll'.
51052         * modules/atoll: New file.
51053         * lib/stdlib.in.h (atoll): New declaration.
51054         * lib/atoll.c: New file, from glibc with modifications.
51055         * m4/atoll.m4: New file.
51056         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
51057         HAVE_ATOLL.
51058         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
51059         * doc/posix-functions/atoll.texi: Mention the new module.
51060
51061 2008-10-19  Bruno Haible  <bruno@clisp.org>
51062
51063         Add strtoull() declaration to <stdlib.h>.
51064         * lib/stdlib.in.h (strtoull): New declaration.
51065         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51066         Set HAVE_STRTOULL.
51067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
51068         HAVE_STRTOULL.
51069         * modules/strtoull (Depends-on): Add stdlib.
51070         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51071         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
51072         HAVE_STRTOULL.
51073
51074 2008-10-19  Bruno Haible  <bruno@clisp.org>
51075
51076         Add strtoll() declaration to <stdlib.h>.
51077         * lib/stdlib.in.h (strtoll): New declaration.
51078         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
51079         Set HAVE_STRTOLL.
51080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
51081         HAVE_STRTOLL.
51082         * modules/strtoll (Depends-on): Add stdlib.
51083         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51084         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
51085
51086 2008-10-19  Bruno Haible  <bruno@clisp.org>
51087
51088         * modules/bcopy (Depends-on): Add strings.
51089         (Include): Specify <strings.h>.
51090
51091 2008-10-19  Bruno Haible  <bruno@clisp.org>
51092
51093         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
51094
51095 2008-10-19  Bruno Haible  <bruno@clisp.org>
51096
51097         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
51098         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
51099         mingw.
51100
51101 2008-10-19  Bruno Haible  <bruno@clisp.org>
51102
51103         * lib/atanl.c: Don't include isnanl.h.
51104         * lib/cosl.c: Likewise.
51105         * lib/ldexpl.c: Likewise.
51106         * lib/logl.c: Likewise.
51107         * lib/sinl.c: Likewise.
51108         * lib/sqrtl.c: Likewise.
51109         * lib/tanl.c: Likewise.
51110
51111         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
51112         * lib/isnanf.h: Remove file.
51113         * lib/isnand.h: Remove file.
51114         * lib/isnanl.h: Remove file.
51115         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
51116         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
51117         macros.
51118         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
51119         HAVE_ISNANF, don't define it as a C macro.
51120         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
51121         HAVE_ISNAND, don't define it as a C macro.
51122         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
51123         HAVE_ISNANL, don't define it as a C macro.
51124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
51125         HAVE_ISNAN[FDL].
51126         * modules/isnanf (Files): Remove lib/isnanf.h.
51127         (Depends-on): Add math.
51128         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51129         (Include): Specify <math.h> instead of isnanf.h.
51130         * modules/isnand (Files): Remove lib/isnand.h.
51131         (Depends-on): Add math.
51132         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51133         (Include): Specify <math.h> instead of isnand.h.
51134         * modules/isnanl (Files): Remove lib/isnanl.h.
51135         (Depends-on): Add math.
51136         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
51137         (Include): Specify <math.h> instead of isnanl.h.
51138         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
51139         HAVE_ISNAN[FDL].
51140         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
51141         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
51142         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
51143         * NEWS: Mention the change.
51144
51145 2008-10-18  Bruno Haible  <bruno@clisp.org>
51146
51147         Add getusershell(), setusershell(), endusershell() declarations to
51148         <unistd.h>.
51149         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
51150         declarations.
51151         * lib/getusershell.c: Include unistd.h.
51152         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
51153         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51154         HAVE_GETUSERSHELL.
51155         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
51156         and HAVE_GETUSERSHELL.
51157         * modules/getusershell (Depends-on): Add unistd, extensions.
51158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51159         (Include): Specify <unistd.h>.
51160         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
51161         HAVE_GETUSERSHELL.
51162
51163 2008-10-18  Bruno Haible  <bruno@clisp.org>
51164
51165         Add a getloadavg() declaration to <stdlib.h>.
51166         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
51167         getloadavg declaration.
51168         (getloadavg): New declaration.
51169         * lib/getloadavg.c: Include <stdlib.h> first.
51170         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
51171         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
51172         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
51173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
51174         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51175         * modules/getloadavg (Depends-on): Add stdlib, extensions.
51176         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51177         (Include): Specify <stdlib.h>.
51178         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
51179         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
51180
51181 2008-10-18  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/dirchownmod.c: Don't include lchmod.h.
51184
51185         Move the lchmod() declaration to <sys/stat.h>.
51186         * lib/lchmod.h: Remove file.
51187         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
51188         (lchmod): New declaration, moved here from lib/lchown.h.
51189         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
51190         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
51191         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
51192         and HAVE_LCHMOD.
51193         * modules/lchmod (Files): Remove lib/lchmod.h.
51194         (Depends-on): Add sys_stat, extensions.
51195         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
51196         (Include): Specify <sys/stat.h> instead of lchmod.h.
51197         * modules/sys_stat (Depends-on): Add link-warning.
51198         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
51199         definition of GL_LINK_WARNING.
51200         * NEWS: Mention the change.
51201
51202 2008-10-18  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/fchdir.c: Don't include dirfd.h.
51205         * lib/fts.c: Likewise.
51206         * lib/getcwd.c: Likewise.
51207         * lib/glob.c: Likewise.
51208
51209         Move the dirfd() declaration to <dirent.h>.
51210         * lib/dirfd.h: Remove file.
51211         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
51212         (dirfd): New declaration.
51213         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
51214         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
51215         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
51216         HAVE_DECL_DIRFD.
51217         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
51218         HAVE_DECL_DIRFD.
51219         * modules/dirfd (Files): Remove lib/dirfd.h.
51220         (Depends-on): Add dirent, extensions.
51221         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
51222         (Include): Specify <dirent.h> instead of dirfd.h.
51223         * modules/dirent (Depends-on): Add link-warning.
51224         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
51225         definition of GL_LINK_WARNING.
51226         * NEWS: Mention the change.
51227
51228 2008-10-18  Bruno Haible  <bruno@clisp.org>
51229
51230         Move the euidaccess() declaration to <unistd.h>.
51231         * lib/euidaccess.h: Remove file.
51232         * lib/unistd.in.h (euidaccess): New declaration.
51233         * lib/euidaccess.c: Don't include euidaccess.h.
51234         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
51235         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
51236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
51237         and HAVE_EUIDACCESS.
51238         * modules/euidaccess (Files): Remove lib/euidaccess.h.
51239         (Depends-on): Add unistd.
51240         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51241         (Include): Specify <unistd.h> instead of euidaccess.h.
51242         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
51243         HAVE_EUIDACCESS.
51244         * NEWS: Mention the change.
51245
51246 2008-10-18  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
51249
51250         Move the getdomainname() declaration to <unistd.h>.
51251         * lib/getdomainname.h: Remove file.
51252         * lib/unistd.in.h (getdomainname): New declaration.
51253         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
51254         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
51255         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
51256         HAVE_GETDOMAINNAME.
51257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51258         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
51259         * modules/getdomainname (Files): Remove lib/getdomainname.h.
51260         (Depends-on): Add unistd, extensions.
51261         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
51262         (Includes): Specify <unistd.h> instead of getdomainname.h.
51263         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
51264         HAVE_GETDOMAINNAME.
51265         * NEWS: Mention the change.
51266
51267 2008-10-18  Bruno Haible  <bruno@clisp.org>
51268
51269         * modules/dirent: New file.
51270         * m4/dirent_h.m4: New file.
51271         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
51272         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
51273         * modules/fchdir (Files): Remove lib/dirent.in.h.
51274         (Depends-on): Add dirent.
51275         (Makefile.am): Move rules to modules/dirent.
51276         * doc/posix-headers/dirent.texi: Mention the new module.
51277
51278 2008-10-18  Bruno Haible  <bruno@clisp.org>
51279
51280         Avoid -Wunused-parameter warnings in public gnulib header files.
51281         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
51282         macro.
51283         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
51284
51285 2008-10-18  Bruno Haible  <bruno@clisp.org>
51286
51287         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
51288         * doc/glibc-functions/error.texi: Mention the module 'error'.
51289         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
51290         * doc/glibc-functions/getdomainname.texi: Mention the module
51291         'getdomainname'.
51292         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
51293         * doc/glibc-functions/getpagesize.texi: Mention the module
51294         'getpagesize'.
51295         * doc/glibc-functions/getusershell.texi: Mention the module
51296         'getusershell'.
51297         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
51298         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
51299         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
51300         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
51301         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
51302         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
51303         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
51304         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
51305         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
51306         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
51307         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
51308         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
51309         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
51310         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
51311
51312 2008-10-17  Bruno Haible  <bruno@clisp.org>
51313
51314         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
51315         HP-UX and IRIX, use -0.0L.
51316         * tests/test-ceill.c (minus_zero): Likewise.
51317         * tests/test-floorl.c (minus_zero): Likewise.
51318         * tests/test-frexpl.c (minus_zero): Likewise.
51319         * tests/test-isnan.c (minus_zerol): Likewise.
51320         * tests/test-isnanl.h (minus_zero): Likewise.
51321         * tests/test-ldexpl.c (minus_zero): Likewise.
51322         * tests/test-roundl.c (minus_zero): Likewise.
51323         * tests/test-signbit.c (minus_zerol): Likewise.
51324         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51325         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51326         * tests/test-truncl.c (minus_zero): Likewise.
51327         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51328         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51329         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
51330         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51331
51332 2008-10-17  Bruno Haible  <bruno@clisp.org>
51333
51334         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
51335         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
51336         that it gets activated only for gcc >= 3.0.
51337         * lib/dirent.in.h: Likewise.
51338         * lib/errno.in.h: Likewise.
51339         * lib/fcntl.in.h: Likewise.
51340         * lib/float.in.h: Likewise.
51341         * lib/iconv.in.h: Likewise.
51342         * lib/inttypes.in.h: Likewise.
51343         * lib/locale.in.h: Likewise.
51344         * lib/math.in.h: Likewise.
51345         * lib/netdb.in.h: Likewise.
51346         * lib/netinet_in.in.h: Likewise.
51347         * lib/search.in.h: Likewise.
51348         * lib/signal.in.h: Likewise.
51349         * lib/spawn.in.h: Likewise.
51350         * lib/stdarg.in.h: Likewise.
51351         * lib/stdint.in.h: Likewise.
51352         * lib/stdio.in.h: Likewise.
51353         * lib/stdlib.in.h: Likewise.
51354         * lib/string.in.h: Likewise.
51355         * lib/strings.in.h: Likewise.
51356         * lib/sys_file.in.h: Likewise.
51357         * lib/sys_ioctl.in.h: Likewise.
51358         * lib/sys_select.in.h: Likewise.
51359         * lib/sys_socket.in.h: Likewise.
51360         * lib/sys_stat.in.h: Likewise.
51361         * lib/sys_time.in.h: Likewise.
51362         * lib/sysexits.in.h: Likewise.
51363         * lib/time.in.h: Likewise.
51364         * lib/unistd.in.h: Likewise.
51365         * lib/wchar.in.h: Likewise.
51366         * lib/wctype.in.h: Likewise.
51367         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51368
51369 2008-10-17  Jim Meyering  <meyering@redhat.com>
51370
51371         ignore-value: don't depend on inline module
51372         * modules/ignore-value (Depends-on): Remove 'inline'.
51373         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
51374         Suggestion from Bruno Haible.
51375
51376 2008-10-17  Bruno Haible  <bruno@clisp.org>
51377
51378         New implementation of condition variables for Win32.
51379         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
51380         (gl_linked_waitqueue_t): New type.
51381         (gl_cond_t): Use it.
51382         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
51383         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
51384         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
51385         (glthread_cond_init_func, glthread_cond_wait_func,
51386         glthread_cond_timedwait_func, glthread_cond_signal_func,
51387         glthread_cond_broadcast_func, glthread_cond_destroy_func):
51388         Reimplemented on the basis of gl_linked_waitqueue_t.
51389         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
51390         gl_waitqueue_t.
51391         (gl_rwlock_t): Update.
51392         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
51393
51394 2008-10-17  Simon Josefsson  <simon@josefsson.org>
51395
51396         * modules/recvfrom (Depends-on): Add dependency on getpeername.
51397         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51398
51399 2008-10-17  Jim Meyering  <meyering@redhat.com>
51400
51401         ignore-value: new module
51402         * modules/ignore-value: New file.
51403         * lib/ignore-value.h: New file.
51404         * MODULES.html.sh (Compiler warning management): New section,
51405         just for this module.  More to come.
51406
51407 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51408
51409         open-safer.c: avoid 'signed and unsigned in conditional...' warning
51410         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
51411         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
51412
51413 2008-10-16  Jim Meyering  <meyering@redhat.com>
51414
51415         openat-die.c: avoid 'no previous prototype' warning
51416         * lib/openat-die.c: Include "openat.h".
51417         Reported by Reuben Thomas <rrt@sc3d.org>.
51418
51419 2008-10-16  Simon Josefsson  <simon@josefsson.org>
51420
51421         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
51422         * lib/netdb.in.h: Fix typo.
51423         Reported by Bruno Haible  <bruno@clisp.org>
51424
51425         * lib/netdb.in.h: Include sys/socket.h for platforms without
51426         netdb.h, to get structures like hostent on MinGW.
51427         * modules/netdb (Depends-on): Add sys_socket.
51428
51429 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51430
51431         * modules/netdb, modules/netdb-tests: New file.
51432         * m4/netdb_h.m4: New file.
51433         * lib/netdb.in.h: Add, currently just an empty file pending
51434         definitions.
51435         * tests/test-netdb.c: New file.
51436         * doc/posix-headers/netdb.texi: Mention that we replace it if
51437         needed.
51438         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51439         netdb.
51440
51441 2008-10-15  Simon Josefsson  <simon@josefsson.org>
51442
51443         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
51444         with code.
51445
51446 2008-10-13  Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/glthread/cond.c (glthread_cond_wait_func,
51449         glthread_cond_timedwait_func): Add a comment.
51450
51451 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51452
51453         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
51454         * tests/test-select.c: Likewise,
51455
51456 2008-10-13  Bruno Haible  <bruno@clisp.org>
51457
51458         * lib/glthread/cond.c (glthread_cond_wait_func,
51459         glthread_cond_timedwait_func): Fix variable name.
51460         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
51461
51462 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
51463
51464         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
51465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
51466         struct sockaddr.sa_len.
51467         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
51468
51469 2008-10-13  Simon Josefsson  <simon@josefsson.org>
51470
51471         * build-aux/pmccabe2html: Add css and css_url parameters.
51472
51473 2008-10-12  Bruno Haible  <bruno@clisp.org>
51474
51475         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
51476         calling aclx_get.
51477         Reported by Rainer Tammer <tammer@tammer.net>.
51478
51479 2008-10-12  Bruno Haible  <bruno@clisp.org>
51480
51481         Use msvcrt aware primitives for creation/termination of Win32 threads.
51482         * lib/glthread/thread.c: Include <process.h>.
51483         (glthread_create_func): Use _beginthreadex instead of CreateThread.
51484         (wrapper_func): Update signature.
51485         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
51486
51487 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
51488             Bruno Haible  <bruno@clisp.org>
51489
51490         Provide a Win32 implementation of the 'cond' module.
51491         * lib/glthread/cond.h [USE_WIN32]: New implementation.
51492         * lib/glthread/cond.c (glthread_cond_init_func,
51493         glthread_cond_wait_func, glthread_cond_timedwait_func,
51494         glthread_cond_signal_func, glthread_cond_broadcast_func,
51495         glthread_cond_destroy_func) [USE_WIN32]: New functions.
51496         * modules/cond (Dependencies): Add gettimeofday.
51497
51498 2008-10-11  Bruno Haible  <bruno@clisp.org>
51499
51500         Make sleep work on older versions of mingw.
51501         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
51502         only whether it exists.
51503         * doc/posix-functions/sleep.texi: Mention the problem with older
51504         versions of mingw.
51505
51506 2008-10-11  Bruno Haible  <bruno@clisp.org>
51507
51508         New module 'shutdown'.
51509         * modules/shutdown: New file.
51510         * lib/sys_socket.in.h (shutdown): New declaration.
51511         * lib/winsock.c (shutdown): New function.
51512         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
51513         GNULIB_SHUTDOWN.
51514         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
51515         * doc/posix-functions/shutdown.texi: Document the new module.
51516
51517 2008-10-11  Jim Meyering  <meyering@redhat.com>
51518
51519         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
51520
51521 2008-10-11  Bruno Haible  <bruno@clisp.org>
51522
51523         New module 'fclose'.
51524         * modules/fclose: New file.
51525         * lib/stdio.in.h (fclose): New declaration.
51526         * lib/fclose.c: New file.
51527         * m4/fclose.m4: New file.
51528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
51529         REPLACE_FCLOSE.
51530         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
51531         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
51532         REPLACE_FCLOSE.
51533         * modules/close (Depends-on): fclose.
51534         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
51535
51536 2008-10-11  Bruno Haible  <bruno@clisp.org>
51537
51538         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
51539         set errno and don't call _close.
51540
51541 2008-10-10  Bruno Haible  <bruno@clisp.org>
51542
51543         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
51544         ACL, not afterwards. Fixes test failure on Cygwin.
51545
51546 2008-10-09  Ben Pfaff  <blp@gnu.org>
51547
51548         * build-aux/announce-gen: Fix gnulib version related part of usage
51549         message.  Die with a useful error message if no tarballs are
51550         found.
51551
51552 2008-10-10  Jim Meyering  <meyering@redhat.com>
51553
51554         bootstrap: use git's --depth=N option only if it's supported
51555         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
51556         recognize the --depth option.  Reported by Pádraig Brady.
51557
51558 2008-10-09  Bruno Haible  <bruno@clisp.org>
51559
51560         New module 'ioctl'.
51561         * modules/ioctl: New file.
51562         * lib/sys_socket.in.h (ioctl): Remove declaration.
51563         * lib/winsock.c: Include <sys/ioctl.h>.
51564         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
51565         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
51566         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
51567         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
51568         * doc/posix-functions/ioctl.texi: Mention the new module.
51569
51570 2008-10-09  Bruno Haible  <bruno@clisp.org>
51571
51572         New module 'sys_ioctl'.
51573         * lib/sys_ioctl.in.h: New file.
51574         * m4/sys_ioctl_h.m4: New file.
51575         * modules/sys_ioctl: New file.
51576         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
51577
51578 2008-10-09  Bruno Haible  <bruno@clisp.org>
51579
51580         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
51581         * lib/winsock.c: Include <stdarg.h>.
51582         (rpl_ioctl): Change to second argument 'int' and then varargs.
51583
51584 2008-10-09  Bruno Haible  <bruno@clisp.org>
51585
51586         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
51587         when the sys_socket module is present and the system has <winsock2.h>.
51588
51589 2008-10-09  Bruno Haible  <bruno@clisp.org>
51590
51591         * doc/posix-functions/close.texi: Mention module 'close' instead of
51592         module 'sys_socket'.
51593
51594 2008-10-09  Bruno Haible  <bruno@clisp.org>
51595
51596         * doc/glibc-headers/sys_ioctl.texi: New file.
51597         * doc/gnulib.texi: Include it.
51598
51599 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51600             Bruno Haible  <bruno@clisp.org>
51601
51602         Combine the two replacements of 'close'.
51603         * lib/sys_socket.in.h (close): Define to a reminder to include
51604         <unistd.h>.
51605         (_gl_close_fd_maybe_socket): New declaration.
51606         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
51607         * lib/winsock.c (close): Remove undefinition.
51608         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
51609         needed for the gnulib module 'close'.
51610         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
51611         define to an error symbol or to a warning, if suitable.
51612         * lib/close.c: Include <sys/socket.h>.
51613         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
51614         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
51615         UNISTD_H_HAVE_WINSOCK2_H.
51616         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
51617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51618         UNISTD_H_HAVE_WINSOCK2_H.
51619         * modules/sys_socket (Files): Add m4/unistd_h.m4.
51620         (configure.ac): Set a module indicator.
51621         (Makefile.am): Substitute GNULIB_CLOSE.
51622         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
51623         * modules/poll-tests (Depends-on): Add close.
51624         * modules/select-tests (Depends-on): Likewise.
51625
51626 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51627             Bruno Haible  <bruno@clisp.org>
51628
51629         New module 'close'.
51630         * modules/close: New file.
51631         * lib/unistd.in.h (close): Move declaration out of the
51632         FCHDIR_REPLACEMENT scope.
51633         (_gl_unregister_fd): New declaration.
51634         * lib/close.c: New file.
51635         * lib/fchdir.c (rpl_close): Remove function.
51636         * m4/close.m4: New file.
51637         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51638         close.
51639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
51640         REPLACE_CLOSE.
51641         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
51642         REPLACE_CLOSE.
51643         * modules/fchdir (Depends-on): Add close.
51644
51645 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51646             Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/fcntl.in.h (open): Simplify conditionals.
51649         (_gl_register_fd): New declaration.
51650         * lib/fchdir.c (rpl_open): Remove function.
51651         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
51652         also.
51653         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
51654         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
51655         open.
51656
51657 2008-10-09  Jim Meyering  <meyering@redhat.com>
51658
51659         GNUmakefile: use the more name-space-friendly "_version"
51660         * top/GNUmakefile (_dummy): Update.
51661         (_version): Rename from "version".
51662
51663 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51664             Bruno Haible  <bruno@clisp.org>
51665
51666         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
51667         rpl_close.
51668         (_gl_register_fd): New function, extracted from rpl_open.
51669         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
51670         (rpl_open, rpl_opendir): Use _gl_register_fd.
51671
51672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
51673
51674         Fix organization of 'open' replacement.
51675         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
51676         (gl_FUNC_OPEN): Use it.
51677         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
51678
51679 2008-10-08  Bruno Haible  <bruno@clisp.org>
51680
51681         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
51682
51683 2008-10-08  Simon Josefsson  <simon@josefsson.org>
51684
51685         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
51686         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
51687         listen).
51688
51689 2008-10-08  Eric Blake  <ebb9@byu.net>
51690
51691         GNUmakefile: add 'make version' target
51692         * top/GNUmakefile (_curr-ver): Split version update rules...
51693         (version): ...into a target.
51694
51695 2008-10-07  Bruno Haible  <bruno@clisp.org>
51696
51697         Use a more portable replacement expression for -0.0L.
51698         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
51699         instead of -0.0L. Fix m4 quotation.
51700
51701         * tests/test-signbit.c: Include <float.h>.
51702         (minus_zero): New variable.
51703         (test_signbitl): Use minus_zero instead of -zero.
51704         * modules/signbit-tests (Depends-on): Add float.
51705
51706         * tests/test-ceill.c: Include <float.h>.
51707         (zero): Remove variable.
51708         (minus_zero): New variable.
51709         (main): Use minus_zero instead of -zero.
51710         * modules/ceill-tests (Depends-on): Add float.
51711
51712         * tests/test-floorl.c: Include <float.h>.
51713         (zero): Remove variable.
51714         (minus_zero): New variable.
51715         (main): Use minus_zero instead of -zero.
51716         * modules/floorl-tests (Depends-on): Add float.
51717
51718         * tests/test-roundl.c: Include <float.h>.
51719         (zero): Remove variable.
51720         (minus_zero): New variable.
51721         (main): Use minus_zero instead of -zero.
51722         * modules/roundl-tests (Depends-on): Add float.
51723
51724         * tests/test-truncl.c: Include <float.h>.
51725         (zero): Remove variable.
51726         (minus_zero): New variable.
51727         (main): Use minus_zero instead of -zero.
51728         * modules/truncl-tests (Depends-on): Add float.
51729
51730         * tests/test-frexpl.c (zero): Remove variable.
51731         (minus_zero): New variable.
51732         (main): Use minus_zero instead of -zero.
51733         * modules/frexpl-tests (Depends-on): Add float.
51734
51735         * tests/test-isnan.c (zerol): Remove variable.
51736         (minus_zerol): New variable.
51737         (test_long_double): Use minus_zerol instead of -zerol.
51738         * modules/isnan-tests (Depends-on): Add float.
51739
51740         * tests/test-isnanl.h (zero): Remove variable.
51741         (minus_zero): New variable.
51742         (main): Use minus_zero instead of -zero.
51743         * modules/isnanl-nolibm-tests (Depends-on): Add float.
51744         * modules/isnanl-tests (Depends-on): Add float.
51745
51746         * tests/test-ldexpl.c (zero): Remove variable.
51747         (minus_zero): New variable.
51748         (main): Use minus_zero instead of -zero.
51749         * modules/ldexpl-tests (Depends-on): Add float.
51750
51751         * tests/test-snprintf-posix.h (zerol): Remove variable.
51752         (minus_zerol): New variable.
51753         (test_function): Use minus_zerol instead of -zerol.
51754         * modules/snprintf-posix-tests (Depends-on): Add float.
51755         * modules/vsnprintf-posix-tests (Depends-on): Add float.
51756
51757         * tests/test-sprintf-posix.h (zerol): Remove variable.
51758         (minus_zerol): New variable.
51759         (test_function): Use minus_zerol instead of -zerol.
51760         * modules/sprintf-posix-tests (Depends-on): Add float.
51761         * modules/vsprintf-posix-tests (Depends-on): Add float.
51762
51763         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
51764         (minus_zerol): New variable.
51765         (test_function): Use minus_zerol instead of -zerol.
51766         * modules/vasnprintf-posix-tests (Depends-on): Add float.
51767
51768         * tests/test-vasprintf-posix.c (zerol): Remove variable.
51769         (minus_zerol): New variable.
51770         (test_function): Use minus_zerol instead of -zerol.
51771         * modules/vasprintf-posix-tests (Depends-on): Add float.
51772
51773 2008-10-07  Simon Josefsson  <simon@josefsson.org>
51774
51775         * MODULES.html.sh (Support for building documentation): Mention
51776         pmccabe2html.  Sort entries.
51777
51778         Add pmccabe2html module, from gnupdf.
51779         * build-aux/pmccabe.css: New file.
51780         * build-aux/pmccabe2html: New file.
51781         * m4/pmccabe2html.m4: New file.
51782         * modules/pmccabe2html: New file.
51783
51784 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
51785
51786         flock: new module
51787         * MODULES.html.sh: Add to list of modules.
51788         * lib/flock.c: flock implementation for Windows and Unix systems
51789         which have fcntl.
51790         * doc/glibc-functions/flock.texi: Update documentation.
51791         * lib/sys_file.in.h: <sys/file.h> header file.
51792         * m4/flock.m4: M4 macros.
51793         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
51794         * modules/flock: flock module.
51795         * modules/flock-tests: flock tests module.
51796         * modules/sys_file: sys/file.h module.
51797         * tests/test-flock.c: test suite for flock.
51798
51799 2008-10-06  Jim Meyering  <meyering@redhat.com>
51800
51801         bootstrap: check for LT_INIT more portably still ;-)
51802         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
51803         Spotted by Bruno Haible.
51804
51805 2008-10-06  Eric Blake  <ebb9@byu.net>
51806
51807         test-signbit: avoid tripping Irix cc bug on -0.0L
51808         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51809         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51810         entire testsuite consistent and avoids an Irix 6.2 bug.
51811
51812 2008-10-05  Bruno Haible  <bruno@clisp.org>
51813             Jim Meyering  <jim@meyering.net>
51814
51815         Add an option for ignoring EPIPE during close_stdout.
51816         * lib/closeout.h: Include <stdbool.h>.
51817         (close_stdout_set_ignore_EPIPE): New declaration.
51818         * lib/closeout.c: Include <stdbool.h>.
51819         (ignore_EPIPE): New variable.
51820         (close_stdout_set_ignore_EPIPE): New function.
51821         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51822         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51823         failure.
51824         * modules/closeout (Depends-on): Add stdbool.
51825
51826 2008-10-05  Bruno Haible  <bruno@clisp.org>
51827
51828         * modules/accept: New file.
51829         * modules/bind: New file.
51830         * modules/connect: New file.
51831         * modules/getpeername: New file.
51832         * modules/getsockname: New file.
51833         * modules/getsockopt: New file.
51834         * modules/listen: New file.
51835         * modules/recv: New file.
51836         * modules/recvfrom: New file.
51837         * modules/send: New file.
51838         * modules/sendto: New file.
51839         * modules/setsockopt: New file.
51840         * modules/socket: New file.
51841         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51842         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51843         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51844         the particular module is requested. Add a link warning when the
51845         particular module is not requested.
51846         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51847         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51848         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51849         the particular module is requested.
51850         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51851         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51852         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51853         * modules/sys_socket (Depends-on): Add link-warning.
51854         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51855         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51856         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51857         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51858         GL_LINK_WARNING.
51859         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51860         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51861         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51862         * doc/posix-functions/getpeername.texi: Mention the new module
51863         'getpeername'.
51864         * doc/posix-functions/getsockname.texi: Mention the new module
51865         'getsockname'.
51866         * doc/posix-functions/getsockopt.texi: Mention the new module
51867         'getsockopt'.
51868         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51869         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51870         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51871         * doc/posix-functions/send.texi: Mention the new module 'send'.
51872         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51873         * doc/posix-functions/setsockopt.texi: Mention the new module
51874         'setsockopt'.
51875         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51876         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51877         listen, connect, accept.
51878         * modules/select-tests (Depends-on): Likewise.
51879
51880 2008-10-05  Bruno Haible  <bruno@clisp.org>
51881
51882         * lib/winsock.c (strerror): Remove unused #undef.
51883         (rpl_close): Remove unused local variable.
51884
51885         * modules/sys_socket (Depends-on); Add errno.
51886
51887 2008-10-05  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51890         (select): Add a link warning when the 'select' module is not used.
51891         * modules/sys_select (Depends-on): Add link-warning.
51892         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51893         Suggested by Paolo Bonzini.
51894
51895 2008-10-05  Jim Meyering  <meyering@redhat.com>
51896
51897         bootstrap: check for LT_INIT more portably
51898         * build-aux/bootstrap: Avoid using grep -E, since it's not
51899         portable enough.  Suggestion from Bruno Haible.
51900
51901 2008-10-05  Bruno Haible  <bruno@clisp.org>
51902
51903         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51904         as being fixed by gnulib.
51905
51906 2008-10-05  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/select-tests: New file, mostly copied from
51909         modules/sys_select-tests.
51910         * tests/test-select.c: New file, mostly copied from
51911         tests/test-sys_select.c.
51912         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51913         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51914         (Makefile.am): Remove test_sys_select_LDADD.
51915
51916         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51917         to an undefined symbol, for an error message.
51918         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51919         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51920         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51921         winsock-select.c here.
51922         * modules/sys_select (Files): Remove lib/winsock-select.c.
51923         (Depends-on): Remove alloca.
51924         (Makefile.am): Substitute GNULIB_SELECT.
51925         * modules/select: New file.
51926         * doc/posix-functions/select.texi: Update.
51927
51928 2008-10-05  Bruno Haible  <bruno@clisp.org>
51929
51930         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51931         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51932         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51933         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51934         getdtablesize.
51935         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51936         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51937
51938 2008-10-05  Bruno Haible  <bruno@clisp.org>
51939
51940         * modules/getdtablesize-tests: New file.
51941         * tests/test-getdtablesize.c: New file.
51942
51943         New module 'getdtablesize'.
51944         * lib/unistd.in.h (getdtablesize): New declaration.
51945         * lib/getdtablesize.c: New file.
51946         * m4/getdtablesize.m4: New file.
51947         * modules/getdtablesize: New file.
51948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51949         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51950         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51951         HAVE_GETDTABLESIZE.
51952         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51953
51954 2008-10-05  Bruno Haible  <bruno@clisp.org>
51955
51956         * modules/sched (Makefile.am): Fix typo.
51957         Reported by Simon Josefsson.
51958
51959 2008-10-05  Jim Meyering  <meyering@redhat.com>
51960
51961         bootstrap: check for LT_INIT, too
51962         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51963         are deprecated.  Suggestion from Ralf Wildenhues.
51964
51965 2008-10-05  Bruno Haible  <bruno@clisp.org>
51966
51967         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51968         overriding them by ours.
51969         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51970
51971 2008-10-05  Jim Meyering  <meyering@redhat.com>
51972
51973         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51974         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51975         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51976
51977 2008-10-04  Bruno Haible  <bruno@clisp.org>
51978
51979         * modules/dup2 (License): Change to LGPLv2+.
51980         * modules/sleep (License): Likewise.
51981         * modules/perror (License): Likewise.
51982         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51983         Blake.
51984         * modules/signal (License): Likewise.
51985         * modules/sigprocmask (License): Likewise.
51986         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51987         Meyering.
51988
51989 2008-10-04  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51992         Reported by Rainer Tammer <tammer@tammer.net>.
51993
51994 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51995             Bruno Haible  <bruno@clisp.org>
51996
51997         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51998         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51999         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
52000
52001 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
52002
52003         filevercmp: new module
52004         * lib/filevercmp.h: New function filevercmp comparing version strings.
52005         * lib/filevercmp.c: Implementation of filevercmp function.
52006         * modules/filevercmp: Module metadata.
52007         * tests/test-filevercmp.c: Unit test for new module.
52008         * modules/filevercmp-tests: Unit test metadata.
52009         * MODULES.html.sh: Add filevercmp module.
52010
52011 2008-10-03  Bruno Haible  <bruno@clisp.org>
52012
52013         * lib/c-ctype.h: Add comment.
52014         Reported by Jim Meyering.
52015
52016 2008-10-02  Bruno Haible  <bruno@clisp.org>
52017
52018         * modules/posix_spawn-internal (Depends-on): Add 'open'.
52019
52020 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52021
52022         * build-aux/bootstrap: Allow renaming bootstrap, and change the
52023         name of bootstrap.conf accordingly.
52024
52025 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52026
52027         * build-aux/bootstrap: Install git-merge-changelog configuration
52028         items into .gitconfig if needed.
52029
52030 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
52031
52032         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
52033         git repository, and initialize/update it accordingly.
52034
52035 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
52036
52037         * modules/fsync-tests: New file.
52038         * tests/test-fsync.c: New file.
52039
52040         New module 'fsync'.
52041         * lib/fsync.c: New file.
52042         * m4/fsync.m4: New file.
52043         * modules/fsync: New file.
52044         * lib/unistd.in.h (fsync): New declaration.
52045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
52046         GNULIB_FSYNC and HAVE_FSYNC.
52047         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
52048         * MODULES.html.sh (posix_functions): Add fsync.
52049         * doc/posix-functions/fsync.texi: Mention the new module.
52050
52051 2008-10-02  Jim Meyering  <meyering@redhat.com>
52052
52053         fts.c: sync with similar code from coreutils' remove.c
52054         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
52055         Guard also with "#if defined __linux__", since for now at least,
52056         this code is Linux-kernel-specific.
52057
52058 2008-10-02  Jim Meyering  <meyering@redhat.com>
52059
52060         fts: bug fixes
52061         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
52062         Include <sys/vfs.h>, not <sys/statfs.h>.
52063
52064         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
52065         Include <sys/vfs.h>, not <sys/statfs.h>.
52066
52067 2008-10-01  Bruno Haible  <bruno@clisp.org>
52068
52069         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
52070         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
52071         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
52072         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
52073         * doc/posix-functions/posix_spawnp.texi: Likewise.
52074         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
52075         whether posix_spawn actually works.
52076         * m4/pipe.m4 (gl_PIPE): Likewise.
52077         * modules/execute (Files): Add m4/posix_spawn.m4.
52078         * modules/pipe (Files): Add m4/posix_spawn.m4.
52079         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
52080
52081 2008-10-01  Jim Meyering  <meyering@redhat.com>
52082
52083         remove trailing spaces
52084         * NEWS: Likewise.
52085         * lib/poll.c (poll): Likewise.
52086         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
52087         * lib/winsock.c (rpl_close): Likewise.
52088         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
52089         * modules/yield: Likewise.
52090         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
52091         * tests/test-sys_select.c (connect_to_socket): Likewise.
52092
52093         fts.c: adjust a new interface to be more generally useful
52094         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
52095         (fts_build): Adjust caller.
52096
52097 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52098
52099         * modules/cond-tests: New file.
52100         * tests/test-cond.c: New file.
52101
52102 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52103             Bruno Haible  <bruno@clisp.org>
52104
52105         * modules/cond (Dependencies): Add errno, time.
52106         * lib/glthread/cond.h: Include <time.h>.
52107         (gl_cond_define, gl_cond_define_initialized): Use the same definition
52108         across platforms.
52109
52110 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52111             Bruno Haible  <bruno@clisp.org>
52112
52113         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
52114
52115 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52116             Bruno Haible  <bruno@clisp.org>
52117
52118         * modules/tls-tests (Depends-on): Add thread, yield.
52119         (configure.ac): Remove all checks.
52120         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
52121         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52122         gl_thread_self): Remove definitions. Include glthread/thread.h and
52123         glthread/yield.h instead.
52124         (test_tls): Pass an additional NULL argument to gl_thread_join.
52125
52126 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52127             Bruno Haible  <bruno@clisp.org>
52128
52129         * modules/lock-tests (Depends-on): Add thread, yield.
52130         (configure.ac): Remove all checks.
52131         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
52132         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
52133         gl_thread_self): Remove definitions. Include glthread/thread.h and
52134         glthread/yield.h instead.
52135         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
52136         additional NULL argument to gl_thread_join.
52137
52138 2008-09-30  Bruno Haible  <bruno@clisp.org>
52139
52140         Fix the Win32 implementation of the 'thread' module.
52141         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
52142         pointer type.
52143         (gl_thread_self): Invoke gl_thread_self_func.
52144         (gl_thread_self_func): New declaration.
52145         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
52146         (do_init_self_key, init_self_key): New functions.
52147         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
52148         Remove some fields.
52149         (running_threads, running_lock): Remove variables.
52150         (get_current_thread_handle): New function.
52151         (gl_thread_self_func, wrapper_func, glthread_create_func,
52152         glthread_join_func, gl_thread_exit_func): Largely rewritten and
52153         simplified.
52154
52155 2008-09-30  Bruno Haible  <bruno@clisp.org>
52156
52157         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
52158         files.
52159
52160 2008-09-30  Jim Meyering  <meyering@redhat.com>
52161
52162         fts.m4: correct the test for statfs.f_type
52163         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
52164         when checking for statfs.f_type.
52165
52166 2008-09-15  Simon Josefsson  <simon@josefsson.org>
52167
52168         tests: avoid some compiler warnings
52169         * tests/test-memchr.c (main): Pass NULL indirectly.
52170         * tests/test-getdate.c (main): Remove unused variable 'ret'.
52171
52172 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
52173
52174         getdate.y: disallow countable dayshifts like "4 yesterday ago"
52175         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
52176         exactly specified dayshifts.
52177         (dayshift): New rule.
52178         (rel): Add dayshift.
52179         (relative_time_table) [tomorrow, yesterday, today, now]:
52180         Use tDAY_SHIFT in place of tDAY_UNIT.
52181         * tests/test-getdate.c: Add tests for now-disallowed countable
52182         dayshifts, e.g., "4 yesterday ago".
52183
52184 2008-09-29  Bruno Haible  <bruno@clisp.org>
52185
52186         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
52187         * tests/test-posix_spawn1.in.sh: Renamed from
52188         tests/test-posix_spawn.in.sh.
52189         * tests/test-posix_spawn2.c: New file.
52190         * tests/test-posix_spawn2.in.sh: New file.
52191         * modules/posix_spawnp-tests (Files): Update.
52192         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
52193
52194 2008-09-29  Bruno Haible  <bruno@clisp.org>
52195
52196         Propagate effects of putenv/setenv/unsetenv to child processes.
52197         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
52198         * lib/pipe.c (create_pipe): Likewise.
52199
52200 2008-09-29  Bruno Haible  <bruno@clisp.org>
52201
52202         Enable use of shell scripts as executables in mingw.
52203         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
52204         run the program as a shell script.
52205         * lib/pipe.c (create_pipe): Likewise.
52206         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
52207         resulting array.
52208
52209 2008-09-29  Eric Blake  <ebb9@byu.net>
52210
52211         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
52212
52213 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
52214
52215         * doc/posix-functions/accept.texi: Update mingw problems.
52216         * doc/posix-functions/bind.texi: Update mingw problems.
52217         * doc/posix-functions/close.texi: Update mingw problems.
52218         * doc/posix-functions/connect.texi: Update mingw problems.
52219         * doc/posix-functions/getpeername.texi: Update mingw problems.
52220         * doc/posix-functions/getsockname.texi: Update mingw problems.
52221         * doc/posix-functions/getsockopt.texi: Update mingw problems.
52222         * doc/posix-functions/ioctl.texi: Update mingw problems.
52223         * doc/posix-functions/listen.texi: Update mingw problems.
52224         * doc/posix-functions/recv.texi: Update mingw problems.
52225         * doc/posix-functions/recvfrom.texi: Update mingw problems.
52226         * doc/posix-functions/select.texi: Update mingw problems.
52227         * doc/posix-functions/send.texi: Update mingw problems.
52228         * doc/posix-functions/sendto.texi: Update mingw problems.
52229         * doc/posix-functions/setsockopt.texi: Update mingw problems.
52230         * doc/posix-functions/socket.texi: Update mingw problems.
52231
52232 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
52233             Bruno Haible  <bruno@clisp.org>
52234
52235         * lib/sys_select.in.h: Include sys/time.h.
52236         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
52237         * modules/sys_select: Depend on sys_time.
52238         * tests/test-sys_select.c: Test that sys/select.h defines struct
52239         timeval fully.
52240
52241 2008-09-29  Bruno Haible  <bruno@clisp.org>
52242
52243         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
52244         * lib/sys_select.in.h: Likewise.
52245
52246 2008-09-29  Bruno Haible  <bruno@clisp.org>
52247
52248         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
52249
52250 2008-09-29  Bruno Haible  <bruno@clisp.org>
52251
52252         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
52253         Set LIBSOCKET instead of augmenting LIBS.
52254         * modules/sockets (Link): New section.
52255         * modules/sockets-tests (test_sockets_LDADD): New variable.
52256         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
52257         * modules/poll-tests (test_poll_LDADD): New variable.
52258         * NEWS: Document the change.
52259
52260 2008-09-29  Bruno Haible  <bruno@clisp.org>
52261
52262         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
52263         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
52264         ARPA_INET_H directly.
52265         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52266
52267 2008-09-28  Bruno Haible  <bruno@clisp.org>
52268
52269         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
52270         from gl_HEADER_SYS_SOCKET.
52271         (gl_HEADER_SYS_SOCKET): Invoke it.
52272         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52273
52274 2008-09-28  Bruno Haible  <bruno@clisp.org>
52275
52276         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
52277         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
52278         Needed on OSF/1 4.0.
52279
52280 2008-09-28  Bruno Haible  <bruno@clisp.org>
52281
52282         Override open more carefully.
52283         * lib/open.c (orig_open): New function.
52284         (rpl_open): Use orig_open instead of open.
52285         * lib/fcntl.in.h: Add special invocation convention.
52286         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
52287         (gl_FUNC_OPEN): Invoke it.
52288
52289         Override freopen more carefully.
52290         * lib/freopen.c (orig_freopen): New function.
52291         (rpl_freopen): Use orig_freopen instead of freopen.
52292         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
52293         (gl_FUNC_FREOPEN): Invoke it.
52294
52295         Override fopen more carefully.
52296         * lib/fopen.c (orig_fopen): New function.
52297         (rpl_fopen): Use orig_fopen instead of fopen.
52298         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
52299         (gl_FUNC_FOPEN): Invoke it.
52300         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
52301
52302 2008-09-28  Bruno Haible  <bruno@clisp.org>
52303
52304         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
52305         SIGPIPE.
52306
52307 2008-09-28  Bruno Haible  <bruno@clisp.org>
52308
52309         * tests/test-sigaction.c (handler, main): Disable the check whether
52310         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
52311         glibc systems with LinuxThreads.
52312
52313 2008-09-28  Bruno Haible  <bruno@clisp.org>
52314
52315         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
52316
52317         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
52318         with AIX xlc.
52319         * lib/fcntl.in.h (open): Likewise.
52320         Reported by Rainer Tammer <tammer@tammer.net>.
52321
52322 2008-09-28  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/posix_spawnp-tests: New file.
52325         * tests/test-posix_spawn.c: New file.
52326         * tests/test-posix_spawn.in.sh: New file.
52327
52328         New module 'posix_spawnp'.
52329         * modules/posix_spawnp: New file.
52330         * lib/spawnp.c: New file, from GNU libc with modifications.
52331         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
52332
52333         New module 'posix_spawn'.
52334         * modules/posix_spawn: New file.
52335         * lib/spawn.c: New file, from GNU libc with modifications.
52336         * doc/posix-functions/posix_spawn.texi: Mention the new module.
52337
52338         New module 'posix_spawnattr_destroy'.
52339         * modules/posix_spawnattr_destroy: New file.
52340         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
52341         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
52342         module.
52343
52344         New module 'posix_spawnattr_setsigmask'.
52345         * modules/posix_spawnattr_setsigmask: New file.
52346         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
52347         modifications.
52348         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
52349         new module.
52350
52351         New module 'posix_spawnattr_getsigmask'.
52352         * modules/posix_spawnattr_getsigmask: New file.
52353         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
52354         modifications.
52355         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
52356         new module.
52357
52358         New module 'posix_spawnattr_setsigdefault'.
52359         * modules/posix_spawnattr_setsigdefault: New file.
52360         * lib/spawnattr_setdefault.c: New file, from GNU libc with
52361         modifications.
52362         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
52363         new module.
52364
52365         New module 'posix_spawnattr_getsigdefault'.
52366         * modules/posix_spawnattr_getsigdefault: New file.
52367         * lib/spawnattr_getdefault.c: New file, from GNU libc with
52368         modifications.
52369         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
52370         new module.
52371
52372         New module 'posix_spawnattr_setschedpolicy'.
52373         * modules/posix_spawnattr_setschedpolicy: New file.
52374         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
52375         modifications.
52376         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
52377         new module.
52378
52379         New module 'posix_spawnattr_getschedpolicy'.
52380         * modules/posix_spawnattr_getschedpolicy: New file.
52381         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
52382         modifications.
52383         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
52384         new module.
52385
52386         New module 'posix_spawnattr_setschedparam'.
52387         * modules/posix_spawnattr_setschedparam: New file.
52388         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
52389         modifications.
52390         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
52391         new module.
52392
52393         New module 'posix_spawnattr_getschedparam'.
52394         * modules/posix_spawnattr_getschedparam: New file.
52395         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
52396         modifications.
52397         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
52398         new module.
52399
52400         New module 'posix_spawnattr_setpgroup'.
52401         * modules/posix_spawnattr_setpgroup: New file.
52402         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
52403         modifications.
52404         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
52405         module.
52406
52407         New module 'posix_spawnattr_getpgroup'.
52408         * modules/posix_spawnattr_getpgroup: New file.
52409         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
52410         modifications.
52411         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
52412         module.
52413
52414         New module 'posix_spawnattr_setflags'.
52415         * modules/posix_spawnattr_setflags: New file.
52416         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
52417         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
52418         module.
52419
52420         New module 'posix_spawnattr_getflags'.
52421         * modules/posix_spawnattr_getflags: New file.
52422         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
52423         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
52424         module.
52425
52426         New module 'posix_spawnattr_init'.
52427         * modules/posix_spawnattr_init: New file.
52428         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
52429         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
52430         module.
52431
52432         New module 'posix_spawn_file_actions_destroy'.
52433         * modules/posix_spawn_file_actions_destroy: New file.
52434         * lib/spawn_faction_destroy.c: New file, from GNU libc with
52435         modifications.
52436         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
52437         the new module.
52438
52439         New module 'posix_spawn_file_actions_addopen'.
52440         * modules/posix_spawn_file_actions_addopen: New file.
52441         * lib/spawn_faction_addopen.c: New file, from GNU libc with
52442         modifications.
52443         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
52444         the new module.
52445
52446         New module 'posix_spawn_file_actions_adddup2'.
52447         * modules/posix_spawn_file_actions_adddup2: New file.
52448         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
52449         modifications.
52450         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
52451         the new module.
52452
52453         New module 'posix_spawn_file_actions_addclose'.
52454         * modules/posix_spawn_file_actions_addclose: New file.
52455         * lib/spawn_faction_addclose.c: New file, from GNU libc with
52456         modifications.
52457         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
52458         the new module.
52459
52460         New module 'posix_spawn_file_actions_init'.
52461         * modules/posix_spawn_file_actions_init: New file.
52462         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
52463         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
52464         new module.
52465
52466         New module 'posix_spawn-internal'.
52467         * modules/posix_spawn-internal: New file.
52468         * lib/spawn_int.h: New file, from GNU libc with modifications.
52469         * lib/spawni.c: New file, from GNU libc with modifications.
52470         * m4/posix_spawn.m4: New file.
52471
52472         New module 'spawn'.
52473         * modules/spawn: New file.
52474         * lib/spawn.in.h: New file, from GNU libc with modifications.
52475         * m4/spawn_h.m4: New file.
52476         * doc/posix-headers/spawn.texi: Mention the new module.
52477
52478 2008-09-28  Bruno Haible  <bruno@clisp.org>
52479
52480         * modules/sched-tests: New file.
52481         * tests/test-sched.c: New file.
52482
52483         New module 'sched'.
52484         * modules/sched: New file.
52485         * lib/sched.in.h: New file.
52486         * m4/sched_h.m4: New file.
52487         * doc/posix-headers/sched.texi: Mention the new module.
52488
52489 2008-09-27  Eric Blake  <ebb9@byu.net>
52490
52491         Fix previous patch, and tweak references to $0.
52492         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
52493         (func_version, func_gnulib_dir): Don't call this program
52494         gnulib-tool.
52495         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
52496         with using $0 in function.
52497         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
52498         (func_fatal_error): Reuse the name the user invoked us with.
52499
52500 2008-09-27  Bruno Haible  <bruno@clisp.org>
52501
52502         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
52503         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
52504         (gl_ICONV_H): Not here.
52505         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
52506         instead of assigning ICONV_H directly.
52507
52508         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
52509         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
52510         WCHAR_H directly.
52511
52512 2008-09-27  Bruno Haible  <bruno@clisp.org>
52513
52514         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
52515         * modules/arpa_inet (Depends-on): Add link-warning.
52516         (Makefile.am): Insert the definition of GL_LINK-WARNING.
52517         * modules/unistd (Makefile.am): Likewise.
52518
52519 2008-09-26  Bruno Haible  <bruno@clisp.org>
52520
52521         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
52522         variables.
52523         (func_version): Essentially copied from gnulib-tool.
52524         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
52525         func_readlink): Copied from gnulib-tool.
52526
52527 2008-09-26  Bruno Haible  <bruno@clisp.org>
52528
52529         * gnulib-tool (func_version): Change directory to $gnulib_dir before
52530         invoking git-version-gen.
52531
52532 2008-09-26  Bruno Haible  <bruno@clisp.org>
52533
52534         * posix-modules: Update to directory names changed on 2008-01-19.
52535         Remove commas in output before splitting into words. No more need to
52536         avoid 'ftruncate' since 2007-02-19.
52537
52538 2008-09-26  Bruno Haible  <bruno@clisp.org>
52539
52540         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
52541
52542 2008-09-26  Bruno Haible  <bruno@clisp.org>
52543
52544         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
52545         * modules/fwriteerror (Depends-on): Add errno.
52546
52547 2008-09-26  Bruno Haible  <bruno@clisp.org>
52548
52549         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
52550         * tests/test-vc-list-files-cvs.sh: Likewise.
52551
52552 2008-09-26  Bruno Haible  <bruno@clisp.org>
52553
52554         * doc/posix-headers/sys_resource.texi: Reorder items.
52555
52556 2008-09-26  Jim Meyering  <meyering@redhat.com>
52557
52558         fts: tweak inode comparison function
52559         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
52560         inode numbers, as documented.
52561
52562         fts: sort dirent entries on inode number before traversing
52563         This avoids a quadratic, seek-related performance penalty when
52564         operating on a directory containing many entries (measurable at 10k;
52565         3.5 hours at 2 million entries with a cold cache) on certain types
52566         of file systems, including ext3 and ext4, but not tmpfs.
52567         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
52568         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
52569         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
52570         (fs_handles_readdir_ordered_dirents_efficiently): New function.
52571         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
52572         (fts_build): Set the stat.st_ino member from D_INO.
52573         If it is likely to be useful, sort dirent entries on inode number.
52574
52575         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
52576         and the struct statfs.f_type member.
52577         * modules/fts (Depends-on): Add d-ino.
52578
52579 2008-09-26  Bruno Haible  <bruno@clisp.org>
52580
52581         * modules/sigpipe-die (Depends-on): Add sigpipe.
52582
52583         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
52584         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
52585         and GNULIB_STDIO_H_SIGPIPE are set.
52586         * lib/stdio-write.c: New file.
52587         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
52588         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52589         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52590         REPLACE_STDIO_WRITE_FUNCS.
52591         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
52592         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52593         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52594         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52595         * modules/stdio (Files): Add lib/stdio-write.c.
52596         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
52597         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
52598         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
52599         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
52600         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
52601         REPLACE_FPRINTF_POSIX.
52602         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
52603         REPLACE_PRINTF_POSIX.
52604         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
52605         REPLACE_VFPRINTF_POSIX.
52606         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
52607         REPLACE_VPRINTF_POSIX.
52608         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
52609         SIGPIPE issue.
52610         * doc/posix-functions/fputc.texi: Likewise.
52611         * doc/posix-functions/fputs.texi: Likewise.
52612         * doc/posix-functions/fwrite.texi: Likewise.
52613         * doc/posix-functions/printf.texi: Likewise.
52614         * doc/posix-functions/putc.texi: Likewise.
52615         * doc/posix-functions/putchar.texi: Likewise.
52616         * doc/posix-functions/puts.texi: Likewise.
52617         * doc/posix-functions/vfprintf.texi: Likewise.
52618         * doc/posix-functions/vprintf.texi: Likewise.
52619
52620         * modules/safe-write (Depends-on): Add write.
52621
52622         * modules/sigpipe-tests: New file.
52623         * tests/test-sigpipe.c: New file.
52624         * tests/test-sigpipe.sh: New file.
52625
52626         * modules/write: New file.
52627         * lib/unistd.in.h: Include <sys/types.h>.
52628         (write): New declaration.
52629         * lib/write.c: New file.
52630         * m4/write.m4: New file.
52631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52632         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
52633         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
52634         GNULIB_WRITE, REPLACE_WRITE.
52635         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
52636         and the SIGPIPE issue.
52637
52638         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
52639         (raise): New declaration.
52640         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
52641         (ext_signal): New function.
52642         (rpl_raise): New function.
52643         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
52644         GNULIB_SIGNAL_H_SIGPIPE.
52645         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
52646         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
52647
52648         * modules/sigpipe: New file.
52649         * m4/sigpipe.m4: New file.
52650
52651 2008-09-25  Derek Price  <derek@ximbiot.com>
52652             Bruno Haible  <bruno@clisp.org>
52653
52654         * gnulib-tool (func_import): Report all license incompatibilities, not
52655         just the first one.
52656
52657 2008-09-25  Bruno Haible  <bruno@clisp.org>
52658
52659         * gnulib-tool (func_import): When computing the edits, consider not
52660         only the Makefile.ams that exist but also those that will be generated.
52661
52662 2008-09-25  Simon Josefsson  <simon@josefsson.org>
52663
52664         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
52665         fixes gnulib-tool --test warning about duplicate dependency.
52666
52667 2008-09-25  Bruno Haible  <bruno@clisp.org>
52668
52669         * gnulib-tool: Don't ask the user to perform edits in the generated
52670         Makefile.ams.
52671         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
52672         apply to the Makefile.am being generated.
52673         (func_emit_tests_Makefile_am): Execute edits that apply to the
52674         Makefile.am being generated.
52675         (func_import): Setup list of Makefile.am edits before emitting the
52676         Makefile.ams, not at the end.
52677         (func_create_testdir): Update.
52678         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52679
52680 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52681
52682         * gnulib-tool (func_import): Store the --tests-base option in the
52683         comment in gnulib-cache.m4.
52684
52685 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
52686
52687         * NEWS: Document increased portability that sys_select now provides.
52688
52689         * lib/sys_select.in.h: Install select wrapper.
52690         * lib/sys_socket.in.h: Use more descriptive name when there is no
52691         select wrapper.
52692         * lib/winsock-select.c: New.
52693         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
52694         Require gl_HEADER_SYS_SOCKET.
52695         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
52696         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
52697         * tests/test-sys_select.c: Add functional tests.
52698
52699 2008-09-24  Eric Blake  <ebb9@byu.net>
52700
52701         open, fopen: close fd leak in last patch
52702         * lib/open.c (rpl_open): Close fd before returning error.
52703         * lib/fopen.c (rpl_fopen): Close fd before returning error.
52704         * doc/posix-functions/open.texi (open): Document that Irix also
52705         has the bug.
52706         * doc/posix-functions/fopen.texi (fopen): Likewise.
52707         Reported by Paolo Bonzini.
52708
52709 2008-09-24  Bruno Haible  <bruno@clisp.org>
52710
52711         Ensure that a filename ending in a slash cannot be used to access a
52712         non-directory.
52713         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
52714         to check whether it's really a directory.
52715         * lib/fopen.c: Include fcntl.h, unistd.h.
52716         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
52717         and fdopen().
52718         * modules/fopen (Depends-on): Add unistd.
52719         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
52720         * tests/test-fopen.c (main): Likewise.
52721         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
52722         * doc/posix-functions/fopen.texi: Likewise.
52723         Reported by Eric Blake.
52724
52725 2008-09-23  Eric Blake  <ebb9@byu.net>
52726
52727         c-stack: avoid compiler optimizations when provoking overflow
52728         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
52729         recursion harder to optimize, to ensure a stack overflow occurs.
52730         * tests/test-c-stack.c (recurse): Likewise.
52731         Borrowed from libsigsegv.
52732
52733         c-stack: work around Irix sigaltstack bug
52734         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
52735         whether sigaltstack uses wrong end of stack_t (copied in part from
52736         libsigsegv).
52737         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
52738         Irix bug, without requiring an over-allocation.
52739         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
52740         bug.
52741
52742         fopen: document mingw bug on directories
52743         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
52744         not allowing a stream visiting a directory, even though reading
52745         from such a stream is not portable.
52746
52747 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52748
52749         * lib/poll.c: Rewrite.
52750         * modules/poll: Depend on alloca.
52751
52752 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52753
52754         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
52755         instead define prototypes for a full set of wrappers.  Ensure
52756         that Cygwin does not use the compatibility code, which is only
52757         for MinGW.
52758         * lib/winsock.c: New.
52759         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
52760         * modules/sys_socket: Add lib/winsock.c.
52761
52762         * modules/poll-tests: Add errno and perror.
52763         * tests/test-poll.c: Use ioctl, not ioctlsocket.
52764
52765 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
52766
52767         * tests/test-poll.c: Downgrade minimum needed Winsock version.
52768
52769 2008-09-23  Bruno Haible  <bruno@clisp.org>
52770
52771         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
52772         * doc/glibc-functions/*: Likewise.
52773
52774 2008-09-23  Simon Josefsson  <simon@josefsson.org>
52775
52776         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
52777         success.
52778
52779 2008-09-22  Eric Blake  <ebb9@byu.net>
52780             Bruno Haible  <bruno@clisp.org>
52781
52782         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
52783         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
52784         supply %A but mishandle pseudo-NaN.
52785         Reported by Simon Josefsson.
52786
52787 2008-09-21  Bruno Haible  <bruno@clisp.org>
52788
52789         * tests/test-lock.c (main): Tweak skip message.
52790         * tests/test-tls.c (main): Likewise.
52791
52792 2008-09-21  Bruno Haible  <bruno@clisp.org>
52793
52794         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
52795         whether 'struct sigaction' has sa_sigaction here...
52796         (gl_PREREQ_SIG_HANDLER_H): ... not here.
52797         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
52798
52799 2008-09-21  Bruno Haible  <bruno@clisp.org>
52800
52801         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
52802         section.
52803         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
52804         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
52805         the new section.
52806         (Support for obsolete systems lacking POSIX:2001): New section.
52807         (String handling <string.h>): Move strdup to the new section.
52808         Suggested by Simon Josefsson and Paolo Bonzini.
52809
52810 2008-09-21  Bruno Haible  <bruno@clisp.org>
52811
52812         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52813         exponents in %e and %g results on 'long double'. Needed for mingw's
52814         improved *printf functions.
52815         * tests/test-vasprintf-posix.c (test_function): Likewise.
52816         * tests/test-snprintf-posix.h (test_function): Likewise.
52817         * tests/test-sprintf-posix.h (test_function): Likewise.
52818         Reported by Eric Blake.
52819
52820 2008-09-21  Bruno Haible  <bruno@clisp.org>
52821
52822         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52823         * tests/test-sprintf-posix.h (test_function): Likewise.
52824
52825 2008-09-21  Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/getpass (Depends-on): Add strdup-posix.
52828
52829         New module 'strdup-posix'.
52830         * modules/strdup-posix: New file.
52831         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52832         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52833         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52834         REPLACE_STRDUP.
52835         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52836         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52837         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52838         strdup-posix.
52839
52840         * modules/strdup (Depends-on): Remove malloc-posix.
52841
52842 2008-09-20  Bruno Haible  <bruno@clisp.org>
52843
52844         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52845         Wildenhues.
52846
52847 2008-09-20  Bruno Haible  <bruno@clisp.org>
52848
52849         Ensure that wint_t gets defined on IRIX 5.3.
52850         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52851         * lib/wctype.in.h (wint_t): Likewise.
52852         (__wctype_wint_t): Remove type.
52853         (isw*): Use wint_t instead of __wctype_wint_t.
52854         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52855         * modules/wchar (Files): Add m4/wint_t.m4.
52856         (Makefile.am): Substitute HAVE_WINT_T.
52857         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52858         * tests/test-wctype.c: Check that wint_t is defined.
52859         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52860         * doc/posix-headers/wctype.texi: Likewise.
52861         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52862
52863 2008-09-18  Bruno Haible  <bruno@clisp.org>
52864
52865         * gnulib-tool (func_exit): Update comment.
52866
52867 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52868
52869         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52870         assumes strdup exists and does not depend on strdup to return
52871         ENOMEM on out of memory conditions.
52872
52873 2008-09-18  Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52876         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52877         digits for the exponent.
52878
52879 2008-09-18  Jim Meyering  <meyering@redhat.com>
52880             Bruno Haible  <bruno@clisp.org>
52881
52882         * lib/vasnprintf.c (decimal_point_char): Define also if
52883         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52884
52885 2008-09-16  Bruno Haible  <bruno@clisp.org>
52886         and Eric Blake  <ebb9@byu.net>
52887
52888         vasnprintf: support Irix 5.3
52889         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52890         that mishandle long double infinity.
52891         Reported by Tom G. Christensen.
52892
52893 2008-09-16  Bruno Haible  <bruno@clisp.org>
52894
52895         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52896         Solaris 9.
52897         * doc/glibc-functions/alphasort.texi: Likewise.
52898         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52899
52900 2008-09-16  Jim Meyering  <meyering@redhat.com>
52901
52902         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52903         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52904         a umask modification leak out of a subshell.  Otherwise, the
52905         opensolaris /bin/sh would be accepted and thus cause unwarranted
52906         failures in the coreutils test suite.
52907
52908 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52909
52910         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52911         to succeed.
52912
52913 2008-09-16  Jim Meyering  <meyering@redhat.com>
52914
52915         avoid spurious test failure when library is built without ACL support
52916         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52917         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52918         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52919         * tests/test-copy-acl.sh: Likewise.
52920
52921 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52922
52923         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52924         based on character occurrence counts.
52925
52926 2008-09-15  Eric Blake  <ebb9@byu.net>
52927
52928         tests: avoid some compiler warnings
52929         * tests/test-memchr.c (main): Pass NULL indirectly.
52930         * tests/test-closein.c (main): Avoid unused variable.
52931
52932 2008-09-15  Bruno Haible  <bruno@clisp.org>
52933
52934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52935         are missing on OpenBSD 4.0 individually.
52936         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52937
52938 2008-09-15  Bruno Haible  <bruno@clisp.org>
52939
52940         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52941         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52942         * doc/posix-functions/perror.texi: Likewise.
52943         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52944         is missing.
52945         Reported by Eric Blake.
52946
52947         * lib/errno.in.h: Use replacement values >= 2000.
52948         Reported by Eric Blake.
52949
52950 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52951
52952         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52953         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52954         limit.
52955         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52956         compareseq was aborted.
52957
52958 2008-09-14  Bruno Haible  <bruno@clisp.org>
52959
52960         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52961         yvec_edit_count.
52962         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52963         (fstrcmp_bounded): Simplify result computation accordingly.
52964
52965 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52966
52967         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52968         (fstrcmp): Define in terms of fstrcmp_bounded.
52969         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52970         lower_bound argument.
52971         Return quickly if the result is certainly < lower_bound.
52972         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52973
52974 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52975
52976         * lib/diffseq.h (EARLY_ABORT): New macro.
52977         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52978         evaluates to true.
52979
52980 2008-09-14  Bruno Haible  <bruno@clisp.org>
52981
52982         * modules/perror-tests: New file.
52983         * tests/test-perror.sh: New file.
52984         * tests/test-perror.c: New file.
52985
52986         New module 'perror'.
52987         * lib/stdio.in.h (perror): New declaration.
52988         * lib/perror.c: New file.
52989         * m4/perror.m4: New file.
52990         * modules/perror: New file.
52991         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52992         * doc/posix-functions/perror.texi: Mention the perror module.
52993         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52994         REPLACE_PERROR.
52995         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52996         REPLACE_PERROR.
52997
52998 2008-09-14  Bruno Haible  <bruno@clisp.org>
52999
53000         * modules/stdio (Makefile.am): Reorder to match the order in
53001         lib/stdio.in.h.
53002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53003
53004 2008-09-13  Bruno Haible  <bruno@clisp.org>
53005
53006         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
53007
53008 2008-09-13  Bruno Haible  <bruno@clisp.org>
53009
53010         Extend strerror to cover the added errno values.
53011         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
53012         (rpl_strerror): Provide error messages for the added errno values and
53013         for the WSA* values.
53014         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
53015         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
53016         strerror.
53017         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
53018         * modules/strerror (Depends-on): Add errno.
53019         * doc/posix-functions/strerror.texi: Document the change.
53020         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
53021         and EOVERFLOW.
53022
53023 2008-09-13  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/EOVERFLOW: Remove file.
53026         * m4/eoverflow.m4: Remove file.
53027         * modules/EOVERFLOW-tests: Remove file.
53028         * tests/test-EOVERFLOW.c: Remove file.
53029         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
53030         * modules/ftell (Depends-on): Likewise.
53031         * modules/getdelim (Depends-on): Likewise.
53032         * modules/getugroups (Depends-on): Likewise.
53033         * modules/poll (Depends-on): Likewise.
53034         * modules/snprintf (Depends-on): Likewise.
53035         * modules/sprintf-posix (Depends-on): Likewise.
53036         * modules/vasnprintf (Depends-on): Likewise.
53037         * modules/vasprintf (Depends-on): Likewise.
53038         * modules/vfprintf-posix (Depends-on): Likewise.
53039         * modules/vsnprintf (Depends-on): Likewise.
53040         * modules/vsprintf-posix (Depends-on): Likewise.
53041         * modules/xvasprintf (Depends-on): Likewise.
53042         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53043         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
53044         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
53045         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
53046         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53047         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
53048         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
53049         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
53050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53051         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
53052         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
53053         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
53054         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53055         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
53056         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
53057         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
53058         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53059         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
53060         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
53061         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
53062         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53063         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
53064         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
53065         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
53066         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
53067         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53068         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
53069         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
53070         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
53071         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
53072         * MODULES.html.sh: Remove EOVERFLOW.
53073         * NEWS: Mention the change.
53074
53075 2008-09-13  Bruno Haible  <bruno@clisp.org>
53076
53077         * modules/errno-tests: New file.
53078         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
53079
53080         * lib/errno.in.h: New file.
53081         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
53082         * modules/errno: New file.
53083         * doc/posix-headers/errno.texi: Update documentation.
53084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
53085
53086 2008-09-13  Bruno Haible  <bruno@clisp.org>
53087
53088         * tests/test-poll.c: Use #if for native Windows, rather than testing
53089         __MSVCRT__.
53090
53091 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53092             Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/glob.c: Don't include <pwd.h> on native Windows.
53095         (WINDOWS32): New macro.
53096         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
53097
53098 2008-09-13  Bruno Haible  <bruno@clisp.org>
53099
53100         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
53101         (ETIMEDOUT): Remove macro.
53102         (glthread_cond_timedwait_multithreaded): New declaration.
53103         (glthread_cond_timedwait): Use it.
53104         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
53105         (glthread_cond_timedwait_multithreaded): New function.
53106
53107 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53108
53109         * modules/poll-tests: Do not check for io.h.
53110         * tests/test-poll.c: Check for __MSVCRT__ instead.
53111
53112 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53113
53114         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
53115         * modules/poll-tests: Add inet_pton, stdbool, sockets.
53116         * tests/test-poll.c: Use them.  Use _pipe on Windows.
53117
53118 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
53119
53120         * modules/poll-tests: New.
53121         * tests/test-poll.c: New.
53122
53123 2008-09-12  Eric Blake  <ebb9@byu.net>
53124
53125         frexp: test for NetBSD failure on -0.0
53126         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
53127         not all, bugs from NetBSD 3.0 have been fixed.
53128         * doc/posix-functions/frexp.texi (frexp): Document bug.
53129         Reported by Thomas Klausner.
53130
53131         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
53132         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
53133         literal -0.0.
53134         Reported by Jonathan C. Patschke <jp@centtech.com>.
53135
53136 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53137
53138         * lib/glthread/cond.h: Use dummy implementation also if
53139         USE_WIN32_THREADS.
53140
53141 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53142
53143         * modules/fnmatch-posix (License): Change to LGPLv2+.
53144         * modules/fnmatch-gnu (License): Likewise.
53145
53146 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53147
53148         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
53149
53150 2008-09-11  Jim Meyering  <meyering@redhat.com>
53151
53152         * users.txt: Add gtk-vnc.
53153
53154 2008-09-08  Simon Josefsson  <simon@josefsson.org>
53155
53156         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
53157         rotate amounts.
53158
53159         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
53160         required for 16-bit and 8-bit rotates.
53161         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
53162         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
53163         UINT8_MAX instead of hard-coded constants.
53164         Suggested by Paul Eggert.
53165
53166 2008-09-07  Bruno Haible  <bruno@clisp.org>
53167
53168         * tests/test-striconveh.c (main): Check behaviour when converting from
53169         UTF-7.
53170
53171         Make striconveh work better with stateful encodings.
53172         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
53173         that iconv does not increment the inptr when returning -1/EINVAL.
53174
53175 2008-09-07  Bruno Haible  <bruno@clisp.org>
53176
53177         * build-aux/config.rpath: Update according to libtool-2.2.6.
53178         * build-aux/config.libpath: Likewise.
53179
53180 2008-09-06  Bruno Haible  <bruno@clisp.org>
53181
53182         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
53183         * lib/freadptr.c (freadptr): Likewise.
53184         * lib/freadseek.c (freadptrinc): Likewise.
53185         Reported by Simon Josefsson.
53186
53187 2008-09-06  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/freadptr (License): Change to LGPLv2+.
53190         * modules/freadseek (License): Likewise.
53191         Suggested by Eric Blake.
53192
53193         * modules/memchr2 (License): Change to LGPLv2+.
53194         Approved by Eric Blake.
53195
53196 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53197             Bruno Haible  <bruno@clisp.org>
53198
53199         Make gnulib-tool work with native 'sed' on AIX.
53200         * gnulib-tool (sed_noop): New variable.
53201         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
53202         func_add_or_update, func_create_testdir): Use it to initialize sed
53203         script variables.
53204         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53205
53206 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
53207             Bruno Haible  <bruno@clisp.org>
53208
53209         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
53210         also works after #include directives.
53211
53212 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
53213
53214         getdate.y: reject an out-of-range timezone value
53215         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
53216         the range [-24...+24].  When specified with only one or two digits,
53217         * tests/test-getdate.c: Tests for the fix.
53218         * doc/getdate.texi: Document this change.
53219
53220 2008-09-03  Bruno Haible  <bruno@clisp.org>
53221
53222         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
53223
53224 2008-09-02  Simon Josefsson  <simon@josefsson.org>
53225
53226         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
53227         <bruce.korb@gmail.com> with ideas from Ben Pfaff
53228         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
53229         Blake <ebb9@byu.net>.
53230
53231         * tests/test-bitrotate.c: Add more test vectors.
53232
53233 2008-09-02  Eric Blake  <ebb9@byu.net>
53234
53235         vasnprintf-posix: handle large precision via %.*d
53236         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
53237         when handling it ourselves.
53238         * tests/test-vasnprintf-posix.c (test_function): Add test.
53239         * tests/test-snprintf-posix.h (test_function): Likewise.
53240         * tests/test-sprintf-posix.h (test_function): Likewise.
53241         * tests/test-vasprintf-posix.c (test_function): Likewise.
53242         Reported by Alain Guibert.
53243
53244 2008-09-01  Eric Blake  <ebb9@byu.net>
53245
53246         c-stack: make configure-time check more robust
53247         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
53248         successful sigaction call.
53249         Reported by Tom G. Christensen.
53250
53251 2008-09-01  Bruno Haible  <bruno@clisp.org>
53252
53253         New module 'findprog-lgpl'.
53254         * modules/findprog-lgpl: New file.
53255         * lib/findprog-lgpl.c: New file.
53256         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
53257         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
53258         to decide whether to use strdup or xstrdup, concatenated_filename or
53259         xconcatenated_filename.
53260
53261 2008-09-01  Bruno Haible  <bruno@clisp.org>
53262
53263         Split module 'concat-filename' into 'concat-filename' (LGPL) and
53264         'xconcat-filename' (GPL).
53265         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
53266         (License): Change to LGPLv2+.
53267         * modules/xconcat-filename: New file.
53268         * lib/concat-filename.h (concatenated_filename): Change specification.
53269         (xconcatenated_filename): New declaration.
53270         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
53271         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
53272         memory situations.
53273         * lib/xconcat-filename.c: New file.
53274         * NEWS: Mention the change.
53275         * lib/findprog.c: Include concat-filename.h, not filename.h.
53276         (find_in_path): Use xconcatenated_filename instead of
53277         concatenated_filename.
53278         * lib/javacomp.c: Include concat-filename.h, not filename.h.
53279         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53280         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53281         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53282         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
53283         instead of concatenated_filename.
53284         * lib/javaexec.c: Include concat-filename.h, not filename.h.
53285         (execute_java_class): Use xconcatenated_filename instead of
53286         concatenated_filename.
53287         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
53288         * modules/javacomp (Depends-on): Likewise.
53289         * modules/javaexec (Depends-on): Likewise.
53290
53291 2008-09-01  Bruno Haible  <bruno@clisp.org>
53292
53293         Split module 'filename' into 'filename' and 'concat-filename'.
53294         * modules/filename: Keep only lib/filename.h.
53295         (License): Change to LGPLv2+.
53296         * modules/concat-filename: New file, extracted from modules/filename.
53297         * lib/filename.h (concatenated_filename): Remove declaration.
53298         * lib/concat-filename.h: New file, extracted from lib/filename.h.
53299         * lib/concat-filename.c: Include concat-filename.h.
53300         * NEWS: Mention the change.
53301
53302 2008-09-01  Simon Josefsson  <simon@josefsson.org>
53303
53304         * lib/bitrotate.h (rotl8, rotr8): Add.
53305
53306         * modules/bitrotate (configure.ac): Need
53307         AC_REQUIRE([AC_C_INLINE]).
53308         (Description): Mention stdint.h.  Reported by Bruno Haible
53309         <bruno@clisp.org>.
53310
53311         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
53312         Paolo Bonzini <bonzini@gnu.org>.
53313
53314 2008-08-31  Bruno Haible  <bruno@clisp.org>
53315
53316         Assume Solaris specific bi-arch conventions on Solaris systems.
53317         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
53318         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
53319         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
53320         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
53321         like acl_libdirstem.
53322         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
53323         acl_libdirstem.
53324         * NEWS: Mention the change.
53325         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
53326
53327 2008-08-31  Jim Meyering  <meyering@redhat.com>
53328
53329         * lib/strftime.h: Add comments describing the two added arguments.
53330
53331         remove duplicate #include directives
53332         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
53333         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
53334
53335 2008-08-31  Bruno Haible  <bruno@clisp.org>
53336
53337         New module 'sigpipe-die'.
53338         * modules/sigpipe-die: New file.
53339         * lib/sigpipe-die.h: New file.
53340         * lib/sigpipe-die.c: New file.
53341         * MODULES.html.sh (Signal handling): Add sigpipe-die.
53342
53343 2008-08-31  Bruno Haible  <bruno@clisp.org>
53344
53345         Don't override previously installed signal handlers.
53346         * lib/fatal-signal.c (saved_sigactions): New variable.
53347         (uninstall_handlers): Reset the signal to the saved handler, not
53348         to SIG_DFL (except when ignored).
53349         (install_handlers): Save the previous handlers.
53350
53351 2008-08-30  Bruno Haible  <bruno@clisp.org>
53352
53353         * gnulib-tool (func_reset_sigpipe): New function.
53354         (func_get_automake_snippet, func_modules_transitive_closure,
53355         func_import): Invoke it before a join command that reads from stdin,
53356         to avoid "echo: write error: Broken pipe" error messages on stderr.
53357         Reported by Sam Steingold <sds@gnu.org>.
53358
53359 2008-08-30  Bruno Haible  <bruno@clisp.org>
53360
53361         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
53362         Code copied from m4/open.m4.
53363         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
53364         access and the filename ends in a slash. Code copied from lib/open.c.
53365         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
53366         * tests/test-fopen.c (main): Check against bug with trailing slash.
53367
53368 2008-08-29  Bruno Haible  <bruno@clisp.org>
53369
53370         Avoid some "gcc -pedantic" warnings.
53371         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
53372         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
53373         * lib/dirent.in.h: Likewise.
53374         * lib/fcntl.in.h: Likewise.
53375         * lib/float.in.h: Likewise.
53376         * lib/iconv.in.h: Likewise.
53377         * lib/inttypes.in.h: Likewise.
53378         * lib/locale.in.h: Likewise.
53379         * lib/math.in.h: Likewise.
53380         * lib/netinet_in.in.h: Likewise.
53381         * lib/search.in.h: Likewise.
53382         * lib/signal.in.h: Likewise.
53383         * lib/stdarg.in.h: Likewise.
53384         * lib/stdint.in.h: Likewise.
53385         * lib/stdio.in.h: Likewise.
53386         * lib/stdlib.in.h: Likewise.
53387         * lib/string.in.h: Likewise.
53388         * lib/strings.in.h: Likewise.
53389         * lib/sys_select.in.h: Likewise.
53390         * lib/sys_socket.in.h: Likewise.
53391         * lib/sys_stat.in.h: Likewise.
53392         * lib/sys_time.in.h: Likewise.
53393         * lib/sysexits.in.h: Likewise.
53394         * lib/time.in.h: Likewise.
53395         * lib/unistd.in.h: Likewise.
53396         * lib/wchar.in.h: Likewise.
53397         * lib/wctype.in.h: Likewise.
53398         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
53399         * modules/fchdir (Makefile.am): Likewise.
53400         * modules/fcntl (Makefile.am): Likewise.
53401         * modules/float (Makefile.am): Likewise.
53402         * modules/iconv_open (Makefile.am): Likewise.
53403         * modules/inttypes (Makefile.am): Likewise.
53404         * modules/locale (Makefile.am): Likewise.
53405         * modules/math (Makefile.am): Likewise.
53406         * modules/netinet_in (Makefile.am): Likewise.
53407         * modules/search (Makefile.am): Likewise.
53408         * modules/signal (Makefile.am): Likewise.
53409         * modules/stdarg (Makefile.am): Likewise.
53410         * modules/stdint (Makefile.am): Likewise.
53411         * modules/stdio (Makefile.am): Likewise.
53412         * modules/stdlib (Makefile.am): Likewise.
53413         * modules/string (Makefile.am): Likewise.
53414         * modules/strings (Makefile.am): Likewise.
53415         * modules/sys_select (Makefile.am): Likewise.
53416         * modules/sys_socket (Makefile.am): Likewise.
53417         * modules/sys_stat (Makefile.am): Likewise.
53418         * modules/sys_time (Makefile.am): Likewise.
53419         * modules/sysexits (Makefile.am): Likewise.
53420         * modules/time (Makefile.am): Likewise.
53421         * modules/unistd (Makefile.am): Likewise.
53422         * modules/wchar (Makefile.am): Likewise.
53423         * modules/wctype (Makefile.am): Likewise.
53424         Reported by Reuben Thomas <rrt@sc3d.org>.
53425
53426 2008-08-29  Bruno Haible  <bruno@clisp.org>
53427
53428         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
53429         any more.
53430
53431 2008-08-29  Simon Josefsson  <simon@josefsson.org>
53432
53433         * MODULES.html.sh (Misc): Add bitrotate.
53434
53435         * modules/bitrotate: New file.
53436
53437         * lib/bitrotate.h: New file.
53438
53439         * modules/bitrotate-tests: New file.
53440
53441         * tests/test-bitrotate.c: New file.
53442
53443         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
53444         on the bitrotate module.
53445
53446         * lib/arctwo.c: Use new bitrotate module.
53447
53448 2008-08-29  Jim Meyering  <meyering@redhat.com>
53449
53450         bootstrap: merge changes from coreutils
53451         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
53452         of copied files.  Remove a kludge, now that this is fixed.
53453         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
53454         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
53455         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
53456
53457 2008-08-29  Bruno Haible  <bruno@clisp.org>
53458
53459         * MODULES.html.sh: Remove --cvs-urls option.
53460
53461 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
53462
53463         maint.mk: adjust to file name change
53464         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
53465
53466 2008-08-28  Jim Meyering  <meyering@redhat.com>
53467
53468         * modules/getndelim2 (License): Relicense to LGPLv2+.
53469         Approved by Richard Stallman for the version of 1995, and by
53470         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
53471
53472 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
53473
53474         * lib/getdelim.c (flockfile, funlockfile): Make all of them
53475         dummy if one is not available.  Do not touch them if
53476         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
53477         (getc_maybe_unlocked): New.
53478         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
53479
53480 2008-08-26  Eric Blake  <ebb9@byu.net>
53481
53482         doc/INSTALL: resync from autoconf
53483         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
53484         (INSTALL_PRELUDE): Delete; this is done more efficiently by
53485         moving...
53486         * install.texi [!autoconf]: ...here.  Resync from autoconf.
53487         * INSTALL: Regenerate.
53488         * INSTALL.ISO: New file.
53489         * INSTALL.UTF-8: Likewise.
53490
53491 2008-08-26  Jim Meyering  <meyering@redhat.com>
53492
53493         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
53494         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
53495         these definitions conditional, so that they may be overridden, too.
53496
53497 2008-08-26  Bruno Haible  <bruno@clisp.org>
53498
53499         Generate INSTALL file variants with prettier quotes.
53500         * doc/Makefile (INSTALL_PRELUDE): New macro.
53501         (INSTALL): Use it.
53502         (INSTALL.ISO, INSTALL.UTF-8): New rules.
53503
53504 2008-08-26  Bruno Haible  <bruno@clisp.org>
53505
53506         Run makeinfo in an English locale.
53507         * doc/Makefile (MAKEINFO): New variable.
53508
53509 2008-08-26  Bruno Haible  <bruno@clisp.org>
53510
53511         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
53512         Suggested by Eric Blake.
53513
53514 2008-08-25  Bruno Haible  <bruno@clisp.org>
53515
53516         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
53517
53518 2008-08-25  Eric Blake  <ebb9@byu.net>
53519
53520         c-stack: test that stack overflow can be caught
53521         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
53522         that platform allows handling stack overflow; at least OS/2 EMX
53523         has sigaltstack, but crashes before transferring control to
53524         handler on stack overflow.
53525         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
53526         check for HAVE_STACK_OVERFLOW_HANDLING.
53527         Reported by Elbert Pol.
53528
53529 2008-08-25  Bruno Haible  <bruno@clisp.org>
53530
53531         * doc/posix-functions/strftime.texi: Fix description of strftime
53532         module.
53533
53534 2008-08-24  Bruno Haible  <bruno@clisp.org>
53535
53536         * tests/uniwidth/test-uc_width2.c: New file.
53537         * tests/uniwidth/test-uc_width2.sh: New file.
53538         * modules/uniwidth/width-tests (Files): Add the new files.
53539         (TESTS): Add uniwidth/test-uc_width2.sh.
53540         (TESTS_ENVIRONMENT): New variable.
53541         (check_PROGRAMS): Add test-uc_width2.
53542         (test_uc_width2_SOURCES): New variable.
53543
53544         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
53545         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
53546         not 0x00AB.
53547         Reported by Alexander V. Lukyanov <lav@netis.ru>.
53548
53549 2008-08-22  Eric Blake  <ebb9@byu.net>
53550
53551         test-lock, test-tls: mention why a test is skipped
53552         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
53553         skipped.
53554         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
53555
53556         count-one-bits: relax license
53557         * modules/count-one-bits (License): Relicense to LGPLv2+.
53558         Suggested by Ludovic Courtès, approved by Ben Pfaff.
53559
53560 2008-08-22  Andreas Schwab  <schwab@suse.de>
53561
53562         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
53563         Remove spurious space in assignment.
53564
53565 2008-08-21  Simon Josefsson  <simon@josefsson.org>
53566
53567         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
53568         Paul Eggert <eggert@CS.UCLA.EDU>.
53569
53570 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
53571
53572         * modules/gettext: Add m4/threadlib.m4.
53573
53574 2008-08-19  Eric Blake  <ebb9@byu.net>
53575
53576         test-c-stack: fix compilation failure on FreeBSD 5.0
53577         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
53578         headers before <sys/resource.h>.
53579         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
53580         the bug.
53581         Reported by Nelson H. F. Beebe.
53582
53583         strverscmp: migrate from "strverscmp.h" to <string.h>
53584         * modules/string (Makefile.am): Add new hooks.
53585         * modules/strverscmp (Files): Remove strverscmp.h.
53586         (Depends-on): Add string.
53587         (configure.ac): Add indicator.
53588         (Include): Mention new header.
53589         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
53590         defaults.
53591         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
53592         results.
53593         * lib/strverscmp.h: Delete.
53594         * lib/string.in.h (strverscmp): Provide declaration, when needed.
53595         * tests/test-strverscmp.c (includes): Adjust client.
53596         * lib/check-version.c (includes): Likewise.
53597         * NEWS: Document the change.
53598
53599         strverscmp: add unit test
53600         * modules/strverscmp-tests: New file.
53601         * tests/test-strverscmp.c: Likewise.
53602
53603 2008-08-19  Simon Josefsson  <simon@josefsson.org>
53604
53605         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
53606         regarding Windows crypto stuff, from Mono.
53607
53608 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
53609
53610         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
53611         if present, for intel RND.  Return error on failures.
53612
53613 2008-08-18  Ben Pfaff  <blp@gnu.org>
53614
53615         gitlog-to-changelog: give better diagnostic for failed pipe-open
53616         * build-aux/gitlog-to-changelog: Improve error message: suggest
53617         that the version of Git may be too old.
53618
53619 2008-08-18  Simon Josefsson  <simon@josefsson.org>
53620
53621         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
53622         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
53623
53624 2008-08-18  Bruno Haible  <bruno@clisp.org>
53625
53626         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
53627         pthread_in_use().
53628
53629 2008-08-18  Bruno Haible  <bruno@clisp.org>
53630
53631         * lib/glthread/threadlib.c: Include <pthread.h>.
53632
53633 2008-08-18  Bruno Haible  <bruno@clisp.org>
53634
53635         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
53636         glthread_recursive_lock_* macros.
53637         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
53638         Fix syntax error.
53639
53640 2008-08-18  Bruno Haible  <bruno@clisp.org>
53641
53642         * lib/glthread/thread.c: Avoid forcing a context switch right after
53643         thread creation.
53644
53645 2008-08-17  Bruno Haible  <bruno@clisp.org>
53646
53647         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
53648         * lib/glthread/thread.h: Provide Win32 specific implementation.
53649         * modules/thread (Files): Add lib/glthread/thread.c.
53650         (Depends-on): Add lock.
53651         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
53652
53653 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53654
53655         New module 'yield'.
53656         * modules/yield: New file.
53657         * lib/glthread/yield.h: New file.
53658         * m4/yield.m4: New file.
53659         * MODULES.html.sh (Multithreading): Add yield.
53660
53661 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53662
53663         New module 'thread'.
53664         * modules/thread: New file.
53665         * lib/glthread/thread.h: New file.
53666         * m4/thread.m4: New file.
53667         * MODULES.html.sh (Multithreading): Add thread.
53668
53669 2008-08-17  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/glthread/lock.h: Include <stdlib.h> always.
53672         * lib/glthread/tls.h: Likewise.
53673         * lib/glthread/cond.h: Likewise.
53674
53675 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53676
53677         New module 'cond'.
53678         * modules/cond: New file.
53679         * lib/glthread/cond.h: New file.
53680         * lib/glthread/cond.c: New file.
53681         * m4/cond.m4: New file.
53682         * MODULES.html.sh (Multithreading): Add cond.
53683
53684 2008-08-16  Eric Blake  <ebb9@byu.net>
53685
53686         c-stack: fix regression on Irix 5.3 from 2008-06-21
53687         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
53688         sa_sigaction...
53689         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
53690         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
53691         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
53692         * modules/signal (Makefile.am): Use the value.
53693         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
53694         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
53695         * doc/posix-headers/signal.texi (signal.h): Document this
53696         portability issue.
53697         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
53698         Reported by Tom G. Christensen.
53699
53700 2008-08-17  Bruno Haible  <bruno@clisp.org>
53701
53702         New module 'threadlib'.
53703         * modules/threadlib: New file.
53704         * lib/glthread/threadlib.c: New file, extracted from
53705         lib/glthread/lock.c.
53706         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
53707         functions.
53708         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
53709         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
53710         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
53711         macros.
53712         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
53713         (gl_DISABLE_THREADS): Remove macro.
53714         * modules/lock (Files): Remove build-aux/config.rpath.
53715         (Depends-on): Remove havelib. Add threadlib.
53716         (configure.ac-early): Remove section.
53717         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
53718         * modules/tls (Depends-on): Remove lock. Add threadlib.
53719         (Link): New section, copied from threadlib.
53720         * MODULES.html.sh (Multithreading): Add threadlib.
53721
53722 2008-08-14  Bruno Haible  <bruno@clisp.org>
53723
53724         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
53725         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
53726         glthread_rwlock_unlock, glthread_rwlock_destroy,
53727         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
53728         glthread_recursive_lock_destroy): Define as macros always.
53729         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
53730         glthread_lock_lock.
53731         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
53732         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
53733         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
53734         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
53735         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
53736         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
53737         (glthread_recursive_lock_lock_func): Renamed from
53738         glthread_recursive_lock_lock.
53739         (glthread_recursive_lock_unlock_func): Renamed from
53740         glthread_recursive_lock_unlock.
53741         (glthread_recursive_lock_destroy_func): Renamed from
53742         glthread_recursive_lock_destroy.
53743
53744 2008-08-14  Bruno Haible  <bruno@clisp.org>
53745
53746         * lib/glthread/lock.h: Renamed from lib/lock.h.
53747         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
53748         * lib/glthread/tls.h: Renamed from lib/tls.h.
53749         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
53750         * lib/fstrcmp.c: Update includes.
53751         * lib/strsignal.c: Update includes.
53752         * modules/lock (Files, Makefile.am): Update.
53753         (Include): Change to "glthread/lock.h".
53754         * modules/tls (Files, Makefile.am): Update.
53755         (Include): Change to "glthread/tls.h".
53756         * tests/test-lock.c: Update includes.
53757         * tests/test-tls.c: Update includes.
53758         * NEWS: Mention the renamed header files.
53759
53760 2008-08-11  Jim Meyering  <meyering@redhat.com>
53761
53762         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
53763
53764 2008-08-11  Eric Blake  <ebb9@byu.net>
53765
53766         test-c-stack: avoid C99-ism
53767         * tests/test-c-stack.c (main): Fix whitespace, move declaration
53768         before statement.
53769         Reported by Alain Guibert.
53770
53771 2008-08-10  Jim Meyering  <meyering@redhat.com>
53772
53773         ensure that return value of uinttostr et al are not ignored
53774         * lib/inttostr.h (__GNUC_PREREQ): Define.
53775         (__attribute_warn_unused_result__): Define.
53776         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
53777
53778 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
53779
53780         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
53781         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
53782
53783 2008-08-07  Jim Meyering  <meyering@redhat.com>
53784
53785         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
53786
53787         * modules/mkstemp (License): Relicense under LGPLv2+.
53788         * modules/tempname (License): Likewise.
53789
53790 2008-08-06  Bruno Haible  <bruno@clisp.org>
53791
53792         * lib/poll.c (poll): Further micro-optimization.
53793
53794 2008-08-06  Jim Meyering  <meyering@redhat.com>
53795
53796         inet_pton.c: use locale-independent tolower
53797         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
53798         (inet_pton6): Use c_tolower rather than tolower.
53799         * modules/inet_pton (Depends-on): Add c-ctype.
53800
53801 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
53802
53803         * lib/poll.c (poll): Avoid division when timeout is 0, cache
53804         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
53805
53806 2008-08-06  Jim Meyering  <meyering@redhat.com>
53807
53808         * modules/inet_pton (License): Relicense under LGPLv2+.
53809
53810 2008-08-03  Bruno Haible  <bruno@clisp.org>
53811
53812         Additional non-aborting API for lock and tls.
53813         * lib/lock.h: Include <errno.h>.
53814         (glthread_lock_init): New macro/function.
53815         (gl_lock_init): Define as wrapper around glthread_lock_init.
53816         (glthread_lock_lock): New macro/function.
53817         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53818         (glthread_lock_unlock): New macro/function.
53819         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53820         (glthread_lock_destroy): New macro/function.
53821         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53822         (glthread_rwlock_init): New macro/function.
53823         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53824         (glthread_rwlock_rdlock): New macro/function.
53825         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53826         (glthread_rwlock_wrlock): New macro/function.
53827         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53828         (glthread_rwlock_unlock): New macro/function.
53829         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53830         (glthread_rwlock_destroy): New macro/function.
53831         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53832         (glthread_recursive_lock_init): New macro/function.
53833         (gl_recursive_lock_init): Define as wrapper around
53834         glthread_recursive_lock_init.
53835         (glthread_recursive_lock_lock): New macro/function.
53836         (gl_recursive_lock_lock): Define as wrapper around
53837         glthread_recursive_lock_lock.
53838         (glthread_recursive_lock_unlock): New macro/function.
53839         (gl_recursive_lock_unlock): Define as wrapper around
53840         glthread_recursive_lock_unlock.
53841         (glthread_recursive_lock_destroy): New macro/function.
53842         (gl_recursive_lock_destroy): Define as wrapper around
53843         glthread_recursive_lock_destroy.
53844         (glthread_once): New macro/function.
53845         (gl_once): Define as wrapper around glthread_once.
53846         Update function declarations.
53847         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53848         glthread_rwlock_init. Return error code.
53849         (glthread_rwlock_rdlock_multithreaded): Renamed from
53850         glthread_rwlock_rdlock. Return error code.
53851         (glthread_rwlock_wrlock_multithreaded): Renamed from
53852         glthread_rwlock_wrlock. Return error code.
53853         (glthread_rwlock_unlock_multithreaded): Renamed from
53854         glthread_rwlock_unlock. Return error code.
53855         (glthread_rwlock_destroy_multithreaded): Renamed from
53856         glthread_rwlock_destroy. Return error code.
53857         (glthread_recursive_lock_init_multithreaded): Renamed from
53858         glthread_recursive_lock_init. Return error code.
53859         (glthread_recursive_lock_lock_multithreaded): Renamed from
53860         glthread_recursive_lock_lock. Return error code.
53861         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53862         glthread_recursive_lock_unlock. Return error code.
53863         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53864         glthread_recursive_lock_destroy. Return error code.
53865         (glthread_once_call): Make static.
53866         (glthread_once_multithreaded): Renamed from glthread_once.
53867         * lib/tls.h: Include <errno.h>.
53868         (glthread_tls_key_init): New macro/function.
53869         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53870         (glthread_tls_set): New macro/function.
53871         (gl_tls_set): Define as wrapper around glthread_tls_set.
53872         (glthread_tls_key_destroy): New macro/function.
53873         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53874         Update function declarations.
53875         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53876         glthread_tls_get.
53877         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53878
53879 2008-08-04  Eric Blake  <ebb9@byu.net>
53880
53881         gnumakefile: use space, not TAB, outside of targets
53882         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53883
53884 2008-08-02  Jim Meyering  <meyering@redhat.com>
53885
53886         getdate.y: avoid locale-dependent date parsing failure
53887         In Turkish locales, getdate would fail to recognize keywords
53888         containing a lowercase "i".  The solution is not to rely on
53889         locale-sensitive case-conversion.
53890         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53891         (lookup_word): Use c_toupper in place of toupper.
53892         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53893         Reported by Vefa Bicakci <bicave@superonline.com> in
53894         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53895         * modules/getdate (Depends-on): Add c-ctype.
53896
53897 2008-08-02  Bruno Haible  <bruno@clisp.org>
53898
53899         * gnulib-tool (func_import): When updating or creating a .gitignore
53900         file, prepend each added line with a slash, and ignore leading slashes
53901         from the existing lines.
53902         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53903
53904 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53905
53906         Portability fix for GNU make 3.79.1.
53907         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53908         versions do not understand.
53909
53910 2008-08-01  Bruno Haible  <bruno@clisp.org>
53911
53912         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53913         * tests/test-isnanf.h (zero): New variable.
53914         (main): Avoid literal -0.0f.
53915         * tests/test-isnand.h (zero): New variable.
53916         (main): Avoid literal -0.0.
53917         * tests/test-isnanl.h (zero): New variable.
53918         (main): Avoid literal -0.0L.
53919         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53920         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53921         -0.0, -0.0L.
53922         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53923         (test_signbitd): Avoid literal -0.0.
53924         (test_signbitl): Avoid literal -0.0L.
53925         * tests/test-ceilf1.c (zero): New variable.
53926         (main): Avoid literal -0.0f.
53927         * tests/test-ceill.c (zero): New variable.
53928         (main): Avoid literal -0.0L.
53929         * tests/test-floorf1.c (zero): New variable.
53930         (main): Avoid literal -0.0f.
53931         * tests/test-floorl.c (zero): New variable.
53932         (main): Avoid literal -0.0L.
53933         * tests/test-roundf1.c (zero): New variable.
53934         (main): Avoid literal -0.0f.
53935         * tests/test-round1.c (zero): New variable.
53936         (main): Avoid literal -0.0.
53937         * tests/test-roundl.c (zero): New variable.
53938         (main): Avoid literal -0.0L.
53939         * tests/test-truncf1.c (zero): New variable.
53940         (main): Avoid literal -0.0f.
53941         * tests/test-trunc1.c (zero): New variable.
53942         (main): Avoid literal -0.0.
53943         * tests/test-truncl.c (zero): New variable.
53944         (main): Avoid literal -0.0L.
53945         * tests/test-frexp.c (zero): New variable.
53946         (main): Avoid literal -0.0.
53947         * tests/test-frexpl.c (zero): New variable.
53948         (main): Avoid literal -0.0L.
53949         * tests/test-ldexpl.c (zero): New variable.
53950         (main): Avoid literal -0.0L.
53951         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53952         (zerod, zerol): New variables.
53953         (test_function): Avoid literals -0.0, -0.0L.
53954         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53955         (zerod, zerol): New variables.
53956         (test_function): Avoid literals -0.0, -0.0L.
53957         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53958         (zerod, zerol): New variables.
53959         (test_function): Avoid literals -0.0, -0.0L.
53960         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53961         (zerod, zerol): New variables.
53962         (test_function): Avoid literals -0.0, -0.0L.
53963         * tests/test-strtod.c (zero): New variable.
53964         (main): Avoid literal -0.0.
53965         Reported by Jonathan C. Patschke <jp@centtech.com>.
53966
53967 2008-07-31  Jim Meyering  <meyering@redhat.com>
53968
53969         sha256.h: correct definition of SHA224_DIGEST_SIZE
53970         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53971         Reported by Paulie Pena IV <paulie4@gmail.com>.
53972         Define as 224 / 8, rather than as a literal.
53973         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53974         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53975         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53976
53977 2008-07-31  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53980         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53981         Reported by Jonathan Patschke <jp@centtech.com>.
53982
53983 2008-07-31  Bruno Haible  <bruno@clisp.org>
53984
53985         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53986         Reported by Paolo Bonzini <bonzini@gnu.org>.
53987
53988 2008-07-30  Eric Blake  <ebb9@byu.net>
53989
53990         test-strtod: allow compilation without -lm
53991         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53992         Reported by Dennis Clarke <blastwave@gmail.com>.
53993
53994 2008-07-28  Jim Meyering  <meyering@redhat.com>
53995
53996         bootstrap: work also when there are no .po files in po/
53997         * build-aux/bootstrap (update_po_files): Complete the change
53998         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53999
54000 2008-07-27  Jim Meyering  <meyering@redhat.com>
54001
54002         * users.txt: Add zile.
54003
54004 2008-07-26  Ben Pfaff  <blp@gnu.org>
54005
54006         Add missing dependencies on new m4/exponent[fdl].m4 files.
54007         * modules/isnanf-nolibm: Add m4/exponentf.m4.
54008         * modules/isnand-nolibm: Add m4/exponentd.m4.
54009         * modules/isnanl-nolibm: Add m4/exponentl.m4.
54010         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
54011         m4/isnan[fdl].m4, because the macros actually used moved.
54012         Reported by Jim Meyering.
54013
54014 2008-07-14  Ben Pfaff  <blp@gnu.org>
54015
54016         Add isinf module.
54017         * lib/isinf.c: New file.
54018         * lib/math.in.h: Define isinf macro if we have decided to replace
54019         it.
54020         * m4/isinf.m4: New file.
54021         * m4/math_h.m4: Initialize and substitute variables for isinf
54022         module.
54023         * modules/isinf: New file.
54024         * modules/isinf-tests: New file.
54025         * modules/math: Add substitutions for new module.
54026         * tests/test-isinf.c: New file.
54027         * doc/posix-functions/isinf.texi: Mention new module.
54028         * MODULES.html.sh: Mention new module.
54029
54030 2008-07-14  Ben Pfaff  <blp@gnu.org>
54031
54032         Factor out some macros for use by additional modules.
54033         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
54034         exponentf.m4.
54035         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
54036         exponentd.m4.
54037         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
54038         file exponentl.m4.
54039         * m4/exponentf.m4: New file.
54040         * m4/exponentd.m4: New file.
54041         * m4/exponentl.m4: New file.
54042         * modules/isnanf: Use new file m4/exponentf.m4.
54043         * modules/isnand: Use new file m4/exponentd.m4.
54044         * modules/isnanl: Use new file m4/exponentl.m4.
54045
54046 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
54047
54048         mktime.c: normalize tp->tm_isdst value to -1/0/1.
54049         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
54050         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
54051         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
54052
54053         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
54054         readlink on platforms without PATH_MAX.
54055
54056 2008-07-21  Eric Blake  <ebb9@byu.net>
54057
54058         Warn, not fail, on stale version.
54059         * top/GNUmakefile (_curr-ver): Tone down previous patch.
54060
54061         Don't allow installation with stale devel version number.
54062         * top/GNUmakefile (_is-install-target): New macro.
54063         (_curr-ver): Forbid installation with stale version number.
54064
54065 2008-07-20  Bruno Haible  <bruno@clisp.org>
54066
54067         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
54068         TESTS_ENVIRONMENT.
54069         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
54070
54071 2008-07-20  Bruno Haible  <bruno@clisp.org>
54072
54073         * lib/c-stack.h (c_stack_action): Add documentation.
54074         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
54075
54076 2008-07-20  Bruno Haible  <bruno@clisp.org>
54077
54078         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
54079         * modules/readlink (License): Likewise.
54080
54081 2008-07-17  Eric Blake  <ebb9@byu.net>
54082
54083         * modules/c-stack (Link): Fix typo.
54084
54085         Make c-stack use libsigsegv, when available.
54086         * modules/c-stack (Depends-on): Add libsigsegv.
54087         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
54088         needed.
54089         * lib/c-stack.c (SIGSTKSZ): Define fallback.
54090         (segv_handler, overflow_handler, c_stack_action)
54091         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
54092         implementation when libsigsegv is available, but only when using
54093         the library is necessary.
54094         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
54095         comment, explaining why XSI check fails on Linux.
54096         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
54097         * tests/test-c-stack2.sh: Tweak skip message.
54098         * NEWS: Document new link-time requirements.
54099
54100 2008-07-16  Eric Blake  <ebb9@byu.net>
54101
54102         c-stack: Expose false positives when not using libsigsegv.
54103         * modules/c-stack-tests (Files): Expand test.
54104         * tests/test-c-stack.c (main): Add means to conditionally trigger
54105         non-overflow SIGSEGV.
54106         * tests/test-c-stack2.sh: New file.
54107
54108 2008-07-14  Bruno Haible  <bruno@clisp.org>
54109
54110         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
54111         Reported by Eric Blake.
54112
54113 2008-07-14  Sam Steingold  <sds@gnu.org>
54114             Bruno Haible  <bruno@clisp.org>
54115
54116         New module libsigsegv.
54117         * modules/libsigsegv: New file.
54118         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
54119         modifications.
54120         * MODULES.html.sh (Signal handling): New section.
54121
54122 2008-07-14  Bruno Haible  <bruno@clisp.org>
54123
54124         * modules/unictype/ctype-* (Description): Add the word "function".
54125         Improves the resulting doc in MODULES.html.
54126
54127 2008-07-12  Ben Pfaff  <blp@gnu.org>
54128
54129         Add longlong module.
54130         * modules/longlong: New file.
54131
54132 2008-07-12  Bruno Haible  <bruno@clisp.org>
54133
54134         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
54135         to empty.
54136
54137 2008-07-10  Ben Pfaff  <blp@gnu.org>
54138
54139         Add isnan module.
54140         * doc/posix-functions/isnan.texi: Mention new module.
54141         * lib/math.in.h: Define isnan macro if we have decided to replace
54142         it.
54143         * m4/isnan.m4: New file.
54144         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
54145         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
54146         also.
54147         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
54148         redundancy.
54149         * m4/math_h.m4: Initialize and substitute variables for isnan
54150         module.
54151         * modules/isnan: New file.
54152         * modules/isnan-tests: New file.
54153         * modules/math: Add substitutions for new module.
54154         * tests/test-isnan.c: New file.
54155         * MODULES.html.sh: Mention new module.
54156
54157 2008-07-10  Ben Pfaff  <blp@gnu.org>
54158
54159         Add isnanf module.
54160         * lib/isnanf.m4: New file.
54161         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
54162         (gl_HAVE_ISNANF_IN_LIBM): New macro.
54163         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
54164         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
54165         * modules/isnanf: New file.
54166         * modules/isnanf-tests: New file.
54167         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
54168         files.
54169         * tests/test-isnanf-nolibm.c: factored most of its contents into
54170         new file tests/test-isnanf.h.
54171         * tests/test-isnanf.h: New file.
54172         * tests/test-isnanf.c: New file.
54173         * MODULES.html.sh: Mention new module.
54174         * doc/glibc-functions/isnanf.texi: Mention new module.
54175
54176 2008-07-10  Ben Pfaff  <blp@gnu.org>
54177
54178         Add isnand module.
54179         * lib/isnand.h: New file.
54180         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
54181         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
54182         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
54183         functionality also.
54184         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
54185         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
54186         (gl_HAVE_ISNAND_IN_LIBM): New macro.
54187         * modules/isnand: New file.
54188         * modules/isnand-tests: New file.
54189         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
54190         files.
54191         * tests/test-isnand-nolibm.c: factored most of its contents into
54192         new file tests/test-isnand.h.
54193         * tests/test-isnand.h: New file.
54194         * tests/test-isnand.c: New file.
54195         * MODULES.html.sh: Mention new module.
54196
54197 2008-07-10  Ben Pfaff  <blp@gnu.org>
54198
54199         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
54200         * lib/isnand.h: Rename lib/isnand-nolibm.h.
54201         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
54202         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
54203         * modules/isnanf-nolibm: Update references to renamed files.
54204         * modules/isnand-nolibm: Likewise.
54205         * modules/isnanf-nolibm-tests: Likewise.
54206         * modules/isnand-nolibm-tests: Likewise.
54207         * lib/frexp.c: Likewise.
54208         * lib/isfinite.c: Likewise.
54209         * lib/signbitd.c: Likewise.
54210         * lib/signbitf.c: Likewise.
54211         * lib/vasnprintf.c: Likewise.
54212         * tests/test-ceilf1.c: Likewise.
54213         * tests/test-ceilf2.c: Likewise.
54214         * tests/test-floorf1.c: Likewise.
54215         * tests/test-floorf2.c: Likewise.
54216         * tests/test-frexp.c: Likewise.
54217         * tests/test-round1.c: Likewise.
54218         * tests/test-round2.c: Likewise.
54219         * tests/test-roundf1.c: Likewise.
54220         * tests/test-strtod.c: Likewise.
54221         * tests/test-trunc1.c: Likewise.
54222         * tests/test-trunc2.c: Likewise.
54223         * tests/test-truncf1.c: Likewise.
54224         * tests/test-truncf2.c: Likewise.
54225         * NEWS: Mention the renamed header files.
54226
54227 2008-07-11  Jim Meyering  <meyering@redhat.com>
54228
54229         vc-list-files: make the last-resort awk code more portable
54230         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
54231         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
54232         does not support it.
54233
54234 2008-07-10  Eric Blake  <ebb9@byu.net>
54235
54236         Work with tar's bootstrap.
54237         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
54238         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
54239         an m4 comment.
54240
54241 2008-07-09  Jim Meyering  <meyering@redhat.com>
54242
54243         posix-shell.m4: fix typo that made this test malfunction
54244         * m4/posix-shell.m4: Remove capitalization in variable name.
54245
54246 2008-07-08  Bruno Haible  <bruno@clisp.org>
54247
54248         * m4/onceonly.m4: Update comments.
54249         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54250
54251 2008-07-04  Jim Meyering  <meyering@redhat.com>
54252
54253         * users.txt: Add vc-dwim.
54254         (bison, coreutils): Use the gitweb URL.
54255
54256 2008-07-03  Jim Meyering  <meyering@redhat.com>
54257
54258         * users.txt: Add libffcall.  From Sam Steingold.
54259
54260 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
54261
54262         getdate.y: do not ignore TZ with relative day, month or year offset
54263         * lib/getdate.y (get_date): Move the tz-handling block to follow the
54264         relative-date-handling, since otherwise, the latter would clobber the
54265         sole output (an updated Start value) of the tz-handling block.
54266         * tests/test-getdate.c: Tests for the fix
54267
54268 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54269
54270         Recognize 'foo_LIBRARIES += libgnu.a'.
54271         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
54272         makefile snippet has already specified an installation location,
54273         also using '+='.
54274
54275 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
54276
54277         getdate.y: factor out common actions
54278         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
54279         Use them in place of open-coded actions.
54280
54281 2008-07-01  Simon Josefsson  <simon@josefsson.org>
54282
54283         Add self-test for getdate module.
54284         * modules/getdate-tests: New file.
54285         * tests/test-getdate.c: New file.
54286
54287 2008-06-29  Bruno Haible  <bruno@clisp.org>
54288
54289         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
54290         .gitignore.
54291         Reported by Sylvain Beucler <beuc@beuc.net>.
54292
54293 2008-06-29  Bruno Haible  <bruno@clisp.org>
54294
54295         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
54296         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
54297
54298 2008-06-29  Bruno Haible  <bruno@clisp.org>
54299
54300         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
54301         EXTRA_DIST.
54302         Reported by Sylvain Beucler <beuc@beuc.net>.
54303
54304 2008-06-26  Jim Meyering  <meyering@redhat.com>
54305
54306         make several modules depend on the "open" module
54307         This provides slightly increased consistency when opening-for-write
54308         the name of a non-directory spelled with a trailing slash.
54309         * modules/chdir-safer: Likewise.
54310         * modules/chown: Likewise.
54311         * modules/clean-temp: Likewise.
54312         * modules/copy-file: Likewise.
54313         * modules/fchdir: Likewise.
54314         * modules/fcntl-safer: Likewise.
54315         * modules/pipe: Likewise.
54316         * modules/utime: Likewise.
54317         Prompted by Eric Blake and Bruno Haible.
54318
54319 2008-06-24  Andreas Schwab  <schwab@suse.de>
54320
54321         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
54322         literals can be used as initializers for global variables.
54323
54324 2008-06-23  Eric Blake  <ebb9@byu.net>
54325
54326         Make gnulib-cache.m4 easier to diff.
54327         * gnulib-tool (func_import): Allow newlines when reading cached
54328         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
54329
54330 2008-06-23  Bruno Haible  <bruno@clisp.org>
54331
54332         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
54333         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
54334         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
54335         m4/signalblocking.m4.
54336         (gl_PREREQ_SIGACTION): Don't invoke it.
54337         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
54338         gl_PREREQ_SIG_HANDLER_H.
54339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54340         Don't check for sigaction here.
54341
54342 2008-06-23  Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
54345         (install_handlers): Don't set the SA_RESETHAND flag.
54346
54347 2008-06-23  Bruno Haible  <bruno@clisp.org>
54348
54349         * m4/sigaction.m4: Comment fixes.
54350         * lib/signal.in.h: Likewise.
54351
54352 2008-06-23  Eric Blake  <ebb9@byu.net>
54353
54354         Fix typo.
54355         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
54356
54357         Avoid SA_ namespace.
54358         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
54359         Reported by Ralf Wildenhues.
54360
54361         Avoid test failure due to SA_RESTORER.
54362         * tests/test-sigaction.c (SA_MASK): New macro.
54363         (main): Avoid failing due to extension flags being set.
54364         Reported by Jim Meyering.
54365
54366         Revert use of sig-handler.h in sigprocmask.c.
54367         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
54368         it requires the existence of struct sigaction.
54369         * lib/sigprocmask.c (handler_t): Restore typedef.
54370         (rpl_signal, old_handlers): Use local type.
54371
54372 2008-06-22  Bruno Haible  <bruno@clisp.org>
54373
54374         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
54375         conditionally.
54376         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54377
54378 2008-06-22  Bruno Haible  <bruno@clisp.org>
54379
54380         * doc/posix-functions/siginterrupt.texi: Move note.
54381
54382         * lib/signal.in.h (SA_RESTART): New macro.
54383         * lib/sigaction.c: Update comment.
54384
54385         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
54386
54387         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
54388         (gl_PREREQ_SIGPROCMASK): Invoke it.
54389         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
54390
54391         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
54392
54393         * lib/sigprocmask.c: Update a comment.
54394
54395 2008-06-21  Eric Blake  <ebb9@byu.net>
54396
54397         Use sigaction module rather than signal().
54398         * modules/c-stack (Depends-on): Add sigaction.
54399         * modules/fatal-signal (Depends-on): Likewise.
54400         * modules/nanosleep (Depends-on): Likewise.
54401         * modules/sigprocmask (Files): Add sig-handler.h.
54402         * modules/sigaction (Files): Likewise.
54403         * lib/sig-handler.h (get_handler): New file, suggested by Paul
54404         Eggert.
54405         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
54406         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
54407         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
54408         (init_fatal_signals): Likewise.
54409         * lib/nanosleep.c (rpl_nanosleep): Likewise.
54410         (siginterrupt): Delete fallback.
54411         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
54412         instead.
54413         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
54414         siginterrupt.
54415
54416         New module sigaction, for mingw.
54417         * modules/sigaction: New module...
54418         * modules/sigaction-tests: ...and its test.
54419         * m4/sigaction.m4: New file.
54420         * lib/sigaction.c: Likewise.
54421         * tests/test-sigaction.c: Likewise.
54422         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
54423         * modules/signal (Makefile.am): Likewise.
54424         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
54425         needed.
54426         * doc/posix-headers/signal.texi (signal.h): Mention provided
54427         types.
54428         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
54429         that sigaction is preferable.
54430         * doc/posix-functions/sigaction.texi (sigaction): Mention new
54431         module.
54432         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54433         sigaction.
54434
54435         Improve robustness of sigprocmask by overriding signal.
54436         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
54437         is in use.
54438         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
54439         (SIGKILL, SIGSTOP): Provide fallbacks.
54440         (rpl_signal): Implement.
54441         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
54442         signal can be called inside handlers.
54443
54444         Fix nanosleep module on mingw.
54445         * modules/nanosleep (Depends-on): Add sys_select.
54446         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
54447
54448         Fix licensing of sigprocmask.
54449         * modules/raise (License): Relicense as LGPL.
54450
54451 2008-06-21  Bruno Haible  <bruno@clisp.org>
54452
54453         * lib/propername.c (proper_name_utf8): Don't use the transliterated
54454         result if it contains question marks.
54455         Reported by Michael Geng <linux@michaelgeng.de>.
54456
54457 2008-06-19  Bruno Haible  <bruno@clisp.org>
54458
54459         Fix CVS-ism.
54460         * doc/gnulib.texi: Include updated-stamp.texi.
54461         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
54462         (updated-stamp.texi): New rule.
54463         (gnulib.info): Depend on it.
54464         * doc/.gitignore: Add updated-stamp.texi.
54465         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
54466
54467 2008-06-19  Bruno Haible  <bruno@clisp.org>
54468
54469         * doc/Makefile (gnulib.info): Update and simplify dependencies.
54470         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
54471
54472 2008-06-19  Eric Blake  <ebb9@byu.net>
54473
54474         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
54475         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
54476         Reported by Stepan Kasal.
54477
54478 2008-06-18  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/fatal-signal.c (init_fatal_signals): Add comment.
54481         Reported by Eric Blake.
54482
54483 2008-06-18  Eric Blake  <ebb9@byu.net>
54484
54485         Work around cygwin 1.5.25 strsignal bug.
54486         * tests/test-strsignal.c: Allow for const char *.
54487         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
54488
54489 2008-06-18  Simon Josefsson  <simon@josefsson.org>
54490
54491         * users.txt: Update URL to article and add author/date
54492         information.
54493
54494 2008-06-17  Bruno Haible  <bruno@clisp.org>
54495
54496         New macro gl_DISABLE_THREADS.
54497         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
54498         if the user did not pass --enable-threads or --disable-threads option.
54499         (gl_DISABLE_THREADS): New macro.
54500         Reported by Eric Blake <ebb9@byu.net>.
54501
54502 2008-06-17  Bruno Haible  <bruno@clisp.org>
54503
54504         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
54505         when the macro ignores it.
54506         Based on a patch by Eric Blake <ebb9@byu.net>.
54507
54508 2008-06-17  Bruno Haible  <bruno@clisp.org>
54509
54510         * modules/tls (License): Change to LGPLv2+.
54511         Reported by Eric Blake.
54512
54513 2008-06-17  Eric Blake  <ebb9@byu.net>
54514
54515         Simplify c-stack prerequisites.
54516         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
54517         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
54518         no longer requires <ucontext.h> to exist.  Optimize setrlimit
54519         check.
54520         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
54521         <sys/resource.h>.
54522
54523         Move c-stack test into testsuite.
54524         * modules/c-stack-tests: New file.
54525         * lib/c-stack.c [DEBUG]: Move test program...
54526         * tests/test-c-stack.c: ...into this new file.  Skip rather than
54527         fail test if sigaltstack is lacking.
54528         * tests/test-c-stack.sh: New driver file.
54529
54530 2008-06-16  Eric Blake  <ebb9@byu.net>
54531
54532         Use raise module consistently.
54533         * modules/fatal-signal (Depends-on): Add raise.
54534         * modules/sigprocmask (Depends-on): Likewise.
54535         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
54536         * lib/sigprocmask.c (sigprocmask): Likewise.
54537         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
54538         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
54539
54540         Fix compliance bug in sigpending.
54541         * lib/sigprocmask.c (sigpending): Return pending array via
54542         parameter, not return value.
54543
54544 2008-06-14  Eric Blake  <ebb9@byu.net>
54545
54546         Improve obstack-printf test code.
54547         * tests/test-obstack-printf.c (test_function): Fix comment, and
54548         simplify usage of obstack_* in macros.  Add a test for coverage.
54549         Reported by Bruno Haible.
54550
54551 2008-06-14  Bruno Haible  <bruno@clisp.org>
54552
54553         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
54554         array size as a constant, not as a const variable.
54555         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
54556         AC_USE_SYSTEM_EXTENSIONS.
54557         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
54558         Test whether the obstack_printf function actually exists.
54559         * modules/obstack-printf (Depends-on): Add extensions.
54560         (Include): Remove obstack.h.
54561         * modules/obstack-printf-posix (Depends-on): Add extensions.
54562         (Include): Remove obstack.h.
54563
54564 2008-06-13  Eric Blake  <ebb9@byu.net>
54565
54566         Add obstack-printf and obstack-printf-posix modules.
54567         * modules/obstack-printf: New file.
54568         * modules/obstack-printf-posix: Likewise.
54569         * MODULES.html.sh (Misc): Mention them.
54570         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
54571         Likewise.
54572         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
54573         Likewise.
54574         * modules/stdio (Makefile.am): Accomodate new modules.
54575         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54576         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
54577         Declare.
54578         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
54579         functions.
54580         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
54581         (gl_REPLACE_OBSTACK_PRINTF): New macros
54582         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
54583         * tests/test-obstack-printf.c: New file.
54584         * modules/obstack-printf-tests: Likewise.
54585         * modules/obstack-printf-posix-tests: Likewise.
54586
54587 2008-06-11  Bruno Haible  <bruno@clisp.org>
54588
54589         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
54590         * lib/open.c: Include errno.h.
54591         (open): Fail when attempting to write to a file that has a trailing
54592         slash.
54593         * tests/test-open.c (main): Test against trailing slash bug.
54594         * doc/posix-functions/open.texi: Mention the trailing slash bug.
54595
54596 2008-06-10  Bruno Haible  <bruno@clisp.org>
54597
54598         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
54599         for $? to work inside the trap command, with various /bin/sh-s.
54600         * tests/test-vc-list-files-cvs.sh: Likewise.
54601
54602 2008-06-10  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/acl-internal.h: Don't include gettext.h here.
54605         * lib/set-mode-acl.c: Include gettext.h here.
54606         * lib/copy-acl.c: Likewise.
54607
54608 2008-06-10  Bruno Haible  <bruno@clisp.org>
54609
54610         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
54611         * lib/wait-process.c (wait_subprocess): Likewise.
54612         * lib/execute.h (execute): Add termsigp argument.
54613         * lib/execute.c (execute): Likewise.
54614         * lib/csharpcomp.c (compile_csharp_using_pnet,
54615         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
54616         * lib/csharpexec.c (execute_csharp_using_pnet,
54617         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
54618         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
54619         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
54620         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
54621         is_jikes_present): Update.
54622         * lib/javaexec.c (execute_java_class): Update.
54623         * lib/javaversion.c (execute_and_read_line): Update.
54624         * NEWS: Document the changes.
54625         Reported by Eric Blake.
54626
54627 2008-06-10  Eric Blake  <ebb9@byu.net>
54628
54629         Add missing include.
54630         * tests/test-strstr.c (includes): Add <signal.h>.
54631         * tests/test-strcasestr.c (includes): Likewise.
54632         * tests/test-memmem.c (includes): Likewise.
54633
54634 2008-06-10  Bruno Haible  <bruno@clisp.org>
54635
54636         * lib/wait-process.c (wait_subprocess): Add an assertion.
54637
54638 2008-06-10  Bruno Haible  <bruno@clisp.org>
54639
54640         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
54641
54642 2008-06-10  Bruno Haible  <bruno@clisp.org>
54643
54644         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
54645         using alarm().
54646         * tests/test-strcasestr.c (main): Likewise.
54647         * tests/test-strstr.c (main): Likewise.
54648
54649 2008-06-09  Bruno Haible  <bruno@clisp.org>
54650
54651         Work around the Solaris 10 ACE ACLs ABI change.
54652         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
54653         declare if ACL_NO_TRIVIAL is present.
54654         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
54655         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
54656         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
54657         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
54658         define if ACL_NO_TRIVIAL is present.
54659         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
54660         and use the current ABI.
54661         (file_has_acl): Use same #if condition as elsewhere.
54662         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
54663         in use, and use the current ABI.
54664         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
54665         Reported by Jim Meyering.
54666
54667 2008-06-09  Eric Blake  <ebb9@byu.net>
54668
54669         Work around environments that (stupidly) ignore SIGALRM.
54670         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
54671         before using alarm().
54672         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54674         Reported by Ian Beckwith <ianb@erislabs.net>.
54675
54676         Produce autobuild blurb earlier in log.
54677         * modules/autobuild (configure.ac-early): Move AB_INIT here.
54678
54679 2008-06-09  Jim Meyering  <meyering@redhat.com>
54680         and OndÅ™ej Vašík  <ovasik@redhat.com>
54681
54682         utimens.c: correct kernel bug work-around
54683         OndÅ™ej Vašík found that the invalid return value of 280 indicates
54684         failure, not success, and the kernel bug we're trying to work
54685         around affects not just the utimensat call, but also the fallback
54686         futimens call.
54687         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
54688         not success.
54689         [HAVE_FUTIMENS]: Use the same work-around, here.
54690
54691 2008-06-09  Jim Meyering  <meyering@redhat.com>
54692
54693         add more guards around definition of ACE_-related code
54694         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
54695         ALLOW and ACE_OWNER are also defined.
54696
54697 2008-06-08  Bruno Haible  <bruno@clisp.org>
54698
54699         * lib/acl-internal.h: Add me as co-author.
54700         * lib/file-has-acl.c: Likewise.
54701         * lib/set-mode-acl.c: Likewise.
54702         * lib/copy-acl.c: Likewise.
54703
54704 2008-06-08  Bruno Haible  <bruno@clisp.org>
54705
54706         Add support for AIX ACLs.
54707         * lib/acl-internal.h (acl_nontrivial): New declaration.
54708         * lib/file-has-acl.c (acl_nontrivial): New function.
54709         (file_has_acl): Add implementation using AIX 4 ACL API.
54710         * lib/set-mode-acl.c (qset_acl): Likewise.
54711         * lib/copy-acl.c (qcopy_acl): Likewise.
54712
54713 2008-06-08  Bruno Haible  <bruno@clisp.org>
54714
54715         Add support for HP-UX ACLs.
54716         * lib/acl-internal.h (acl_nontrivial): New declaration.
54717         * lib/file-has-acl.c (acl_nontrivial): New function.
54718         (file_has_acl): Add implementation using HP-UX 11 ACL API.
54719         * lib/set-mode-acl.c (qset_acl): Likewise.
54720         * lib/copy-acl.c (qcopy_acl): Likewise.
54721
54722 2008-06-08  Bruno Haible  <bruno@clisp.org>
54723
54724         Add support for Cygwin ACLs.
54725         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
54726         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
54727         the chmod_or_fchmod call.
54728         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
54729
54730 2008-06-08  Bruno Haible  <bruno@clisp.org>
54731
54732         Fix bug with setuid modes in Solaris 10+ code.
54733         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
54734         succeeded, when the mode contains some special bits.
54735
54736 2008-06-08  Bruno Haible  <bruno@clisp.org>
54737
54738         Add support for Solaris 7..10 ACLs.
54739         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
54740         declarations.
54741         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
54742         functions.
54743         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
54744         * lib/set-mode-acl.c (qset_acl): Likewise.
54745         * lib/copy-acl.c (qcopy_acl): Likewise.
54746
54747 2008-06-08  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
54750         declaration.
54751         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
54752         (acl_access_nontrivial): Remove MacOS X case.
54753         (file_has_acl): Use acl_extended_nontrivial.
54754         * lib/copy-acl.c (qcopy_acl): Likewise.
54755
54756 2008-06-08  Bruno Haible  <bruno@clisp.org>
54757
54758         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
54759
54760 2008-06-08  Jim Meyering  <meyering@redhat.com>
54761
54762         * modules/acl (Maintainer): Add Bruno Haible.
54763
54764 2008-06-07  Bruno Haible  <bruno@clisp.org>
54765
54766         Improve support for Tru64 ACLs.
54767         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
54768         ACL on OSF/1.
54769
54770 2008-06-07  Bruno Haible  <bruno@clisp.org>
54771
54772         Add support for MacOS X ACLs.
54773         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
54774         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
54775         * lib/set-mode-acl.c (qset_acl): Likewise.
54776         * lib/copy-acl.c (qcopy_acl): Likewise.
54777
54778 2008-06-07  Bruno Haible  <bruno@clisp.org>
54779
54780         Fix memory leak introduced on 2008-05-22.
54781         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
54782         use.
54783
54784 2008-06-07  Bruno Haible  <bruno@clisp.org>
54785
54786         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
54787         to construct an empty ACL.
54788
54789 2008-06-07  Bruno Haible  <bruno@clisp.org>
54790
54791         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
54792         precisely.
54793         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
54794
54795 2008-06-07  Bruno Haible  <bruno@clisp.org>
54796
54797         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
54798         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
54799
54800 2008-06-07  Bruno Haible  <bruno@clisp.org>
54801
54802         * doc/posix-functions/_setjmp.texi: Explain the use of this function
54803         regardless of POSIX.
54804         * doc/posix-functions/_longjmp.texi: Likewise.
54805         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
54806         SystemV platform in this case.
54807
54808 2008-06-06  Eric Blake  <ebb9@byu.net>
54809
54810         Document abort() bugs.
54811         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54812
54813         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54814         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54815         sigsetjmp.
54816         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54817         siglongjmp, but only as a macro.
54818         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54819         is obsolete.
54820         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54821
54822         Tweak documentation to cover cygwin argz bugs.
54823         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54824         argz bug fix; no code change needed since no cygwin releases
54825         occurred between the last fix and the bug being tested.
54826         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54827         module and recently fixed cygwin bugs.
54828         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54829         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54830         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54831         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54832         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54833         Likewise.
54834         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54835         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54836         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54837         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54838         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54839         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54840         Likewise.
54841
54842         Avoid gcc warning on cygwin.
54843         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54844         !ACL_NO_TRIVIAL]: Avoid unused variable.
54845
54846 2008-06-05  Eric Blake  <ebb9@byu.net>
54847
54848         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54849         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54850         git-version-gen fails to come up with a version.
54851         Reported by Simon Josefsson.
54852
54853 2008-06-05  Jim Meyering  <meyering@redhat.com>
54854             Paul Eggert  <eggert@cs.ucla.edu>
54855
54856         utimens.c: work around a probable Linux kernel bug
54857         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54858         appears to be a kernel bug that causes utimensat to return 280
54859         instead of 0, indicating success.
54860
54861 2008-06-04  Bruno Haible  <bruno@clisp.org>
54862
54863         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54864         2008-06-01 commit.
54865
54866 2008-06-04  Bruno Haible  <bruno@clisp.org>
54867
54868         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54869         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54870         (file_has_acl): Use it. Save errno afterwards.
54871         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54872
54873 2008-06-03  Bruno Haible  <bruno@clisp.org>
54874
54875         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54876         draft code. Simplify #ifs.
54877         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54878         Put Solaris code after POSIX-draft code. Fix comments regarding
54879         Solaris 10, HP-UX. Mention Cygwin.
54880         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54881
54882 2008-06-03  Eric Blake  <ebb9@byu.net>
54883
54884         Provide fallback for older kernels.
54885         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54886         Provide runtime fallback if kernel lacks support.
54887         Reported by Mike Frysinger.
54888
54889 2008-06-02  Bruno Haible  <bruno@clisp.org>
54890
54891         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54892         it exists.
54893
54894 2008-06-02  Bruno Haible  <bruno@clisp.org>
54895
54896         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54897         * lib/copy-acl.c (qcopy_acl): Update comment.
54898
54899 2008-06-02  Bruno Haible  <bruno@clisp.org>
54900
54901         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54902         like ACL APIs.
54903
54904 2008-06-02  Bruno Haible  <bruno@clisp.org>
54905
54906         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54907         * tests/test-set-mode-acl.sh: Likewise.
54908         * tests/test-copy-acl.sh: Likewise.
54909         * tests/test-copy-file.sh: Likewise.
54910
54911 2008-06-02  Bruno Haible  <bruno@clisp.org>
54912
54913         * tests/test-file-has-acl.sh: Remove unused code.
54914
54915 2008-06-01  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54918         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54919         messages.
54920         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54921
54922 2008-06-01  Bruno Haible  <bruno@clisp.org>
54923
54924         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54925         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54926         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54927         APIs.
54928         * modules/acl-tests (configure.ac): Remove tests now contained in
54929         m4/acl.m4.
54930
54931 2008-06-02  Jim Meyering  <meyering@redhat.com>
54932
54933         announce-gen: use a better key-server host name
54934         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54935         it may be more consistently reliable.  Suggested by Werner Koch
54936         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54937
54938 2008-06-01  Bruno Haible  <bruno@clisp.org>
54939
54940         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54941         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54942
54943 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54944
54945         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54946
54947 2008-06-01  Bruno Haible  <bruno@clisp.org>
54948
54949         New ACL tests.
54950         * tests/test-file-has-acl.sh: New file.
54951         * tests/test-file-has-acl.c: New file.
54952         * tests/test-set-mode-acl.sh: New file.
54953         * tests/test-set-mode-acl.c: New file.
54954         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54955         * tests/test-copy-acl.c: New file.
54956         * modules/acl-tests: New file, based on modules/copy-file-tests.
54957         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54958         (Depends-on): Add acl-tests.
54959         (configure.ac): Remove checks.
54960         (Makefile.am): Don't create test-sameacls program here any more.
54961
54962 2008-06-01  Bruno Haible  <bruno@clisp.org>
54963
54964         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54965         * tests/test-sameacls.c: Include progname.h.
54966         (main): Invoke set_program_name. Portability fixes for MacOS X,
54967         Solaris, HP-UX.
54968
54969 2008-06-01  Bruno Haible  <bruno@clisp.org>
54970
54971         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54972         function.
54973         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54974
54975 2008-06-01  Bruno Haible  <bruno@clisp.org>
54976
54977         * modules/rpmatch (Depends-on): Add strdup.
54978
54979 2008-06-01  Bruno Haible  <bruno@clisp.org>
54980
54981         * lib/pipe.c: Include unistd-safer.h.
54982         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54983         * modules/pipe (Depends-on): Add unistd-safer.
54984
54985 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54986
54987         * modules/autobuild (configure.ac): Call AB_INIT.
54988
54989 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54990
54991         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54992         Suggested by Bruno Haible <bruno@clisp.org>.
54993
54994 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54995
54996         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54997         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54998         <bruno@clisp.org>.
54999
55000 2008-05-29  Eric Blake  <ebb9@byu.net>
55001
55002         Prefer new POSIX 200x interfaces over futimesat.
55003         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
55004         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
55005         when available.
55006         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
55007
55008 2008-05-28  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/stpcpy (License): Change to LGPLv2+.
55011         Requested by David Lutterkort <dlutter@redhat.com>.
55012
55013 2008-05-27  Bruno Haible  <bruno@clisp.org>
55014
55015         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
55016         current mingw.
55017         Reported by Jose E. Marchesi <jemarch@gnu.org>.
55018
55019 2008-05-27  Bruno Haible  <bruno@clisp.org>
55020
55021         * modules/iconv_open (Link): New section, from module 'iconv'.
55022         * modules/striconv (Link): Likewise.
55023         * modules/striconveh (Link): Likewise.
55024         * modules/xstriconv (Link): Likewise.
55025         * modules/unicodeio (Link): Likewise.
55026         * modules/propername (Link): Likewise.
55027         Reported by Jim Meyering.
55028
55029 2008-05-26  Jim Meyering  <meyering@redhat.com>
55030
55031         sha256: do not artificially restrict buffer length to be < 2^32
55032         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
55033         uint32_t to size_t.
55034         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
55035         to match.
55036
55037         avoid unaligned access errors, e.g., on sparc
55038         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
55039         direct access through a possibly-unaligned uint64* pointer.
55040         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
55041         direct access through a possibly-unaligned uint32* pointer.
55042         Prompted by this patch from Tom "spot" Callaway:
55043         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
55044
55045         sha512.c: fix typo in comment
55046         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
55047
55048 2008-05-25  Bruno Haible  <bruno@clisp.org>
55049
55050         * lib/set-mode-acl.c: Renamed from lib/acl.c.
55051         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
55052         (Makefile.am): Update lib_SOURCES.
55053
55054 2008-05-25  Bruno Haible  <bruno@clisp.org>
55055
55056         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
55057
55058 2008-05-25  Jim Meyering  <meyering@redhat.com>
55059
55060         useless-if-before-free: freed expr may have white-space differences
55061         * build-aux/useless-if-before-free: Recognize cases in which the
55062         freed expression differs from the tested one in embedded white
55063         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
55064         $1 was used, so we can't make any regexp shy.  Improved tests now
55065         detect this.
55066
55067         useless-if-before-free: accept white space in the expression.
55068         * build-aux/useless-if-before-free: For now, any white space
55069         in the expression must be identical in the free argument.
55070
55071         useless-if-before-free: efficiency tweak
55072         * build-aux/useless-if-before-free: Make the expression-matching
55073         regexp "shy".
55074         Make the *outer* regexp shy, not the expr-matching one.
55075
55076         update code-in-comment to accept cast of free arg
55077         * build-aux/useless-if-before-free: Update regexp.
55078
55079 2008-05-25  Bruno Haible  <bruno@clisp.org>
55080
55081         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
55082         * modules/copy-file-tests (Files, Makefile.am): Update.
55083         * tests/test-copy-file.c (func_test_copy): Update.
55084
55085 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
55086
55087         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
55088
55089 2008-05-23  Bruno Haible  <bruno@clisp.org>
55090
55091         Improve support for ACLs on OSF/1.
55092         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
55093         Remove fallback for unknown flavors of ACLs.
55094
55095 2008-05-22  Bruno Haible  <bruno@clisp.org>
55096
55097         Add support for ACLs on OSF/1.
55098         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
55099         replacements.
55100         (acl_free_text): New macro fallback.
55101         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
55102         acl_free.
55103         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
55104         acl_free_text function. Require AC_C_INLINE.
55105
55106 2008-05-22  Bruno Haible  <bruno@clisp.org>
55107
55108         Make copy_acl work on MacOS X 10.5.
55109         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
55110         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
55111         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
55112         If MODE_INSIDE_ACL, don't assume that every system has the same text
55113         representation for ACLs as FreeBSD.
55114         * lib/copy-acl.c (copy_acl): Add support for platforms with
55115         !MODE_INSIDE_ACL.
55116         * lib/file-has-acl.c (file_has_acl): Likewise.
55117         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
55118         FreeBSD, MacOS X, or IRIX, respectively.
55119
55120 2008-05-22  Bruno Haible  <bruno@clisp.org>
55121
55122         * lib/acl.h: Don't include <sys/acl.h>.
55123         (GETACLCNT): Move fallback to lib/acl-internal.h.
55124         * lib/acl-internal.h: Include <sys/acl.h> here.
55125         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
55126
55127 2008-05-22  Bruno Haible  <bruno@clisp.org>
55128
55129         Split off copy_acl function to separate file.
55130         * lib/copy-acl.c: New file, extracted from lib/acl.c.
55131         * lib/acl.c (copy_acl): Moved function to separate file.
55132         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
55133         * modules/acl (Files): Add lib/copy-acl.c.
55134         (Makefiles.am): Augment lib_SOURCES.
55135
55136 2008-05-22  Bruno Haible  <bruno@clisp.org>
55137
55138         * modules/copy-file-tests: New file.
55139         * tests/test-copy-file.sh: New file.
55140         * tests/test-copy-file.c: New file.
55141         * tests/test-copy-file-sameacls.c: New file.
55142
55143 2008-05-22  Eric Blake  <ebb9@byu.net>
55144
55145         Avoid gcc warning.
55146         * tests/test-memcmp.c (main): Pass NULL indirectly.
55147
55148 2008-05-21  Bruno Haible  <bruno@clisp.org>
55149
55150         Add reference doc about ACLs.
55151         * doc/acl-resources.txt: New file.
55152         * doc/acl-cygwin.txt: New file.
55153
55154 2008-05-21  Bruno Haible  <bruno@clisp.org>
55155
55156         Avoid one more warning from gcc.
55157         * lib/vasnprintf.c (IF_LINT): Update comments.
55158         (VASNPRINTF): Use it also for the 'prefix' array initializer.
55159
55160 2008-05-21  Jim Meyering  <meyering@redhat.com>
55161
55162         avoid a warning from gcc
55163         * lib/vasnprintf.c (IF_LINT): Define.
55164         (scale10_round_decimal_long_double):
55165         Use it to avoid a "may be used uninitialized" warning.
55166         (scale10_round_decimal_double): Likewise.
55167
55168 2008-05-21  Simon Josefsson  <simon@josefsson.org>
55169
55170         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
55171         declared.
55172
55173 2008-05-20  Bruno Haible  <bruno@clisp.org>
55174
55175         * tests/test-memcmp.c (main): Test also the sign of the result. Test
55176         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
55177
55178 2008-05-20  Simon Josefsson  <simon@josefsson.org>
55179
55180         * modules/memcmp-tests: New file.
55181         * tests/test-memcmp.c: New file.
55182
55183 2008-05-19  Bruno Haible  <bruno@clisp.org>
55184
55185         * modules/propername (Notice, configure.ac): Put quoted "..." into
55186         --keyword option.
55187         * lib/propername.h: Update comments accordingly.
55188         Reported by Eric Blake.
55189
55190 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
55191
55192         * modules/getpass-gnu (Depends-on): Add fseeko.
55193
55194 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55195
55196         * modules/base64-tests: New file.
55197
55198 2008-05-19  Bo Borgerson <gigabo@gmail.com>
55199
55200         * lib/base64.c (base64_decode_ctx): If a decode context structure
55201         was passed in use it to ignore newlines.  If a context structure
55202         was _not_ passed in, continue to treat newlines as garbage (this
55203         is the historical behavior).  Formerly base64_decode.
55204         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55205         takes a decode context structure.
55206         * lib/base64.h (base64_decode): Macro for four-argument calls.
55207         (base64_decode_alloc): Likewise.
55208         * lib/base64.c (base64_decode_ctx): If a decode context structure
55209         was passed in use it to ignore newlines.  If a context structure
55210         was _not_ passed in, continue to treat newlines as garbage (this
55211         is the historical behavior).  Formerly base64_decode.
55212         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
55213         takes a decode context structure.
55214         * lib/base64.h (base64_decode): Macro for four-argument calls.
55215         (base64_decode_alloc): Likewise.
55216
55217 2008-05-19  Jim Meyering  <meyering@redhat.com>
55218
55219         avoid a warning from gcc
55220         * lib/trim.c (IF_LINT): Define.
55221         (trim2): Use it to avoid a "may be used uninitialized" warning.
55222
55223         Fix doc typo.
55224         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
55225
55226 2008-05-19  Bruno Haible  <bruno@clisp.org>
55227
55228         * doc/glibc-functions/getpass.texi: Document limits of other
55229         implementations.
55230
55231 2008-05-19  Simon Josefsson  <simon@josefsson.org>
55232             Bruno Haible <bruno@clisp.org>
55233
55234         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
55235
55236 2008-05-18  Bruno Haible  <bruno@clisp.org>
55237
55238         * modules/propername: New file, from GNU gettext.
55239         * lib/propername.h: New file, from GNU gettext.
55240         * lib/propername.c: New file, from GNU gettext.
55241         * MODULES.html.sh (Internationalization functions): Add propername.
55242
55243 2008-05-16  Jim Meyering  <meyering@redhat.com>
55244             Bruno Haible  <bruno@clisp.org>
55245
55246         Avoid some warnings from "gcc -Wshadow".
55247         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
55248
55249 2008-05-15  Eric Blake  <ebb9@byu.net>
55250
55251         Extend previous patch to cygwin 1.7.0.
55252         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
55253         fast implementation in cygwin >= 1.7.0.
55254         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55255         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55256
55257 2008-05-15  Bruno Haible  <bruno@clisp.org>
55258
55259         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
55260         implementation in glibc >= 2.9.
55261         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55263
55264 2008-05-15  Bruno Haible  <bruno@clisp.org>
55265
55266         * MODULES.html.sh (Internationalization functions): Remove linebreak.
55267         (Unicode string functions): Add unilbrk/*.
55268         Reported by Karl Berry.
55269
55270 2008-05-15  Eric Blake  <ebb9@byu.net>
55271
55272         Fix violation of <stdbool.h> replacement in regex.
55273         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
55274         * lib/regexec.c (re_search_internal): Likewise.
55275         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
55276
55277 2008-05-15  Jim Meyering  <meyering@redhat.com>
55278
55279         avoid distracting test output when git or cvs is not found
55280         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
55281         * tests/test-vc-list-files-git.sh: Likewise.
55282
55283 2008-05-15  Eric Blake  <ebb9@byu.net>
55284
55285         Glibc finally accepted the memmem speedup code, bugzilla #5514.
55286         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
55287         glibc version.
55288         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
55289         * doc/posix-functions/strstr.texi (strstr): Likewise.
55290         * lib/str-two-way.h (MAX): Sychronize with glibc.
55291
55292 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
55293
55294         * lib/regcomp.c (optimize_utf8): Add a note on why we test
55295         opr.ctx_type.
55296         (calc_first): Initialize constraint field.
55297         (duplicate_node_closure): Use it instead of special casing ANCHORS.
55298         Fix grammar.
55299         (duplicate_node): Merge constraint field for all node types.
55300         (calc_eclosure_iter): Look at constraint field for all node types.
55301         * lib/regex_internal.c (create_cd_newstate): Don't look at
55302         opr.ctx_type.
55303
55304 2008-05-14  Bruno Haible  <bruno@clisp.org>
55305
55306         Help GCC to do better code generation.
55307         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
55308         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
55309         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
55310         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
55311         Declare with attribute 'malloc' if supported.
55312
55313 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
55314
55315         use "echo STR|wc -c" rather than unportable "expr length STR"
55316         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
55317         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
55318
55319 2008-05-14  Jim Meyering  <meyering@redhat.com>
55320
55321         use dd ibs=$n count=1 ... rather than less-portable head -c$n
55322         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
55323         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
55324         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
55325         via Collin Lasse.
55326
55327 2008-05-14  Eric Blake  <ebb9@byu.net>
55328
55329         Avoid quadratic growth in gl_LIBSOURCES.
55330         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
55331         Suggested by Bruno Haible.
55332
55333         Test xmemdup0.
55334         * modules/xmemdup0-tests: New file.
55335         * tests/test-xmemdup0.c: Likewise.
55336
55337 2008-05-13  Eric Blake  <ebb9@byu.net>
55338
55339         Split xmemdup0 into its own module.
55340         * modules/xmemdup0: New file.
55341         * lib/xmemdup0.h: Likewise.
55342         * lib/xmemdup0.c: Likewise.
55343         * MODULES.html.sh (Memory management functions): Add xmemdup0.
55344         * lib/xalloc.h (xmemdup0): Remove.
55345         * lib/xmalloc.c (xmemdup0): Likewise.
55346
55347 2008-05-13  Eric Blake  <ebb9@byu.net>
55348             Bruno Haible  <bruno@clisp.org>
55349
55350         Reduce number of forks required during autoconf.
55351         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
55352         and gl_LIBSOURCES_DIR.
55353         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
55354         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
55355         m4_syscmd per file.
55356         <m4_foreach_w>: Move...
55357         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
55358
55359 2008-05-13  Eric Blake  <ebb9@byu.net>
55360
55361         * gnulib-tool: Fix various comment typos.
55362
55363 2008-05-12  Bruno Haible  <bruno@clisp.org>
55364
55365         Tailor the linebreaking algorithm.
55366         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
55367
55368 2008-05-12  Bruno Haible  <bruno@clisp.org>
55369
55370         Update to Unicode 5.0.0.
55371         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55372         LBP_JV, LBP_JT. Redistribute values.
55373         (unilbrk_table): Change size.
55374         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
55375         Unicode TR#14 rev. 22.
55376         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
55377         LBP_JV, LBP_JT. Redistribute values.
55378         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
55379         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
55380         Update.
55381         * lib/unilbrk/lbrkprop1.h: Regenerated.
55382         * lib/unilbrk/lbrkprop2.h: Regenerated.
55383         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
55384         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
55385         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
55386         Likewise.
55387         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
55388         Likewise.
55389         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
55390         result.
55391         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
55392         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
55393         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
55394         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
55395         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
55396         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
55397
55398 2008-05-11  Bruno Haible  <bruno@clisp.org>
55399
55400         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
55401
55402 2008-05-11  Bruno Haible  <bruno@clisp.org>
55403
55404         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
55405         * modules/unilbrk/gen-lbrk: New file.
55406
55407 2008-05-11  Bruno Haible  <bruno@clisp.org>
55408
55409         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
55410         * m4/sha512.m4 (gl_SHA512): Likewise.
55411
55412 2008-05-11  Jim Meyering  <meyering@redhat.com>
55413
55414         New modules: crypto/sha256, crypto/sha512 (from coreutils)
55415         * modules/crypto/sha256: New file.
55416         * modules/crypto/sha512: Likewise.
55417         * lib/sha256.c: Likewise.
55418         * lib/sha256.h: Likewise.
55419         * lib/sha512.c: Likewise.
55420         * lib/sha512.h: Likewise.
55421         * lib/u64.h: Likewise.
55422         * m4/sha256.m4: Likewise.
55423         * m4/sha512.m4: Likewise.
55424         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
55425
55426 2008-05-10  Bruno Haible  <bruno@clisp.org>
55427
55428         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
55429         (Input/Output <stdio.h>): Add xprintf.
55430         (Signal handling <signal.h>): Add strsignal.
55431         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
55432         (Core language properties): Add func.
55433         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
55434         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
55435         strings.
55436         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
55437         (Input/output): New section.
55438         (File system functions): Add openat-die, stat-macros.
55439         (Networking functions): Add sockets.
55440         (Unicode string functions): Add unictype/*.
55441         (Support for building libraries and executables): Add gperf.
55442         (Support for building documentation): Add agpl-3.0.
55443         (Misc): Add nocrash.
55444
55445 2008-05-10  Bruno Haible  <bruno@clisp.org>
55446
55447         * modules/unictype/gen-ctype: New file.
55448
55449 2008-05-10  Jim Meyering  <meyering@redhat.com>
55450
55451         Make chdir-safer.c more efficient on a system with no symlinks.
55452         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
55453         also if ELOOP is zero.  Suggested by Bruno Haible.
55454
55455         Make chdir-safer.c slightly safer.
55456         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
55457         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
55458
55459         Avoid compile failure on systems without ELOOP (like mingw).
55460         * lib/chdir-safer.c (ELOOP): Define if not already defined.
55461         Reported by Bruno Haible.
55462
55463 2008-05-10  Bruno Haible  <bruno@clisp.org>
55464
55465         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
55466         (is_utf8_encoding): Use a case-insensitive comparison.
55467         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
55468         streq.
55469
55470 2008-05-10  Bruno Haible  <bruno@clisp.org>
55471
55472         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
55473         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
55474         * lib/unilbrk/ulc-common.h (iconv_string_length,
55475         iconv_string_keeping_offsets): Remove declarations.
55476         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
55477         Don't include <iconv.h>, streq.h, xsize.h.
55478         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
55479         conversion.
55480         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
55481         <iconv.h>, streq.h, xsize.h.
55482         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
55483         conversion.
55484         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
55485         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
55486         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
55487         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
55488
55489 2008-05-10  Bruno Haible  <bruno@clisp.org>
55490
55491         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
55492         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
55493
55494         * modules/unilbrk/u32-width-linebreaks-tests: New file.
55495         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
55496
55497         * modules/unilbrk/u16-width-linebreaks-tests: New file.
55498         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
55499
55500         * modules/unilbrk/u8-width-linebreaks-tests: New file.
55501         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
55502
55503         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
55504         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
55505
55506         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
55507         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
55508
55509         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
55510         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
55511
55512         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
55513         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
55514
55515 2008-05-10  Bruno Haible  <bruno@clisp.org>
55516
55517         Split up 'linebreak' module.
55518         * lib/unilbrk.h: New file, based on lib/linebreak.h.
55519         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
55520         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
55521         modifications.
55522         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
55523         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
55524         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
55525         lib/linebreak.c.
55526         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
55527         lib/linebreak.c.
55528         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
55529         lib/linebreak.c.
55530         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
55531         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
55532         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
55533         lib/linebreak.c.
55534         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
55535         lib/linebreak.c.
55536         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
55537         lib/linebreak.c.
55538         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
55539         lib/linebreak.c.
55540         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
55541         lib/linebreak.c.
55542         * modules/unilbrk/base: New file.
55543         * modules/unilbrk/tables: New file.
55544         * modules/unilbrk/u8-possible-linebreaks: New file.
55545         * modules/unilbrk/u16-possible-linebreaks: New file.
55546         * modules/unilbrk/u32-possible-linebreaks: New file.
55547         * modules/unilbrk/ulc-common: New file.
55548         * modules/unilbrk/ulc-possible-linebreaks: New file.
55549         * modules/unilbrk/u8-width-linebreaks: New file.
55550         * modules/unilbrk/u16-width-linebreaks: New file.
55551         * modules/unilbrk/u32-width-linebreaks: New file.
55552         * modules/unilbrk/ulc-width-linebreaks: New file.
55553         * lib/linebreak.h: Remove file.
55554         * lib/linebreak.c: Remove file.
55555         * m4/linebreak.m4: Remove file.
55556         * modules/linebreak: Remove file.
55557         * NEWS: Mention the changes.
55558
55559 2008-05-09  Eric Blake  <ebb9@byu.net>
55560
55561         Add xmemdup0.
55562         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
55563         implementation.
55564         * lib/xmalloc.c (xmemdup0): New C implementation.
55565
55566 2008-05-08  Bruno Haible  <bruno@clisp.org>
55567
55568         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
55569
55570 2008-05-07  Eric Blake  <ebb9@byu.net>
55571
55572         Support cross-compilation of <wctype.h>.
55573         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
55574         AC_CACHE_CHECK.
55575
55576 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
55577
55578         * build-aux/vc-list-files: Add support for bzr.
55579
55580 2008-05-03  Jim Meyering  <meyering@redhat.com>
55581
55582         avoid failed assertion with tight malloc
55583         * tests/test-getndelim2.c: Correct an off-by-one assertion.
55584
55585 2008-05-03  Simon Josefsson  <simon@josefsson.org>
55586
55587         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
55588         are needed from arpa/inet.h.
55589         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
55590         Reported by Bruno Haible.
55591
55592 2008-05-02  Jim Meyering  <meyering@redhat.com>
55593
55594         avoid compilation error on FreeBSD 6
55595         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
55596
55597 2008-05-01  Jim Meyering  <meyering@redhat.com>
55598
55599         useless-if-before-free: correct --help's exit status description
55600         * build-aux/useless-if-before-free (usage): Like grep, exit 0
55601         for one or more matches, etc.  Reported by Bruno Haible.
55602
55603         vc-list-files: make the stand-alone gnulib test work
55604         * modules/vc-list-files-tests (configure.ac):
55605         Define and AC_SUBST abs_aux_dir.
55606         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
55607         $(abs_top_srcdir) to each script and having each of them
55608         duplicate the work of setting PATH, set PATH here, using
55609         the new variable, abs_aux_dir instead.
55610         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
55611         * tests/test-vc-list-files-git.sh: Likewise.
55612         Reported by Bruno Haible.
55613
55614 2008-05-01  Bruno Haible  <bruno@clisp.org>
55615
55616         * lib/getndelim2.c (getndelim2): Fix newsize computation during
55617         reallocation. Rename 'done' to 'found_delimiter'.
55618
55619 2008-05-01  Jim Meyering  <meyering@redhat.com>
55620
55621         vc-list-files: accommodate /bin/sh like the one from Solaris 10
55622         * build-aux/vc-list-files: Use `...`, not $(...).
55623
55624 2008-04-30  Jim Meyering  <meyering@redhat.com>
55625
55626         add tests for vc-list-files
55627         * modules/vc-list-files-tests: New module.
55628         * tests/test-vc-list-files-cvs.sh: New file.
55629         * tests/test-vc-list-files-git.sh: New file.
55630
55631         avoid a warning from gcc
55632         * lib/getndelim2.c (IF_LINT): Define.
55633         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
55634
55635         vc-list-files: work properly with build-aux/cvsu, too
55636         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
55637         to all cvs-based clauses.
55638
55639         vc-list-files: work properly in the CVS+awk case, too
55640         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
55641
55642         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
55643         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
55644         take more than one file argument, so .  Add quotes, just in case $dir
55645         ever contains a shell meta-character.  Prompted by Soren Hansen in
55646         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
55647
55648 2008-04-29  Eric Blake  <ebb9@byu.net>
55649
55650         Optimize getndelim2 to use block operations when possible.
55651         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
55652         freadseek, and memchr2.
55653         * lib/getndelim2.c (getndelim2): Use them for block reads.
55654
55655 2008-04-29  Bruno Haible  <bruno@clisp.org>
55656
55657         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
55658         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55659         * modules/inet_ntop (Depends-on): Add extensions.
55660         * modules/inet_pton (Depends-on): Likewise.
55661         Reported by Simon Josefsson.
55662
55663 2008-04-29  Jim Meyering  <meyering@redhat.com>
55664
55665         When the is more than one match in a block, match all of them.
55666         * build-aux/useless-if-before-free: Iterate through each block
55667         until there are no more matches.
55668
55669         Fix broken useless-if-before-free script.
55670         * build-aux/useless-if-before-free: Fix typo: missing "?" after
55671         the expression to match cast of argument to free-like function.
55672
55673 2008-04-29  Eric Blake  <ebb9@byu.net>
55674
55675         Use new header.
55676         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
55677
55678 2008-04-29  Jim Meyering  <meyering@redhat.com>
55679
55680         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
55681         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
55682         by gnulib to exist and to declare e.g., inet_ntop.
55683         Don't include "inet_ntop.h", now removed.
55684
55685         * m4/arpa_inet_h.m4: Remove trailing blanks.
55686
55687 2008-04-29  Eric Blake  <ebb9@byu.net>
55688
55689         Silence valgrind on safe reads beyond potential array bounds.
55690         * lib/rawmemchr.valgrind: New file.
55691         * lib/strchrnul.valgrind: Likewise.
55692         * modules/rawmemchr (Files): Distribute new file.
55693         * modules/strchrnul (Files): Likewise.
55694         Suggested by Bruno Haible.
55695
55696 2008-04-29  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
55699         (inet_ntop, inet_pton): Change portability warning's wording.
55700         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
55701         Invoke gl_CHECK_NEXT_HEADERS.
55702         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
55703         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
55704         set ARPA_INET_H.
55705         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55706         * modules/arpa_inet (Description): No longer only for systems that
55707         lack it.
55708         (Depends-on): Add include_next.
55709         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
55710         HAVE_ARPA_INET_H.
55711
55712 2008-04-29  Jim Meyering  <meyering@redhat.com>
55713
55714         * modules/mkdir (License): Re-license as LGPLv2+.
55715
55716 2008-04-29  Bruno Haible  <bruno@clisp.org>
55717
55718         * modules/rawmemchr (Maintainer): Set to Eric.
55719         * modules/strchrnul (Maintainer): Likewise.
55720
55721 2008-04-29  Simon Josefsson  <simon@josefsson.org>
55722
55723         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
55724         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
55725
55726         * modules/arpa_inet (arpa/inet.h): Use them.
55727
55728 2008-04-28  Eric Blake  <ebb9@byu.net>
55729
55730         Test getndelim2.
55731         * modules/getndelim2-tests: New file.
55732         * tests/test-getndelim2.c: Likewise.
55733         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
55734         stream.
55735         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
55736
55737         * MODULES.html.sh: Document new module.
55738
55739 2008-04-20  Bruno Haible  <bruno@clisp.org>
55740
55741         * lib/c-stack.c (die): Use raise.
55742         * modules/c-stack (Depends-on): Add raise.
55743
55744 2008-04-28  Bruno Haible  <bruno@clisp.org>
55745
55746         Expect rpmatch to be declared.
55747         * lib/yesno.c (rpmatch): Remove declaration.
55748
55749         Declare rpmatch.
55750         * lib/stdlib.in.h (rpmatch): New declaration.
55751         * lib/rpmatch.c: Include <stdlib.h> first.
55752         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
55753         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
55754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
55755         HAVE_RPMATCH.
55756         * modules/rpmatch (Depends-on): Add stdlib, extensions.
55757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55758         (Include): Set to <stdlib.h>.
55759         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
55760         HAVE_RPMATCH.
55761         * NEWS: Document the change.
55762
55763 2008-04-28  Bruno Haible  <bruno@clisp.org>
55764
55765         Change rpmatch to use nl_langinfo when appropriate.
55766         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
55767         (N_): New macro.
55768         (localized_pattern): New function/macro.
55769         (try): Remove match, nomatch arguments. Copy the pattern into safe
55770         memory before caching it.
55771         (rpmatch): Use localized_pattern. Add translator comments.
55772         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
55773         Suggested by Eric Blake.
55774         * modules/rpmatch (Depends-on): Add stdbool.
55775
55776 2008-04-28  Eric Blake  <ebb9@byu.net>
55777
55778         Add rawmemchr module, matching glibc.
55779         * modules/string (Makefile.am): New indicator.
55780         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
55781         * lib/string.in.h (rawmemchr): Declare when appropriate.
55782         * modules/rawmemchr: New file.
55783         * m4/rawmemchr.m4: Likewise.
55784         * lib/rawmemchr.c: Likewise.
55785         * modules/rawmemchr-tests: Likewise.
55786         * tests/test-rawmemchr.c: Likewise.
55787         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
55788         module.
55789         * modules/strchrnul (Depends-on): Add rawmemchr.
55790         * lib/strchrnul.c (strchrnul): Optimize a corner case.
55791
55792         Whitespace cleanup.
55793         * tests/test-strchrnul.c: Reindent.
55794         * lib/strchrnul.c: Likewise.
55795
55796         Optimize and test strchrnul.
55797         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
55798         * modules/strchrnul-tests: New file.
55799         * tests/test-strchrnul.c: Likewise.
55800
55801         Remove intprops dependency.
55802         * modules/memchr (Depends-on): Remove intprops.
55803         * modules/memrchr (Depends-on): Likewise.
55804         * modules/memchr2 (Depends-on): Likewise.
55805         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
55806         * lib/memrchr.c (__memrchr): Likewise.
55807         * lib/memrchr2.c (memchr2): Likewise.
55808         Reported by Simon Josefsson.
55809
55810 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55811
55812         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55813         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55814
55815 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55816
55817         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55818
55819         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55820
55821         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55822
55823         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55824         declarations.
55825         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55826
55827         * m4/inet_pton.m4: Don't check for header files.
55828
55829         * m4/inet_ntop.m4: Don't check for header files.
55830
55831 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55832
55833         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55834         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55835         trigger for cygwin).
55836         Reported by Bruno Haible  <bruno@clisp.org>.
55837
55838 2008-04-28  Bruno Haible  <bruno@clisp.org>
55839
55840         * doc/posix-functions/strdup.texi: Mention mingw problem.
55841
55842 2008-04-27  Bruno Haible  <bruno@clisp.org>
55843
55844         * modules/stat-time-tests (Depends-on): Add sleep.
55845         * tests/test-stat-time.c (force_unlink): New function.
55846         (cleanup): Use it.
55847         (test_mtime): Remove the ctime related tests.
55848         (test_ctime): New function, containing the ctime related tests.
55849         (main): Call test_ctime, except on native Windows platforms.
55850
55851 2008-04-27  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/rpmatch.c (rpmatch): Add some comments.
55854         Reported by James Youngman <jay@gnu.org>.
55855
55856 2008-04-27  Bruno Haible  <bruno@clisp.org>
55857
55858         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55859         quiet NaNs.
55860
55861 2008-04-27  Bruno Haible  <bruno@clisp.org>
55862
55863         Make test-yesno.sh work on mingw.
55864         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55865         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55866         (main): Set stdin to binary mode.
55867         * modules/yesno-tests (Depends-on): Add binary-io.
55868
55869 2008-04-27  Bruno Haible  <bruno@clisp.org>
55870
55871         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55872         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55873         argument that lie outside the IEEE 854 domain.
55874         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55875         (gl_ISFINITE): Use it.
55876         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55877
55878 2008-04-27  Bruno Haible  <bruno@clisp.org>
55879
55880         Allow local renaming in config.h.
55881         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55882
55883 2008-04-27  Bruno Haible  <bruno@clisp.org>
55884
55885         * lib/memchr.c (__memchr): Change type of 'i'.
55886         * lib/memchr2.c (memchr2): Likewise.
55887
55888 2008-04-26  Eric Blake  <ebb9@byu.net>
55889         and Bruno Haible  <bruno@clisp.org>
55890
55891         Optimize and test memrchr.
55892         * modules/memrchr (Depends-on): Add intprops.
55893         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55894         * modules/memrchr-tests: New file.
55895         * tests/test-memrchr.c: New file.
55896
55897 2008-04-26  Bruno Haible  <bruno@clisp.org>
55898
55899         Add tentative support for DragonFly BSD.
55900         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55901         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55902         fp.
55903         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55904         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55905         * lib/fpurge.c (fpurge): Likewise.
55906         * lib/freadable.c (freaadable): Likewise.
55907         * lib/freadahead.c (freadahead): Likewise.
55908         * lib/freading.c (freading): Likewise.
55909         * lib/freadptr.c (freadptr): Likewise.
55910         * lib/freadseek.c (freadptrinc): Likewise.
55911         * lib/fseeko.c (fseeko): Likewise.
55912         * lib/fseterr.c (fseterr): Likewise.
55913         * lib/fwritable.c (fwritable): Likewise.
55914         * lib/fwriting.c (fwriting): Likewise.
55915
55916 2008-04-26  Bruno Haible  <bruno@clisp.org>
55917
55918         * lib/stdio-impl.h: New file.
55919         * lib/fbufmode.c: Include stdio-impl.h.
55920         (fbufmode): Use fp_, remove redundant #defines.
55921         * lib/fflush.c: Include stdio-impl.h.
55922         (clear_ungetc_buffer): Remove redundant #defines.
55923         * lib/fpurge.c: Include stdio-impl.h.
55924         (fpurge): Remove redundant #defines.
55925         * lib/freadable.c: Include stdio-impl.h.
55926         (freadable): Remove redundant #defines.
55927         * lib/freadahead.c: Include stdio-impl.h.
55928         (freadahead): Remove redundant #defines.
55929         * lib/freading.c: Include stdio-impl.h.
55930         (freading): Remove redundant #defines.
55931         * lib/freadptr.c: Include stdio-impl.h.
55932         (freadptr): Remove redundant #defines.
55933         * lib/freadseek.c: Include stdio-impl.h.
55934         (freadptrinc): Remove redundant #defines.
55935         * lib/fseeko.c: Include stdio-impl.h.
55936         (rpl_fseeko): Remove redundant #defines.
55937         * lib/fseterr.c: Include stdio-impl.h.
55938         (fseterr): Remove redundant #defines.
55939         * lib/fwritable.c: Include stdio-impl.h.
55940         (fwritable: Remove redundant #defines.
55941         * lib/fwriting.c: Include stdio-impl.h.
55942         (fwriting): Remove redundant #defines.
55943         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55944         * modules/fflush (Files): Likewise.
55945         * modules/fpurge (Files): Likewise.
55946         * modules/freadable (Files): Likewise.
55947         * modules/freadahead (Files): Likewise.
55948         * modules/freading (Files): Likewise.
55949         * modules/freadptr (Files): Likewise.
55950         * modules/freadseek (Files): Likewise.
55951         * modules/fseeko (Files): Likewise.
55952         * modules/fseterr (Files): Likewise.
55953         * modules/fwritable (Files): Likewise.
55954         * modules/fwriting (Files): Likewise.
55955
55956 2008-04-26  Bruno Haible  <bruno@clisp.org>
55957
55958         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55959         restore_seek_optimization, update_fpos_cache): New functions, extracted
55960         from rpl_fflush.
55961         (rpl_fflush): Use them.
55962         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55963         (gl_REPLACE_FFLUSH): Use it.
55964
55965 2008-04-26  Bruno Haible  <bruno@clisp.org>
55966
55967         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55968         on Solaris.
55969         * tests/test-xstrtoimax.sh: Likewise.
55970         * tests/test-xstrtoumax.sh: Likewise.
55971         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55972
55973 2008-04-26  Bruno Haible  <bruno@clisp.org>
55974
55975         * modules/memchr-tests: New file.
55976         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55977
55978 2008-04-26  Eric Blake  <ebb9@byu.net>
55979             Bruno Haible  <bruno@clisp.org>
55980
55981         * lib/memchr.c: Include intprops.h.
55982         (__memchr): Optimize parallel detection of matching bytes. Rename local
55983         variables. Add explanatory comments.
55984
55985 2008-04-26  Bruno Haible  <bruno@clisp.org>
55986
55987         Fix module 'memchr', broken since 2000-10-28.
55988         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55989
55990 2008-04-26  Bruno Haible  <bruno@clisp.org>
55991
55992         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55993         comments.
55994
55995 2008-04-25  Eric Blake  <ebb9@byu.net>
55996
55997         Use native fstatat on cygwin 1.7.0.
55998         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55999         first.
56000
56001 2008-04-23  Eric Blake  <ebb9@byu.net>
56002
56003         Improve memchr2 performance.
56004         * lib/memchr2.c (memchr2): Further optimize parallel detection of
56005         NUL bytes.
56006         * modules/memchr2 (Depends-on): Use intprops.h.
56007
56008 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56009
56010         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
56011         an inline function instead of a CPP macro.  Patch by Ben Pfaff
56012         <blp@cs.stanford.edu>.
56013
56014 2008-04-23  Simon Josefsson  <simon@josefsson.org>
56015
56016         * lib/arpa_inet.in.h: New file.
56017
56018         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
56019         (Makefile.am): Sed in substitute header file.
56020
56021         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
56022         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
56023
56024         * modules/inet_ntop (configure.ac): Use
56025         gl_ARPA_INET_MODULE_INDICATOR.
56026
56027         * modules/inet_pton (configure.ac): Use
56028         gl_ARPA_INET_MODULE_INDICATOR.
56029
56030 2008-04-22  Jim Meyering  <meyering@redhat.com>
56031
56032         * modules/verify (License): Re-license as LGPLv2+.
56033
56034 2008-04-22  Simon Josefsson  <simon@josefsson.org>
56035
56036         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
56037         parameter to void* as per POSIX standard (MinGW uses char*).
56038
56039 2008-04-21  Bruno Haible  <bruno@clisp.org>
56040
56041         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
56042         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
56043         Define to replacements if REPLACE_ISWCNTRL is 1.
56044         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
56045         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
56046         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
56047         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
56048         what it fixes.
56049         * doc/posix-functions/iswalpha.texi: Likewise.
56050         * doc/posix-functions/iswblank.texi: Likewise.
56051         * doc/posix-functions/iswcntrl.texi: Likewise.
56052         * doc/posix-functions/iswdigit.texi: Likewise.
56053         * doc/posix-functions/iswgraph.texi: Likewise.
56054         * doc/posix-functions/iswlower.texi: Likewise.
56055         * doc/posix-functions/iswprint.texi: Likewise.
56056         * doc/posix-functions/iswpunct.texi: Likewise.
56057         * doc/posix-functions/iswspace.texi: Likewise.
56058         * doc/posix-functions/iswupper.texi: Likewise.
56059         * doc/posix-functions/iswxdigit.texi: Likewise.
56060         Reported by Alain Guibert.
56061
56062 2008-04-21  Bruno Haible  <bruno@clisp.org>
56063
56064         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
56065         Patch by Alain Guibert.
56066
56067 2008-04-21  Bruno Haible  <bruno@clisp.org>
56068
56069         Fix test failures on mingw.
56070         * tests/test-xstrtol.c (print_no_progname): New function.
56071         (main): Install it in error_print_progname hook.
56072         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
56073         * tests/test-xstrtoimax.sh: Likewise.
56074         * tests/test-xstrtoumax.sh: Likewise.
56075
56076 2008-04-21  Bruno Haible  <bruno@clisp.org>
56077
56078         Fix test failure on mingw.
56079         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
56080
56081 2008-04-21  Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
56084         Actually assign a value.
56085
56086 2008-04-20  Bruno Haible  <bruno@clisp.org>
56087
56088         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
56089         take 2.
56090         * lib/canonicalize.c (canonicalize_file_name): Elide if the
56091         'canonicalize-lgpl' module is also used.
56092         * lib/canonicalize-lgpl.c: Undo last change.
56093         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
56094
56095 2008-04-20  Bruno Haible  <bruno@clisp.org>
56096
56097         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
56098         config.h. Provide _mkdir based fallback for mingw.
56099         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
56100         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
56101         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
56102         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
56103         rather than defining mkdir in config.h.
56104         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
56105         (gl_SYS_STAT_H_DEFAULTS): New macro.
56106         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
56107         HAVE_IO_H any more.
56108         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
56109         HAVE_DECL_MKDIR and HAVE_IO_H.
56110
56111 2008-04-20  Bruno Haible  <bruno@clisp.org>
56112
56113         * lib/isapipe.c: Port to native Windows platforms.
56114
56115 2008-04-20  Bruno Haible  <bruno@clisp.org>
56116
56117         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
56118
56119 2008-04-21  Eric Blake  <ebb9@byu.net>
56120
56121         Work around preprocessors that don't handle UINTMAX_MAX.
56122         * lib/memchr2.c (memchr2): Avoid embedded #if.
56123         Reported by Alain Guibert, fix suggested by Bruno Haible.
56124
56125 2008-04-21  Simon Josefsson  <simon@josefsson.org>
56126
56127         * doc/posix-functions/strftime.texi (strftime): Explain better
56128         Windows incompatibility.  Suggested by Micah Cowan
56129         <micah@cowan.name>.
56130
56131 2008-04-20  Bruno Haible  <bruno@clisp.org>
56132
56133         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
56134         unistr/u8-mblen.
56135
56136 2008-04-20  Bruno Haible  <bruno@clisp.org>
56137
56138         Fix test failure on platforms with non-GNU iconv.
56139         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
56140         (U_TO_U8): Use it, rather than u16_to_u8.
56141         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
56142         units at the end of the input string.
56143         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
56144
56145 2008-04-20  Bruno Haible  <bruno@clisp.org>
56146
56147         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
56148         when the resulting length is 0.
56149         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
56150
56151 2008-04-20  Bruno Haible  <bruno@clisp.org>
56152
56153         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
56154         works.
56155         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
56156
56157 2008-04-20  Bruno Haible  <bruno@clisp.org>
56158
56159         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
56160         * modules/tsearch-tests (configure.ac): Test for initstate function.
56161
56162 2008-04-20  Bruno Haible  <bruno@clisp.org>
56163
56164         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
56165         for nlink_t if missing.
56166         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
56167
56168 2008-04-19  Bruno Haible  <bruno@clisp.org>
56169
56170         Work around snprintf bug on Linux libc5.
56171         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
56172         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56173         gl_SNPRINTF_SIZE1.
56174         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56175         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
56176         that test failed.
56177         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
56178         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
56179         * modules/snprintf (Files): Add m4/printf.m4.
56180         * modules/vsnprintf (Files): Likewise.
56181         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
56182         * doc/posix-functions/vsnprintf.texi: Likewise.
56183
56184 2008-04-19  Bruno Haible  <bruno@clisp.org>
56185
56186         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
56187         from 0.0058 to less than 10^-7.
56188
56189 2008-04-19  Bruno Haible  <bruno@clisp.org>
56190
56191         Fix rounding when a precision is given.
56192         * lib/vasnprintf.c (is_borderline): New function.
56193         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
56194         9...9x.
56195         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
56196         %e, %g.
56197         * tests/test-vasprintf-posix.c (test_function): Likewise.
56198         * tests/test-snprintf-posix.h (test_function): Likewise.
56199         * tests/test-sprintf-posix.h (test_function): Likewise.
56200         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
56201         * tests/test-printf-posix.h (test_function): Likewise.
56202         * tests/test-printf-posix.output: Update.
56203         Reported by John Darrington <john@darrington.wattle.id.au> via
56204         Ben Pfaff <blp@cs.stanford.edu>.
56205
56206 2008-04-18  Simon Josefsson  <simon@josefsson.org>
56207
56208         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
56209         Suggested by Bruno Haible <bruno@clisp.org>.
56210
56211 2008-04-17  Bruno Haible  <bruno@clisp.org>
56212
56213         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
56214         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
56215         implementation.
56216         Patch by Bruce Merry <bmerry@gmail.com>.
56217
56218 2008-04-17  Simon Josefsson  <simon@josefsson.org>
56219
56220         * doc/posix-functions/strftime.texi (strftime): Mention that %e
56221         doesn't work under Windows.
56222
56223 2008-04-16  Bruno Haible  <bruno@clisp.org>
56224
56225         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
56226         New macros.
56227         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
56228         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
56229         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
56230         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
56231         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
56232         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
56233         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
56234         macros.
56235         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
56236         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
56237         Northern Sotho, Uighur.
56238
56239 2008-04-16  Bruno Haible  <bruno@clisp.org>
56240
56241         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
56242         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
56243         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
56244         Reported by Daniel Bergström <daniel@octocode.com>.
56245
56246 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
56247             Bruno Haible  <bruno@clisp.org>
56248
56249         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
56250         function.
56251         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
56252         New functions, mostly extracted from gl_locale_name_default.
56253         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
56254
56255 2008-04-16  Eric Blake  <ebb9@byu.net>
56256
56257         Adjust strtod detection to catch glibc 2.7 bug.
56258         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
56259         Reported by John Gatewood Ham.
56260
56261 2008-04-16  Bruno Haible  <bruno@clisp.org>
56262
56263         Add tentative support for Linux libc5.
56264         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
56265         * lib/fpurge.c (fpurge): Likewise.
56266         * lib/freadable.c (freadable): Likewise.
56267         * lib/freadahead.c (freadahead): Likewise.
56268         * lib/freading.c (freading): Likewise.
56269         * lib/freadptr.c (freadptr): Likewise.
56270         * lib/freadseek.c (freadptrinc): Likewise.
56271         * lib/fseeko.c (rpl_fseeko): Likewise.
56272         * lib/fseterr.c (fseterr): Likewise.
56273         * lib/fwritable.c (fwritable): Likewise.
56274         * lib/fwriting.c (fwriting): Likewise.
56275         Reported by Alain Guibert <alguibert+bts@free.fr>.
56276
56277 2008-04-15  Bruno Haible  <bruno@clisp.org>
56278
56279         * modules/mathl (configure.ac): Define module indicator.
56280
56281 2008-04-15  Bruno Haible  <bruno@clisp.org>
56282
56283         * lib/logl.c (logl): Remove unused variables.
56284
56285 2008-04-15  Bruno Haible  <bruno@clisp.org>
56286
56287         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
56288         fails.
56289
56290 2008-04-15  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/trim.c (trim2): Fix argument of isspace() macro.
56293
56294 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
56295
56296         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
56297         to 0.
56298         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
56299
56300 2008-04-14  Bruno Haible  <bruno@clisp.org>
56301
56302         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
56303         AC_LANG_PROGRAM argument.
56304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
56305         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
56306         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
56307         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
56308         * m4/math_h.m4 (gl_MATH_H): Likewise.
56309         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
56310         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56311         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
56312         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
56313         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
56314         * m4/regex.m4 (gl_REGEX): Likewise.
56315         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
56316         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
56317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56318         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
56319         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
56320         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56321         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
56322         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
56323
56324 2008-04-14  Jim Meyering  <meyering@redhat.com>
56325
56326         test-strtod: fix typos: s/abs/fabs/
56327         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
56328
56329 2008-04-13  Bruno Haible  <bruno@clisp.org>
56330
56331         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
56332         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
56333         module is also used and while not building the reloc-wrapper.
56334
56335 2008-04-13  Bruno Haible  <bruno@clisp.org>
56336
56337         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
56338
56339 2008-04-13  Bruno Haible  <bruno@clisp.org>
56340
56341         Fix AIX compilation failure introduced on 2008-04-02.
56342         * tests/test-frexp.c (exp): Undefine before redefining.
56343         * tests/test-frexpl.c (exp): Likewise.
56344
56345 2008-04-13  Bruno Haible  <bruno@clisp.org>
56346
56347         Work around a HP-UX stdio bug.
56348         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
56349         * tests/test-ftello.c (main): Likewise.
56350         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
56351         * doc/posix-functions/ftello.texi: Likewise.
56352
56353 2008-04-13  Bruno Haible  <bruno@clisp.org>
56354
56355         Make test-signbit pass on HP-UX/hppa.
56356         * tests/test-signbit.c (minus_zerol): New variable.
56357         (test_signbitl): Use it.
56358
56359 2008-04-13  Bruno Haible  <bruno@clisp.org>
56360
56361         Make truncl work on OSF/1 4.0.
56362         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
56363         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56364         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
56365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
56366         HAVE_DECL_TRUNCL.
56367         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
56368         HAVE_DECL_TRUNCL.
56369         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
56370
56371 2008-04-13  Bruno Haible  <bruno@clisp.org>
56372
56373         * lib/unictype.h: Remove trailing comma from enumeration definitions.
56374
56375 2008-04-13  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
56378         expression, so as to avoid HP-UX 11 cc compiler bug.
56379
56380 2008-04-13  Bruno Haible  <bruno@clisp.org>
56381
56382         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
56383
56384 2008-04-13  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/git-merge-changelog.c: Remove empty declaration outside of
56387         functions.
56388
56389 2008-04-13  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
56392
56393 2008-04-13  Bruno Haible  <bruno@clisp.org>
56394
56395         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
56396         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
56397         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
56398         also if it exists but lacks definitions of the SHUT_* macros.
56399         * modules/sys_socket (Description): Update.
56400         Reported by Elbert Pol <e.pol@chello.nl>.
56401
56402 2008-04-13  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/localcharset.c (OS2): Don't redefine if already defined.
56405         Reported by Elbert Pol <e.pol@chello.nl>.
56406
56407 2008-04-13  Bruno Haible  <bruno@clisp.org>
56408
56409         * lib/binary-io.h [__EMX__]: Include <io.h>.
56410         Reported by Elbert Pol <e.pol@chello.nl>.
56411
56412 2008-04-12  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/fpucw.h: Enable the definitions also for x86_64.
56415         Needed for NetBSD/x86_64.
56416         Reported by Thomas Klausner <tk@giga.or.at>.
56417
56418 2008-04-12  Bruno Haible  <bruno@clisp.org>
56419
56420         * tests/test-strtod.c: Include isnand.h.
56421         (main): Use isnand instead of isnan.
56422         Reported by Jim Meyering.
56423
56424 2008-04-12  Bruno Haible  <bruno@clisp.org>
56425
56426         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
56427         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
56428
56429 2008-04-12  Jim Meyering  <meyering@redhat.com>
56430
56431         * m4/math_h.m4 (gl_MATH_H): Fix typos.
56432
56433 2008-04-12  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
56436         Reported by Elbert Pol <e.pol@chello.nl>.
56437
56438 2008-04-12  Eric Blake  <ebb9@byu.net>
56439
56440         Work around Solaris 10 math.h bug.
56441         * m4/math_h.m4 (gl_MATH_H): Check for bug.
56442         (gl_MATH_H_DEFAULTS): Set up default.
56443         * modules/math (Makefile.am): Replace new indicators.
56444         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
56445         * tests/test-math.c (main): Test this.
56446         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
56447         * doc/posix-headers/math.texi (math.h): Mention bug.
56448         Reported by Nelson H. F. Beebe and Jim Meyering.
56449
56450 2008-04-11  Bruno Haible  <bruno@clisp.org>
56451
56452         Adapt to future versions of Apple GCC.
56453         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
56454         Reported by Peter O'Gorman <peter@pogma.com>.
56455
56456 2008-04-11  Bruno Haible  <bruno@clisp.org>
56457
56458         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
56459
56460 2008-04-11  Bruno Haible  <bruno@clisp.org>
56461
56462         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
56463
56464         * modules/getaddrinfo-tests (Makefile.am): Define
56465         test_getaddrinfo_LDADD.
56466
56467 2008-04-11  Bruno Haible  <bruno@clisp.org>
56468
56469         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
56470         (init): Fix syntax error.
56471         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
56472         is declared.
56473
56474 2008-04-11  Bruno Haible  <bruno@clisp.org>
56475
56476         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
56477         * modules/glob (Depends-on): Add stdbool.
56478
56479 2008-04-11  Bruno Haible  <bruno@clisp.org>
56480
56481         * lib/trim.c: Include <string.h>.
56482
56483 2008-04-11  Eric Blake  <ebb9@byu.net>
56484
56485         Avoid compile failure on OS/2.
56486         * lib/regex_internal.h (internal_function): Disable optimization
56487         on OS/2 (__EMX__), where it caused compiler error.
56488         Reported by Elbert Pol.
56489
56490 2008-04-11  Bruno Haible  <bruno@clisp.org>
56491
56492         Flush the standard error stream before aborting. Needed on mingw.
56493         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
56494         * tests/test-array_list.c (ASSERT): Likewise.
56495         * tests/test-array_oset.c (ASSERT): Likewise.
56496         * tests/test-avltree_list.c (ASSERT): Likewise.
56497         * tests/test-avltree_oset.c (ASSERT): Likewise.
56498         * tests/test-avltreehash_list.c (ASSERT): Likewise.
56499         * tests/test-binary-io.c (ASSERT): Likewise.
56500         * tests/test-byteswap.c (ASSERT): Likewise.
56501         * tests/test-c-ctype.c (ASSERT): Likewise.
56502         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
56503         * tests/test-c-strcasestr.c (ASSERT): Likewise.
56504         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
56505         * tests/test-c-strstr.c (ASSERT): Likewise.
56506         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
56507         * tests/test-canonicalize.c (ASSERT): Likewise.
56508         * tests/test-carray_list.c (ASSERT): Likewise.
56509         * tests/test-ceilf1.c (ASSERT): Likewise.
56510         * tests/test-ceilf2.c (ASSERT): Likewise.
56511         * tests/test-ceill.c (ASSERT): Likewise.
56512         * tests/test-count-one-bits.c (ASSERT): Likewise.
56513         * tests/test-fbufmode.c (ASSERT): Likewise.
56514         * tests/test-fflush2.c (ASSERT): Likewise.
56515         * tests/test-floorf1.c (ASSERT): Likewise.
56516         * tests/test-floorf2.c (ASSERT): Likewise.
56517         * tests/test-floorl.c (ASSERT): Likewise.
56518         * tests/test-fopen.c (ASSERT): Likewise.
56519         * tests/test-fpending.c (ASSERT): Likewise.
56520         * tests/test-fprintf-posix.c (ASSERT): Likewise.
56521         * tests/test-fpurge.c (ASSERT): Likewise.
56522         * tests/test-freadable.c (ASSERT): Likewise.
56523         * tests/test-freadahead.c (ASSERT): Likewise.
56524         * tests/test-freading.c (ASSERT): Likewise.
56525         * tests/test-freadptr.c (ASSERT): Likewise.
56526         * tests/test-freadptr2.c (ASSERT): Likewise.
56527         * tests/test-freadseek.c (ASSERT): Likewise.
56528         * tests/test-freopen.c (ASSERT): Likewise.
56529         * tests/test-frexp.c (ASSERT): Likewise.
56530         * tests/test-frexpl.c (ASSERT): Likewise.
56531         * tests/test-fseek.c (ASSERT): Likewise.
56532         * tests/test-fseeko.c (ASSERT): Likewise.
56533         * tests/test-fstrcmp.c (ASSERT): Likewise.
56534         * tests/test-ftell.c (ASSERT): Likewise.
56535         * tests/test-ftello.c (ASSERT): Likewise.
56536         * tests/test-func.c (ASSERT): Likewise.
56537         * tests/test-fwritable.c (ASSERT): Likewise.
56538         * tests/test-fwriting.c (ASSERT): Likewise.
56539         * tests/test-getdelim.c (ASSERT): Likewise.
56540         * tests/test-getline.c (ASSERT): Likewise.
56541         * tests/test-i-ring.c (ASSERT): Likewise.
56542         * tests/test-iconv-utf.c (ASSERT): Likewise.
56543         * tests/test-iconv.c (ASSERT): Likewise.
56544         * tests/test-isfinite.c (ASSERT): Likewise.
56545         * tests/test-isnand.c (ASSERT): Likewise.
56546         * tests/test-isnanf.c (ASSERT): Likewise.
56547         * tests/test-isnanl.h (ASSERT): Likewise.
56548         * tests/test-ldexpl.c (ASSERT): Likewise.
56549         * tests/test-linked_list.c (ASSERT): Likewise.
56550         * tests/test-linkedhash_list.c (ASSERT): Likewise.
56551         * tests/test-localename.c (ASSERT): Likewise.
56552         * tests/test-lseek.c (ASSERT): Likewise.
56553         * tests/test-mbscasecmp.c (ASSERT): Likewise.
56554         * tests/test-mbscasestr1.c (ASSERT): Likewise.
56555         * tests/test-mbscasestr2.c (ASSERT): Likewise.
56556         * tests/test-mbscasestr3.c (ASSERT): Likewise.
56557         * tests/test-mbscasestr4.c (ASSERT): Likewise.
56558         * tests/test-mbschr.c (ASSERT): Likewise.
56559         * tests/test-mbscspn.c (ASSERT): Likewise.
56560         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
56561         * tests/test-mbspbrk.c (ASSERT): Likewise.
56562         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
56563         * tests/test-mbsrchr.c (ASSERT): Likewise.
56564         * tests/test-mbsspn.c (ASSERT): Likewise.
56565         * tests/test-mbsstr1.c (ASSERT): Likewise.
56566         * tests/test-mbsstr2.c (ASSERT): Likewise.
56567         * tests/test-mbsstr3.c (ASSERT): Likewise.
56568         * tests/test-memchr2.c (ASSERT): Likewise.
56569         * tests/test-memmem.c (ASSERT): Likewise.
56570         * tests/test-open.c (ASSERT): Likewise.
56571         * tests/test-printf-frexp.c (ASSERT): Likewise.
56572         * tests/test-printf-frexpl.c (ASSERT): Likewise.
56573         * tests/test-printf-posix.c (ASSERT): Likewise.
56574         * tests/test-quotearg.c (ASSERT): Likewise.
56575         * tests/test-rbtree_list.c (ASSERT): Likewise.
56576         * tests/test-rbtree_oset.c (ASSERT): Likewise.
56577         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
56578         * tests/test-round1.c (ASSERT): Likewise.
56579         * tests/test-roundf1.c (ASSERT): Likewise.
56580         * tests/test-roundl.c (ASSERT): Likewise.
56581         * tests/test-signbit.c (ASSERT): Likewise.
56582         * tests/test-sleep.c (ASSERT): Likewise.
56583         * tests/test-snprintf-posix.c (ASSERT): Likewise.
56584         * tests/test-snprintf.c (ASSERT): Likewise.
56585         * tests/test-sprintf-posix.c (ASSERT): Likewise.
56586         * tests/test-stat-time.c (ASSERT): Likewise.
56587         * tests/test-strcasestr.c (ASSERT): Likewise.
56588         * tests/test-strerror.c (ASSERT): Likewise.
56589         * tests/test-striconv.c (ASSERT): Likewise.
56590         * tests/test-striconveh.c (ASSERT): Likewise.
56591         * tests/test-striconveha.c (ASSERT): Likewise.
56592         * tests/test-strsignal.c (ASSERT): Likewise.
56593         * tests/test-strstr.c (ASSERT): Likewise.
56594         * tests/test-strtod.c (ASSERT): Likewise.
56595         * tests/test-trunc1.c (ASSERT): Likewise.
56596         * tests/test-trunc2.c (ASSERT): Likewise.
56597         * tests/test-truncf1.c (ASSERT): Likewise.
56598         * tests/test-truncf2.c (ASSERT): Likewise.
56599         * tests/test-truncl.c (ASSERT): Likewise.
56600         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
56601         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
56602         * tests/test-vasnprintf.c (ASSERT): Likewise.
56603         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
56604         * tests/test-vasprintf.c (ASSERT): Likewise.
56605         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
56606         * tests/test-vprintf-posix.c (ASSERT): Likewise.
56607         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
56608         * tests/test-vsnprintf.c (ASSERT): Likewise.
56609         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
56610         * tests/test-wcwidth.c (ASSERT): Likewise.
56611         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
56612         * tests/test-xprintf-posix.c (ASSERT): Likewise.
56613         * tests/test-xvasprintf.c (ASSERT): Likewise.
56614         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
56615         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
56616         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
56617         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
56618         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
56619         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
56620         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
56621         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
56622         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
56623         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
56624         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
56625         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
56626         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
56627         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
56628         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
56629         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
56630         * tests/unictype/test-block_list.c (ASSERT): Likewise.
56631         * tests/unictype/test-block_of.c (ASSERT): Likewise.
56632         * tests/unictype/test-block_test.c (ASSERT): Likewise.
56633         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
56634         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
56635         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
56636         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
56637         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
56638         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
56639         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
56640         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
56641         * tests/unictype/test-combining.c (ASSERT): Likewise.
56642         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
56643         * tests/unictype/test-digit.c (ASSERT): Likewise.
56644         * tests/unictype/test-mirror.c (ASSERT): Likewise.
56645         * tests/unictype/test-numeric.c (ASSERT): Likewise.
56646         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
56647         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
56648         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
56649         * tests/unictype/test-scripts.c (ASSERT): Likewise.
56650         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
56651         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
56652         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
56653         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
56654         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
56655         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
56656         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
56657         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
56658         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
56659         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
56660         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
56661         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
56662         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
56663         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
56664         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
56665         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
56666         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
56667         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
56668         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
56669         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
56670         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
56671         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
56672         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
56673         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
56674         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
56675         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
56676         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
56677         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
56678         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
56679         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
56680         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
56681         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
56682         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
56683         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
56684         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
56685         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
56686         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
56687         Reported by Eric Blake.
56688
56689 2008-04-11  Bruno Haible  <bruno@clisp.org>
56690
56691         * lib/wchar.in.h: Tweak comment.
56692
56693 2008-04-11  Bruno Haible  <bruno@clisp.org>
56694
56695         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
56696         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
56697         gl_COMMON.
56698         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
56699
56700 2008-04-11  Bruno Haible  <bruno@clisp.org>
56701
56702         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
56703
56704 2008-04-11  Simon Josefsson  <simon@josefsson.org>
56705
56706         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
56707         of attempting to use non-existing /dev/*random.  Based on patch
56708         from Adam Strzelecki <ono@java.pl> in
56709         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
56710
56711 2008-04-08  Bruno Haible  <bruno@clisp.org>
56712
56713         Add tentative support for emx+gcc.
56714         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
56715         * lib/fpurge.c (fpurge): Likewise.
56716         * lib/freadable.c (freadable): Likewise.
56717         * lib/freadahead.c (freadahead): Likewise.
56718         * lib/freading.c (freading): Likewise.
56719         * lib/freadptr.c (freadptr): Likewise.
56720         * lib/freadseek.c (freadptrinc): Likewise.
56721         * lib/fseeko.c (rpl_fseeko): Likewise.
56722         * lib/fseterr.c (fseterr): Likewise.
56723         * lib/fwritable.c (fwritable): Likewise.
56724         * lib/fwriting.c (fwriting): Likewise.
56725         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
56726
56727 2008-04-09  Eric Blake  <ebb9@byu.net>
56728
56729         Avoid some autoconf warnings.
56730         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
56731         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
56732         * m4/afs.m4 (gl_AFS): Likewise.
56733         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
56734         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
56735         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56736         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
56737         (gl_INTEGER_TYPE_SUFFIX): Likewise.
56738         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
56739         (AC_CHECK_DECLS_ONCE): Likewise.
56740         Rename file...
56741         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
56742         gnulib-tool requires autoconf 2.59 or better.
56743         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
56744
56745 2008-04-08  Eric Blake  <ebb9@byu.net>
56746
56747         Use 'git describe --match' if present (added in git 1.5.5).
56748         * build-aux/git-version-gen: Limit result to tags that match 'v*'
56749         if possible.
56750
56751 2008-04-08  Bruno Haible  <bruno@clisp.org>
56752
56753         Add tentative support for OpenServer.
56754         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
56755         _ptr, _cnt.
56756         * lib/fpurge.c (fpurge): Likewise.
56757         * lib/freadable.c (freadable): Likewise.
56758         * lib/freadahead.c (freadahead): Likewise.
56759         * lib/freading.c (freading): Likewise.
56760         * lib/freadptr.c (freadptr): Likewise.
56761         * lib/freadseek.c (freadptrinc): Likewise.
56762         * lib/fseeko.c (rpl_fseeko): Likewise.
56763         * lib/fseterr.c (fseterr): Likewise.
56764         * lib/fwritable.c (fwritable): Likewise.
56765         * lib/fwriting.c (fwriting): Likewise.
56766         Reported by Roger Cornelius <rac@tenzing.org> and
56767         Brian K. White <brian@aljex.com>.
56768
56769 2008-04-06  Jim Meyering  <meyering@redhat.com>
56770
56771         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
56772
56773 2008-04-06  Bruno Haible  <bruno@clisp.org>
56774
56775         Avoid possible error with non-ASCII bytes in UTF-8 locales.
56776         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
56777         * tests/test-printf-posix.sh: Likewise.
56778         * tests/test-vfprintf-posix.sh: Likewise.
56779         * tests/test-vprintf-posix.sh: Likewise.
56780         * tests/test-xprintf-posix.sh: Likewise.
56781
56782 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56783
56784         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
56785         hide error from 'ls', needed on OS/2.
56786         Report by Elbert Pol <elbert.pol@gmail.com>.
56787
56788 2008-04-04  Eric Blake  <ebb9@byu.net>
56789
56790         Make test-fseeko.c failures meaningful.
56791         * tests/test-fseeko.c: Print line number on failure.
56792         * tests/test-fseek.c: Likewise.
56793         Reported by Nelson H. F. Beebe.
56794
56795         Improve strtod bug detection check.
56796         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
56797         required for Solaris 10.
56798         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
56799
56800 2008-04-04  Bruno Haible  <bruno@clisp.org>
56801
56802         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
56803         by m4/setenv.m4.
56804
56805 2008-04-03  Eric Blake  <ebb9@byu.net>
56806
56807         Ensure sane .version contents.
56808         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56809         version string.
56810         * build-aux/git-version-gen: Improve documentation.
56811
56812         Make GNU make output nicer.
56813         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56814         MAKECMDGOALS to enforce message for all command line targets.  Set
56815         srcdir for use in maint.mk.
56816
56817         Another maintainer tweak.
56818         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56819         a target that regenerates version.
56820
56821 2008-04-03  Jim Meyering  <meyering@redhat.com>
56822
56823         vc-list-files: don't cause coreutils "make po-check" failure
56824         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56825
56826 2008-04-03  Eric Blake  <ebb9@byu.net>
56827
56828         Allow VPATH usage of vc-list-files.
56829         * build-aux/vc-list-files (scriptversion): Add timestamp.
56830         (options): Add --help, --version, -C.
56831         (CVS): Support installed cvsu.
56832
56833 2008-04-02  Bruno Haible  <bruno@clisp.org>
56834
56835         Avoid some "statement with no effect" warnings from gcc.
56836         * tests/test-wctype.c (main): Explicitly ignore unused values.
56837         Reported by Jim Meyering.
56838
56839 2008-04-02  Jim Meyering  <meyering@redhat.com>
56840
56841         Avoid some warnings from "gcc -Wshadow".
56842         * tests/test-frexp.c (exp): Define to a different identifier.
56843         * tests/test-frexpl.c (exp): Likewise.
56844
56845 2008-04-03  Jim Meyering  <meyering@redhat.com>
56846
56847         bootstrap: remove dangling *.[ch] symlinks from lib
56848         * build-aux/bootstrap [dangling symlink removal]: Move find's
56849         -depth option to precede all others, to avoid a warning.
56850         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56851
56852 2008-04-02  Bruno Haible  <bruno@clisp.org>
56853
56854         Avoid some warnings from "gcc -Wshadow".
56855         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56856         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56857         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56858         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56859         Reported by Jim Meyering.
56860
56861 2008-04-01  Bruno Haible  <bruno@clisp.org>
56862
56863         Fix test to work on IRIX 6.5 with cc.
56864         * tests/test-math.c (numeric_equal): New function.
56865         (main): Use it.
56866
56867 2008-04-01  Bruno Haible  <bruno@clisp.org>
56868
56869         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56870
56871 2008-04-01  Bruno Haible  <bruno@clisp.org>
56872
56873         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56874         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56875         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56876         (Depends-on): Remove math.
56877
56878         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56879         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56880         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56881         (Depends-on): Remove math.
56882
56883         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56884         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56885         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56886         (Depends-on): Remove math.
56887         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56888         (Depends-on): Remove math.
56889
56890         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56891         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56892         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56893         (Depends-on): Remove math.
56894         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56895         (Depends-on): Remove math.
56896
56897         * tests/test-round1.c: Include nan.h.
56898         (main): Use NaNd instead of NAN.
56899         * modules/round-tests (Files): Add tests/nan.h.
56900
56901         * tests/test-trunc1.c: Include nan.h.
56902         (main): Use NaNd instead of NAN.
56903         * modules/trunc-tests (Files): Add tests/nan.h.
56904
56905         * tests/test-roundf1.c: Include nan.h.
56906         (main): Use NaNf instead of NAN.
56907         * modules/roundf-tests (Files): Add tests/nan.h.
56908
56909         * tests/test-truncf1.c: Include nan.h.
56910         (main): Use NaNf instead of NAN.
56911         * modules/truncf-tests (Files): Add tests/nan.h.
56912
56913         * tests/test-ceilf1.c: Include nan.h.
56914         (main): Use NaNf instead of NAN.
56915         * modules/ceilf-tests (Files): Add tests/nan.h.
56916
56917         * tests/test-floorf1.c: Include nan.h.
56918         (main): Use NaNf instead of NAN.
56919         * modules/floorf-tests (Files): Add tests/nan.h.
56920
56921         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56922         (main): Use NaNf instead of NAN.
56923         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56924
56925         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56926         (main): Use NaNd instead of NAN.
56927         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56928
56929         * tests/test-frexp.c: Include nan.h.
56930         (main): Use NaNd instead of NAN.
56931         * modules/frexp-tests (Files): Add tests/nan.h.
56932
56933         * lib/isnan.c: Don't include <math.h>.
56934         (FUNC): Don't use NAN macro.
56935         * modules/isnand-nolibm (Depends-on): Remove math.
56936         * modules/isnanf-nolibm (Depends-on): Remove math.
56937         * modules/isnanl (Depends-on): Remove math.
56938         * modules/isnanl-nolibm (Depends-on): Remove math.
56939
56940         * tests/nan.h: New file.
56941
56942 2008-04-01  Eric Blake  <ebb9@byu.net>
56943
56944         Fix typos.
56945         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56946         values to be the right type.
56947
56948         For now, cater to gnulib strtod inaccuracies.
56949         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56950         fractional results.  While not as nice from a QoI perspective, it
56951         is a quicker patch than correctly implementing decimal to binary
56952         rounding.
56953
56954 2008-03-31  Eric Blake  <ebb9@byu.net>
56955
56956         Guarantee a definition of NAN.
56957         * lib/math.in.h (NAN): Define if missing.
56958         * tests/test-math.c (main): Test it.
56959         * doc/posix-headers/math.texi (math.h): Document this.
56960         * lib/isnan.c (rpl_isnand): Use it.
56961         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56962         * tests/test-floorf1.c (NaN): Likewise.
56963         * tests/test-frexp.c (NaN): Likewise.
56964         * tests/test-isnand.c (NaN): Likewise.
56965         * tests/test-isnanf.c (NaN): Likewise.
56966         * tests/test-round1.c (NaN): Likewise.
56967         * tests/test-roundf1.c (NaN): Likewise.
56968         * tests/test-snprintf-posix.h (NaN): Likewise.
56969         * tests/test-sprintf-posix.h (NaN): Likewise.
56970         * tests/test-trunc1.c (NaN): Likewise.
56971         * tests/test-truncf1.c (NaN): Likewise.
56972         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56973         * tests/test-vasprintf-posix.c (NaN): Likewise.
56974         * modules/isnand-nolibm (Depends-on): Add math.
56975         * modules/isnanf-nolibm (Depends-on): Likewise.
56976         * modules/isnanl (Depends-on): Likewise.
56977         * modules/isnanl-nolibm (Depends-on): Likewise.
56978         * modules/snprintf-posix-tests (Depends-on): Likewise.
56979         * modules/sprintf-posix-tests (Depends-on): Likewise.
56980         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56981         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56982         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56983         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56984
56985 2008-03-31  Bruno Haible  <bruno@clisp.org>
56986
56987         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56988         * doc/posix-functions/strtod.texi: Likewise.
56989
56990 2008-03-31  Bruno Haible  <bruno@clisp.org>
56991
56992         * tests/test-strtod.c (main): Don't use C99 syntax.
56993
56994 2008-03-31  Bruno Haible  <bruno@clisp.org>
56995
56996         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56997         Reported by Eric Blake.
56998
56999 2008-03-31  Jim Meyering  <meyering@redhat.com>
57000
57001         Don't compare actual signbit return values.
57002         * tests/test-strtod.c (main): Rather, compare only their
57003         zero/non-zero nature.
57004
57005 2008-03-31  Eric Blake  <ebb9@byu.net>
57006
57007         More strtod documentation.
57008         * doc/posix-functions/strtod.texi (strtod): Interpret more test
57009         failures as distinct bugs.
57010
57011 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57012
57013         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
57014         Problem reported by Erik Benada in
57015         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
57016
57017 2008-03-30  Bruno Haible  <bruno@clisp.org>
57018
57019         * tests/test-strtod.c: Add comments about which assertion fails on which
57020         platform.
57021         * doc/posix-functions/strtod.texi: Add info about many more platforms.
57022
57023 2008-03-30  Eric Blake  <ebb9@byu.net>
57024
57025         Test signbit behavior on zeros.
57026         * tests/test-signbit.c (test_signbitf): Add tests for zero.
57027         (test_signbitd, test_signbitl): Likewise.
57028
57029         More strtod touchups.
57030         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
57031         sign of negative underflow, for now.  Use .5, not .1.
57032         * doc/posix-functions/strtod.texi (strtod): Mention these
57033         limitations.
57034         Reported by Jim Meyering.
57035
57036 2008-03-30  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
57039         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
57040
57041 2008-03-30  Bruno Haible  <bruno@clisp.org>
57042
57043         Avoid failure when attempting to return empty iconv results on some
57044         platforms.
57045         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
57046         allocation, don't report ENOMEM when the resulting string is empty.
57047
57048 2008-03-30  Bruno Haible  <bruno@clisp.org>
57049
57050         Fix buffer overrun.
57051         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
57052         Don't consider the width for tmp_length. Check count against tmp_length
57053         before doing the padding. Ensure enough allocation during padding.
57054
57055 2008-03-30  Eric Blake  <ebb9@byu.net>
57056
57057         strtod touchups.
57058         * lib/strtod.c (strtod): Avoid compiler warnings.
57059         Reported by Jim Meyering.
57060
57061 2008-03-30  Bruno Haible  <bruno@clisp.org>
57062
57063         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
57064         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
57065         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
57066         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
57067         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
57068         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
57069         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
57070         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
57071
57072         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
57073         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
57074         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
57075         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
57076         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
57077         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
57078         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
57079         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
57080
57081         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
57082         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
57083         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
57084         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
57085         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
57086         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
57087         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
57088         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
57089
57090         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
57091         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
57092
57093         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
57094         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
57095
57096         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
57097         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
57098
57099         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
57100         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
57101         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
57102
57103         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
57104         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
57105         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
57106
57107         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
57108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
57109         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
57110
57111         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
57112         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
57113         * modules/vasprintf (Depends-on): Add EOVERFLOW.
57114
57115         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
57116         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
57117         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
57118         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
57119         (Depends-on): Add EOVERFLOW.
57120         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
57121         (Depends-on): Add EOVERFLOW.
57122         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57123         (Depends-on): Add EOVERFLOW.
57124         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
57125         (Depends-on): Add EOVERFLOW.
57126         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57127         (Depends-on): Add EOVERFLOW.
57128         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
57129         (Depends-on): Add EOVERFLOW.
57130         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57131         (Depends-on): Add EOVERFLOW.
57132         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
57133         (Depends-on): Add EOVERFLOW.
57134
57135         * lib/sprintf.c (EOVERFLOW): Remove fallback.
57136         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
57137         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
57138
57139         * lib/snprintf.c (EOVERFLOW): Remove fallback.
57140         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
57141         * modules/snprintf (Depends-on): Add EOVERFLOW.
57142
57143         * lib/poll.c (EOVERFLOW): Remove fallback.
57144         * modules/poll (Depends-on): Add EOVERFLOW.
57145
57146         * lib/getugroups.c (EOVERFLOW): Remove fallback.
57147         * modules/getugroups (Depends-on): Add EOVERFLOW.
57148
57149         * lib/getdelim.c (EOVERFLOW): Remove fallback.
57150         * modules/getdelim (Depends-on): Add EOVERFLOW.
57151
57152         * lib/ftell.c (EOVERFLOW): Remove fallback.
57153         * modules/ftell (Depends-on): Add EOVERFLOW.
57154
57155         * lib/fprintf.c (EOVERFLOW): Remove fallback.
57156         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
57157         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
57158
57159         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
57160
57161         * modules/EOVERFLOW-tests: New file.
57162         * tests/test-EOVERFLOW.c: New file.
57163
57164         * modules/EOVERFLOW: New file.
57165         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
57166
57167 2008-03-30  Bruno Haible  <bruno@clisp.org>
57168
57169         Fix bug introduced on 2007-06-10.
57170         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
57171         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
57172
57173 2008-03-30  Bruno Haible  <bruno@clisp.org>
57174
57175         Improve freadseek's efficiency after ungetc.
57176         * lib/freadseek.c: Include freadahead.h.
57177         (freadptrinc): New function, extracted from freadseek.
57178         (freadseek): Use it in a loop. Use freadahead to determine the number
57179         of loop iterations.
57180         * modules/freadseek (Depends-on): Add freadahead.
57181         (configure.ac): Require AC_C_INLINE.
57182
57183 2008-03-30  Bruno Haible  <bruno@clisp.org>
57184
57185         * lib/freadseek.c (freadseek): Don't ignore the return value of
57186         freadptr.
57187
57188 2008-03-29  Eric Blake  <ebb9@byu.net>
57189
57190         Add hex float support.
57191         * modules/strtod (Depends-on): Add c-ctype.
57192         (Link): Mention POW_LIB.
57193         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
57194         whitespace between 'e' and exponent.
57195         * tests/test-strtod.c (main): Enable hex float tests.
57196         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
57197         now provides.
57198
57199         Document various strtod bugs, with some fixes.
57200         * doc/posix-functions/strtod.texi (strtod): Document bugs with
57201         "-0x", "inf", "nan", and hex constants.
57202         * doc/posix-functions/atof.texi (atof): Likewise.
57203         * modules/stdlib (Makefile.am): Support strtod.
57204         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
57205         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
57206         detect additional strtod bugs.
57207         * lib/stdlib.in.h (rpl_strtod): Add declarations.
57208         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
57209         bool where appropriate.  Parse 'inf' and 'nan'.
57210         * tests/test-strtod.c: New file.
57211         * modules/strtod (Depends-on): Add stdbool, stdlib.
57212         (configure.ac): Turn on module indicator.
57213         * modules/strtod-tests: New module.
57214
57215 2008-03-29  Eric Blake  <ebb9@byu.net>
57216
57217         Fix ftell on mingw.
57218         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
57219         * modules/ftell-tests (Depends-on): Add binary-io.
57220         * modules/ftello-tests (Depends-on): Likewise.
57221         * tests/test-ftell.c (main): Enhance test to cover behavior after
57222         ungetc.  Enforce binary mode.
57223         * tests/test-ftello.c (main): Likewise.
57224
57225         Pass test-freadseek on cygwin.
57226         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
57227         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
57228         ungetc buffer.
57229
57230         * tests/test-fflush2.c (main): Fix typo.
57231
57232 2008-03-29  Bruno Haible  <bruno@clisp.org>
57233
57234         * tests/test-fflush2.c (main): Temporarily disable the contents of
57235         this test.
57236         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
57237         Reported by Eric Blake.
57238
57239 2008-03-28  Simon Josefsson  <simon@josefsson.org>
57240
57241         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
57242         (GC_SHA224_DIGEST_SIZE): Add.
57243
57244         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
57245         (gc_hash_digest_length): Likewise.
57246         (gc_hash_buffer): Likewise.
57247
57248 2008-03-25  Bruno Haible  <bruno@clisp.org>
57249
57250         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
57251         detail which gettext release to use.
57252         Reported by Simon Josefsson.
57253
57254 2008-03-26  Jim Meyering  <meyering@redhat.com>
57255
57256         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
57257         * modules/gnumakefile (clean-GNUmakefile): Also, use
57258         test ... && ... || : syntax rather than if-then ... fi.
57259
57260         gnumakefile: Don't double-quote-expand $(VPATH) value.
57261         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
57262
57263 2008-03-24  Eric Blake  <ebb9@byu.net>
57264
57265         Alter GNUmakefile to install into top directory.
57266         * modules/maintainer-makefile: Split, and add dependency...
57267         * modules/gnumakefile: to this new module.
57268         * build-aux/GNUmakefile: Move...
57269         * top/GNUmakefile: ...here.
57270         * build-aux/maint.mk: Move...
57271         * top/maint.mk: ...here.
57272         * MODULES.html.sh (Support for maintaining...): Document new
57273         module.
57274
57275 2008-03-23  Bruno Haible  <bruno@clisp.org>
57276
57277         * gnulib-tool: New options --vc-files, --no-vc-files.
57278         (func_usage): Document them.
57279         (vc_files): New variable.
57280         (func_import): Consider vc_files.
57281         (func_create_testdir): Set vc_files to empty.
57282         Suggested by Jim Meyering and Karl Berry.
57283
57284 2008-03-23  Bruno Haible  <bruno@clisp.org>
57285
57286         Fix regex compilation error on HP-UX 11.
57287         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
57288         * modules/regex (Files): Add m4/mbstate_t.m4.
57289         Reported by Ton Voon <ton.voon@altinity.com>.
57290
57291 2008-03-23  Bruno Haible  <bruno@clisp.org>
57292
57293         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
57294
57295 2008-03-23  Eric Blake  <ebb9@byu.net>
57296             Bruno Haible  <bruno@clisp.org>
57297
57298         Install files from top/ in the destination directory.
57299         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57300         augmentation also for the files from top/.
57301         (func_import, func_create_testdir): Rewrite file names:
57302         top/filename -> filename.
57303
57304 2008-03-23  Bruno Haible  <bruno@clisp.org>
57305
57306         Tweak "gnulib --version" output.
57307         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
57308
57309 2008-03-23  Bruno Haible  <bruno@clisp.org>
57310
57311         Tweak "gnulib --version" output.
57312         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
57313         rather than contents of ChangeLog, when possible.
57314
57315 2008-03-21  Eric Blake  <ebb9@byu.net>
57316
57317         More --version tweaks.
57318         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
57319         date of last ChangeLog entry.
57320
57321 2008-03-21  Jim Meyering  <meyering@redhat.com>
57322
57323         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
57324
57325 2008-03-20  Eric Blake  <ebb9@byu.net>
57326
57327         VPATH fix.
57328         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
57329
57330 2008-03-20  Simon Josefsson  <simon@josefsson.org>
57331
57332         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
57333         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
57334
57335 2008-03-20  Eric Blake  <ebb9@byu.net>
57336
57337         Sync GNUmakefile with coreutils.
57338         * build-aux/GNUmakefile (have-Makefile): Rename...
57339         (_have-Makefile): ...to this, for namespace consideration.
57340         (GNUmakefile.cfg): Include, if present.
57341         (_autoreconf): Define a default.
57342         (_is-dist-target): New rule for rebuilds to pick up intra-release
57343         version.
57344         (maint-cfg.mk): Rename...
57345         (cfg.mk): ...to this.
57346
57347 2008-03-18  Jim Meyering  <meyering@redhat.com>
57348
57349         New script and module: mktempd
57350         * MODULES.html.sh (maint+release support): Add mktempd.
57351         * build-aux/mktempd: New file.
57352         * modules/mktempd: New file.
57353
57354 2008-03-15  Jim Meyering  <meyering@redhat.com>
57355
57356         Undo last change.
57357         * lib/sha1.c, lib/md5.c: 63 != ~63.
57358         Reported by Andreas Schwab.
57359
57360         sha1.c, md5.c: Hoist a redundant expression.
57361         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
57362         "ctx->buflen" only once, before calling *_process_block.
57363         * lib/md5.c (md5_process_bytes): Likewise.
57364
57365 2008-03-14  Eric Blake  <ebb9@byu.net>
57366
57367         Bump copyright year in files generated by gnulib-tool.
57368         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
57369         gnulib-tool, rather than hard-coding it.
57370
57371         Fix 'gnulib-tool --version' output to work with git.
57372         * gnulib-tool (func_gnulib_dir): New function, extracted from...
57373         (startup): ...here.
57374         (func_version): Use it to invoke git-version-gen, rather than
57375         relying on CVS keyword expansion.  Modernize wording.
57376         (cvsdatestamp, last_checkin_date, version): Kill unused
57377         variables.
57378
57379 2008-03-12  Jim Meyering  <meyering@redhat.com>
57380
57381         Recognize optional cast of the argument to free.
57382         * build-aux/useless-if-before-free: Update regexps.
57383
57384         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
57385
57386 2008-03-11  Bruno Haible  <bruno@clisp.org>
57387
57388         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
57389         by a single package.
57390         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
57391         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
57392         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
57393         Reported by Sam Steingold <sds@gnu.org>.
57394
57395 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
57396
57397         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
57398         repositories.
57399
57400 2008-03-11  Bruno Haible  <bruno@clisp.org>
57401
57402         Avoid conflicts between local macro definitions.
57403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57404         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
57405
57406 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
57407             Bruno Haible  <bruno@clisp.org>
57408
57409         Make va_copy work with some version of xlc on AIX 5.1.
57410         * lib/stdarg.in.h: New file.
57411         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
57412         On AIX, use a <stdarg.h> file substitute.
57413         * modules/stdarg (Files): Add lib/stdarg.in.h.
57414         (Depends-on): Add include_next.
57415         (Makefile.am): Build a stdarg.h substitute if requested.
57416         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
57417
57418 2008-03-10  Bruno Haible  <bruno@clisp.org>
57419
57420         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
57421         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
57422         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57423
57424 2008-03-10  Bruno Haible  <bruno@clisp.org>
57425
57426         * modules/stdlib (Depends-on): Add include_next, remove
57427         absolute-header.
57428
57429 2008-03-09  Bruno Haible  <bruno@clisp.org>
57430
57431         * lib/freadahead.h (freadahead): Document more precisely.
57432         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
57433         the sum of both buffer sizes.
57434         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
57435         * NEWS: Document the change.
57436
57437 2008-03-09  Bruno Haible  <bruno@clisp.org>
57438
57439         Extend freadptr to return also the buffer size.
57440         * lib/freadptr.h (freadptr): Add sizep argument.
57441         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
57442         (freadptr): Add sizep argument. Determine buffer size like freadahead
57443         does.
57444         * tests/test-freadptr.c: Don't include freadahead.h.
57445         (main): Adapt for new calling convention of freadptr.
57446         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
57447         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
57448         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
57449         tests/test-freadptr2.sh.
57450         (Depends): Remove freadahead.
57451         (TESTS): Add test-freadptr2.sh.
57452         (check_PROGRAMS): Add test-freadptr2.
57453
57454 2008-03-09  Bruno Haible  <bruno@clisp.org>
57455
57456         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
57457         Report and solution by Simon Josefsson.
57458
57459 2008-03-06  Bruno Haible  <bruno@clisp.org>
57460
57461         Make fflush after ungetc work on BSD platforms.
57462         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
57463         * tests/test-fflush2.c: New file.
57464         * tests/test-fflush2.sh: New file.
57465         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
57466         tests/test-fflush2.c.
57467         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
57468         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
57469
57470 2008-03-06  Eric Blake  <ebb9@byu.net>
57471
57472         Likewise for ftello.
57473         * modules/ftello (Dependencies): Add extensions.
57474         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
57475
57476 2008-03-06  Bruno Haible  <bruno@clisp.org>
57477
57478         * modules/fseeko (Dependencies): Add extensions.
57479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
57480         Needed on glibc systems.
57481
57482 2008-03-06  Bruno Haible  <bruno@clisp.org>
57483
57484         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
57485         email address.
57486         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57487
57488 2008-03-06  Bruno Haible  <bruno@clisp.org>
57489
57490         * users.txt: Add libgnupdf.
57491
57492 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
57493
57494         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
57495         (Header File Substitutes, Function Substitutes,
57496         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
57497         (Build robot for gnulib): Fix typo.
57498
57499 2008-03-06  Bruno Haible  <bruno@clisp.org>
57500
57501         * doc/gnulib-tool.texi (VCS Issues): Small updates.
57502         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57503
57504 2008-03-06  Bruno Haible  <bruno@clisp.org>
57505
57506         * doc/func.texi: New file, extracted from doc/gnulib.texi.
57507         * doc/gnulib.texi: Include it.
57508
57509 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57510
57511         * modules/func (License): Change license to unlimited; there was
57512         no LGPL parts in the module anyway.
57513
57514 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57515
57516         * modules/__func__: Renamed to modules/func.
57517         * modules/__func__-tests: Renamed to modules/func-tests.
57518         * tests/test-__func__.c: Renamed to tests/test-func.c.
57519         * m4/__func__.m4: Renamed to m4/func.m4.
57520         * doc/gnulib.texi (__func__): Section renamed to func.
57521         Suggested by Eric Blake <ebb9@byu.net>.
57522
57523 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57524
57525         * doc/gnulib.texi (__func__): Use C99 terminology when talking
57526         about __func__.  Make example self-contained.  Suggested by Eric
57527         Blake <ebb9@byu.net>.
57528
57529         * tests/test-__func__.c (main): Avoid extraneous () around __func.
57530         Suggested by Eric Blake <ebb9@byu.net>.
57531
57532 2008-03-06  Simon Josefsson  <simon@josefsson.org>
57533
57534         * modules/__func__: New file.
57535         * modules/__func__-tests: New file.
57536         * tests/test-__func__.c: New file.
57537         * m4/__func__.m4: New file.
57538         * doc/gnulib.texi (__func__): Document __func__ module.
57539
57540 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57541
57542         * modules/byteswap (License): Re-license as LGPLv2+.
57543
57544 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57545
57546         * doc/Makefile: Add pdf target.
57547
57548 2008-03-05  Simon Josefsson  <simon@josefsson.org>
57549
57550         * modules/inline (License): Use 'unlimited', since there are only
57551         *.m4 files in this module.
57552
57553 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57554             Bruno Haible  <bruno@clisp.org>
57555
57556         Add support for HP C 7.1 on OpenVMS 8.3.
57557         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
57558
57559 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
57560
57561         Update VMS specifics.
57562         * lib/getopt.c [VMS]: Remove include of unixlib.h.
57563
57564 2008-03-02  Jim Meyering  <meyering@redhat.com>
57565
57566         Remove the last dependency on the "free" module.
57567         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
57568         Reported by Bob Proulx.
57569
57570         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
57571
57572         Remove useless "if" tests before free.  Deprecate "free" module.
57573         * doc/posix-functions/free.texi: Mention that this
57574         module is no longer useful.
57575         * modules/free (Notice): Say this module is obsolete.
57576         * modules/readutmp (Depends-on): Remove free.
57577         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
57578         * lib/putenv.c (putenv): Likewise.
57579         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
57580         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
57581         * tests/test-c-strcasestr.c (main): Likewise.
57582         * tests/test-c-strstr.c (main): Likewise.
57583         * tests/test-mbscasestr1.c (main): Likewise.
57584         * tests/test-mbscasestr2.c (main): Likewise.
57585         * tests/test-mbsstr1.c (main): Likewise.
57586         * tests/test-mbsstr2.c (main): Likewise.
57587         * tests/test-memmem.c (main): Likewise.
57588         * tests/test-strcasestr.c (main): Likewise.
57589         * tests/test-striconv.c (main): Likewise.
57590         * tests/test-striconveh.c (main): Likewise.
57591         * tests/test-striconveha.c (main): Likewise.
57592         * tests/test-strstr.c (main): Likewise.
57593
57594         * build-aux/git-version-gen: Adjust a comment and the Usage string.
57595
57596         bootstrap: sync from coreutils again
57597         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
57598
57599 2008-03-01  Jim Meyering  <meyering@redhat.com>
57600
57601         bootstrap: sync from coreutils
57602         * build-aux/bootstrap (update_po_files): Copy a .po file into place
57603         also when the target doesn't exist.
57604
57605 2008-03-01  Eric Blake  <ebb9@byu.net>
57606
57607         Fix bugs in last patch.
57608         * lib/memchr2.c (memchr2): Fix typo.
57609         * tests/test-memchr2.c: Test previous bug, and don't use GNU
57610         extension.
57611         Reported by Bruce Korb.
57612
57613         New module 'memchr2'.
57614         * modules/memchr2: New file.
57615         * modules/memchr2-tests: Likewise.
57616         * lib/memchr2.h: Likewise.
57617         * lib/memchr2.c: Likewise, based on memchr.c.
57618         * tests/test-memchr2.c: New test.
57619         * MODULES.html.sh (String handling): Add memchr2.
57620
57621 2008-02-29  Bruno Haible  <bruno@clisp.org>
57622
57623         * modules/freadseek-tests: New file.
57624         * tests/test-freadseek.sh: New file.
57625         * tests/test-freadseek.c: New file.
57626
57627         New module 'freadseek'.
57628         * modules/freadseek: New file.
57629         * lib/freadseek.h: New file.
57630         * lib/freadseek.c: New file.
57631         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
57632
57633 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
57634
57635         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
57636         wydawca.
57637
57638         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
57639         program_invocation_name and program_invocation_short_name are
57640         present.
57641
57642 2008-02-28  Bruno Haible  <bruno@clisp.org>
57643
57644         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
57645         * tests/test-freadptr.sh: Also test non-seekable stdin.
57646
57647 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
57648
57649         * build-aux/bootstrap (source_base, m4_base)
57650         (doc_base, tests_base): New variables.
57651         (gnulib_tool_options): Do not hardcode base directories, use
57652         the above variables instead.
57653
57654 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
57655
57656         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
57657
57658 2008-02-28  Bruno Haible  <bruno@clisp.org>
57659
57660         * modules/freadptr-tests: New file.
57661         * tests/test-freadptr.sh: New file.
57662         * tests/test-freadptr.c: New file.
57663
57664         New module 'freadptr'.
57665         * modules/freadptr: New file.
57666         * lib/freadptr.h: New file.
57667         * lib/freadptr.c: New file.
57668         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
57669
57670 2008-02-26  Karl Berry  <karl@freefriends.org>
57671
57672         Sync from Libtool:
57673         * libltdl/argz.c (argz_add, argz_count): New functions.
57674         * libltdl/argz.in.h: Declare them.
57675         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
57676
57677 2008-02-22  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
57680         is a pointer type.  Needed for HP-UX 10.
57681         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
57682         * doc/posix-functions/gmtime_r.texi: Likewise.
57683         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
57684
57685 2008-02-24  Bruno Haible  <bruno@clisp.org>
57686
57687         * modules/environ-tests: New file.
57688         * tests/test-environ.c: New file.
57689
57690         New module 'environ'.
57691         * modules/environ: New file.
57692         * lib/unistd.in.h (environ): New declaration.
57693         * m4/environ.m4: New file.
57694         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
57695         after use.
57696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
57697         HAVE_DECL_ENVIRON.
57698         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
57699         HAVE_DECL_ENVIRON.
57700         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
57701         wrong claim that 'environ' is missing on some systems.
57702         * modules/execute (Depends-on): Add environ.
57703         * lib/execute.c (environ): Remove fallback declaration.
57704         * modules/pipe (Depends-on): Add environ.
57705         * lib/pipe.c (environ): Remove fallback declaration.
57706         * modules/setenv (Depends-on): Add environ.
57707         * lib/setenv.c (environ): Remove fallback declaration.
57708         * modules/unsetenv (Depends-on): Add environ.
57709         * lib/unsetenv.c (environ): Remove fallback declaration.
57710         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
57711         m4/environ.m4.
57712         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
57713         (gl_PREREQ_UNSETENV): Likewise.
57714
57715 2008-02-24  Bruno Haible  <bruno@clisp.org>
57716
57717         * doc/posix-functions/environ.texi: Document the MacOS X problem.
57718
57719 2008-02-20  Bob Proulx  <bob@proulx.com>
57720
57721         Enable use of older two part flavor 'git describe'.
57722         * build-aux/git-version-gen: If using the older two part flavor of
57723         git version then recreate the third part now present in the
57724         newer three part flavor of git describe.
57725
57726 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
57727
57728         * lib/fts.c (fts_build): Typo correction to comment.
57729
57730 2008-02-17  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
57733         generating no-op conflicts.
57734
57735 2008-02-17  Bruno Haible  <bruno@clisp.org>
57736
57737         Speed up by 10%.
57738         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
57739         result_entries, rather than an index-based loop.
57740
57741 2008-02-17  Bruno Haible  <bruno@clisp.org>
57742
57743         Speed up by 25%.
57744         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
57745         'hashcode_cached'.
57746         (entry_create): New function.
57747         (entry_hashcode): Use the cached hashcode if possible.
57748         (read_changelog_file, try_split_merged_entry): Use entry_create.
57749
57750 2008-02-17  Bruno Haible  <bruno@clisp.org>
57751
57752         Speed up from O(n^2) to O(n) for long ChangeLog files.
57753         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
57754         (read_changelog_file): Change implementation of entries_reversed list
57755         to rbtreehash.
57756         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
57757
57758 2008-02-17  Bruno Haible  <bruno@clisp.org>
57759
57760         New option --split-merged-entry.
57761         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
57762         (find_paragraph_end, try_split_merged_entry): New functions.
57763         (long_options): Add option --split-merged-entry.
57764         (usage): Document option --split-merged-entry.
57765         (main): Implement option --split-merged-entry.
57766         Reported by Eric Blake.
57767
57768 2008-02-17  Bruno Haible  <bruno@clisp.org>
57769
57770         * lib/git-merge-changelog.c: Include c-strstr.h.
57771         (main): Support the "git pull --rebase" situation.
57772         * modules/git-merge-changelog (Depends-on): Add c-strstr.
57773         Reported by Eric Blake.
57774
57775 2008-02-16  Eric Blake  <ebb9@byu.net>
57776
57777         Avoid doubling \ in common case of "c-maybe" quoting style.
57778         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
57779         eliding outer quotes.
57780         * lib/quotearg.h: Document this.
57781         * tests/test-quotearg.c (result_strings, inputs, results_g)
57782         (flag_results, locale_results): Test it by adding a new string to
57783         each test group.
57784         (compare_strings): Test new string.
57785
57786 2008-02-13  Eric Blake  <ebb9@byu.net>
57787
57788         Avoid trigraph quoting in default output.
57789         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
57790         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
57791         unless explicitly requested.
57792         * tests/test-quotearg.c (flag_results, main): Add additional tests.
57793
57794 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
57795
57796         Don't rely on signed integer overflowing to negative value.
57797         * lib/getugroups.c (getugroups): Include <limits.h>.
57798         Instead, compare against INT_MAX, and increment only if the test passes.
57799
57800 2008-02-13  Jim Meyering  <meyering@redhat.com>
57801         and Eric Blake  <ebb9@byu.net>
57802
57803         Avoid shadowing warning and compile errors on Linux.
57804         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
57805         forwarding macros on Linux.
57806         (dcgettext): Define a stub, for Linux.
57807         (results_g, main): Avoid warnings.
57808
57809 2008-02-12  Eric Blake  <ebb9@byu.net>
57810
57811         Silence warning in last patch.
57812         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57813
57814         Quotearg part 4: add tests, fix c-maybe colon quoting.
57815         * lib/quotearg.h: Improve documentation.
57816         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57817         escapes when adding outer quotes.  When quoting trigraphs, use
57818         valid C notation.  When quoting NUL, omit extra characters if next
57819         character is not digit.  Alter prototype.
57820         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57821         callers.
57822         * modules/quotearg-tests: New module.
57823         * tests/test-quotearg.c: New test.
57824
57825 2008-02-07  Eric Blake  <ebb9@byu.net>
57826
57827         Quotearg part 3: add flag to control outer quote elision.
57828         * lib/quotearg.h (c_maybe_quoting_style): New style.
57829         (enum quoting_flags): Better documentation of flags.
57830         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57831         c-maybe style.
57832         (quotearg_buffer_restyled): Handle new flag to elide outer
57833         quotes.
57834
57835         Quotearg part 2: add flag that can control NUL elision.
57836         * lib/quotearg.h (set_quoting_flags): New prototype.
57837         * lib/quotearg.c (struct quoting_options): Add flag field.
57838         (set_quoting_flags): New function.
57839         (quotearg_buffer_restyled): Add flags parameter.
57840         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57841         (quotearg_n_options): Set the flag, since length cannot be
57842         returned.
57843         (quoting_options_from_style): Default flags correctly.
57844
57845         Quotearg part 1: more wrappers, restore quotearg_char state.
57846         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57847         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57848         (quotearg_colon_mem): New wrappers.
57849         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57850         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57851         functions.
57852         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57853         (quotearg_colon_mem): New functions.
57854
57855 2008-02-11  Bruno Haible  <bruno@clisp.org>
57856
57857         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57858         library in the current directory: it does not work with parallel make.
57859         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57860
57861 2008-02-11  Bruno Haible  <bruno@clisp.org>
57862
57863         * .gitattributes: New file.
57864
57865 2008-02-11  Jim Meyering  <meyering@redhat.com>
57866
57867         useless-if-before-free: Fix reversed exit values.
57868         * build-aux/useless-if-before-free: Use correct values
57869         for EXIT_MATCH and EXIT_NO_MATCH.
57870
57871         * build-aux/useless-if-before-free: Close stdout carefully.
57872
57873 2008-02-10  Bruno Haible  <bruno@clisp.org>
57874
57875         New module 'git-merge-changelog'.
57876         * modules/git-merge-changelog: New file.
57877         * lib/git-merge-changelog.c: New file.
57878
57879 2008-02-10  Jim Meyering  <meyering@redhat.com>
57880
57881         useless-if-before-free: New option: --list (-l).
57882
57883         useless-if-before-free: Don't exit immediately upon open failure.
57884         * build-aux/useless-if-before-free: Exit 2 for errors.
57885         Upon failure to open a file, don't exit immediately.
57886         Rather, just warn and continue with any remaining files.
57887
57888 2008-02-10  Bruno Haible  <bruno@clisp.org>
57889
57890         New abstract list operation 'node_set_value'.
57891         * lib/gl_list.h (gl_list_node_set_value): New function.
57892         (struct gl_list_implementation): New field node_set_value.
57893         * lib/gl_list.c (gl_list_node_set_value): New function.
57894         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57895         (gl_array_list_implementation): Update.
57896         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57897         (gl_carray_list_implementation): Update.
57898         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57899         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57900         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57901         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57902         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57903         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57904         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57905         Update.
57906         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57907         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57908         (gl_sublist_list_implementation): Update.
57909
57910 2008-02-10  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57913         Needed when ELEMENT is #defined to 'some_type *'.
57914
57915 2008-02-10  Jim Meyering  <meyering@redhat.com>
57916
57917         New script and module: useless-if-before-free
57918         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57919         * build-aux/useless-if-before-free: New file.
57920         * modules/useless-if-before-free: New file.
57921
57922         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57923
57924         xstrtol_error: Fix typo.
57925         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57926         s/exit_failure/exit_status/.
57927
57928 2008-02-09  Jim Meyering  <meyering@redhat.com>
57929
57930         New script and module: gitlog-to-changelog
57931         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57932         * modules/gitlog-to-changelog: New file.
57933         * build-aux/gitlog-to-changelog: New file.
57934
57935 2008-02-08  Jim Meyering  <meyering@redhat.com>
57936
57937         Avoid two "parameter unused" warnings.
57938         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57939         Mark "st" as used.
57940
57941         Use "git COMMAND", not "git-COMMAND".
57942         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57943         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57944         * build-aux/git-version-gen: Use "git status", not "git-status".
57945
57946 2008-02-07  Bruno Haible  <bruno@clisp.org>
57947
57948         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57949         Avoids a crash on Windows Vista.
57950         Reported by Adam Strzelecki <ono@java.pl> via
57951         Simon Josefsson <simon@josefsson.org>.
57952
57953 2008-02-06  Bruno Haible  <bruno@clisp.org>
57954
57955         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57956         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57957         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57959         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57960         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57961         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57962         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57963         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57964         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57970         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57971         left-adjust flag.
57972         * tests/test-snprintf-posix.h (test_function): Likewise.
57973         * tests/test-sprintf-posix.h (test_function): Likewise.
57974         * tests/test-vasprintf-posix.c (test_function): Likewise.
57975         * doc/posix-functions/fprintf.texi: Update.
57976         * doc/posix-functions/printf.texi: Update.
57977         * doc/posix-functions/snprintf.texi: Update.
57978         * doc/posix-functions/sprintf.texi: Update.
57979         * doc/posix-functions/vfprintf.texi: Update.
57980         * doc/posix-functions/vprintf.texi: Update.
57981         * doc/posix-functions/vsnprintf.texi: Update.
57982         * doc/posix-functions/vsprintf.texi: Update.
57983         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57984
57985 2008-02-06  Bruno Haible  <bruno@clisp.org>
57986
57987         Fix bug introduced on 2008-01-26.
57988         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57989
57990 2008-02-06  Bruno Haible  <bruno@clisp.org>
57991
57992         Fix bug introduced on 2007-06-10.
57993         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57994         !NEED_PRINTF_FLAG_ZERO.
57995
57996 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57997
57998         getloadavg: use libperfstat on AIX5
57999         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
58000
58001 2008-02-03  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/diffseq.h: Add comments about required #includes.
58004         Reported by Michael Biggs <gnulib@doubleplum.net>.
58005
58006 2008-02-01  Bruno Haible  <bruno@clisp.org>
58007
58008         * users.txt: Add gnuit.
58009
58010 2008-01-31  Bruno Haible  <bruno@clisp.org>
58011
58012         * lib/md4.c (set_uint32): Mark as inline.
58013         * lib/md5.c (set_uint32): Likewise.
58014         * lib/sha1.c (set_uint32): Likewise.
58015         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
58016         * m4/md5.m4 (gl_MD5): Likewise.
58017         * m4/sha1.m4 (gl_SHA1): Likewise.
58018
58019 2008-01-31  Jim Meyering  <meyering@redhat.com>
58020
58021         Use "sizeof VAR", rather than a literal "4".
58022         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
58023         * lib/md4.c (md4_read_ctx): Likewise.
58024         * lib/sha1.c (sha1_read_ctx): Likewise.
58025
58026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58027
58028         * tests/test-sha1.c: New file, based on test-md5.c.
58029
58030         * modules/crypto/sha1-tests: New file.
58031
58032 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58033
58034         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
58035
58036 2008-01-31  Jim Meyering  <meyering@redhat.com>
58037
58038         Prefer "sizeof v" over the equivalent "4".
58039         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
58040         * lib/md5.c (set_uint32): Likewise.
58041         * lib/sha1.c (set_uint32): Likewise.
58042
58043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58044
58045         * lib/sha1.c (set_uint32): Mark function as static.
58046
58047 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58048
58049         md2: clarify comments to say that alignment is not required.
58050         * lib/md2.h: Remove warning about alignment in comment.
58051         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
58052         never been required.
58053
58054 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58055
58056         md4: adapt alignment constraint fix from sha1.
58057         * lib/md4.c (set_uint32): New function, from sha1.c
58058         (md4_read_ctx): Use it.
58059         (md4_finish_ctx): Doc fix.
58060         * lib/md4.h: Doc fix.
58061
58062 2008-01-31  Simon Josefsson  <simon@josefsson.org>
58063
58064         md5: adapt alignment constraint fix from sha1.
58065         * lib/md5.c (set_uint32): New function, from sha1.c
58066         (md5_read_ctx): Use it.
58067         (md5_finish_ctx): Doc fix.
58068         * lib/md5.h: Doc fix.
58069
58070 2008-01-30  Peter Palfrader  <weasel@debian.org>
58071
58072         sha1: remove the result buffer alignment constraint
58073         * lib/sha1.c (set_uint32): New function.
58074         (sha1_read_ctx): Rewrite to remove the result buffer alignment
58075         constraint.
58076         (sha1_finish_ctx): Remove comment warning about alignment constraint.
58077         * lib/sha1.h: Likewise.
58078
58079 2008-01-30  Andreas Schwab  <schwab@suse.de>
58080             Bruno Haible  <bruno@clisp.org>
58081
58082         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
58083         correct definition of LDBL_MIN_EXP.
58084
58085 2008-01-30  Karl Berry  <karl@gnu.org>
58086
58087         * config/srclist-update: try to preserve x bit on updates.
58088         * config/srclistvars.sh: update for karl.
58089
58090 2008-01-29  Jim Meyering  <meyering@redhat.com>
58091
58092         vasnprintf.c: Avoid warning about unused label
58093         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
58094         "overflow" label definition and associated code with the
58095         same cpp condition that guards the sole use of that label.
58096
58097 2008-01-26  Bruno Haible  <bruno@clisp.org>
58098
58099         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
58100         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
58101         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
58102         * lib/isnanl-nolibm.h (isnanl): Likewise.
58103         Reported by Paul Eggert <eggert@cs.ucla.edu>.
58104
58105 2008-01-26  Bruno Haible  <bruno@clisp.org>
58106
58107         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
58108         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
58109
58110 2008-01-26  Bruno Haible  <bruno@clisp.org>
58111
58112         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
58113         GCC >= 4.0 built-in.
58114         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
58115
58116 2008-01-26  Bruno Haible  <bruno@clisp.org>
58117
58118         Rename isnan, applicable to 'double' only, to isnand.
58119         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
58120         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
58121         (configure.ac): Update.
58122         (Include): Replace "isnan.h" with "isnand.h".
58123         * m4/isnand.m4: Renamed from m4/isnan.m4.
58124         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
58125         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
58126         instead of isnan.c.
58127         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
58128         instead of HAVE_ISNAN_IN_LIBC.
58129         (isnand): Renamed from isnan.
58130         * lib/isnand.c: New file.
58131         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
58132         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
58133         (Makefile.am): Update.
58134         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
58135         Include isnand.h instead of isnan.h.
58136         (main): Test isnand instead of isnan.
58137         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
58138         isnan-nolibm.
58139         * modules/frexp (Depends-on): Likewise.
58140         * modules/frexp-tests (Depends-on): Likewise.
58141         * modules/frexp-nolibm (Depends-on): Likewise.
58142         * modules/frexp-nolibm-tests (Depends-on): Likewise.
58143         * modules/isfinite (Depends-on): Likewise.
58144         * modules/round-tests (Depends-on): Likewise.
58145         * modules/signbit (Depends-on): Likewise.
58146         * modules/signbit-tests (Depends-on): Likewise.
58147         * modules/snprintf-posix (Depends-on): Likewise.
58148         * modules/sprintf-posix (Depends-on): Likewise.
58149         * modules/trunc-tests (Depends-on): Likewise.
58150         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58151         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58152         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58153         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58154         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58155         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58156         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58157         * modules/vasnprintf-posix (Depends-on): Likewise.
58158         * modules/vasprintf-posix (Depends-on): Likewise.
58159         * modules/vfprintf-posix (Depends-on): Likewise.
58160         * modules/vsnprintf-posix (Depends-on): Likewise.
58161         * modules/vsprintf-posix (Depends-on): Likewise.
58162         * lib/frexp.c: Include isnand.h instead of isnan.h.
58163         (ISNAN): Set to isnand instead of isnan.
58164         * lib/isfinite.c: Include isnand.h instead of isnan.h.
58165         (gl_isfinited): Use isnand instead of isnan.
58166         * lib/signbitd.c: Include isnand.h instead of isnan.h.
58167         (gl_signbitd): Use isnand instead of isnan.
58168         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
58169         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
58170         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
58171         (main): Use isnand instead of isnan.
58172         * tests/test-round1.c: Include isnand.h.
58173         (main): Use isnand instead of isnan.
58174         * tests/test-round2.c: Include isnand.h instead of isnan.h.
58175         (ISNAN): Set to isnand instead of isnan.
58176         * tests/test-trunc1.c: Include isnand.h.
58177         (main): Use isnand instead of isnan.
58178         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
58179         (equal): Use isnand instead of isnan.
58180         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
58181         isnand-nolibm.
58182         * NEWS: Mention the change.
58183
58184 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
58185             Bruno Haible  <bruno@clisp.org>
58186
58187         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
58188         the GCC builtins for signbits are present and set
58189         REPLACE_SIGNBIT_USING_GCC if so.
58190         * lib/math.in.h (signbit): Define using GCC builtins if
58191         REPLACE_SIGNBIT_USING_GCC is set.
58192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
58193         REPLACE_SIGNBIT_USING_GCC.
58194         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
58195
58196 2008-01-25  Jim Meyering  <meyering@redhat.com>
58197
58198         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
58199         * lib/poll.c: Include <config.h>, not "config.h".
58200         * tests/test-getaddrinfo.c: Likewise.
58201
58202 2008-01-25  Simon Josefsson  <simon@josefsson.org>
58203
58204         * modules/sockets-tests: New file.
58205
58206 2008-01-24  Simon Josefsson  <simon@josefsson.org>
58207
58208         * modules/sockets: New module, can be used to call WSA_Startup and
58209         WSA_Cleanup when needed.
58210
58211         * lib/sockets.h, lib/sockets.c: New files.
58212
58213         * m4/sockets.m4: New file.
58214
58215         * tests/test-sockets.c: New file.
58216
58217 2008-01-19  Bruno Haible  <bruno@clisp.org>
58218
58219         * doc/posix-headers: Renamed from doc/headers.
58220         * doc/posix-functions: Renamed from doc/functions.
58221         * doc/gnulib.texi: Update.
58222
58223 2008-01-19  Bruno Haible  <bruno@clisp.org>
58224
58225         * doc/glibc-functions/strcasestr.texi: Include contents of
58226         doc/functions/strcasestr.texi, fixing the list of platforms.
58227         * doc/functions/strcasestr.texi: Remove file.
58228
58229 2008-01-19  Bruno Haible  <bruno@clisp.org>
58230
58231         * doc/glibc-functions/memmem.texi: Include contents of
58232         doc/functions/memmem.texi.
58233         * doc/functions/memmem.texi: Remove file.
58234
58235 2008-01-18  Bruno Haible  <bruno@clisp.org>
58236
58237         * doc/glibc-functions/*.texi: New files.
58238         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
58239         to use the new files.
58240
58241 2008-01-17  Bruno Haible  <bruno@clisp.org>
58242
58243         * tests/test-gethostname.c (main): Fix printf statement.
58244
58245 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58246
58247         * modules/gethostname-tests: New file.
58248
58249         * tests/test-gethostname.c: New file.
58250
58251 2008-01-17  Simon Josefsson  <simon@josefsson.org>
58252
58253         * lib/gethostname.c: Include string.h unconditionally, strncpy is
58254         used by the UNAME case.  Reported by Bruno Haible
58255         <bruno@clisp.org>.
58256
58257 2008-01-17  Eric Blake  <ebb9@byu.net>
58258
58259         Convert c-strcasestr to be more efficient.
58260         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
58261         (Depends-on): Add c-strcase, remove malloca, strnlen.
58262         * tests/test-c-strcasestr.c (main): Enhance test.
58263         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
58264
58265 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
58266
58267         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
58268         Use it in creating po/Makevars.
58269
58270 2008-01-15  Simon Josefsson  <simon@josefsson.org>
58271
58272         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
58273         Applications that requires it should initialize libgcrypt
58274         manually.
58275
58276 2008-01-16  Simon Josefsson  <simon@josefsson.org>
58277
58278         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
58279
58280 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
58281
58282         Fix problem with getdate on mingw32 reported by Simon Josefsson
58283         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
58284         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
58285         tzname", when deciding whether to declare tzname.
58286         * lib/strftime.c (tzname): Likewise.
58287
58288 2008-01-15  Bruno Haible  <bruno@clisp.org>
58289
58290         Work around a MacOS X 10.5 bug in frexpl().
58291         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
58292         * doc/functions/frexpl.texi: Document the bug.
58293         Reported by Elias Pipping <pipping@gentoo.org>.
58294
58295 2008-01-14  Eric Blake  <ebb9@byu.net>
58296
58297         Touch up previous patch.
58298         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
58299         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
58300
58301         Convert strcasestr module to use Two-Way algorithm.
58302         * modules/strcasestr-simple: New module, based on the old
58303         strcasestr, but with Two-Way rather than KMP.
58304         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
58305         * lib/string.in.h (rpl_strcasestr): Declare.
58306         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
58307         performance.
58308         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
58309         * modules/string (Makefile.am): Support strcasestr.
58310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
58311         * modules/strcasestr-tests (Depends-on): Check for alarm.
58312         * tests/test-strcasestr.c: Augment test.
58313         * lib/str-two-way.h: Clean up stray macro.
58314         * NEWS: Document new module.
58315         * MODULES.html.sh (string handling): Likewise.
58316         * doc/functions/strcasestr.texi: New file.
58317         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
58318         here, since it is not a POSIX function.
58319
58320 2008-01-14  Colin Watson  <cjwatson@debian.org>
58321             Bruno Haible  <bruno@clisp.org>
58322
58323         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
58324         works fine; if not, set REPLACE_STRSIGNAL.
58325         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
58326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58327         REPLACE_STRSIGNAL.
58328         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
58329         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
58330         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
58331
58332 2008-01-14  Bruno Haible  <bruno@clisp.org>
58333
58334         * modules/strsignal (Include): Change to <string.h>.
58335
58336 2008-01-14  Colin Watson  <cjwatson@debian.org>
58337
58338         * modules/argp (Notice): Add a notice recommending to change
58339         XGETTEXT_OPTIONS.
58340         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
58341
58342 2008-01-13  Colin Watson  <cjwatson@debian.org>
58343
58344         * modules/strsignal-tests: New file.
58345         * tests/test-strsignal.c: New file.
58346
58347         * lib/strsignal.c: New file, from glibc with modifications.
58348         * lib/siglist.h: New file, from glibc with modifications.
58349         * lib/string.in.h (strsignal): New declaration.
58350         * m4/strsignal.m4: New file.
58351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
58352         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
58353         * modules/strsignal: New file.
58354         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
58355         HAVE_DECL_STRSIGNAL.
58356
58357 2008-01-13  Bruno Haible  <bruno@clisp.org>
58358
58359         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
58360         locale encoding is not ASCII. Needed for OpenBSD 4.0.
58361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
58362         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
58363
58364 2008-01-13  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
58367         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
58368         * lib/argp.h (__attribute__): Likewise.
58369         * lib/c-stack.c (__attribute__): Likewise.
58370         * lib/error.h (__attribute__): Likewise.
58371         * lib/fts.c (__attribute__): Likewise.
58372         * lib/openat.h (__attribute__): Likewise.
58373         * lib/stdio.in.h (__attribute__): Likewise.
58374         * lib/string.in.h (__attribute__): Likewise.
58375         * lib/utimens.c (__attribute__): Likewise.
58376         * lib/vasnprintf.h (__attribute__): Likewise.
58377         * lib/xalloc.h (__attribute__): Likewise.
58378         * lib/xprintf.h (__attribute__): Likewise.
58379         * lib/xstrtol.h (__attribute__): Likewise.
58380         * lib/xvasprintf.h (__attribute__): Likewise.
58381
58382 2008-01-12  Bruno Haible  <bruno@clisp.org>
58383
58384         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
58385         * doc/glibc-headers/a.out.texi: New file.
58386         * doc/glibc-headers/aliases.texi: New file.
58387         * doc/glibc-headers/alloca.texi: New file.
58388         * doc/glibc-headers/ar.texi: New file.
58389         * doc/glibc-headers/argp.texi: New file.
58390         * doc/glibc-headers/argz.texi: New file.
58391         * doc/glibc-headers/byteswap.texi: New file.
58392         * doc/glibc-headers/crypt.texi: New file.
58393         * doc/glibc-headers/endian.texi: New file.
58394         * doc/glibc-headers/envz.texi: New file.
58395         * doc/glibc-headers/err.texi: New file.
58396         * doc/glibc-headers/error.texi: New file.
58397         * doc/glibc-headers/execinfo.texi: New file.
58398         * doc/glibc-headers/fpu_control.texi: New file.
58399         * doc/glibc-headers/fstab.texi: New file.
58400         * doc/glibc-headers/fts.texi: New file.
58401         * doc/glibc-headers/getopt.texi: New file.
58402         * doc/glibc-headers/ieee754.texi: New file.
58403         * doc/glibc-headers/ifaddrs.texi: New file.
58404         * doc/glibc-headers/libintl.texi: New file.
58405         * doc/glibc-headers/mcheck.texi: New file.
58406         * doc/glibc-headers/mntent.texi: New file.
58407         * doc/glibc-headers/obstack.texi: New file.
58408         * doc/glibc-headers/paths.texi: New file.
58409         * doc/glibc-headers/printf.texi: New file.
58410         * doc/glibc-headers/pty.texi: New file.
58411         * doc/glibc-headers/resolv.texi: New file.
58412         * doc/glibc-headers/shadow.texi: New file.
58413         * doc/glibc-headers/sysexits.texi: New file.
58414         * doc/glibc-headers/ttyent.texi: New file.
58415
58416 2008-01-12  Jim Meyering  <meyering@redhat.com>
58417
58418         announce-gen: emit Gnulib's git-based version string.
58419         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
58420         New option --gnulib-version=V, where V is expected to be
58421         the output of running git describe in the gnulib directory.
58422         (get_tool_versions): Request feedback on xdelta.  I suspect it's
58423         not useful, and plan to stop publishing an xdelta file with each
58424         coreutils release.
58425
58426         * build-aux/announce-gen: Also check for lzma-compressed files.
58427
58428 2008-01-11  Bruno Haible  <bruno@clisp.org>
58429
58430         * tests/test-memmem.c (main): Increase maximum allowed time.
58431         * tests/test-strstr.c (main): Likewise.
58432
58433 2008-01-11  Bruno Haible  <bruno@clisp.org>
58434
58435         * doc/functions/memmem.texi: Add more precisions about platforms.
58436         * doc/functions/strstr.texi: Likewise.
58437
58438 2008-01-10  Eric Blake  <ebb9@byu.net>
58439
58440         * m4/strstr.m4: Delete cruft from copy-n-paste.
58441         Reported by Bruno Haible.
58442
58443 2008-01-10  Bruno Haible  <bruno@clisp.org>
58444
58445         Make c-strstr rely on strstr.
58446         * lib/c-strstr.c: Don't include str-kmp.h.
58447         (c_strstr): Define in terms of strstr.
58448         * modules/c-strstr (Files): Remove lib/str-kmp.h.
58449         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
58450
58451 2008-01-10  Bruno Haible  <bruno@clisp.org>
58452
58453         * doc/gnulib.texi (String Functions in C Locale): New section.
58454         * doc/c-ctype.texi: New file.
58455         * doc/c-strcase.texi: New file.
58456         * doc/c-strcaseeq.texi: New file.
58457         * doc/c-strcasestr.texi: New file.
58458         * doc/c-strstr.texi: New file.
58459         * doc/c-strtod.texi: New file.
58460         * doc/c-strtold.texi: New file.
58461
58462 2008-01-10  Eric Blake  <ebb9@byu.net>
58463
58464         * lib/relocatable.h: Fix a comment.
58465
58466 2008-01-10  Eric Blake  <ebb9@byu.net>
58467
58468         Share two-way algorithm.
58469         * lib/str-two-way.h: New file, merged from...
58470         * lib/memmem.c: ...here...
58471         * lib/strstr.c: ...and here.
58472         * modules/memmem (Files): Use it.
58473         * modules/strstr (Files): Likewise.
58474
58475         Avoid quadratic strstr implementations.
58476         * lib/strstr.c: New file.
58477         * m4/strstr.m4: Likewise.
58478         * modules/strstr: Likewise.
58479         * modules/strstr-tests: Likewise.
58480         * tests/test-strstr.c: Likewise.
58481         * lib/string.in.h (rpl_strstr): Declare.
58482         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
58483         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
58484         * modules/string (Makefile.am): Likewise.
58485         * MODULES.html.sh (string handling): Mention new module.
58486         * doc/functions/strstr.texi (strstr): Document the bug.
58487
58488 2008-01-10  Bruno Haible  <bruno@clisp.org>
58489
58490         * lib/relocatable.h (relocate): State whether result is freshly
58491         allocated or not.
58492         * lib/relocatable.c (relocate): Return a freshly allocated string
58493         instead of a pointer to a privately held string.
58494         Reported by Sylvain Beucler <beuc@gnu.org>.
58495
58496 2008-01-10  Colin Watson  <cjwatson@debian.org>
58497
58498         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
58499         s/S_ISNLK/S_ISLNK/.
58500
58501 2008-01-09  Bruno Haible  <bruno@clisp.org>
58502
58503         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
58504         and other files.
58505         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
58506         if it's only a guess.
58507         * modules/memmem: Simplify by depending on memmem-simple.
58508
58509 2008-01-09  Bruno Haible  <bruno@clisp.org>
58510
58511         Work around OpenBSD 4.0 tdelete() bug.
58512         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
58513         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
58514         macros and don't redefine the enum values.
58515         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
58516         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
58517         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
58518
58519 2008-01-09  Bruno Haible  <bruno@clisp.org>
58520
58521         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
58522         (main): Don't perform the tests if setlocale did not install a UTF-8
58523         locale. Needed on OpenBSD 4.0.
58524         * modules/wcwidth-tests (Depends-on): Add localcharset.
58525
58526 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
58527
58528         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
58529         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
58530         * NEWS: announce this.
58531         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
58532
58533 2008-01-09  Simon Josefsson  <simon@josefsson.org>
58534         and Eric Blake  <ebb9@byu.net>
58535
58536         Add memmem-simple module.
58537         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
58538         (gl_FUNC_MEMMEM): Separate performance from presence checks.
58539         * modules/memmem-simple: New file.
58540         * modules/memmem (Description): Tweak.
58541         * MODULES.html.sh (string handling): Mention new module.
58542         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
58543         addressed by memmem-simple.
58544         * NEWS: Document the difference.
58545
58546 2008-01-09  Eric Blake  <ebb9@byu.net>
58547
58548         Give gcc some memmem optimization hints.
58549         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
58550         (strcasestr): Declare as pure.
58551         * modules/memmem (Maintainer): Claim my implementation.
58552
58553 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58554
58555         Support AIX 6.1 and higher.
58556         * build-aux/config.libpath: Likewise.
58557         * build-aux/config.rpath: Likewise.
58558
58559 2008-01-08  Jim Meyering  <meyering@redhat.com>
58560             Bruno Haible  <bruno@clisp.org>
58561
58562         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
58563         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
58564         Reported by Peter Fales in
58565         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
58566
58567 2008-01-08  Bruno Haible  <bruno@clisp.org>
58568
58569         * modules/unictype/category-of (Depends-on): Add
58570         unictype/category-none.
58571         * modules/unictype/category-and-tests (Depends-on): Add
58572         unictype/category-{L,N,Lu,Nd}.
58573         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
58574         * modules/unictype/category-or-tests (Depends-on): Add
58575         unictype/category-{L,N}.
58576         * modules/unictype/category-name-tests (Depends-on): Add
58577         unictype/category-{Z,Nl}.
58578         Reported by Simon Josefsson.
58579
58580 2008-01-08  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
58583         convention better.
58584         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
58585         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
58586         Reported by Peter Miller <millerp@canb.auug.org.au>.
58587
58588 2008-01-08  Eric Blake  <ebb9@byu.net>
58589
58590         Rewrite memmem to guarantee linear complexity without malloc.
58591         * lib/memmem.c (memmem): Use Two-Way rather than
58592         Knuth-Morris-Pratt, to allow O(1) space usage.
58593         (critical_factorization, two_way_short_needle)
58594         (two_way_long_needle): New functions.
58595         (knuth_morris_pratt): Delete.
58596         * modules/memmem (Depends-on): No longer need malloca or stdbool.
58597         Add stdint.
58598         * tests/test-memmem.c (main): Add tests for periodic needle and
58599         sublinear performance.
58600         * doc/functions/memmem.texi (memmem): Document other deficiencies
58601         in cygwin and older glibc.
58602
58603 2008-01-08  Bruno Haible  <bruno@clisp.org>
58604
58605         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
58606         augmentation.
58607
58608 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
58609
58610         Add a configure time option: --disable-acl.
58611         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
58612         AC_ARG_ENABLE(acl).
58613
58614 2008-01-06  Simon Josefsson  <simon@josefsson.org>
58615
58616         * tests/test-localename.c: Don't include obsolete "setenv.h".
58617
58618         * modules/localename-tests (Depends-on): Need unsetenv.
58619
58620 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58621
58622         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
58623
58624 2008-01-06  Colin Watson  <cjwatson@debian.org>
58625
58626         * users.txt: Add man-db.
58627
58628 2008-01-07  Bruno Haible  <bruno@clisp.org>
58629
58630         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
58631         previous section name.
58632
58633 2008-01-07  Bruno Haible  <bruno@clisp.org>
58634
58635         * lib/progname.c (set_program_name): Don't strip off a leading
58636         "lt-" prefix outside a .libs directory.
58637         Suggested by Paul Eggert.
58638
58639 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
58640             Bruno Haible  <bruno@clisp.org>
58641
58642         Improve memory cleanup in 'relocatable' module.
58643         * lib/relocatable.h (compute_curr_prefix): Change return type to
58644         'char *'.
58645         * lib/relocatable.c (compute_curr_prefix): Change return type to
58646         'char *'. Free curr_installdir after use.
58647         (relocate): Free curr_prefix_better after use.
58648         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
58649
58650 2008-01-01  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
58653         failure on older glibc systems.
58654         Reported by Peter Fales <psfales@alcatel-lucent.com>.
58655
58656 2008-01-05  Eric Blake  <ebb9@byu.net>
58657
58658         Avoid quadratic system memmem.
58659         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
58660         Reported by Ralf Wildenhues.
58661
58662         Fix memmem test for mingw.
58663         * modules/memmem-tests (configure.ac): Check for alarm.
58664         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
58665         it.
58666         * doc/functions/memmem.texi: New file.
58667         * doc/gnulib.texi (Function Substitutes): Add memmem.
58668         Reported by Bruno Haible.
58669
58670 2008-01-04  Bruno Haible  <bruno@clisp.org>
58671
58672         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
58673         Require gl_HEADER_STRINGS_H_DEFAULTS, not
58674         gl_HEADER_STRING_H_DEFAULTS.
58675
58676 2008-01-04  Eric Blake  <ebb9@byu.net>
58677
58678         Shorten duration of memmem test.
58679         * tests/test-memmem.c (main): Use alarm to declare failure if test
58680         is taking too long.
58681         Reported by Ralf Wildenhues.
58682
58683 2007-12-21  Simon Josefsson  <simon@josefsson.org>
58684
58685         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
58686         string, needed by strerror.
58687
58688 2008-01-03  Colin Watson  <cjwatson@debian.org>
58689             Bruno Haible  <bruno@clisp.org>
58690
58691         * doc/gnulib-tool.texi (Localization): New section.
58692
58693 2008-01-02  Bruno Haible  <bruno@clisp.org>
58694
58695         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
58696         variables to 'unsigned char *' type.
58697         Reported by Paul Eggert.
58698
58699 2008-01-02  Jim Meyering  <jim@meyering.net>
58700
58701         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
58702
58703 2007-12-31  Jim Meyering  <jim@meyering.net>
58704
58705         Avoid use of private FTS type name.
58706         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
58707
58708 2007-12-30  Karl Berry  <karl@gnu.org>
58709
58710         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
58711         work around defect in Texinfo and/or the standalone Info browser.
58712
58713 2007-12-30  Bruno Haible  <bruno@clisp.org>
58714
58715         Unify 5 copies of the KMP code.
58716         * lib/str-kmp.h: New file.
58717         * lib/c-strcasestr.c: Include str-kmp.h.
58718         (knuth_morris_pratt): Remove function.
58719         (c_strcasestr): Update.
58720         * lib/c-strstr.c: Include str-kmp.h.
58721         (knuth_morris_pratt): Remove function.
58722         (c_strcasestr): Update.
58723         * lib/mbscasestr.c: Include str-kmp.h.
58724         (knuth_morris_pratt_unibyte): Remove function.
58725         * lib/mbsstr.c: Include str-kmp.h.
58726         (knuth_morris_pratt_unibyte): Remove function.
58727         * lib/strcasestr.c: Include str-kmp.h.
58728         (knuth_morris_pratt): Remove function.
58729         (strcasestr): Update.
58730         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
58731         * modules/c-strstr (Files): Likewise.
58732         * modules/mbscasestr (Files): Likewise.
58733         * modules/mbsstr (Files): Likewise.
58734         * modules/strcasestr (Files): Likewise.
58735         Suggested by Paul Eggert.
58736
58737 2007-12-30  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
58740         defined.
58741
58742 2007-12-30  Bruno Haible  <bruno@clisp.org>
58743
58744         * lib/xmalloca.h: Include xalloc.h.
58745         (xnmalloca): New macro.
58746
58747 2007-12-30  Bruno Haible  <bruno@clisp.org>
58748
58749         * lib/malloca.h (nmalloca): New macro.
58750         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
58751         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
58752         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
58753         knuth_morris_pratt_multibyte): Likewise.
58754         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
58755         knuth_morris_pratt_multibyte): Likewise.
58756         * lib/memmem.c (knuth_morris_pratt): Likewise.
58757         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
58758
58759 2007-12-25  Bruno Haible  <bruno@clisp.org>
58760
58761         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
58762         * lib/glob.c: Don't include openat.h.
58763         (link_exists2_p): Add back the code that deals with the
58764         !GLOB_ALTDIRFUNC case.
58765         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
58766         let it do the filename concatenation.
58767         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
58768         * modules/glob (Depends-on): Remove openat.
58769
58770 2007-12-31  Bruno Haible  <bruno@clisp.org>
58771
58772         * modules/dirfd (License): Change to LGPLv2+.
58773         Approved by Jim Meyering.
58774
58775 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
58776
58777         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
58778         when multiplying M by sizeof (size_t).
58779
58780 2007-12-10  Martin Lambers  <marlam@marlam.de>
58781
58782         Override getpagesize on mingw.
58783         * lib/getpagesize.c: New file.
58784         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
58785         * modules/getpagesize (Files): Add lib/getpagesize.c.
58786         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
58787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
58788         REPLACE_GETPAGESIZE.
58789         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
58790
58791 2007-12-25  Bruno Haible  <bruno@clisp.org>
58792
58793         * modules/localcharset (Notice): New field.
58794         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
58795         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
58796
58797 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
58798             Bruno Haible  <bruno@clisp.org>
58799
58800         Avoid using the syntax symbol() in formatted documentation.
58801         * MODULES.html.sh (func_module): When replacing symbol() with a
58802         hyperlink, remove the parentheses. Show an error if some remain.
58803         Recognize and render the '...' syntax.
58804         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
58805         Rework. Add paragraph about GCC's inlining.
58806         * doc/alloca.texi: Likewise.
58807         * doc/error.texi: Remove parentheses from symbol reference.
58808         * doc/gnulib-intro.texi: Likewise.
58809         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58810         * modules/fnmatch (Description): Reword to say "the ... function".
58811         * modules/full-read (Description): Likewise.
58812         * modules/full-write (Description): Likewise.
58813         * modules/safe-read (Description): Likewise.
58814         * modules/safe-write (Description): Likewise.
58815         * modules/strchrnul (Description): Likewise.
58816         * modules/trim (Description): Likewise.
58817         * modules/error (Description): Remove parentheses from symbol
58818         references.
58819         * modules/verror (Description): Likewise.
58820         Reported by Karl Berry.
58821
58822 2007-12-25  Bruno Haible  <bruno@clisp.org>
58823
58824         Fixup after 2007-10-16 commit.
58825         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58826
58827 2007-12-24  Bruno Haible  <bruno@clisp.org>
58828
58829         Make --enable-relocatable work with DESTDIR.
58830         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58831         to compute installdir from destprog.
58832         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58833         also set the RELOC_DESTDIR variable.
58834         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58835
58836 2007-12-24  Bruno Haible  <bruno@clisp.org>
58837
58838         Fix link error due to xalloc_die().
58839         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58840         of xreadlink.
58841         * lib/relocwrapper.c: Update comments.
58842         * build-aux/install-reloc: Remove xreadlink.c from file list.
58843         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58844         xreadlink.c.
58845         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58846
58847 2007-12-24  Bruno Haible  <bruno@clisp.org>
58848
58849         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58850         * lib/setenv.h: Remove file.
58851         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58852         lib/setenv.h.
58853         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58854         (Depends-on): Add stdlib.
58855         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58856         gl_FUNC_UNSETENV.
58857         (Include): Replace setenv.h with <stdlib.h>.
58858         * modules/unsetenv: New file.
58859         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58860         * lib/unsetenv.c: Include <stdlib.h> first.
58861         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58862         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58863         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58864         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58865         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58866         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58868         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58869         * doc/functions/unsetenv.texi: Update.
58870         * modules/xsetenv (Depends-on): Add unsetenv.
58871         * modules/getdate (Depends-on): Likewise.
58872         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58873         * lib/xsetenv.c: Don't include setenv.h.
58874         * lib/getdate.y: Likewise.
58875         * lib/relocwrapper.c: Likewise.
58876         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58877         (Depends-on): Add stdlib.
58878         * NEWS: Mention the changes.
58879         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58880
58881 2007-12-23  Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58884         indentation.
58885
58886 2007-12-23  Bruno Haible  <bruno@clisp.org>
58887
58888         * lib/c-strcasestr.c: Add more comments.
58889         * lib/c-strstr.c: Likewise.
58890         * lib/mbscasestr.c: Likewise.
58891         * lib/mbsstr.c: Likewise.
58892         * lib/strcasestr.c: Likewise.
58893         * lib/memmem.c: Likewise.
58894
58895 2007-12-23  Bruno Haible  <bruno@clisp.org>
58896
58897         * tests/test-memmem.c: Include <string.h> first.
58898
58899 2007-12-22  Bruno Haible  <bruno@clisp.org>
58900
58901         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58902         the contents of $testsbase.
58903         Reported by Ralf Wildenhues.
58904
58905 2007-12-22  Bruno Haible  <bruno@clisp.org>
58906
58907         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58908         two variables local_ldadd_before, local_ldadd_last.
58909
58910 2007-12-20  Eric Blake  <ebb9@byu.net>
58911
58912         Work around circular library issue when cross-compiling.
58913         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58914         that progname.o does not need to pull in rpl_memcmp.
58915
58916 2007-12-19  Eric Blake  <ebb9@byu.net>
58917
58918         Fix memmem to avoid O(n^2) worst-case complexity.
58919         * lib/memmem.c (knuth_morris_pratt): New function.
58920         (memmem): Use it if first few naive iterations fail.
58921         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58922         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58923         * modules/memchr (License): Likewise.
58924         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58925         malloca.
58926         * tests/test-memmem.c: Rewrite, borrowing ideas from
58927         test-mbsstr1.c; the old version wouldn't even compile!
58928         * modules/memmem-tests: New file.
58929         * lib/string.in.h (rpl_memmem): Add declaration.
58930         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58931         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58932         REPLACE_MEMMEM.
58933
58934 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58937         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58938         before any system include files, and undef after them all.  This
58939         should fix a problem on VMS reported by John E. Malmberg in
58940         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58941
58942 2007-12-17  Eric Blake  <ebb9@byu.net>
58943
58944         Revert addition of verify, for BSD/OS.
58945         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58946         can't handle large files, for the sake of obsolete platforms.
58947         * modules/fseeko (Depends-on): Remove verify.
58948         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58949         * doc/functions/ftello.texi (ftello): Likewise.
58950         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58951         Reported by Larry Jones.
58952
58953 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58954
58955         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58956         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58957
58958 2007-12-17  Jim Meyering  <meyering@redhat.com>
58959
58960         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58961         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58962         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58963         * modules/getcwd (Depends-on): Add openat.
58964         Reported by Petr Salinger.
58965
58966 2007-12-17  Bruno Haible  <bruno@clisp.org>
58967
58968         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58969         avoid a segmentation fault of the configure test on x86_64 systems.
58970
58971 2007-12-15  Jim Meyering  <meyering@redhat.com>
58972
58973         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58974
58975 2007-12-13  Eric Blake  <ebb9@byu.net>
58976
58977         Another fseek test.
58978         * tests/test-fseek.c (main): Also test ungetc handling.
58979         * tests/test-fseeko.c (main): Likewise.
58980         * modules/fseeko (Depends-on): Add verify.
58981         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58982         large.
58983         Reported by Larry Jones.
58984
58985         Fix fseeko on mingw.
58986         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58987         seek.
58988
58989         Beef up fseek tests.
58990         * tests/test-fseek.c (main): Also test eof handling.
58991         * tests/test-fseeko.c (main): Likewise.
58992         Reported by Larry Jones.
58993
58994 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58995
58996         Fix fseeko on BSD-based platforms.
58997         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58998         successful seek.
58999
59000 2007-12-12  Eric Blake  <ebb9@byu.net>
59001
59002         Allow circular dependency of separate libtests.a
59003         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
59004         when use_libtests.
59005
59006 2007-12-11  Eric Blake  <ebb9@byu.net>
59007
59008         Fix bug with -0.0L in previous patch.
59009         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
59010         * tests/test-isnan.c (main): Also test on zeroes.
59011         * tests/test-isnanf.c (main): Likewise.
59012         * tests/test-isnanl.h (main): Likewise.
59013
59014         Detect pseudo-denormals on x86 even when cross-compiling.
59015         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
59016         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
59017         invalid bit patterns that happen to satisfy ==.
59018
59019         Avoid link failures with separate libtests.a.
59020         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
59021         last, to satisfy circular dependencies.
59022
59023 2007-12-11  Eric Blake  <ebb9@byu.net>
59024         and Bruno Haible  <bruno@clisp.org>
59025
59026         Fix OpenBSD 4.0 <float.h> handling of long double.
59027         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
59028         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
59029         * doc/headers/float.texi (float.h): Document OpenBSD bug.
59030
59031 2007-12-11  Jim Meyering  <meyering@redhat.com>
59032
59033         * users.txt: Add libvirt.
59034
59035         Support versions of autoconf prior to 2.59c.
59036         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
59037         if it is not already defined.
59038
59039 2007-12-09  Bruno Haible  <bruno@clisp.org>
59040
59041         Let 'gnulib-tool --import' collect sources needed for the tests in
59042         tests/ rather than in lib/.
59043         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
59044         argument. If true, add rules to generate libtests.a, and put libtests.a
59045         into $(LDADD). Consider source files in subdirectories and set
59046         uses_subdirs.
59047         (func_emit_initmacro_start, func_emit_initmacro_end,
59048         func_emit_initmacro_done): Pass all arguments explicitly.
59049         (func_import): Determine two module lists main_modules,
59050         testsrelated_modules. Determine use_libtests. Determine two variables
59051         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
59052         instead of just sed_transform_lib_file. Determine two variables
59053         main_files and testsrelated_files. Compute 'files' as the union of
59054         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
59055         func_add_or_update. In the generated gnulib-comp.m4, collect the
59056         object files for tests/ in different variables than those for lib/.
59057         Substitute LIBTESTS_LIBDEPS.
59058         (func_create_testdir): Combine the uses_subdirs results from
59059         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
59060
59061 2007-12-09  Bruno Haible  <bruno@clisp.org>
59062
59063         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
59064         the build-aux directory.
59065
59066 2007-12-09  Bruno Haible  <bruno@clisp.org>
59067
59068         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
59069         introduced on 2006-09-09.
59070
59071 2007-12-07  Jim Meyering  <meyering@redhat.com>
59072
59073         Let these macros work also with autoconf-2.59.
59074         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
59075         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
59076         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59077
59078 2007-12-06  Jim Meyering  <meyering@redhat.com>
59079
59080         Avoid a configure-time syntax error in gl_FUNC_ACL.
59081         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
59082         function in each branch, before testing the cache variable.
59083
59084 2007-12-04  Eric Blake  <ebb9@byu.net>
59085
59086         Make scripts executable.
59087         * build-aux/config.guess: Add execute permissions.
59088         * build-aux/config.sub: Likewise.
59089         * build-aux/gendocs.sh: Likewise.
59090
59091         Fix frexp on mingw.
59092         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
59093         cross-compiling.
59094         * doc/functions/frexp.texi (frexp): Document the bug.
59095
59096         Make cygwin fseeko check more reliable.
59097         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
59098         version numbers, rather than unrelated feature check.
59099         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
59100         * doc/functions/ftello.texi (ftello): Likewise.
59101         Reported by Bruno Haible.
59102
59103         * m4/strerror.m4: Bump version number.
59104
59105 2007-12-03  Bruno Haible  <bruno@clisp.org>
59106
59107         * doc/functions/mprotect.texi: Mention the mingw problem.
59108
59109 2007-12-03  Eric Blake  <ebb9@byu.net>
59110
59111         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
59112         REPLACE_STRERROR is initialized before this macro.
59113
59114 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
59117         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
59118         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
59119         put -lsec in even for programs other than 'ls'.  This fixes a problem
59120         for gettext reported by Bruno Haible in
59121         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
59122         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
59123         Add support for Solaris 10.  This isn't efficient, but should get the
59124         job done for now.
59125
59126 2007-12-03  James Youngman  <jay@gnu.org>
59127
59128         * doc/regexprops-generic.texi: change "an close-group" to "a
59129         close-group" and "illegal" to "not allowed".
59130
59131 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59132
59133         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
59134         pr_byname.h. Needed for the rare case when the maintainer has done
59135         "make maintainer-clean" in the source directory and then attempts a
59136         build outside the source directory.
59137         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
59138         scripts_byname.h.
59139
59140 2007-12-02  Martin Lambers <marlam@marlam.de>
59141             Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/getpagesize.h: Remove file.
59144         * lib/unistd.in.h: Include declaration of getpagesize here.
59145         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
59146         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
59147         HAVE_SYS_PARAM_H.
59148         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
59149         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59150         * modules/getpagesize (Files): Remove lib/getpagesize.h.
59151         (Depends-on): Add unistd.
59152         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59153         (Include): Use <unistd.h> instead of getpagesize.h.
59154         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
59155         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
59156         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
59157         gl_GETPAGESIZE invocation, already handled by module dependency.
59158         * lib/pagealign_alloc.c: Don't include getpagesize.h.
59159
59160 2007-12-02  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/strings-tests: New file.
59163         * tests/test-strings.c: New file.
59164
59165         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
59166         * lib/strings.in.h: New file.
59167         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
59168         * m4/strings_h.m4: New file.
59169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
59170         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
59171         * modules/strings: New file.
59172         * modules/string (Makefile.am): Update.
59173         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
59174         Reported by Karl Berry.
59175
59176 2007-12-01  Eric Blake  <ebb9@byu.net>
59177
59178         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
59179         accomodate fix in cygwin 1.5.25.
59180
59181 2007-12-01  Jim Meyering  <meyering@redhat.com>
59182
59183         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
59184         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
59185         that would inhibit utf8-optimization of a regexp containing line-
59186         or buffer-anchors, e.g., `^', `$'.
59187
59188 2007-11-30  Bruno Haible  <bruno@clisp.org>
59189
59190         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
59191         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
59192         glthread_recursive_lock_init.
59193         * lib/lock.c (glthread_recursive_lock_init)
59194         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
59195         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
59196
59197 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
59198
59199         New function qset_acl, like set_acl but with syscall semantics.
59200         * lib/acl.h (qset_acl): New decl.
59201         * lib/acl.c (qset_acl): New function.
59202         (set_acl): Use new function.  Use more-consistent diagnostics.
59203
59204 2007-11-28  Jim Meyering  <meyering@redhat.com>
59205
59206         * modules/physmem (License): Change from GPL to LGPLv2+.
59207
59208 2007-11-26  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/vasnprintf.c (decode_long_double): Don't abort if the
59211         'long double' type has excess precision.
59212         Reported by Jim Meyering in
59213         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
59214
59215 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59216
59217         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
59218         Sync from <http://gnu.org/licenses>.
59219         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
59220         with license text from same location.
59221         * doc/maintain.texi, doc/standards.texi:  Sync from
59222         <http://savannah.gnu.org/projects/gnustandards>.
59223
59224 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
59225         and Jim Meyering  <meyering@redhat.com>
59226
59227         Adjust getdate' grammar to accept a slightly more regular language.
59228         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
59229         Before, the former was rejected.
59230         * lib/getdate.y (digits_to_date_time): New function, factored
59231         out of ...
59232         (number): ...here.  Just call digits_to_date_time.
59233         (hybrid): New non-terminal to handle an <unsigned number,
59234         signed relative offset> sequence consistently.
59235
59236 2007-11-18  Jim Meyering  <meyering@redhat.com>
59237
59238         Pull my changes from coreutils:
59239         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
59240         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
59241         use of $gnulib_tool_option_extras, so that it's separated from the
59242         preceding argument.
59243
59244         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
59245         * build-aux/bootstrap (cp_mark_as_generated): Create any required
59246         parent destination directories before copying a file into place.
59247
59248 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
59249
59250         bootstrap: work also with 4-argument variant of AC_INIT
59251         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
59252
59253 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59254
59255         Port test-getaddrinfo to Solaris.
59256         Problem reported by Bruno Haible in
59257         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
59258         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
59259         explanation of setting 'hints'.
59260         Don't reject an implementation merely because it returns EAI_SERVICE.
59261         (EAI_SERVICE): Define to 0 if not defined.
59262
59263 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
59264
59265         The license of gnu-make and posix-shell is now "GPLed build tool".
59266         * modules/gnu-make (License): Likewise.
59267         * modules/posix-shell (License): Likewise.
59268
59269         New module posix-shell, for determining a POSIX shell
59270         or perhaps something that is close enough to a POSIX shell.
59271         * m4/posix-shell.m4: New file.
59272         * modules/posix-shell: New file.
59273
59274         * MODULES.html.sh: Mention new module.
59275
59276         New module gnu-make, for determining whether we're using GNU Make.
59277         * m4/gnu-make.m4: New file.
59278         * modules/gnu-make: New file.
59279         * MODULES.html.sh: Mention new module.
59280
59281 2007-11-14  Jim Meyering  <meyering@redhat.com>
59282
59283         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
59284         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
59285         use this macro to create a function _definition_.
59286         Remove useless "#undef ARGMATCH_DIE".
59287
59288 2007-11-14  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/config.charset: Update for OpenBSD 4.1.
59291         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
59292
59293 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         Document 64-bit #if problems in stdint.texi.
59296         * doc/headers/stdint.texi (stdint.h): Mention problems with
59297         64-bit-#if, and how to work around them.
59298
59299         Don't insist on 'long long int' support in the preprocessor.  It
59300         breaks too many things.  For example, PRIdMAX still uses a 'long
59301         long int' format with the latest Sun compiler, even though
59302         HAVE_LONG_LONG_INT isn't defined due to that compiler's
59303         preprocessor problem.  This causes the latest coreutils to dump
59304         core on Solaris 10 sparc with the Sun C compiler.
59305         Instead, fix the 2007-10-16 problem in a different way, by evaluating
59306         the troublesome expressions at configure-time, not at #if-time.
59307         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
59308         preprocessor.
59309         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
59310         compile-time C checks, done at 'configure'-time.
59311         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
59312         * modules/inttypes (Makefile): Substitute the new symbols that
59313         gl_INTTYPES_H now generates.
59314         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
59315
59316 2007-11-12  Bruno Haible  <bruno@clisp.org>
59317
59318         Tests for Unicode character classification functions.
59319
59320         * modules/unictype/bidicategory-byname-tests: New file.
59321         * modules/unictype/bidicategory-name-tests: New file.
59322         * modules/unictype/bidicategory-of-tests: New file.
59323         * modules/unictype/bidicategory-test-tests: New file.
59324         * modules/unictype/block-list-tests: New file.
59325         * modules/unictype/block-of-tests: New file.
59326         * modules/unictype/block-test-tests: New file.
59327         * modules/unictype/category-C-tests: New file.
59328         * modules/unictype/category-Cc-tests: New file.
59329         * modules/unictype/category-Cf-tests: New file.
59330         * modules/unictype/category-Cn-tests: New file.
59331         * modules/unictype/category-Co-tests: New file.
59332         * modules/unictype/category-Cs-tests: New file.
59333         * modules/unictype/category-L-tests: New file.
59334         * modules/unictype/category-Ll-tests: New file.
59335         * modules/unictype/category-Lm-tests: New file.
59336         * modules/unictype/category-Lo-tests: New file.
59337         * modules/unictype/category-Lt-tests: New file.
59338         * modules/unictype/category-Lu-tests: New file.
59339         * modules/unictype/category-M-tests: New file.
59340         * modules/unictype/category-Mc-tests: New file.
59341         * modules/unictype/category-Me-tests: New file.
59342         * modules/unictype/category-Mn-tests: New file.
59343         * modules/unictype/category-N-tests: New file.
59344         * modules/unictype/category-Nd-tests: New file.
59345         * modules/unictype/category-Nl-tests: New file.
59346         * modules/unictype/category-No-tests: New file.
59347         * modules/unictype/category-P-tests: New file.
59348         * modules/unictype/category-Pc-tests: New file.
59349         * modules/unictype/category-Pd-tests: New file.
59350         * modules/unictype/category-Pe-tests: New file.
59351         * modules/unictype/category-Pf-tests: New file.
59352         * modules/unictype/category-Pi-tests: New file.
59353         * modules/unictype/category-Po-tests: New file.
59354         * modules/unictype/category-Ps-tests: New file.
59355         * modules/unictype/category-S-tests: New file.
59356         * modules/unictype/category-Sc-tests: New file.
59357         * modules/unictype/category-Sk-tests: New file.
59358         * modules/unictype/category-Sm-tests: New file.
59359         * modules/unictype/category-So-tests: New file.
59360         * modules/unictype/category-Z-tests: New file.
59361         * modules/unictype/category-Zl-tests: New file.
59362         * modules/unictype/category-Zp-tests: New file.
59363         * modules/unictype/category-Zs-tests: New file.
59364         * modules/unictype/category-and-not-tests: New file.
59365         * modules/unictype/category-and-tests: New file.
59366         * modules/unictype/category-byname-tests: New file.
59367         * modules/unictype/category-name-tests: New file.
59368         * modules/unictype/category-none-tests: New file.
59369         * modules/unictype/category-of-tests: New file.
59370         * modules/unictype/category-or-tests: New file.
59371         * modules/unictype/category-test-withtable-tests: New file.
59372         * modules/unictype/combining-class-tests: New file.
59373         * modules/unictype/ctype-alnum-tests: New file.
59374         * modules/unictype/ctype-alpha-tests: New file.
59375         * modules/unictype/ctype-blank-tests: New file.
59376         * modules/unictype/ctype-cntrl-tests: New file.
59377         * modules/unictype/ctype-digit-tests: New file.
59378         * modules/unictype/ctype-graph-tests: New file.
59379         * modules/unictype/ctype-lower-tests: New file.
59380         * modules/unictype/ctype-print-tests: New file.
59381         * modules/unictype/ctype-punct-tests: New file.
59382         * modules/unictype/ctype-space-tests: New file.
59383         * modules/unictype/ctype-upper-tests: New file.
59384         * modules/unictype/ctype-xdigit-tests: New file.
59385         * modules/unictype/decimal-digit-tests: New file.
59386         * modules/unictype/digit-tests: New file.
59387         * modules/unictype/mirror-tests: New file.
59388         * modules/unictype/numeric-tests: New file.
59389         * modules/unictype/property-alphabetic-tests: New file.
59390         * modules/unictype/property-ascii-hex-digit-tests: New file.
59391         * modules/unictype/property-bidi-arabic-digit-tests: New file.
59392         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
59393         * modules/unictype/property-bidi-block-separator-tests: New file.
59394         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
59395         * modules/unictype/property-bidi-common-separator-tests: New file.
59396         * modules/unictype/property-bidi-control-tests: New file.
59397         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
59398         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
59399         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
59400         * modules/unictype/property-bidi-european-digit-tests: New file.
59401         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
59402         * modules/unictype/property-bidi-left-to-right-tests: New file.
59403         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
59404         * modules/unictype/property-bidi-other-neutral-tests: New file.
59405         * modules/unictype/property-bidi-pdf-tests: New file.
59406         * modules/unictype/property-bidi-segment-separator-tests: New file.
59407         * modules/unictype/property-bidi-whitespace-tests: New file.
59408         * modules/unictype/property-byname-tests: New file.
59409         * modules/unictype/property-combining-tests: New file.
59410         * modules/unictype/property-composite-tests: New file.
59411         * modules/unictype/property-currency-symbol-tests: New file.
59412         * modules/unictype/property-dash-tests: New file.
59413         * modules/unictype/property-decimal-digit-tests: New file.
59414         * modules/unictype/property-default-ignorable-code-point-tests: New file.
59415         * modules/unictype/property-deprecated-tests: New file.
59416         * modules/unictype/property-diacritic-tests: New file.
59417         * modules/unictype/property-extender-tests: New file.
59418         * modules/unictype/property-format-control-tests: New file.
59419         * modules/unictype/property-grapheme-base-tests: New file.
59420         * modules/unictype/property-grapheme-extend-tests: New file.
59421         * modules/unictype/property-grapheme-link-tests: New file.
59422         * modules/unictype/property-hex-digit-tests: New file.
59423         * modules/unictype/property-hyphen-tests: New file.
59424         * modules/unictype/property-id-continue-tests: New file.
59425         * modules/unictype/property-id-start-tests: New file.
59426         * modules/unictype/property-ideographic-tests: New file.
59427         * modules/unictype/property-ids-binary-operator-tests: New file.
59428         * modules/unictype/property-ids-trinary-operator-tests: New file.
59429         * modules/unictype/property-ignorable-control-tests: New file.
59430         * modules/unictype/property-iso-control-tests: New file.
59431         * modules/unictype/property-join-control-tests: New file.
59432         * modules/unictype/property-left-of-pair-tests: New file.
59433         * modules/unictype/property-line-separator-tests: New file.
59434         * modules/unictype/property-logical-order-exception-tests: New file.
59435         * modules/unictype/property-lowercase-tests: New file.
59436         * modules/unictype/property-math-tests: New file.
59437         * modules/unictype/property-non-break-tests: New file.
59438         * modules/unictype/property-not-a-character-tests: New file.
59439         * modules/unictype/property-numeric-tests: New file.
59440         * modules/unictype/property-other-alphabetic-tests: New file.
59441         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
59442         * modules/unictype/property-other-grapheme-extend-tests: New file.
59443         * modules/unictype/property-other-id-continue-tests: New file.
59444         * modules/unictype/property-other-id-start-tests: New file.
59445         * modules/unictype/property-other-lowercase-tests: New file.
59446         * modules/unictype/property-other-math-tests: New file.
59447         * modules/unictype/property-other-uppercase-tests: New file.
59448         * modules/unictype/property-paired-punctuation-tests: New file.
59449         * modules/unictype/property-paragraph-separator-tests: New file.
59450         * modules/unictype/property-pattern-syntax-tests: New file.
59451         * modules/unictype/property-pattern-white-space-tests: New file.
59452         * modules/unictype/property-private-use-tests: New file.
59453         * modules/unictype/property-punctuation-tests: New file.
59454         * modules/unictype/property-quotation-mark-tests: New file.
59455         * modules/unictype/property-radical-tests: New file.
59456         * modules/unictype/property-sentence-terminal-tests: New file.
59457         * modules/unictype/property-soft-dotted-tests: New file.
59458         * modules/unictype/property-space-tests: New file.
59459         * modules/unictype/property-terminal-punctuation-tests: New file.
59460         * modules/unictype/property-test-tests: New file.
59461         * modules/unictype/property-titlecase-tests: New file.
59462         * modules/unictype/property-unassigned-code-value-tests: New file.
59463         * modules/unictype/property-unified-ideograph-tests: New file.
59464         * modules/unictype/property-uppercase-tests: New file.
59465         * modules/unictype/property-variation-selector-tests: New file.
59466         * modules/unictype/property-white-space-tests: New file.
59467         * modules/unictype/property-xid-continue-tests: New file.
59468         * modules/unictype/property-xid-start-tests: New file.
59469         * modules/unictype/property-zero-width-tests: New file.
59470         * modules/unictype/scripts-tests: New file.
59471         * modules/unictype/syntax-c-ident-tests: New file.
59472         * modules/unictype/syntax-c-whitespace-tests: New file.
59473         * modules/unictype/syntax-java-ident-tests: New file.
59474         * modules/unictype/syntax-java-whitespace-tests: New file.
59475         * tests/unictype/test-bidi_byname.c: New file.
59476         * tests/unictype/test-bidi_name.c: New file.
59477         * tests/unictype/test-bidi_of.c: New file.
59478         * tests/unictype/test-bidi_test.c: New file.
59479         * tests/unictype/test-block_list.c: New file.
59480         * tests/unictype/test-block_of.c: New file.
59481         * tests/unictype/test-block_test.c: New file.
59482         * tests/unictype/test-categ_and.c: New file.
59483         * tests/unictype/test-categ_and_not.c: New file.
59484         * tests/unictype/test-categ_byname.c: New file.
59485         * tests/unictype/test-categ_name.c: New file.
59486         * tests/unictype/test-categ_none.c: New file.
59487         * tests/unictype/test-categ_of.c: New file.
59488         * tests/unictype/test-categ_or.c: New file.
59489         * tests/unictype/test-categ_test_withtable.c: New file.
59490         * tests/unictype/test-combining.c: New file.
59491         * tests/unictype/test-decdigit.c: New file.
59492         * tests/unictype/test-digit.c: New file.
59493         * tests/unictype/test-mirror.c: New file.
59494         * tests/unictype/test-numeric.c: New file.
59495         * tests/unictype/test-pr_byname.c: New file.
59496         * tests/unictype/test-pr_test.c: New file.
59497         * tests/unictype/test-predicate-part1.h: New file.
59498         * tests/unictype/test-predicate-part2.h: New file.
59499         * tests/unictype/test-scripts.c: New file.
59500         * tests/unictype/test-sy_c_ident.c: New file.
59501         * tests/unictype/test-sy_java_ident.c: New file.
59502
59503         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
59504         for Unicode 5.0.0.
59505         * tests/unictype/test-categ_Cc.c: Likewise.
59506         * tests/unictype/test-categ_Cf.c: Likewise.
59507         * tests/unictype/test-categ_Cn.c: Likewise.
59508         * tests/unictype/test-categ_Co.c: Likewise.
59509         * tests/unictype/test-categ_Cs.c: Likewise.
59510         * tests/unictype/test-categ_L.c: Likewise.
59511         * tests/unictype/test-categ_Ll.c: Likewise.
59512         * tests/unictype/test-categ_Lm.c: Likewise.
59513         * tests/unictype/test-categ_Lo.c: Likewise.
59514         * tests/unictype/test-categ_Lt.c: Likewise.
59515         * tests/unictype/test-categ_Lu.c: Likewise.
59516         * tests/unictype/test-categ_M.c: Likewise.
59517         * tests/unictype/test-categ_Mc.c: Likewise.
59518         * tests/unictype/test-categ_Me.c: Likewise.
59519         * tests/unictype/test-categ_Mn.c: Likewise.
59520         * tests/unictype/test-categ_N.c: Likewise.
59521         * tests/unictype/test-categ_Nd.c: Likewise.
59522         * tests/unictype/test-categ_Nl.c: Likewise.
59523         * tests/unictype/test-categ_No.c: Likewise.
59524         * tests/unictype/test-categ_P.c: Likewise.
59525         * tests/unictype/test-categ_Pc.c: Likewise.
59526         * tests/unictype/test-categ_Pd.c: Likewise.
59527         * tests/unictype/test-categ_Pe.c: Likewise.
59528         * tests/unictype/test-categ_Pf.c: Likewise.
59529         * tests/unictype/test-categ_Pi.c: Likewise.
59530         * tests/unictype/test-categ_Po.c: Likewise.
59531         * tests/unictype/test-categ_Ps.c: Likewise.
59532         * tests/unictype/test-categ_S.c: Likewise.
59533         * tests/unictype/test-categ_Sc.c: Likewise.
59534         * tests/unictype/test-categ_Sk.c: Likewise.
59535         * tests/unictype/test-categ_Sm.c: Likewise.
59536         * tests/unictype/test-categ_So.c: Likewise.
59537         * tests/unictype/test-categ_Z.c: Likewise.
59538         * tests/unictype/test-categ_Zl.c: Likewise.
59539         * tests/unictype/test-categ_Zp.c: Likewise.
59540         * tests/unictype/test-categ_Zs.c: Likewise.
59541         * tests/unictype/test-ctype_alnum.c: Likewise.
59542         * tests/unictype/test-ctype_alpha.c: Likewise.
59543         * tests/unictype/test-ctype_blank.c: Likewise.
59544         * tests/unictype/test-ctype_cntrl.c: Likewise.
59545         * tests/unictype/test-ctype_digit.c: Likewise.
59546         * tests/unictype/test-ctype_graph.c: Likewise.
59547         * tests/unictype/test-ctype_lower.c: Likewise.
59548         * tests/unictype/test-ctype_print.c: Likewise.
59549         * tests/unictype/test-ctype_punct.c: Likewise.
59550         * tests/unictype/test-ctype_space.c: Likewise.
59551         * tests/unictype/test-ctype_upper.c: Likewise.
59552         * tests/unictype/test-ctype_xdigit.c: Likewise.
59553         * tests/unictype/test-decdigit.h: Likewise.
59554         * tests/unictype/test-digit.h: Likewise.
59555         * tests/unictype/test-numeric.h: Likewise.
59556         * tests/unictype/test-pr_alphabetic.c: Likewise.
59557         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
59558         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
59559         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
59560         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
59561         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
59562         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
59563         * tests/unictype/test-pr_bidi_control.c: Likewise.
59564         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
59565         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
59566         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
59567         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
59568         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
59569         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
59570         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
59571         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
59572         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
59573         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
59574         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
59575         * tests/unictype/test-pr_combining.c: Likewise.
59576         * tests/unictype/test-pr_composite.c: Likewise.
59577         * tests/unictype/test-pr_currency_symbol.c: Likewise.
59578         * tests/unictype/test-pr_dash.c: Likewise.
59579         * tests/unictype/test-pr_decimal_digit.c: Likewise.
59580         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
59581         * tests/unictype/test-pr_deprecated.c: Likewise.
59582         * tests/unictype/test-pr_diacritic.c: Likewise.
59583         * tests/unictype/test-pr_extender.c: Likewise.
59584         * tests/unictype/test-pr_format_control.c: Likewise.
59585         * tests/unictype/test-pr_grapheme_base.c: Likewise.
59586         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
59587         * tests/unictype/test-pr_grapheme_link.c: Likewise.
59588         * tests/unictype/test-pr_hex_digit.c: Likewise.
59589         * tests/unictype/test-pr_hyphen.c: Likewise.
59590         * tests/unictype/test-pr_id_continue.c: Likewise.
59591         * tests/unictype/test-pr_id_start.c: Likewise.
59592         * tests/unictype/test-pr_ideographic.c: Likewise.
59593         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
59594         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
59595         * tests/unictype/test-pr_ignorable_control.c: Likewise.
59596         * tests/unictype/test-pr_iso_control.c: Likewise.
59597         * tests/unictype/test-pr_join_control.c: Likewise.
59598         * tests/unictype/test-pr_left_of_pair.c: Likewise.
59599         * tests/unictype/test-pr_line_separator.c: Likewise.
59600         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
59601         * tests/unictype/test-pr_lowercase.c: Likewise.
59602         * tests/unictype/test-pr_math.c: Likewise.
59603         * tests/unictype/test-pr_non_break.c: Likewise.
59604         * tests/unictype/test-pr_not_a_character.c: Likewise.
59605         * tests/unictype/test-pr_numeric.c: Likewise.
59606         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
59607         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
59608         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
59609         * tests/unictype/test-pr_other_id_continue.c: Likewise.
59610         * tests/unictype/test-pr_other_id_start.c: Likewise.
59611         * tests/unictype/test-pr_other_lowercase.c: Likewise.
59612         * tests/unictype/test-pr_other_math.c: Likewise.
59613         * tests/unictype/test-pr_other_uppercase.c: Likewise.
59614         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
59615         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
59616         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
59617         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
59618         * tests/unictype/test-pr_private_use.c: Likewise.
59619         * tests/unictype/test-pr_punctuation.c: Likewise.
59620         * tests/unictype/test-pr_quotation_mark.c: Likewise.
59621         * tests/unictype/test-pr_radical.c: Likewise.
59622         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
59623         * tests/unictype/test-pr_soft_dotted.c: Likewise.
59624         * tests/unictype/test-pr_space.c: Likewise.
59625         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
59626         * tests/unictype/test-pr_titlecase.c: Likewise.
59627         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
59628         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
59629         * tests/unictype/test-pr_uppercase.c: Likewise.
59630         * tests/unictype/test-pr_variation_selector.c: Likewise.
59631         * tests/unictype/test-pr_white_space.c: Likewise.
59632         * tests/unictype/test-pr_xid_continue.c: Likewise.
59633         * tests/unictype/test-pr_xid_start.c: Likewise.
59634         * tests/unictype/test-pr_zero_width.c: Likewise.
59635         * tests/unictype/test-sy_c_whitespace.c: Likewise.
59636         * tests/unictype/test-sy_java_whitespace.c: Likewise.
59637
59638 2007-11-12  Bruno Haible  <bruno@clisp.org>
59639
59640         Unicode character classification functions.
59641         * lib/unictype.h: New file.
59642         * modules/unictype/base: New file.
59643         * modules/unictype/category-L: New file.
59644         * modules/unictype/category-Lu: New file.
59645         * modules/unictype/category-Ll: New file.
59646         * modules/unictype/category-Lt: New file.
59647         * modules/unictype/category-Lm: New file.
59648         * modules/unictype/category-Lo: New file.
59649         * modules/unictype/category-M: New file.
59650         * modules/unictype/category-Mn: New file.
59651         * modules/unictype/category-Mc: New file.
59652         * modules/unictype/category-Me: New file.
59653         * modules/unictype/category-N: New file.
59654         * modules/unictype/category-Nd: New file.
59655         * modules/unictype/category-Nl: New file.
59656         * modules/unictype/category-No: New file.
59657         * modules/unictype/category-P: New file.
59658         * modules/unictype/category-Pc: New file.
59659         * modules/unictype/category-Pd: New file.
59660         * modules/unictype/category-Ps: New file.
59661         * modules/unictype/category-Pe: New file.
59662         * modules/unictype/category-Pi: New file.
59663         * modules/unictype/category-Pf: New file.
59664         * modules/unictype/category-Po: New file.
59665         * modules/unictype/category-S: New file.
59666         * modules/unictype/category-Sm: New file.
59667         * modules/unictype/category-Sc: New file.
59668         * modules/unictype/category-Sk: New file.
59669         * modules/unictype/category-So: New file.
59670         * modules/unictype/category-Z: New file.
59671         * modules/unictype/category-Zs: New file.
59672         * modules/unictype/category-Zl: New file.
59673         * modules/unictype/category-Zp: New file.
59674         * modules/unictype/category-C: New file.
59675         * modules/unictype/category-Cc: New file.
59676         * modules/unictype/category-Cf: New file.
59677         * modules/unictype/category-Cs: New file.
59678         * modules/unictype/category-Co: New file.
59679         * modules/unictype/category-Cn: New file.
59680         * modules/unictype/category-or: New file.
59681         * modules/unictype/category-of: New file.
59682         * modules/unictype/category-test: New file.
59683         * modules/unictype/category-test-withtable: New file.
59684         * modules/unictype/category-byname: New file.
59685         * modules/unictype/category-none: New file.
59686         * modules/unictype/category-and: New file.
59687         * modules/unictype/category-and-not: New file.
59688         * modules/unictype/category-name: New file.
59689         * modules/unictype/combining-class: New file.
59690         * modules/unictype/category-all: New file.
59691         * modules/unictype/bidicategory-all: New file.
59692         * modules/unictype/bidicategory-byname: New file.
59693         * modules/unictype/bidicategory-name: New file.
59694         * modules/unictype/bidicategory-of: New file.
59695         * modules/unictype/bidicategory-test: New file.
59696         * modules/unictype/decimal-digit: New file.
59697         * modules/unictype/digit: New file.
59698         * modules/unictype/numeric: New file.
59699         * modules/unictype/mirror: New file.
59700         * modules/unictype/property-white-space: New file.
59701         * modules/unictype/property-alphabetic: New file.
59702         * modules/unictype/property-other-alphabetic: New file.
59703         * modules/unictype/property-not-a-character: New file.
59704         * modules/unictype/property-default-ignorable-code-point: New file.
59705         * modules/unictype/property-other-default-ignorable-code-point: New
59706         file.
59707         * modules/unictype/property-deprecated: New file.
59708         * modules/unictype/property-logical-order-exception: New file.
59709         * modules/unictype/property-variation-selector: New file.
59710         * modules/unictype/property-private-use: New file.
59711         * modules/unictype/property-unassigned-code-value: New file.
59712         * modules/unictype/property-uppercase: New file.
59713         * modules/unictype/property-other-uppercase: New file.
59714         * modules/unictype/property-lowercase: New file.
59715         * modules/unictype/property-other-lowercase: New file.
59716         * modules/unictype/property-titlecase: New file.
59717         * modules/unictype/property-soft-dotted: New file.
59718         * modules/unictype/property-id-start: New file.
59719         * modules/unictype/property-other-id-start: New file.
59720         * modules/unictype/property-id-continue: New file.
59721         * modules/unictype/property-other-id-continue: New file.
59722         * modules/unictype/property-xid-start: New file.
59723         * modules/unictype/property-xid-continue: New file.
59724         * modules/unictype/property-pattern-white-space: New file.
59725         * modules/unictype/property-pattern-syntax: New file.
59726         * modules/unictype/property-join-control: New file.
59727         * modules/unictype/property-grapheme-base: New file.
59728         * modules/unictype/property-grapheme-extend: New file.
59729         * modules/unictype/property-other-grapheme-extend: New file.
59730         * modules/unictype/property-grapheme-link: New file.
59731         * modules/unictype/property-bidi-control: New file.
59732         * modules/unictype/property-bidi-left-to-right: New file.
59733         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
59734         * modules/unictype/property-bidi-arabic-right-to-left: New file.
59735         * modules/unictype/property-bidi-european-digit: New file.
59736         * modules/unictype/property-bidi-eur-num-separator: New file.
59737         * modules/unictype/property-bidi-eur-num-terminator: New file.
59738         * modules/unictype/property-bidi-arabic-digit: New file.
59739         * modules/unictype/property-bidi-common-separator: New file.
59740         * modules/unictype/property-bidi-block-separator: New file.
59741         * modules/unictype/property-bidi-segment-separator: New file.
59742         * modules/unictype/property-bidi-whitespace: New file.
59743         * modules/unictype/property-bidi-non-spacing-mark: New file.
59744         * modules/unictype/property-bidi-boundary-neutral: New file.
59745         * modules/unictype/property-bidi-pdf: New file.
59746         * modules/unictype/property-bidi-embedding-or-override: New file.
59747         * modules/unictype/property-bidi-other-neutral: New file.
59748         * modules/unictype/property-hex-digit: New file.
59749         * modules/unictype/property-ascii-hex-digit: New file.
59750         * modules/unictype/property-ideographic: New file.
59751         * modules/unictype/property-unified-ideograph: New file.
59752         * modules/unictype/property-radical: New file.
59753         * modules/unictype/property-ids-binary-operator: New file.
59754         * modules/unictype/property-ids-trinary-operator: New file.
59755         * modules/unictype/property-zero-width: New file.
59756         * modules/unictype/property-space: New file.
59757         * modules/unictype/property-non-break: New file.
59758         * modules/unictype/property-iso-control: New file.
59759         * modules/unictype/property-format-control: New file.
59760         * modules/unictype/property-dash: New file.
59761         * modules/unictype/property-hyphen: New file.
59762         * modules/unictype/property-punctuation: New file.
59763         * modules/unictype/property-line-separator: New file.
59764         * modules/unictype/property-paragraph-separator: New file.
59765         * modules/unictype/property-quotation-mark: New file.
59766         * modules/unictype/property-sentence-terminal: New file.
59767         * modules/unictype/property-terminal-punctuation: New file.
59768         * modules/unictype/property-currency-symbol: New file.
59769         * modules/unictype/property-math: New file.
59770         * modules/unictype/property-other-math: New file.
59771         * modules/unictype/property-paired-punctuation: New file.
59772         * modules/unictype/property-left-of-pair: New file.
59773         * modules/unictype/property-combining: New file.
59774         * modules/unictype/property-composite: New file.
59775         * modules/unictype/property-decimal-digit: New file.
59776         * modules/unictype/property-numeric: New file.
59777         * modules/unictype/property-diacritic: New file.
59778         * modules/unictype/property-extender: New file.
59779         * modules/unictype/property-ignorable-control: New file.
59780         * modules/unictype/property-test: New file.
59781         * modules/unictype/property-byname: New file.
59782         * modules/unictype/property-all: New file.
59783         * modules/unictype/scripts: New file.
59784         * modules/unictype/scripts-all: New file.
59785         * modules/unictype/block-of: New file.
59786         * modules/unictype/block-test: New file.
59787         * modules/unictype/block-list: New file.
59788         * modules/unictype/block-all: New file.
59789         * modules/unictype/syntax-c-whitespace: New file.
59790         * modules/unictype/syntax-java-whitespace: New file.
59791         * modules/unictype/syntax-c-ident: New file.
59792         * modules/unictype/syntax-java-ident: New file.
59793         * modules/unictype/ctype-alnum: New file.
59794         * modules/unictype/ctype-alpha: New file.
59795         * modules/unictype/ctype-cntrl: New file.
59796         * modules/unictype/ctype-digit: New file.
59797         * modules/unictype/ctype-graph: New file.
59798         * modules/unictype/ctype-lower: New file.
59799         * modules/unictype/ctype-print: New file.
59800         * modules/unictype/ctype-punct: New file.
59801         * modules/unictype/ctype-space: New file.
59802         * modules/unictype/ctype-upper: New file.
59803         * modules/unictype/ctype-xdigit: New file.
59804         * modules/unictype/ctype-blank: New file.
59805         * lib/unictype/bidi_byname.c: New file.
59806         * lib/unictype/bidi_name.c: New file.
59807         * lib/unictype/bidi_of.c: New file.
59808         * lib/unictype/bidi_test.c: New file.
59809         * lib/unictype/bitmap.h: New file.
59810         * lib/unictype/block_test.c: New file.
59811         * lib/unictype/blocks.c: New file.
59812         * lib/unictype/categ_C.c: New file.
59813         * lib/unictype/categ_Cc.c: New file.
59814         * lib/unictype/categ_Cf.c: New file.
59815         * lib/unictype/categ_Cn.c: New file.
59816         * lib/unictype/categ_Co.c: New file.
59817         * lib/unictype/categ_Cs.c: New file.
59818         * lib/unictype/categ_L.c: New file.
59819         * lib/unictype/categ_Ll.c: New file.
59820         * lib/unictype/categ_Lm.c: New file.
59821         * lib/unictype/categ_Lo.c: New file.
59822         * lib/unictype/categ_Lt.c: New file.
59823         * lib/unictype/categ_Lu.c: New file.
59824         * lib/unictype/categ_M.c: New file.
59825         * lib/unictype/categ_Mc.c: New file.
59826         * lib/unictype/categ_Me.c: New file.
59827         * lib/unictype/categ_Mn.c: New file.
59828         * lib/unictype/categ_N.c: New file.
59829         * lib/unictype/categ_Nd.c: New file.
59830         * lib/unictype/categ_Nl.c: New file.
59831         * lib/unictype/categ_No.c: New file.
59832         * lib/unictype/categ_P.c: New file.
59833         * lib/unictype/categ_Pc.c: New file.
59834         * lib/unictype/categ_Pd.c: New file.
59835         * lib/unictype/categ_Pe.c: New file.
59836         * lib/unictype/categ_Pf.c: New file.
59837         * lib/unictype/categ_Pi.c: New file.
59838         * lib/unictype/categ_Po.c: New file.
59839         * lib/unictype/categ_Ps.c: New file.
59840         * lib/unictype/categ_S.c: New file.
59841         * lib/unictype/categ_Sc.c: New file.
59842         * lib/unictype/categ_Sk.c: New file.
59843         * lib/unictype/categ_Sm.c: New file.
59844         * lib/unictype/categ_So.c: New file.
59845         * lib/unictype/categ_Z.c: New file.
59846         * lib/unictype/categ_Zl.c: New file.
59847         * lib/unictype/categ_Zp.c: New file.
59848         * lib/unictype/categ_Zs.c: New file.
59849         * lib/unictype/categ_and.c: New file.
59850         * lib/unictype/categ_and_not.c: New file.
59851         * lib/unictype/categ_byname.c: New file.
59852         * lib/unictype/categ_name.c: New file.
59853         * lib/unictype/categ_none.c: New file.
59854         * lib/unictype/categ_of.c: New file.
59855         * lib/unictype/categ_or.c: New file.
59856         * lib/unictype/categ_test.c: New file.
59857         * lib/unictype/combining.c: New file.
59858         * lib/unictype/ctype_alnum.c: New file.
59859         * lib/unictype/ctype_alpha.c: New file.
59860         * lib/unictype/ctype_blank.c: New file.
59861         * lib/unictype/ctype_cntrl.c: New file.
59862         * lib/unictype/ctype_digit.c: New file.
59863         * lib/unictype/ctype_graph.c: New file.
59864         * lib/unictype/ctype_lower.c: New file.
59865         * lib/unictype/ctype_print.c: New file.
59866         * lib/unictype/ctype_punct.c: New file.
59867         * lib/unictype/ctype_space.c: New file.
59868         * lib/unictype/ctype_upper.c: New file.
59869         * lib/unictype/ctype_xdigit.c: New file.
59870         * lib/unictype/decdigit.c: New file.
59871         * lib/unictype/digit.c: New file.
59872         * lib/unictype/identsyntaxmap.h: New file.
59873         * lib/unictype/mirror.c: New file.
59874         * lib/unictype/numeric.c: New file.
59875         * lib/unictype/pr_alphabetic.c: New file.
59876         * lib/unictype/pr_ascii_hex_digit.c: New file.
59877         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59878         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59879         * lib/unictype/pr_bidi_block_separator.c: New file.
59880         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59881         * lib/unictype/pr_bidi_common_separator.c: New file.
59882         * lib/unictype/pr_bidi_control.c: New file.
59883         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59884         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59885         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59886         * lib/unictype/pr_bidi_european_digit.c: New file.
59887         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59888         * lib/unictype/pr_bidi_left_to_right.c: New file.
59889         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59890         * lib/unictype/pr_bidi_other_neutral.c: New file.
59891         * lib/unictype/pr_bidi_pdf.c: New file.
59892         * lib/unictype/pr_bidi_segment_separator.c: New file.
59893         * lib/unictype/pr_bidi_whitespace.c: New file.
59894         * lib/unictype/pr_byname.c: New file.
59895         * lib/unictype/pr_byname.gperf: New file.
59896         * lib/unictype/pr_combining.c: New file.
59897         * lib/unictype/pr_composite.c: New file.
59898         * lib/unictype/pr_currency_symbol.c: New file.
59899         * lib/unictype/pr_dash.c: New file.
59900         * lib/unictype/pr_decimal_digit.c: New file.
59901         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59902         * lib/unictype/pr_deprecated.c: New file.
59903         * lib/unictype/pr_diacritic.c: New file.
59904         * lib/unictype/pr_extender.c: New file.
59905         * lib/unictype/pr_format_control.c: New file.
59906         * lib/unictype/pr_grapheme_base.c: New file.
59907         * lib/unictype/pr_grapheme_extend.c: New file.
59908         * lib/unictype/pr_grapheme_link.c: New file.
59909         * lib/unictype/pr_hex_digit.c: New file.
59910         * lib/unictype/pr_hyphen.c: New file.
59911         * lib/unictype/pr_id_continue.c: New file.
59912         * lib/unictype/pr_id_start.c: New file.
59913         * lib/unictype/pr_ideographic.c: New file.
59914         * lib/unictype/pr_ids_binary_operator.c: New file.
59915         * lib/unictype/pr_ids_trinary_operator.c: New file.
59916         * lib/unictype/pr_ignorable_control.c: New file.
59917         * lib/unictype/pr_iso_control.c: New file.
59918         * lib/unictype/pr_join_control.c: New file.
59919         * lib/unictype/pr_left_of_pair.c: New file.
59920         * lib/unictype/pr_line_separator.c: New file.
59921         * lib/unictype/pr_logical_order_exception.c: New file.
59922         * lib/unictype/pr_lowercase.c: New file.
59923         * lib/unictype/pr_math.c: New file.
59924         * lib/unictype/pr_non_break.c: New file.
59925         * lib/unictype/pr_not_a_character.c: New file.
59926         * lib/unictype/pr_numeric.c: New file.
59927         * lib/unictype/pr_other_alphabetic.c: New file.
59928         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59929         * lib/unictype/pr_other_grapheme_extend.c: New file.
59930         * lib/unictype/pr_other_id_continue.c: New file.
59931         * lib/unictype/pr_other_id_start.c: New file.
59932         * lib/unictype/pr_other_lowercase.c: New file.
59933         * lib/unictype/pr_other_math.c: New file.
59934         * lib/unictype/pr_other_uppercase.c: New file.
59935         * lib/unictype/pr_paired_punctuation.c: New file.
59936         * lib/unictype/pr_paragraph_separator.c: New file.
59937         * lib/unictype/pr_pattern_syntax.c: New file.
59938         * lib/unictype/pr_pattern_white_space.c: New file.
59939         * lib/unictype/pr_private_use.c: New file.
59940         * lib/unictype/pr_punctuation.c: New file.
59941         * lib/unictype/pr_quotation_mark.c: New file.
59942         * lib/unictype/pr_radical.c: New file.
59943         * lib/unictype/pr_sentence_terminal.c: New file.
59944         * lib/unictype/pr_soft_dotted.c: New file.
59945         * lib/unictype/pr_space.c: New file.
59946         * lib/unictype/pr_terminal_punctuation.c: New file.
59947         * lib/unictype/pr_test.c: New file.
59948         * lib/unictype/pr_titlecase.c: New file.
59949         * lib/unictype/pr_unassigned_code_value.c: New file.
59950         * lib/unictype/pr_unified_ideograph.c: New file.
59951         * lib/unictype/pr_uppercase.c: New file.
59952         * lib/unictype/pr_variation_selector.c: New file.
59953         * lib/unictype/pr_white_space.c: New file.
59954         * lib/unictype/pr_xid_continue.c: New file.
59955         * lib/unictype/pr_xid_start.c: New file.
59956         * lib/unictype/pr_zero_width.c: New file.
59957         * lib/unictype/scripts.c: New file.
59958         * lib/unictype/sy_c_ident.c: New file.
59959         * lib/unictype/sy_c_whitespace.c: New file.
59960         * lib/unictype/sy_java_ident.c: New file.
59961         * lib/unictype/sy_java_whitespace.c: New file.
59962
59963         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59964         Unicode 5.0.0.
59965         * lib/unictype/blocks.h: Likewise.
59966         * lib/unictype/categ_C.h: Likewise.
59967         * lib/unictype/categ_Cc.h: Likewise.
59968         * lib/unictype/categ_Cf.h: Likewise.
59969         * lib/unictype/categ_Cn.h: Likewise.
59970         * lib/unictype/categ_Co.h: Likewise.
59971         * lib/unictype/categ_Cs.h: Likewise.
59972         * lib/unictype/categ_L.h: Likewise.
59973         * lib/unictype/categ_Ll.h: Likewise.
59974         * lib/unictype/categ_Lm.h: Likewise.
59975         * lib/unictype/categ_Lo.h: Likewise.
59976         * lib/unictype/categ_Lt.h: Likewise.
59977         * lib/unictype/categ_Lu.h: Likewise.
59978         * lib/unictype/categ_M.h: Likewise.
59979         * lib/unictype/categ_Mc.h: Likewise.
59980         * lib/unictype/categ_Me.h: Likewise.
59981         * lib/unictype/categ_Mn.h: Likewise.
59982         * lib/unictype/categ_N.h: Likewise.
59983         * lib/unictype/categ_Nd.h: Likewise.
59984         * lib/unictype/categ_Nl.h: Likewise.
59985         * lib/unictype/categ_No.h: Likewise.
59986         * lib/unictype/categ_P.h: Likewise.
59987         * lib/unictype/categ_Pc.h: Likewise.
59988         * lib/unictype/categ_Pd.h: Likewise.
59989         * lib/unictype/categ_Pe.h: Likewise.
59990         * lib/unictype/categ_Pf.h: Likewise.
59991         * lib/unictype/categ_Pi.h: Likewise.
59992         * lib/unictype/categ_Po.h: Likewise.
59993         * lib/unictype/categ_Ps.h: Likewise.
59994         * lib/unictype/categ_S.h: Likewise.
59995         * lib/unictype/categ_Sc.h: Likewise.
59996         * lib/unictype/categ_Sk.h: Likewise.
59997         * lib/unictype/categ_Sm.h: Likewise.
59998         * lib/unictype/categ_So.h: Likewise.
59999         * lib/unictype/categ_Z.h: Likewise.
60000         * lib/unictype/categ_Zl.h: Likewise.
60001         * lib/unictype/categ_Zp.h: Likewise.
60002         * lib/unictype/categ_Zs.h: Likewise.
60003         * lib/unictype/categ_of.h: Likewise.
60004         * lib/unictype/combining.h: Likewise.
60005         * lib/unictype/ctype_alnum.h: Likewise.
60006         * lib/unictype/ctype_alpha.h: Likewise.
60007         * lib/unictype/ctype_blank.h: Likewise.
60008         * lib/unictype/ctype_cntrl.h: Likewise.
60009         * lib/unictype/ctype_digit.h: Likewise.
60010         * lib/unictype/ctype_graph.h: Likewise.
60011         * lib/unictype/ctype_lower.h: Likewise.
60012         * lib/unictype/ctype_print.h: Likewise.
60013         * lib/unictype/ctype_punct.h: Likewise.
60014         * lib/unictype/ctype_space.h: Likewise.
60015         * lib/unictype/ctype_upper.h: Likewise.
60016         * lib/unictype/ctype_xdigit.h: Likewise.
60017         * lib/unictype/decdigit.h: Likewise.
60018         * lib/unictype/digit.h: Likewise.
60019         * lib/unictype/mirror.h: Likewise.
60020         * lib/unictype/numeric.h: Likewise.
60021         * lib/unictype/pr_alphabetic.h: Likewise.
60022         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
60023         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60024         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60025         * lib/unictype/pr_bidi_block_separator.h: Likewise.
60026         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60027         * lib/unictype/pr_bidi_common_separator.h: Likewise.
60028         * lib/unictype/pr_bidi_control.h: Likewise.
60029         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
60030         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
60031         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60032         * lib/unictype/pr_bidi_european_digit.h: Likewise.
60033         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60034         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60035         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60036         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60037         * lib/unictype/pr_bidi_pdf.h: Likewise.
60038         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
60039         * lib/unictype/pr_bidi_whitespace.h: Likewise.
60040         * lib/unictype/pr_combining.h: Likewise.
60041         * lib/unictype/pr_composite.h: Likewise.
60042         * lib/unictype/pr_currency_symbol.h: Likewise.
60043         * lib/unictype/pr_dash.h: Likewise.
60044         * lib/unictype/pr_decimal_digit.h: Likewise.
60045         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
60046         * lib/unictype/pr_deprecated.h: Likewise.
60047         * lib/unictype/pr_diacritic.h: Likewise.
60048         * lib/unictype/pr_extender.h: Likewise.
60049         * lib/unictype/pr_format_control.h: Likewise.
60050         * lib/unictype/pr_grapheme_base.h: Likewise.
60051         * lib/unictype/pr_grapheme_extend.h: Likewise.
60052         * lib/unictype/pr_grapheme_link.h: Likewise.
60053         * lib/unictype/pr_hex_digit.h: Likewise.
60054         * lib/unictype/pr_hyphen.h: Likewise.
60055         * lib/unictype/pr_id_continue.h: Likewise.
60056         * lib/unictype/pr_id_start.h: Likewise.
60057         * lib/unictype/pr_ideographic.h: Likewise.
60058         * lib/unictype/pr_ids_binary_operator.h: Likewise.
60059         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
60060         * lib/unictype/pr_ignorable_control.h: Likewise.
60061         * lib/unictype/pr_iso_control.h: Likewise.
60062         * lib/unictype/pr_join_control.h: Likewise.
60063         * lib/unictype/pr_left_of_pair.h: Likewise.
60064         * lib/unictype/pr_line_separator.h: Likewise.
60065         * lib/unictype/pr_logical_order_exception.h: Likewise.
60066         * lib/unictype/pr_lowercase.h: Likewise.
60067         * lib/unictype/pr_math.h: Likewise.
60068         * lib/unictype/pr_non_break.h: Likewise.
60069         * lib/unictype/pr_not_a_character.h: Likewise.
60070         * lib/unictype/pr_numeric.h: Likewise.
60071         * lib/unictype/pr_other_alphabetic.h: Likewise.
60072         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
60073         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
60074         * lib/unictype/pr_other_id_continue.h: Likewise.
60075         * lib/unictype/pr_other_id_start.h: Likewise.
60076         * lib/unictype/pr_other_lowercase.h: Likewise.
60077         * lib/unictype/pr_other_math.h: Likewise.
60078         * lib/unictype/pr_other_uppercase.h: Likewise.
60079         * lib/unictype/pr_paired_punctuation.h: Likewise.
60080         * lib/unictype/pr_paragraph_separator.h: Likewise.
60081         * lib/unictype/pr_pattern_syntax.h: Likewise.
60082         * lib/unictype/pr_pattern_white_space.h: Likewise.
60083         * lib/unictype/pr_private_use.h: Likewise.
60084         * lib/unictype/pr_punctuation.h: Likewise.
60085         * lib/unictype/pr_quotation_mark.h: Likewise.
60086         * lib/unictype/pr_radical.h: Likewise.
60087         * lib/unictype/pr_sentence_terminal.h: Likewise.
60088         * lib/unictype/pr_soft_dotted.h: Likewise.
60089         * lib/unictype/pr_space.h: Likewise.
60090         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60091         * lib/unictype/pr_titlecase.h: Likewise.
60092         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60093         * lib/unictype/pr_unified_ideograph.h: Likewise.
60094         * lib/unictype/pr_uppercase.h: Likewise.
60095         * lib/unictype/pr_variation_selector.h: Likewise.
60096         * lib/unictype/pr_white_space.h: Likewise.
60097         * lib/unictype/pr_xid_continue.h: Likewise.
60098         * lib/unictype/pr_xid_start.h: Likewise.
60099         * lib/unictype/pr_zero_width.h: Likewise.
60100         * lib/unictype/scripts.h: Likewise.
60101         * lib/unictype/scripts_byname.gperf: Likewise.
60102         * lib/unictype/sy_c_ident.h: Likewise.
60103         * lib/unictype/sy_c_whitespace.h: Likewise.
60104         * lib/unictype/sy_java_ident.h: Likewise.
60105         * lib/unictype/sy_java_whitespace.h: Likewise.
60106
60107         * lib/unictype/Makefile: New file.
60108         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
60109         glibc.
60110         * lib/unictype/3level.h: New file, copied from glibc.
60111         * lib/unictype/3levelbit.h: New file.
60112
60113 2007-11-11  Bruno Haible  <bruno@clisp.org>
60114
60115         * modules/gperf: New file.
60116         * modules/iconv_open (Depends-on): Add it.
60117         (Makefile.am): Remove the GPERF definition.
60118
60119 2007-11-11  Bruno Haible  <bruno@clisp.org>
60120
60121         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
60122         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
60123
60124 2007-11-11  Bruno Haible  <bruno@clisp.org>
60125
60126         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
60127         (usage): Remove function.
60128
60129 2007-11-11  Bruno Haible  <bruno@clisp.org>
60130
60131         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
60132         gl_FUNC_CEILF_LIBS.
60133         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
60134         gl_FUNC_CEIL_LIBS.
60135         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
60136         gl_FUNC_CEILL_LIBS.
60137         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
60138         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
60139         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
60140
60141 2007-11-11  Bruno Haible  <bruno@clisp.org>
60142
60143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
60144         roundf were declared but do not exist on functions.
60145         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
60146         roundl were declared but do not exist on functions.
60147         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
60148         HAVE_FLOORL_AND_CEILL, respectively.
60149         Needed for Sun C on Solaris 10.
60150
60151 2007-11-11  Bruno Haible  <bruno@clisp.org>
60152
60153         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
60154         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
60155         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
60156         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
60157         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
60158         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
60159         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
60160         HAVE_DECL_ROUNDF.
60161         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
60162         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
60163         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
60164         of HAVE_DECL_ROUND*.
60165         * modules/math (Makefile.am): Update.
60166
60167 2007-11-10  Bruno Haible  <bruno@clisp.org>
60168
60169         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
60170         ptrdiff_t as m4/intl.m4.
60171
60172 2007-11-10  Jim Meyering  <meyering@redhat.com>
60173
60174         Avoid link failure for the argmatch test.
60175         * tests/test-argmatch.c (usage): Define function to avoid a link
60176         failure: argmatch_die requires a usage function.
60177
60178 2007-11-09  Bruno Haible  <bruno@clisp.org>
60179
60180         * doc/functions/snprintf.texi: Mention BeOS deficiency.
60181         * doc/functions/vsnprintf.texi: Likewise.
60182         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
60183         with a size argument < 2.
60184
60185 2007-11-09  Bruno Haible  <bruno@clisp.org>
60186
60187         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
60188         buffer. Fixes an inefficiency introduced on 2007-11-03.
60189
60190 2007-11-09  Bruno Haible  <bruno@clisp.org>
60191
60192         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
60193         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
60194
60195 2007-11-08  Jim Meyering  <meyering@redhat.com>
60196
60197         Change cache variable name prefix "jm_" to "gl_" everywhere.
60198         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
60199         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
60200         * m4/uptime.m4: s/gl_/jm_/
60201
60202 2007-11-07  Bruno Haible  <bruno@clisp.org>
60203
60204         Update to GNU gettext 0.17.
60205         * m4/intl.m4: Update to GNU gettext 0.17.
60206         * m4/po.m4: Likewise.
60207         * modules/gettext (Files): Remove m4/ulonglong.m4.
60208         (configure.ac): Require gettext infrastructure from version 0.17.
60209
60210 2007-11-06  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
60213         symbolic values are not defined in a public header.
60214         * lib/freadable.c (freadable) [QNX]: Likewise.
60215         * lib/freadahead.c (freadahead) [QNX]: Likewise.
60216         * lib/freading.c (freading) [QNX]: Likewise.
60217         * lib/fseterr.c (fseterr) [QNX]: Likewise.
60218         * lib/fwritable.c (fwritable) [QNX]: Likewise.
60219         * lib/fwriting.c (fwriting) [QNX]: Likewise.
60220         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
60221         Reported by Alain Magloire.
60222
60223         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
60224
60225 2007-11-05  Bruno Haible  <bruno@clisp.org>
60226
60227         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
60228         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
60229         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
60230         Reported by Eric Blake.
60231
60232 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60233             Bruno Haible  <bruno@clisp.org>
60234
60235         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
60236         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
60237         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
60238         (malloc): Undefine also before including <stdlib.h>.
60239         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
60240         Needed on OSF/1 4.0.
60241
60242 2007-11-05  Jim Meyering  <meyering@redhat.com>
60243
60244         git-version-gen: sync from coreutils.
60245         * build-aux/git-version-gen: Add comments.
60246         Change the first '-' to '.' in the snapshot version string,
60247         e.g., 6.9-377-08144 -> 6.9.377-08144
60248         Remove first parameter.
60249         Don't declare a version "-dirty" merely because a time
60250         stamp has changed.
60251
60252 2007-11-04  Bruno Haible  <bruno@clisp.org>
60253
60254         * lib/lock.h: Protect all macro definitions containing an 'if'
60255         statement through a "do { ... } while (0)".
60256         * lib/tls.h: Likewise.
60257
60258 2007-11-04  Bruno Haible  <bruno@clisp.org>
60259
60260         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
60261
60262 2007-11-04  Bruno Haible  <bruno@clisp.org>
60263
60264         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
60265         * modules/fprintf-posix (Depends-on): Add nocrash.
60266         * modules/snprintf-posix (Depends-on): Likewise.
60267         * modules/sprintf-posix (Depends-on): Likewise.
60268         * modules/vasnprintf-posix (Depends-on): Likewise.
60269         * modules/vasprintf-posix (Depends-on): Likewise.
60270         * modules/vfprintf-posix (Depends-on): Likewise.
60271         * modules/vsnprintf-posix (Depends-on): Likewise.
60272         * modules/vsprintf-posix (Depends-on): Likewise.
60273         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60274         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60275         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60276         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60277         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60278         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60279         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60280
60281 2007-11-04  Bruno Haible  <bruno@clisp.org>
60282
60283         * modules/nocrash: New file.
60284         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
60285         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
60286
60287 2007-11-04  Bruno Haible  <bruno@clisp.org>
60288
60289         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
60290         precision handling.
60291         * tests/test-vasprintf-posix.c (test_function): Likewise.
60292         * tests/test-snprintf-posix.h (test_function): Likewise.
60293         * tests/test-sprintf-posix.h (test_function): Likewise.
60294
60295         Fix *printf behaviour for large precisions on mingw and BeOS.
60296         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
60297         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
60298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
60299         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60300         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60301         gl_PRINTF_PRECISION and test its result. Invoke
60302         gl_PREREQ_VASNPRINTF_PRECISION.
60303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60304         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60305         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60306         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60307         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60308         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60309         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60310         * doc/functions/fprintf.texi: Update.
60311         * doc/functions/printf.texi: Update.
60312         * doc/functions/snprintf.texi: Update.
60313         * doc/functions/sprintf.texi: Update.
60314         * doc/functions/vfprintf.texi: Update.
60315         * doc/functions/vprintf.texi: Update.
60316         * doc/functions/vsnprintf.texi: Update.
60317         * doc/functions/vsprintf.texi: Update.
60318
60319 2007-11-04  Bruno Haible  <bruno@clisp.org>
60320
60321         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
60322
60323 2007-11-04  Bruno Haible  <bruno@clisp.org>
60324
60325         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
60326         Reported by Sylvain Beucler <beuc@gnu.org>.
60327
60328 2007-11-03  Bruno Haible  <bruno@clisp.org>
60329
60330         * tests/test-fprintf-posix2.sh: New file.
60331         * tests/test-fprintf-posix2.c: New file.
60332         * modules/fprintf-posix-tests (Files): Add them.
60333         (TESTS): Add test-fprintf-posix2.sh.
60334         (configure.ac): Check for getrlimit and setrlimit.
60335         (check_PROGRAMS): Add test-fprintf-posix2.
60336
60337         * tests/test-printf-posix2.sh: New file.
60338         * tests/test-printf-posix2.c: New file.
60339         * modules/printf-posix-tests (Files): Add them.
60340         (TESTS): Add test-printf-posix2.sh.
60341         (configure.ac): Check for getrlimit and setrlimit.
60342         (check_PROGRAMS): Add test-printf-posix2.
60343
60344         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
60345         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
60346         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
60347         (decode_double): New function, copied from decode_long_double.
60348         (scale10_round_decimal_decoded): New function, extracted from
60349         scale10_round_decimal_long_double.
60350         (scale10_round_decimal_long_double): Use it.
60351         (scale10_round_decimal_double): New function.
60352         (floorlog10): New function.
60353         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
60354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
60355         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60356         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60357         gl_PRINTF_ENOMEM and test its result. Invoke
60358         gl_PREREQ_VASNPRINTF_ENOMEM.
60359         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60360         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60361         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60362         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60363         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60364         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60365         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60366         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
60367         * modules/snprintf-posix (Depends-on): Likewise.
60368         * modules/sprintf-posix (Depends-on): Likewise.
60369         * modules/vasnprintf-posix (Depends-on): Likewise.
60370         * modules/vasprintf-posix (Depends-on): Likewise.
60371         * modules/vfprintf-posix (Depends-on): Likewise.
60372         * modules/vsnprintf-posix (Depends-on): Likewise.
60373         * modules/vsprintf-posix (Depends-on): Likewise.
60374         * doc/functions/fprintf.texi: Update.
60375         * doc/functions/printf.texi: Update.
60376         * doc/functions/snprintf.texi: Update.
60377         * doc/functions/sprintf.texi: Update.
60378         * doc/functions/vfprintf.texi: Update.
60379         * doc/functions/vprintf.texi: Update.
60380         * doc/functions/vsnprintf.texi: Update.
60381         * doc/functions/vsprintf.texi: Update.
60382
60383 2007-11-03  Bruno Haible  <bruno@clisp.org>
60384
60385         * modules/frexp-nolibm-tests: New file.
60386
60387         * modules/frexp-nolibm: New file.
60388         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
60389
60390 2007-11-03  Bruno Haible  <bruno@clisp.org>
60391
60392         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
60393         value is C99 compliant.
60394         Needed for OSF/1 5.1.
60395
60396 2007-11-03  Bruno Haible  <bruno@clisp.org>
60397
60398         Fix out-of-memory handling of vasnprintf.
60399         * lib/printf-parse.c: Include <errno.h>.
60400         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
60401         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
60402         is already set.
60403
60404 2007-11-02  Eric Blake  <ebb9@byu.net>
60405
60406         Fix tests on cygwin.
60407         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
60408
60409 2007-11-01  Bruno Haible  <bruno@clisp.org>
60410
60411         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
60412         warning.
60413         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
60414         needed for POSIX compatibility.
60415
60416 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60417
60418         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
60419         for compatibility with GNU.
60420
60421 2007-11-01  Bruno Haible  <bruno@clisp.org>
60422
60423         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
60424         (putenv): Renamed from rpl_putenv. Change argument type from
60425         'const char *' to 'char *'.
60426         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
60427         of defining putenv in config.h, just set REPLACE_PUTENV.
60428         * modules/putenv (Depends-on): Add stdlib.
60429         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
60430         (Include): Use <stdlib.h>.
60431         * lib/stdlib.in.h (putenv): New declaration.
60432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
60433         REPLACE_PUTENV.
60434         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
60435         REPLACE_PUTENV.
60436         Needed for MacOS X 10.5.0.
60437         Reported by Peter O'Gorman <peter@pogma.com>.
60438
60439 2007-11-01  Jim Meyering  <meyering@redhat.com>
60440
60441         Treat an empty date string exactly like "0".
60442         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
60443         if the remaining date string (to be parsed) is empty, use "0".
60444         Reported by Mischa Molhoek and discussed in this thread:
60445         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
60446
60447 2007-10-31  Bruno Haible  <bruno@clisp.org>
60448
60449         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
60450         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
60451         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
60452         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
60453         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
60454         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
60455
60456 2007-10-31  Bruno Haible  <bruno@clisp.org>
60457
60458         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
60459         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
60460         (AC_TYPE_LONG_LONG_INT): Use it.
60461         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
60462         it as well.
60463         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
60464         to m4/longlong.m4.
60465         * modules/stdint (Files): Remove m4/ulonglong.m4.
60466         * modules/strtoull (Files): Use m4/longlong.m4 instead of
60467         m4/ulonglong.m4.
60468         * modules/strtoumax (Files): Likewise.
60469
60470 2007-10-30  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/xvasprintf-posix: New file.
60473         Suggested by Eric Blake.
60474
60475 2007-10-30  Bruno Haible  <bruno@clisp.org>
60476
60477         * modules/xprintf-posix-tests: New file.
60478         * tests/test-xprintf-posix.sh: New file.
60479         * tests/test-xprintf-posix.c: New file.
60480         * tests/test-xfprintf-posix.c: New file.
60481
60482         * modules/xprintf-posix: New file.
60483
60484 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60485
60486         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
60487         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
60488         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
60489
60490 2007-10-29  Bruno Haible  <bruno@clisp.org>
60491
60492         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
60493         contain the special marker '_cv_'.
60494         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
60495         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
60496         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
60497         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
60498         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
60499         Reported by Ralf Wildenhues.
60500
60501 2007-10-29  Bruno Haible  <bruno@clisp.org>
60502
60503         * gnulib-tool (func_import): When --lgpl is not specified, set
60504         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
60505         GPLv3.
60506         Reported by Simon Josefsson.
60507
60508 2007-10-28  Bruno Haible  <bruno@clisp.org>
60509
60510         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
60511         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
60512         HAVE_DECL_ISFINITE.
60513         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60514         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
60515         HAVE_DECL_ISFINITE.
60516
60517 2007-10-28  Bruno Haible  <bruno@clisp.org>
60518
60519         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
60520         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
60521
60522 2007-10-28  Bruno Haible  <bruno@clisp.org>
60523
60524         Fix link errors with Sun C 5.0 on Solaris 10.
60525         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
60526         function is declared but not present in the compiler's libm.
60527         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
60528         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
60529         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
60530         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
60531         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
60532         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
60533         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
60534         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
60535         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
60536         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
60537         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
60538         HAVE_DECL_FLOORL.
60539
60540 2007-10-28  Bruno Haible  <bruno@clisp.org>
60541
60542         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
60543         gl_FUNC_FLOORL. Cache the result.
60544         (gl_FUNC_FLOORL): Use it.
60545         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
60546         gl_FUNC_CEILL. Cache the result.
60547         (gl_FUNC_CEILL): Use it.
60548
60549         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
60550         gl_FUNC_FLOOR. Cache the result.
60551         (gl_FUNC_FLOOR): Use it.
60552         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
60553         gl_FUNC_CEIL. Cache the result.
60554         (gl_FUNC_CEIL): Use it.
60555
60556         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
60557         gl_FUNC_FLOORF. Cache the result.
60558         (gl_FUNC_FLOORF): Use it.
60559         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
60560         gl_FUNC_CEILF. Cache the result.
60561         (gl_FUNC_CEILF): Use it.
60562
60563 2007-10-28  Bruno Haible  <bruno@clisp.org>
60564
60565         * gnulib-tool: Allow specifying the LGPL version number through
60566         --lgpl=2 or --lgpl=3.
60567         (func_usage): Document --lgpl with argument.
60568         Handle --lgpl=... arguments.
60569         (func_import): Recognize also gl_LGPL calls with an argument. When
60570         --lgpl=2 is used and the module's license is just LGPL, report an
60571         error. Set sed_transform_lib_file according to the lgpl variable. In
60572         the generated files, use --lgpl or gl_LGPL invocations with argument,
60573         if necessary.
60574         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
60575         an LGPv2+ license.
60576         * doc/gnulib-tool.texi (Modified imports): Update explanation of
60577         gl_LGPL macro.
60578
60579 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60580             Bruno Haible  <bruno@clisp.org>
60581
60582         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
60583         (u16_uctomb_aux): Likewise.
60584         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
60585         !HAVE_INLINE.
60586         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
60587
60588 2007-10-28  Bruno Haible  <bruno@clisp.org>
60589
60590         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
60591         Invoke AM_GETTEXT_OPTION if it exists.
60592         * modules/vasprintf: Likewise.
60593         * modules/verror: Likewise.
60594         * modules/xprintf: Likewise.
60595         * modules/xvasprintf: Likewise.
60596
60597 2007-10-27  Ben Pfaff  <blp@gnu.org>
60598
60599         * lib/math.in.h: Define isfinite macro and prototypes for
60600         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
60601         implementations.
60602         * m4/math_h.m4: New substitutions for isfinite module.
60603         * lib/isfinite.c: New file.
60604         * m4/isfinite.m4: New file.
60605         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
60606         * modules/isfinite: New file.
60607         * modules/isfinite-tests: New file.
60608         * tests/tests-isfinite.c: New file.
60609         * doc/functions/isfinite.texi: Mention isfinite module.
60610         * MODULES.html.sh: Mention new module.
60611
60612 2007-10-27  Ben Pfaff  <blp@gnu.org>
60613
60614         Ralf Wildenhues reported that Tru64 4.0D declares the round
60615         functions but does not have definitions.
60616         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
60617         cannot be found in any library, set the output variable to
60618         "missing" instead of "".
60619         * m4/round.m4: Also use our substitute if we cannot find round in
60620         any library, even if it is declared.
60621         * m4/roundf.m4: Likewise for roundf.
60622         * m4/roundl.m4: Likewise for roundl.
60623         * lib/math.in.h: Undefine roundf, round, roundl before defining
60624         their replacements, to allow for hypothetical systems where these
60625         may be defined as macros but not available in libraries.
60626
60627 2007-10-27  Bruno Haible  <bruno@clisp.org>
60628
60629         * doc/gnulib.texi: Invoke @firstparagraphindent.
60630         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
60631         changes in gnulib.
60632         (Source changes): New section.
60633
60634 2007-10-26  Bruno Haible  <bruno@clisp.org>
60635
60636         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
60637         borrowed from autoconf.
60638
60639 2007-10-26  Bruno Haible  <bruno@clisp.org>
60640
60641         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
60642         strerror returned the empty string. Needed on HP-UX 11.00.
60643
60644 2007-10-24  Micah Cowan  <micah@cowan.name>
60645
60646         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
60647         * build-aux/bootstrap: Remove support for now-unnecessary option,
60648         --cvs-user, and envvars CVS_USER, CVS_RSH.
60649
60650 2007-10-24  Jim Meyering  <meyering@redhat.com>
60651
60652         Avoid diagnostics from sha1sum when there is no cached checksum.
60653         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
60654         if the po.s1 file hasn't been created yet.
60655
60656         * build-aux/bootstrap: Sync from coreutils:
60657         2007-10-24  Jim Meyering  <meyering@redhat.com>
60658         Get gnulib from the git repository, not from an obsolete cvs one.
60659         * build-aux/bootstrap: Suggestion from Micah Cowan.
60660         2007-10-04  Jim Meyering  <jim@meyering.net>
60661         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
60662         (update_po_files): Work also when there are no .po files in po/.
60663
60664 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60665
60666         * README: Append ".git" to git and cg examples.
60667         Problem reported by Benoit Sigoure.
60668
60669 2007-10-23  Micah Cowan  <micah@cowan.name>
60670
60671         * users.txt: Add wget.
60672
60673 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60674
60675         Fix linking of some unistdio tests on FreeBSD.
60676         * modules/unistdio/u16-vsnprintf-tests
60677         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
60678         * modules/unistdio/u16-vsprintf-tests
60679         (test_u16_vsnprintf1_LDADD): Likewise.
60680         * modules/unistdio/u32-vsnprintf-tests
60681         (test_u32_vsnprintf1_LDADD): Likewise.
60682         * modules/unistdio/u32-vsprintf-tests
60683         (test_u32_vsprintf1_LDADD): Likewise.
60684         * modules/unistdio/u8-vsnprintf-tests
60685         (test_u8_vsnprintf1_LDADD): Likewise.
60686         * modules/unistdio/u8-vsprintf-tests
60687         (test_u8_vsprintf1_LDADD): Likewise.
60688         * modules/unistdio/ulc-vsnprintf-tests
60689         (test_ulc_vsnprintf1_LDADD): Likewise.
60690         * modules/unistdio/ulc-vsprintf-tests
60691         (test_ulc_vsprintf1_LDADD): Likewise.
60692
60693         Fix linking of some uniconv tests on FreeBSD.
60694         * modules/uniconv/u16-conv-from-enc-tests
60695         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
60696         * modules/uniconv/u16-conv-to-enc-tests
60697         (test_u16_conv_to_enc_LDADD): Likewise.
60698         * modules/uniconv/u16-strconv-from-enc-tests
60699         (test_u16_strconv_from_enc_LDADD): Likewise.
60700         * modules/uniconv/u16-strconv-to-enc-tests
60701         (test_u16_strconv_to_enc_LDADD): Likewise.
60702         * modules/uniconv/u32-conv-from-enc-tests
60703         (test_u32_conv_from_enc_LDADD): Likewise.
60704         * modules/uniconv/u32-conv-to-enc-tests
60705         (test_u32_conv_to_enc_LDADD): Likewise.
60706         * modules/uniconv/u32-strconv-from-enc-tests
60707         (test_u32_strconv_from_enc_LDADD): Likewise.
60708         * modules/uniconv/u32-strconv-to-enc-tests
60709         (test_u32_strconv_to_enc_LDADD): Likewise.
60710         * modules/uniconv/u8-conv-from-enc-tests
60711         (test_u8_conv_from_enc_LDADD): Likewise.
60712         * modules/uniconv/u8-conv-to-enc-tests
60713         (test_u8_conv_to_enc_LDADD): Likewise.
60714         * modules/uniconv/u8-strconv-from-enc-tests
60715         (test_u8_strconv_from_enc_LDADD): Likewise.
60716         * modules/uniconv/u8-strconv-to-enc-tests
60717         (test_u8_strconv_to_enc_LDADD): Likewise.
60718
60719 2007-10-22  Bruno Haible  <bruno@clisp.org>
60720
60721         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
60722         size.
60723
60724 2007-10-22  Eric Blake  <ebb9@byu.net>
60725
60726         Tweak x*printf documentation.
60727         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
60728         variable name and comments.
60729         Suggested by Bruno Haible.
60730
60731 2007-10-22  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/acl.c (copy_acl): Fix file name in comment.
60734
60735 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60736
60737         Fix Tru64 problem with stdbool.h.
60738         * lib/stdbool.in.h (false, true):
60739         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
60740         Don't declare as an enum in this situation; it runs afoul of Tru64.
60741         Problem reported by Steven M. Schweda in
60742         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
60743
60744 2007-10-22  Eric Blake  <ebb9@byu.net>
60745
60746         Also wrap vf?printf.
60747         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
60748         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
60749         (xvprintf, xvfprintf): New functions.
60750
60751 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60752
60753         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
60754         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
60755
60756         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
60757         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
60758
60759 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60760
60761         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
60762         by Bruno Haible.
60763
60764 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60765
60766         * lib/getloadavg.c
60767         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
60768         Undef `sys' after including sys/table.h, for Tru64 4.0D.
60769
60770         * tests/test-i-ring.c: Work for C89.
60771
60772 2007-10-22  Bruno Haible  <bruno@clisp.org>
60773
60774         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
60775         -1u, in preprocessor expression, so that we don't test for the bug
60776         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
60777         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
60778
60779 2007-10-22  Eric Blake  <ebb9@byu.net>
60780
60781         * tests/test-yesno.sh: Silence stderr during test.
60782
60783 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60784
60785         * modules/crypto/gc-camellia: New file.
60786
60787         * m4/gc-camellia.m4: New file.
60788
60789         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
60790
60791         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
60792
60793 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60794
60795         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
60796         --help to stdout.  Reported by sms@antinode.org (Steven
60797         M. Schweda).
60798
60799 2007-10-22  Simon Josefsson  <simon@josefsson.org>
60800
60801         * users.txt: Fix link to libksba.
60802
60803 2007-10-21  Ben Pfaff  <blp@gnu.org>
60804
60805         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
60806         round.c roundf implementation that depends on floorf and ceilf to
60807         be tested unconditionally.
60808
60809 2007-10-21  Ben Pfaff  <blp@gnu.org>
60810
60811         * m4/check-libm-func.m4: Removed.
60812         * m4/check-math-lib.m4: New file.
60813         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60814         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60815         definition and lack of AC_LIBOBJ([roundf]).
60816         * m4/roundl.m4: Ditto, and similarly for roundl.
60817         * modules/round: Reference new m4 file.
60818         * modules/roundf: Ditto.
60819         * modules/roundl: Ditto.
60820         * tests/test-round2.c (main): Use ROUND instead of round.
60821         Bug report from Bruno Haible.
60822
60823 2007-10-21  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60826         context.
60827
60828 2007-10-21  Bruno Haible  <bruno@clisp.org>
60829
60830         * tests/test-wcwidth.c (main): Allow negative result for some control
60831         characters.
60832
60833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60834         Needed on OSF/1 5.1.
60835
60836 2007-10-21  Bruno Haible  <bruno@clisp.org>
60837
60838         * tests/test-floorf1.c: Include isnanf.h.
60839         (main): Use isnanf() instead of isnan().
60840         * tests/test-ceilf1.c: Include isnanf.h.
60841         (main): Use isnanf() instead of isnan().
60842         * tests/test-truncf1.c: Include isnanf.h.
60843         (main): Use isnanf() instead of isnan().
60844         * tests/test-roundf1.c: Include isnanf.h.
60845         (main): Use isnanf() instead of isnan().
60846
60847 2007-10-21  Eric Blake  <ebb9@byu.net>
60848
60849         * users.txt: Update URL for m4.
60850
60851 2007-10-21  Bruno Haible  <bruno@clisp.org>
60852
60853         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60854
60855 2007-10-21  Bruno Haible  <bruno@clisp.org>
60856
60857         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60858         Git's management files if the CVS files are not present.
60859
60860 2007-10-20  Bruno Haible  <bruno@clisp.org>
60861
60862         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60863         gcc-3.4.x.
60864
60865 2007-10-20  Ben Pfaff  <blp@gnu.org>
60866
60867         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60868         implementations.
60869         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60870         * lib/round.c: New file.
60871         * lib/roundf.c: New file.
60872         * lib/roundl.c: New file.
60873         * m4/round.m4: New file.
60874         * m4/roundf.m4: New file.
60875         * m4/roundl.m4: New file.
60876         * m4/check-libm-func-m4: New file.
60877         * modules/math: Replace round, roundf, roundl related @VARS@ in
60878         math.in.h.
60879         * modules/round: New file.
60880         * modules/round-tests: New file.
60881         * modules/roundf: New file.
60882         * modules/roundf-tests: New file.
60883         * modules/roundl: New file.
60884         * modules/roundl-tests: New file.
60885         * tests/test-round1.c: New file.
60886         * tests/test-round2.c: New file.
60887         * tests/test-roundf1.c: New file.
60888         * tests/test-roundf2.c: New file.
60889         * tests/test-roundl.c: New file.
60890         * doc/functions/round.texi: Mention round module.
60891         * doc/functions/roundf.texi: Mention roundf module.
60892         * doc/functions/roundl.texi: Mention roundl module.
60893         * MODULES.html.sh: Mention new modules.
60894         Thanks to Bruno Haible for suggestions.
60895
60896 2007-10-20  Jim Meyering  <meyering@redhat.com>
60897
60898         * lib/xprintf.c: Include <config.h> unconditionally.
60899
60900         Change xprintf's license to GPL.
60901         * modules/xprintf (License): s/LGPL/GPL/, since this module
60902         depends on modules (exit and exitfail) which are GPL.
60903         Suggestion from Bruno Haible.
60904
60905         xprintf fixes.
60906         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60907         Use a clearer diagnostic.
60908         Patch from Bruno Haible.
60909
60910 2007-10-20  Bruno Haible  <bruno@clisp.org>
60911
60912         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60913         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60915
60916 2007-10-20  Bruno Haible  <bruno@clisp.org>
60917
60918         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60919         precision in the comparison result > x - 1 or similar.
60920         * tests/test-ceilf2.c (correct_result_p): Likewise.
60921         * tests/test-truncf2.c (correct_result_p): Likewise.
60922         * tests/test-trunc2.c (correct_result_p): Likewise.
60923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60924
60925 2007-10-20  Bruno Haible  <bruno@clisp.org>
60926
60927         * modules/ceil: New file.
60928         * m4/ceil.m4: New file.
60929         * doc/functions/ceil.texi: Mention the 'ceil' module.
60930
60931 2007-10-20  Bruno Haible  <bruno@clisp.org>
60932
60933         * modules/floor: New file.
60934         * m4/floor.m4: New file.
60935         * doc/functions/floor.texi: Mention the 'floor' module.
60936
60937 2007-10-20  Bruno Haible  <bruno@clisp.org>
60938
60939         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60940         of %a.
60941         * modules/floorf-tests (Depends-on): Likewise.
60942         * modules/truncf-tests (Depends-on): Likewise.
60943         * modules/trunc-tests (Depends-on): Likewise.
60944         Reported by Ben Pfaff.
60945
60946 2007-10-19  Jim Meyering  <meyering@redhat.com>
60947
60948         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60949         Don't bother testing specific errno values.  Just test ferror.
60950
60951         New module: xprintf
60952         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60953
60954 2007-10-19  Bruno Haible  <bruno@clisp.org>
60955
60956         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60957         syntax.
60958         * modules/javaexec (Makefile.am): Likewise.
60959         * modules/relocatable-prog (Makefile.am): Likewise.
60960         Suggested by Jim Meyering.
60961
60962 2007-10-18  Bruno Haible  <bruno@clisp.org>
60963
60964         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60965         Reported by Jim Meyering.
60966
60967 2007-10-18  Eric Blake  <ebb9@byu.net>
60968
60969         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60970
60971 2007-10-18  Bruno Haible  <bruno@clisp.org>
60972
60973         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60974         the format string into writable memory. Needed in Fortify conditions.
60975
60976 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60977             Bruno Haible  <bruno@clisp.org>
60978
60979         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60980         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60981         * modules/trim (Depends-on): Add mbchar.
60982         (configure.ac): Add gl_FUNC_MBRTOWC.
60983         (Makefile.am): Augment lib_SOURCES.
60984
60985 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         Modify glob.c to use fstatat and dirfd, to simplify it.
60988         Suggested by Eric Blake.
60989         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60990         Don't include <stdbool.h>; not used.
60991         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60992         (link_exists_p): Simplify implementation, since we can now assume
60993         dirfd and fstatat.
60994         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60995
60996 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60997
60998         * gnulib-tool (func_get_dependencies): Fix sed script to
60999         match only tests.
61000
61001 2007-10-17  Bruno Haible  <bruno@clisp.org>
61002
61003         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
61004         allow locale names without encoding suffix.
61005         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61006         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61007
61008 2007-10-16  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
61011         * lib/getgroups.c (getgroups): Likewise.
61012         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
61013
61014 2007-10-16  Bruno Haible  <bruno@clisp.org>
61015
61016         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
61017         * modules/malloc-posix (License): Likewise.
61018         * modules/realloc-posix (License): Likewise.
61019         * modules/calloc-posix (License): Likewise.
61020         * modules/intprops (License): Change from GPL to LGPL, with
61021         Paul Eggert's approval.
61022
61023 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61024
61025         Merge glibc changes into lib/glob.c.
61026
61027         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
61028         2007-10-15 04:59:03 UTC.  Here are the changes:
61029
61030         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
61031
61032         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
61033
61034         * lib/glob.c: Add some branch prediction throughout.
61035
61036         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
61037
61038         [BZ #5103]
61039         * lib/glob.c (glob): Recognize patterns starting \/.
61040
61041         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
61042
61043         [BZ #3996]
61044         * lib/glob.c (attribute_hidden): Define if not defined.
61045         (glob): Unescape dirname, filename or username when needed and not
61046         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
61047         is NULL.  Handle unescaped [ in pattern without closing ].
61048         Don't pass GLOB_CHECK down to recursive glob for directories.
61049         (__glob_pattern_type): New function.
61050         (__glob_pattern_p): Implement using __glob_pattern_type.
61051         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
61052         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
61053         Remove unreachable code.
61054
61055         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
61056
61057         * lib/glob.c (glob_in_dir): Add some comments and asserts to
61058         explain why there are no leaks.
61059
61060         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
61061
61062         [BZ #3253]
61063         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
61064         time, rather allocate increasingly bigger arrays of pointers, if
61065         possible with alloca, if too large with malloc.
61066
61067 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
61068
61069         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
61070         Problem reported by H.Merijn Brand in
61071         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
61072         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
61073         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
61074
61075 2007-10-15  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
61078         with explicit rpl_ prefix.
61079         * lib/fopen.c (fopen): Likewise.
61080         * lib/freopen.c (freopen): Likewise.
61081         * lib/iconv.c (iconv): Likewise.
61082         * lib/iconv_close.c (iconv_close): Likewise.
61083
61084 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61085
61086         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
61087
61088 2007-10-15  Bruno Haible  <bruno@clisp.org>
61089
61090         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
61091         <stddef.h> instead of <stdlib.h> since we only need NULL.
61092         Reported by Ben Pfaff <blp@cs.stanford.edu>.
61093
61094 2007-10-15  Bruno Haible  <bruno@clisp.org>
61095
61096         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
61097         Replace paragraph talking about LIBOBJS.
61098         Reported by Colin Watson <cjwatson@debian.org>.
61099
61100 2007-10-15  Bruno Haible  <bruno@clisp.org>
61101
61102         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
61103         <stdlib.h> before using NULL.
61104
61105 2007-10-15  Simon Josefsson  <simon@josefsson.org>
61106
61107         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
61108         Reported by Albert Chin <china@thewrittenword.com>.
61109
61110 2007-10-14  Bruno Haible  <bruno@clisp.org>
61111
61112         * modules/iconv_open-utf-tests: New file.
61113         * tests/test-iconv-utf.c: New file.
61114
61115         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
61116         * modules/iconv_open-utf: New file.
61117         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
61118         (iconv, iconv_close): New declarations.
61119         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
61120         be defined.
61121         (iconv_open): Add special handling of conversion between UTF-8 and
61122         UTF-{16,32}{BE,LE}.
61123         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
61124         * lib/iconv_close.c: New file.
61125         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
61126         gl_FUNC_ICONV_OPEN.
61127         (gl_FUNC_ICONV_OPEN): Use it.
61128         (gl_FUNC_ICONV_OPEN_UTF): New macro.
61129         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
61130         and REPLACE_ICONV_UTF.
61131         * modules/iconv_open (Depends-on): Add c-strcase.
61132         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
61133         ICONV_CONST.
61134         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
61135
61136 2007-10-13  Albert Chin  <china@thewrittenword.com>
61137             Bruno Haible  <bruno@clisp.org>
61138
61139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
61140         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
61141
61142 2007-10-13  Bruno Haible  <bruno@clisp.org>
61143
61144         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
61145         defined, use the ISO C99 inline semantics.
61146         * lib/argp.h (ARGP_EI): Likewise.
61147
61148 2007-10-13  Bruno Haible  <bruno@clisp.org>
61149
61150         Handle 'inline' change in gcc 4.3.0.
61151         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
61152         argp_fmtstream_write, argp_fmtstream_set_lmargin,
61153         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
61154         argp_fmtstream_point): Disable 'extern' declaration if the function
61155         definition is going to be provided inline.
61156         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
61157         semantics, not the ISO C99 inline semantics.
61158         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
61159         'extern' declaration if the function definition is going to be provided
61160         inline.
61161         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
61162         the GNU C inline semantics, not the ISO C99 inline semantics. With
61163         GCC 4.2, avoid a warning.
61164
61165 2007-10-13  Bruno Haible  <bruno@clisp.org>
61166
61167         * lib/freading.h (freading): Enable the use of __freading for
61168         glibc >= 2.7.
61169         * lib/freading.c (freading): Likewise.
61170
61171 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
61172
61173         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
61174         "warning: C99 inline functions are not supported; using GNU89".
61175
61176 2007-10-12  Bruno Haible  <bruno@clisp.org>
61177
61178         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
61179         of 2.
61180         * tests/test-ceilf2.c: New file.
61181         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
61182
61183         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
61184         * modules/ceilf-tests: Update.
61185
61186 2007-10-12  Bruno Haible  <bruno@clisp.org>
61187
61188         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
61189         of 2.
61190         * tests/test-floorf2.c: New file.
61191         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
61192
61193         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
61194         * modules/floorf-tests: Update.
61195
61196 2007-10-12  Bruno Haible  <bruno@clisp.org>
61197
61198         * tests/test-trunc2.c: New file.
61199         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
61200
61201         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
61202         * modules/trunc-tests: Update.
61203
61204 2007-10-12  Bruno Haible  <bruno@clisp.org>
61205
61206         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
61207         of 2.
61208         * tests/test-truncf2.c: New file.
61209         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
61210
61211         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
61212         * modules/truncf-tests: Update.
61213
61214 2007-10-11  Eric Blake  <ebb9@byu.net>
61215
61216         Don't claim strerror is broken on Interix.
61217         * doc/functions/strerror.texi (strerror): Known broken systems are
61218         now Solaris 8, and not Interix.
61219         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
61220         Interix on cross-compile.
61221         Reported by Martin Koeppe in
61222         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
61223
61224 2007-10-11  Bruno Haible  <bruno@clisp.org>
61225
61226         * modules/i-ring-tests: New file.
61227         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
61228         instead of assert.
61229
61230 2007-10-11  Bruno Haible  <bruno@clisp.org>
61231
61232         * modules/filenamecat-tests: New file.
61233         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
61234         * lib/filenamecat.c: Remove test code.
61235
61236 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
61237
61238         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
61239
61240         * lib/strerror.c: Include <string.h> always, to test interface,
61241         and to remove the need for the dummy.
61242         Include intprops.h to compute width instead of doing it ourselves
61243         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
61244         (strerror): Define it to return NULL if there's no system strerror.
61245         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
61246         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
61247         ancient pre-strerror Unix systems well any more.  Saying "unknown
61248         system error" is enough.
61249         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
61250         simpler strerror.c implementation.
61251         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
61252         Simplify the tests to reflect the simpler strerror implementation.
61253         * modules/strerror (Depends-on): Add intprops.
61254
61255 2007-10-09  Eric Blake  <ebb9@byu.net>
61256
61257         Silence test-fpending.
61258         * modules/fpending-tests (Files): Add wrapper script.
61259         * tests/test-fpending.sh: New file.
61260
61261 2007-10-09  Bruno Haible  <bruno@clisp.org>
61262
61263         * MODULES.html.sh (func_module): Don't create a hyperlink for
61264         function names like 'printf_frexp'.
61265         (Misc): Add crc, memxor.
61266         (Characteristics of floating types): New section.
61267         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
61268         isnanf-nolibm, signbit, trunc, truncf, truncl.
61269         (Enhancements for ISO C 99 functions): New subsection Input/output.
61270         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
61271         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
61272         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
61273         (Compatibility checks for POSIX:2001 functions): Add clock-time.
61274         (Enhancements for POSIX:2001 functions): Add chdir-long.
61275         (File system functions): Add areadlink, chdir-safer, read-file.
61276         Remove cycle-check.
61277         (File system as inode set): New section.
61278         (Date and time): Add gethrxtime.
61279         (Multithreading): Add openmp.
61280         (Internationalization functions): Add localename.
61281         (Unicode string functions): Add unistr/u*-mbsnlen.
61282         (Support for maintaining and releasing projects): Add git-version-gen.
61283         (Lone files): Remove directories.
61284
61285 2007-10-08  Ben Pfaff  <blp@gnu.org>
61286
61287         * lib/xmalloca.h: Fix typo in comment.
61288
61289 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61290
61291         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
61292         when avoiding problems with integer overflow.  Use a portable test
61293         instead.
61294
61295 2007-10-08  Simon Josefsson  <simon@josefsson.org>
61296
61297         * modules/dummy (License): Change to LGPLv2+.
61298         * modules/float (License): Likewise
61299         * modules/realloc (License): Likewise
61300         * modules/stdlib (License): Likewise
61301
61302 2007-10-07  Bruno Haible  <bruno@clisp.org>
61303
61304         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
61305         * floor.c (TWO_MANT_DIG): Likewise.
61306         * ceil.c (TWO_MANT_DIG): Likewise.
61307         Reported by Ben Pfaff.
61308
61309 2007-10-07  Bruno Haible  <bruno@clisp.org>
61310
61311         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
61312         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
61313         * lib/frexp.c (FUNC): Likewise.
61314         * lib/printf-frexp.h (printf_frexp): Likewise.
61315         * lib/printf-frexpl.h (printf_frexpl): Likewise.
61316         * lib/printf-frexp.c (FUNC): Likewise.
61317         Suggested by Jim Meyering.
61318
61319 2007-10-07  Jim Meyering  <meyering@redhat.com>
61320
61321         Make xnanosleep's integer overflow test more robust.
61322         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
61323         so that gcc-4.3.0 doesn't optimize away this test for overflow.
61324
61325 2007-10-07  Bruno Haible  <bruno@clisp.org>
61326
61327         * NEWS: Mention the license change.
61328
61329         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
61330         abbreviations in the modules files.
61331
61332         Change copyright notice from GPLv2+ to GPLv3+.
61333         * README: Change copyright notice.
61334         * MODULES.html.sh: Likewise.
61335         * build-aux/bootstrap.conf: Likewise.
61336         * build-aux/config.libpath: Likewise.
61337         * build-aux/csharpcomp.sh.in: Likewise.
61338         * build-aux/csharpexec.sh.in: Likewise.
61339         * build-aux/install-reloc: Likewise.
61340         * build-aux/javacomp.sh.in: Likewise.
61341         * build-aux/javaexec.sh.in: Likewise.
61342         * build-aux/ldd.sh.in: Likewise.
61343         * build-aux/reloc-ldflags: Likewise.
61344         * build-aux/relocatable.sh.in: Likewise.
61345         * build-aux/x-to-1.in: Likewise.
61346         * check-module: Likewise.
61347         * config/srclistvars.sh: Likewise.
61348         * gnulib-tool: Likewise.
61349         * lib/acl-internal.h: Likewise.
61350         * lib/acl.c: Likewise.
61351         * lib/acl.h: Likewise.
61352         * lib/acl_entries.c: Likewise.
61353         * lib/areadlink-with-size.c: Likewise.
61354         * lib/areadlink.c: Likewise.
61355         * lib/areadlink.h: Likewise.
61356         * lib/argmatch.c: Likewise.
61357         * lib/argmatch.h: Likewise.
61358         * lib/argp-ba.c: Likewise.
61359         * lib/argp-eexst.c: Likewise.
61360         * lib/argp-fmtstream.c: Likewise.
61361         * lib/argp-fmtstream.h: Likewise.
61362         * lib/argp-fs-xinl.c: Likewise.
61363         * lib/argp-help.c: Likewise.
61364         * lib/argp-namefrob.h: Likewise.
61365         * lib/argp-parse.c: Likewise.
61366         * lib/argp-pin.c: Likewise.
61367         * lib/argp-pv.c: Likewise.
61368         * lib/argp-pvh.c: Likewise.
61369         * lib/argp-xinl.c: Likewise.
61370         * lib/argp.h: Likewise.
61371         * lib/at-func.c: Likewise.
61372         * lib/atanl.c: Likewise.
61373         * lib/backupfile.c: Likewise.
61374         * lib/backupfile.h: Likewise.
61375         * lib/basename.c: Likewise.
61376         * lib/binary-io.h: Likewise.
61377         * lib/byteswap.in.h: Likewise.
61378         * lib/c-stack.c: Likewise.
61379         * lib/c-stack.h: Likewise.
61380         * lib/c-strcasestr.c: Likewise.
61381         * lib/c-strcasestr.h: Likewise.
61382         * lib/c-strstr.c: Likewise.
61383         * lib/c-strstr.h: Likewise.
61384         * lib/c-strtod.c: Likewise.
61385         * lib/calloc.c: Likewise.
61386         * lib/canon-host.c: Likewise.
61387         * lib/canon-host.h: Likewise.
61388         * lib/canonicalize-lgpl.c: Likewise.
61389         * lib/canonicalize.c: Likewise.
61390         * lib/canonicalize.h: Likewise.
61391         * lib/ceil.c: Likewise.
61392         * lib/ceilf.c: Likewise.
61393         * lib/ceill.c: Likewise.
61394         * lib/chdir-long.c: Likewise.
61395         * lib/chdir-long.h: Likewise.
61396         * lib/chdir-safer.c: Likewise.
61397         * lib/chdir-safer.h: Likewise.
61398         * lib/chown.c: Likewise.
61399         * lib/classpath.c: Likewise.
61400         * lib/classpath.h: Likewise.
61401         * lib/clean-temp.c: Likewise.
61402         * lib/clean-temp.h: Likewise.
61403         * lib/cloexec.c: Likewise.
61404         * lib/close-stream.c: Likewise.
61405         * lib/closein.c: Likewise.
61406         * lib/closein.h: Likewise.
61407         * lib/closeout.c: Likewise.
61408         * lib/closeout.h: Likewise.
61409         * lib/concat-filename.c: Likewise.
61410         * lib/copy-file.c: Likewise.
61411         * lib/copy-file.h: Likewise.
61412         * lib/count-one-bits.h: Likewise.
61413         * lib/crc.c: Likewise.
61414         * lib/crc.h: Likewise.
61415         * lib/creat-safer.c: Likewise.
61416         * lib/csharpcomp.c: Likewise.
61417         * lib/csharpcomp.h: Likewise.
61418         * lib/csharpexec.c: Likewise.
61419         * lib/csharpexec.h: Likewise.
61420         * lib/cycle-check.c: Likewise.
61421         * lib/cycle-check.h: Likewise.
61422         * lib/diacrit.c: Likewise.
61423         * lib/diacrit.h: Likewise.
61424         * lib/diffseq.h: Likewise.
61425         * lib/dirchownmod.c: Likewise.
61426         * lib/dirent.in.h: Likewise.
61427         * lib/dirfd.c: Likewise.
61428         * lib/dirfd.h: Likewise.
61429         * lib/dirname.c: Likewise.
61430         * lib/dirname.h: Likewise.
61431         * lib/dummy.c: Likewise.
61432         * lib/dup-safer.c: Likewise.
61433         * lib/dup2.c: Likewise.
61434         * lib/eealloc.h: Likewise.
61435         * lib/error.c: Likewise.
61436         * lib/error.h: Likewise.
61437         * lib/euidaccess.c: Likewise.
61438         * lib/exclude.c: Likewise.
61439         * lib/exclude.h: Likewise.
61440         * lib/execute.c: Likewise.
61441         * lib/execute.h: Likewise.
61442         * lib/exitfail.c: Likewise.
61443         * lib/exitfail.h: Likewise.
61444         * lib/expl.c: Likewise.
61445         * lib/fatal-signal.c: Likewise.
61446         * lib/fatal-signal.h: Likewise.
61447         * lib/fbufmode.c: Likewise.
61448         * lib/fbufmode.h: Likewise.
61449         * lib/fchdir.c: Likewise.
61450         * lib/fchmodat.c: Likewise.
61451         * lib/fchownat.c: Likewise.
61452         * lib/fcntl--.h: Likewise.
61453         * lib/fcntl-safer.h: Likewise.
61454         * lib/fcntl.in.h: Likewise.
61455         * lib/fd-safer.c: Likewise.
61456         * lib/fflush.c: Likewise.
61457         * lib/file-has-acl.c: Likewise.
61458         * lib/file-set.c: Likewise.
61459         * lib/file-type.c: Likewise.
61460         * lib/file-type.h: Likewise.
61461         * lib/fileblocks.c: Likewise.
61462         * lib/filemode.c: Likewise.
61463         * lib/filemode.h: Likewise.
61464         * lib/filename.h: Likewise.
61465         * lib/filenamecat.c: Likewise.
61466         * lib/filenamecat.h: Likewise.
61467         * lib/findprog.c: Likewise.
61468         * lib/findprog.h: Likewise.
61469         * lib/float.in.h: Likewise.
61470         * lib/floor.c: Likewise.
61471         * lib/floorf.c: Likewise.
61472         * lib/floorl.c: Likewise.
61473         * lib/fopen-safer.c: Likewise.
61474         * lib/fopen.c: Likewise.
61475         * lib/fpending.c: Likewise.
61476         * lib/fpending.h: Likewise.
61477         * lib/fprintf.c: Likewise.
61478         * lib/fprintftime.h: Likewise.
61479         * lib/fpucw.h: Likewise.
61480         * lib/fpurge.c: Likewise.
61481         * lib/fpurge.h: Likewise.
61482         * lib/freadable.c: Likewise.
61483         * lib/freadable.h: Likewise.
61484         * lib/freadahead.c: Likewise.
61485         * lib/freadahead.h: Likewise.
61486         * lib/freading.c: Likewise.
61487         * lib/freading.h: Likewise.
61488         * lib/free.c: Likewise.
61489         * lib/freopen.c: Likewise.
61490         * lib/frexp.c: Likewise.
61491         * lib/frexpl.c: Likewise.
61492         * lib/fseek.c: Likewise.
61493         * lib/fseterr.c: Likewise.
61494         * lib/fseterr.h: Likewise.
61495         * lib/fstatat.c: Likewise.
61496         * lib/fstrcmp.c: Likewise.
61497         * lib/fstrcmp.h: Likewise.
61498         * lib/fsusage.c: Likewise.
61499         * lib/fsusage.h: Likewise.
61500         * lib/ftell.c: Likewise.
61501         * lib/ftello.c: Likewise.
61502         * lib/fts-cycle.c: Likewise.
61503         * lib/fts.c: Likewise.
61504         * lib/fts_.h: Likewise.
61505         * lib/full-read.c: Likewise.
61506         * lib/full-read.h: Likewise.
61507         * lib/full-write.c: Likewise.
61508         * lib/full-write.h: Likewise.
61509         * lib/fwritable.c: Likewise.
61510         * lib/fwritable.h: Likewise.
61511         * lib/fwriteerror.c: Likewise.
61512         * lib/fwriteerror.h: Likewise.
61513         * lib/fwriting.c: Likewise.
61514         * lib/fwriting.h: Likewise.
61515         * lib/gcd.c: Likewise.
61516         * lib/gcd.h: Likewise.
61517         * lib/getcwd.c: Likewise.
61518         * lib/getdate.h: Likewise.
61519         * lib/getdate.y: Likewise.
61520         * lib/getdomainname.c: Likewise.
61521         * lib/getdomainname.h: Likewise.
61522         * lib/getgroups.c: Likewise.
61523         * lib/gethostname.c: Likewise.
61524         * lib/gethrxtime.c: Likewise.
61525         * lib/gethrxtime.h: Likewise.
61526         * lib/getloadavg.c: Likewise.
61527         * lib/getndelim2.c: Likewise.
61528         * lib/getndelim2.h: Likewise.
61529         * lib/getnline.c: Likewise.
61530         * lib/getnline.h: Likewise.
61531         * lib/getopt.c: Likewise.
61532         * lib/getopt.in.h: Likewise.
61533         * lib/getopt1.c: Likewise.
61534         * lib/getopt_int.h: Likewise.
61535         * lib/getpagesize.h: Likewise.
61536         * lib/getsubopt.c: Likewise.
61537         * lib/gettime.c: Likewise.
61538         * lib/getugroups.c: Likewise.
61539         * lib/getugroups.h: Likewise.
61540         * lib/getusershell.c: Likewise.
61541         * lib/gl_anyavltree_list1.h: Likewise.
61542         * lib/gl_anyavltree_list2.h: Likewise.
61543         * lib/gl_anyhash_list1.h: Likewise.
61544         * lib/gl_anyhash_list2.h: Likewise.
61545         * lib/gl_anylinked_list1.h: Likewise.
61546         * lib/gl_anylinked_list2.h: Likewise.
61547         * lib/gl_anyrbtree_list1.h: Likewise.
61548         * lib/gl_anyrbtree_list2.h: Likewise.
61549         * lib/gl_anytree_list1.h: Likewise.
61550         * lib/gl_anytree_list2.h: Likewise.
61551         * lib/gl_anytree_oset.h: Likewise.
61552         * lib/gl_anytreehash_list1.h: Likewise.
61553         * lib/gl_anytreehash_list2.h: Likewise.
61554         * lib/gl_array_list.c: Likewise.
61555         * lib/gl_array_list.h: Likewise.
61556         * lib/gl_array_oset.c: Likewise.
61557         * lib/gl_array_oset.h: Likewise.
61558         * lib/gl_avltree_list.c: Likewise.
61559         * lib/gl_avltree_list.h: Likewise.
61560         * lib/gl_avltree_oset.c: Likewise.
61561         * lib/gl_avltree_oset.h: Likewise.
61562         * lib/gl_avltreehash_list.c: Likewise.
61563         * lib/gl_avltreehash_list.h: Likewise.
61564         * lib/gl_carray_list.c: Likewise.
61565         * lib/gl_carray_list.h: Likewise.
61566         * lib/gl_linked_list.c: Likewise.
61567         * lib/gl_linked_list.h: Likewise.
61568         * lib/gl_linkedhash_list.c: Likewise.
61569         * lib/gl_linkedhash_list.h: Likewise.
61570         * lib/gl_list.c: Likewise.
61571         * lib/gl_list.h: Likewise.
61572         * lib/gl_oset.c: Likewise.
61573         * lib/gl_oset.h: Likewise.
61574         * lib/gl_rbtree_list.c: Likewise.
61575         * lib/gl_rbtree_list.h: Likewise.
61576         * lib/gl_rbtree_oset.c: Likewise.
61577         * lib/gl_rbtree_oset.h: Likewise.
61578         * lib/gl_rbtreehash_list.c: Likewise.
61579         * lib/gl_rbtreehash_list.h: Likewise.
61580         * lib/gl_sublist.c: Likewise.
61581         * lib/gl_sublist.h: Likewise.
61582         * lib/group-member.c: Likewise.
61583         * lib/group-member.h: Likewise.
61584         * lib/hard-locale.c: Likewise.
61585         * lib/hard-locale.h: Likewise.
61586         * lib/hash-pjw.c: Likewise.
61587         * lib/hash-pjw.h: Likewise.
61588         * lib/hash-triple.c: Likewise.
61589         * lib/hash.c: Likewise.
61590         * lib/hash.h: Likewise.
61591         * lib/human.c: Likewise.
61592         * lib/human.h: Likewise.
61593         * lib/i-ring.c: Likewise.
61594         * lib/i-ring.h: Likewise.
61595         * lib/idcache.c: Likewise.
61596         * lib/imaxabs.c: Likewise.
61597         * lib/imaxdiv.c: Likewise.
61598         * lib/inet_pton.c: Likewise.
61599         * lib/inet_pton.h: Likewise.
61600         * lib/intprops.h: Likewise.
61601         * lib/inttostr.c: Likewise.
61602         * lib/inttostr.h: Likewise.
61603         * lib/inttypes.in.h: Likewise.
61604         * lib/isapipe.c: Likewise.
61605         * lib/isdir.c: Likewise.
61606         * lib/isnan.c: Likewise.
61607         * lib/isnan.h: Likewise.
61608         * lib/isnanf.c: Likewise.
61609         * lib/isnanf.h: Likewise.
61610         * lib/isnanl-nolibm.h: Likewise.
61611         * lib/isnanl.c: Likewise.
61612         * lib/isnanl.h: Likewise.
61613         * lib/javacomp.c: Likewise.
61614         * lib/javacomp.h: Likewise.
61615         * lib/javaexec.c: Likewise.
61616         * lib/javaexec.h: Likewise.
61617         * lib/javaversion.c: Likewise.
61618         * lib/javaversion.h: Likewise.
61619         * lib/javaversion.java: Likewise.
61620         * lib/lbrkprop.h: Likewise.
61621         * lib/lchmod.h: Likewise.
61622         * lib/lchown.c: Likewise.
61623         * lib/ldexpl.c: Likewise.
61624         * lib/linebreak.c: Likewise.
61625         * lib/linebreak.h: Likewise.
61626         * lib/linebuffer.c: Likewise.
61627         * lib/linebuffer.h: Likewise.
61628         * lib/locale.in.h: Likewise.
61629         * lib/logl.c: Likewise.
61630         * lib/long-options.c: Likewise.
61631         * lib/long-options.h: Likewise.
61632         * lib/lstat.c: Likewise.
61633         * lib/lstat.h: Likewise.
61634         * lib/math.in.h: Likewise.
61635         * lib/mbchar.c: Likewise.
61636         * lib/mbchar.h: Likewise.
61637         * lib/mbfile.h: Likewise.
61638         * lib/mbiter.h: Likewise.
61639         * lib/mbscasecmp.c: Likewise.
61640         * lib/mbscasestr.c: Likewise.
61641         * lib/mbschr.c: Likewise.
61642         * lib/mbscspn.c: Likewise.
61643         * lib/mbslen.c: Likewise.
61644         * lib/mbsncasecmp.c: Likewise.
61645         * lib/mbsnlen.c: Likewise.
61646         * lib/mbspbrk.c: Likewise.
61647         * lib/mbspcasecmp.c: Likewise.
61648         * lib/mbsrchr.c: Likewise.
61649         * lib/mbssep.c: Likewise.
61650         * lib/mbsspn.c: Likewise.
61651         * lib/mbsstr.c: Likewise.
61652         * lib/mbstok_r.c: Likewise.
61653         * lib/mbswidth.c: Likewise.
61654         * lib/mbswidth.h: Likewise.
61655         * lib/mbuiter.h: Likewise.
61656         * lib/memcasecmp.c: Likewise.
61657         * lib/memcasecmp.h: Likewise.
61658         * lib/memchr.c: Likewise.
61659         * lib/memcmp.c: Likewise.
61660         * lib/memcoll.c: Likewise.
61661         * lib/memcoll.h: Likewise.
61662         * lib/memcpy.c: Likewise.
61663         * lib/memrchr.c: Likewise.
61664         * lib/mkancesdirs.c: Likewise.
61665         * lib/mkdir-p.c: Likewise.
61666         * lib/mkdir-p.h: Likewise.
61667         * lib/mkdir.c: Likewise.
61668         * lib/mkdirat.c: Likewise.
61669         * lib/mkdtemp.c: Likewise.
61670         * lib/mkstemp-safer.c: Likewise.
61671         * lib/mkstemp.c: Likewise.
61672         * lib/modechange.c: Likewise.
61673         * lib/modechange.h: Likewise.
61674         * lib/mountlist.c: Likewise.
61675         * lib/mountlist.h: Likewise.
61676         * lib/mpsort.c: Likewise.
61677         * lib/nanosleep.c: Likewise.
61678         * lib/obstack.c: Likewise.
61679         * lib/obstack.h: Likewise.
61680         * lib/open-safer.c: Likewise.
61681         * lib/open.c: Likewise.
61682         * lib/openat-die.c: Likewise.
61683         * lib/openat-priv.h: Likewise.
61684         * lib/openat-proc.c: Likewise.
61685         * lib/openat.c: Likewise.
61686         * lib/openat.h: Likewise.
61687         * lib/pagealign_alloc.c: Likewise.
61688         * lib/pagealign_alloc.h: Likewise.
61689         * lib/physmem.c: Likewise.
61690         * lib/physmem.h: Likewise.
61691         * lib/pipe-safer.c: Likewise.
61692         * lib/pipe.c: Likewise.
61693         * lib/pipe.h: Likewise.
61694         * lib/posixtm.c: Likewise.
61695         * lib/posixtm.h: Likewise.
61696         * lib/posixver.c: Likewise.
61697         * lib/printf-frexp.c: Likewise.
61698         * lib/printf-frexp.h: Likewise.
61699         * lib/printf-frexpl.c: Likewise.
61700         * lib/printf-frexpl.h: Likewise.
61701         * lib/printf.c: Likewise.
61702         * lib/progname.c: Likewise.
61703         * lib/progname.h: Likewise.
61704         * lib/progreloc.c: Likewise.
61705         * lib/putenv.c: Likewise.
61706         * lib/quote.c: Likewise.
61707         * lib/quote.h: Likewise.
61708         * lib/quotearg.c: Likewise.
61709         * lib/quotearg.h: Likewise.
61710         * lib/raise.c: Likewise.
61711         * lib/readline.c: Likewise.
61712         * lib/readline.h: Likewise.
61713         * lib/readlink.c: Likewise.
61714         * lib/readtokens.c: Likewise.
61715         * lib/readtokens.h: Likewise.
61716         * lib/readtokens0.c: Likewise.
61717         * lib/readtokens0.h: Likewise.
61718         * lib/readutmp.c: Likewise.
61719         * lib/readutmp.h: Likewise.
61720         * lib/realloc.c: Likewise.
61721         * lib/relocwrapper.c: Likewise.
61722         * lib/rename-dest-slash.c: Likewise.
61723         * lib/rename.c: Likewise.
61724         * lib/rmdir.c: Likewise.
61725         * lib/rpmatch.c: Likewise.
61726         * lib/safe-read.c: Likewise.
61727         * lib/safe-read.h: Likewise.
61728         * lib/safe-write.c: Likewise.
61729         * lib/safe-write.h: Likewise.
61730         * lib/same-inode.h: Likewise.
61731         * lib/same.c: Likewise.
61732         * lib/same.h: Likewise.
61733         * lib/save-cwd.c: Likewise.
61734         * lib/save-cwd.h: Likewise.
61735         * lib/savedir.c: Likewise.
61736         * lib/savedir.h: Likewise.
61737         * lib/savewd.c: Likewise.
61738         * lib/savewd.h: Likewise.
61739         * lib/search.in.h: Likewise.
61740         * lib/setenv.c: Likewise.
61741         * lib/setenv.h: Likewise.
61742         * lib/settime.c: Likewise.
61743         * lib/sh-quote.c: Likewise.
61744         * lib/sh-quote.h: Likewise.
61745         * lib/sig2str.c: Likewise.
61746         * lib/sig2str.h: Likewise.
61747         * lib/signal.in.h: Likewise.
61748         * lib/signbitd.c: Likewise.
61749         * lib/signbitf.c: Likewise.
61750         * lib/signbitl.c: Likewise.
61751         * lib/sigprocmask.c: Likewise.
61752         * lib/sincosl.c: Likewise.
61753         * lib/sleep.c: Likewise.
61754         * lib/sprintf.c: Likewise.
61755         * lib/sqrtl.c: Likewise.
61756         * lib/stat-time.h: Likewise.
61757         * lib/stdio--.h: Likewise.
61758         * lib/stdio-safer.h: Likewise.
61759         * lib/stdlib--.h: Likewise.
61760         * lib/stdlib-safer.h: Likewise.
61761         * lib/stdlib.in.h: Likewise.
61762         * lib/stpcpy.c: Likewise.
61763         * lib/stpncpy.c: Likewise.
61764         * lib/strchrnul.c: Likewise.
61765         * lib/strcspn.c: Likewise.
61766         * lib/strerror.c: Likewise.
61767         * lib/strftime.c: Likewise.
61768         * lib/strftime.h: Likewise.
61769         * lib/striconveh.c: Likewise.
61770         * lib/striconveh.h: Likewise.
61771         * lib/striconveha.c: Likewise.
61772         * lib/striconveha.h: Likewise.
61773         * lib/stripslash.c: Likewise.
61774         * lib/strnlen1.c: Likewise.
61775         * lib/strnlen1.h: Likewise.
61776         * lib/strtod.c: Likewise.
61777         * lib/strtoimax.c: Likewise.
61778         * lib/strtok_r.c: Likewise.
61779         * lib/strtol.c: Likewise.
61780         * lib/strtoll.c: Likewise.
61781         * lib/strtoul.c: Likewise.
61782         * lib/strtoull.c: Likewise.
61783         * lib/sysexits.in.h: Likewise.
61784         * lib/tempname.c: Likewise.
61785         * lib/tempname.h: Likewise.
61786         * lib/timespec.h: Likewise.
61787         * lib/tls.c: Likewise.
61788         * lib/tls.h: Likewise.
61789         * lib/tmpdir.c: Likewise.
61790         * lib/tmpdir.h: Likewise.
61791         * lib/tmpfile-safer.c: Likewise.
61792         * lib/tmpfile.c: Likewise.
61793         * lib/trigl.c: Likewise.
61794         * lib/trigl.h: Likewise.
61795         * lib/trim.c: Likewise.
61796         * lib/trim.h: Likewise.
61797         * lib/trunc.c: Likewise.
61798         * lib/truncf.c: Likewise.
61799         * lib/truncl.c: Likewise.
61800         * lib/tsearch.c: Likewise.
61801         * lib/unicodeio.c: Likewise.
61802         * lib/unicodeio.h: Likewise.
61803         * lib/unistd--.h: Likewise.
61804         * lib/unistd-safer.h: Likewise.
61805         * lib/unistdio/ulc-fprintf.c: Likewise.
61806         * lib/unistdio/ulc-vfprintf.c: Likewise.
61807         * lib/unlinkdir.c: Likewise.
61808         * lib/unlinkdir.h: Likewise.
61809         * lib/unlocked-io.h: Likewise.
61810         * lib/unsetenv.c: Likewise.
61811         * lib/userspec.c: Likewise.
61812         * lib/utime.c: Likewise.
61813         * lib/utimecmp.c: Likewise.
61814         * lib/utimecmp.h: Likewise.
61815         * lib/utimens.c: Likewise.
61816         * lib/verify.h: Likewise.
61817         * lib/verror.c: Likewise.
61818         * lib/verror.h: Likewise.
61819         * lib/version-etc-fsf.c: Likewise.
61820         * lib/version-etc.c: Likewise.
61821         * lib/version-etc.h: Likewise.
61822         * lib/vfprintf.c: Likewise.
61823         * lib/vprintf.c: Likewise.
61824         * lib/vsprintf.c: Likewise.
61825         * lib/w32spawn.h: Likewise.
61826         * lib/wait-process.c: Likewise.
61827         * lib/wait-process.h: Likewise.
61828         * lib/wcwidth.c: Likewise.
61829         * lib/write-any-file.c: Likewise.
61830         * lib/xalloc-die.c: Likewise.
61831         * lib/xalloc.h: Likewise.
61832         * lib/xasprintf.c: Likewise.
61833         * lib/xgetcwd.c: Likewise.
61834         * lib/xgetcwd.h: Likewise.
61835         * lib/xgetdomainname.c: Likewise.
61836         * lib/xgetdomainname.h: Likewise.
61837         * lib/xgethostname.c: Likewise.
61838         * lib/xmalloc.c: Likewise.
61839         * lib/xmalloca.c: Likewise.
61840         * lib/xmalloca.h: Likewise.
61841         * lib/xmemcoll.c: Likewise.
61842         * lib/xnanosleep.c: Likewise.
61843         * lib/xreadlink.c: Likewise.
61844         * lib/xreadlink.h: Likewise.
61845         * lib/xsetenv.c: Likewise.
61846         * lib/xsetenv.h: Likewise.
61847         * lib/xstriconv.c: Likewise.
61848         * lib/xstriconv.h: Likewise.
61849         * lib/xstrndup.c: Likewise.
61850         * lib/xstrndup.h: Likewise.
61851         * lib/xstrtod.c: Likewise.
61852         * lib/xstrtod.h: Likewise.
61853         * lib/xstrtol-error.c: Likewise.
61854         * lib/xstrtol.c: Likewise.
61855         * lib/xstrtol.h: Likewise.
61856         * lib/xtime.h: Likewise.
61857         * lib/xvasprintf.c: Likewise.
61858         * lib/xvasprintf.h: Likewise.
61859         * lib/yesno.c: Likewise.
61860         * lib/yesno.h: Likewise.
61861         * posix-modules: Likewise.
61862         * tests/test-alloca-opt.c: Likewise.
61863         * tests/test-arcfour.c: Likewise.
61864         * tests/test-arctwo.c: Likewise.
61865         * tests/test-argmatch.c: Likewise.
61866         * tests/test-argp-2.sh: Likewise.
61867         * tests/test-argp.c: Likewise.
61868         * tests/test-arpa_inet.c: Likewise.
61869         * tests/test-array_list.c: Likewise.
61870         * tests/test-array_oset.c: Likewise.
61871         * tests/test-atexit.c: Likewise.
61872         * tests/test-avltree_list.c: Likewise.
61873         * tests/test-avltree_oset.c: Likewise.
61874         * tests/test-avltreehash_list.c: Likewise.
61875         * tests/test-base64.c: Likewise.
61876         * tests/test-binary-io.c: Likewise.
61877         * tests/test-byteswap.c: Likewise.
61878         * tests/test-c-ctype.c: Likewise.
61879         * tests/test-c-strcasecmp.c: Likewise.
61880         * tests/test-c-strcasestr.c: Likewise.
61881         * tests/test-c-strncasecmp.c: Likewise.
61882         * tests/test-c-strstr.c: Likewise.
61883         * tests/test-canonicalize-lgpl.c: Likewise.
61884         * tests/test-canonicalize.c: Likewise.
61885         * tests/test-carray_list.c: Likewise.
61886         * tests/test-ceilf.c: Likewise.
61887         * tests/test-ceill.c: Likewise.
61888         * tests/test-count-one-bits.c: Likewise.
61889         * tests/test-crc.c: Likewise.
61890         * tests/test-dirname.c: Likewise.
61891         * tests/test-fbufmode.c: Likewise.
61892         * tests/test-fcntl.c: Likewise.
61893         * tests/test-fflush.c: Likewise.
61894         * tests/test-floorf.c: Likewise.
61895         * tests/test-floorl.c: Likewise.
61896         * tests/test-fopen.c: Likewise.
61897         * tests/test-fprintf-posix.c: Likewise.
61898         * tests/test-fprintf-posix.h: Likewise.
61899         * tests/test-fpurge.c: Likewise.
61900         * tests/test-freadable.c: Likewise.
61901         * tests/test-freadahead.c: Likewise.
61902         * tests/test-freading.c: Likewise.
61903         * tests/test-freopen.c: Likewise.
61904         * tests/test-frexp.c: Likewise.
61905         * tests/test-frexpl.c: Likewise.
61906         * tests/test-fseek.c: Likewise.
61907         * tests/test-fseeko.c: Likewise.
61908         * tests/test-fseterr.c: Likewise.
61909         * tests/test-fstrcmp.c: Likewise.
61910         * tests/test-ftell.c: Likewise.
61911         * tests/test-ftello.c: Likewise.
61912         * tests/test-fwritable.c: Likewise.
61913         * tests/test-fwriting.c: Likewise.
61914         * tests/test-getaddrinfo.c: Likewise.
61915         * tests/test-getpass.c: Likewise.
61916         * tests/test-gettimeofday.c: Likewise.
61917         * tests/test-hmac-md5.c: Likewise.
61918         * tests/test-hmac-sha1.c: Likewise.
61919         * tests/test-iconv.c: Likewise.
61920         * tests/test-iconvme.c: Likewise.
61921         * tests/test-inttypes.c: Likewise.
61922         * tests/test-isnan.c: Likewise.
61923         * tests/test-isnanf.c: Likewise.
61924         * tests/test-isnanl-nolibm.c: Likewise.
61925         * tests/test-isnanl.c: Likewise.
61926         * tests/test-isnanl.h: Likewise.
61927         * tests/test-ldexpl.c: Likewise.
61928         * tests/test-linked_list.c: Likewise.
61929         * tests/test-linkedhash_list.c: Likewise.
61930         * tests/test-locale.c: Likewise.
61931         * tests/test-localename.c: Likewise.
61932         * tests/test-lock.c: Likewise.
61933         * tests/test-lseek.c: Likewise.
61934         * tests/test-malloca.c: Likewise.
61935         * tests/test-math.c: Likewise.
61936         * tests/test-mbscasecmp.c: Likewise.
61937         * tests/test-mbscasestr1.c: Likewise.
61938         * tests/test-mbscasestr2.c: Likewise.
61939         * tests/test-mbscasestr3.c: Likewise.
61940         * tests/test-mbscasestr4.c: Likewise.
61941         * tests/test-mbschr.c: Likewise.
61942         * tests/test-mbscspn.c: Likewise.
61943         * tests/test-mbsncasecmp.c: Likewise.
61944         * tests/test-mbspbrk.c: Likewise.
61945         * tests/test-mbspcasecmp.c: Likewise.
61946         * tests/test-mbsrchr.c: Likewise.
61947         * tests/test-mbsspn.c: Likewise.
61948         * tests/test-mbsstr1.c: Likewise.
61949         * tests/test-mbsstr2.c: Likewise.
61950         * tests/test-mbsstr3.c: Likewise.
61951         * tests/test-md5.c: Likewise.
61952         * tests/test-memmem.c: Likewise.
61953         * tests/test-netinet_in.c: Likewise.
61954         * tests/test-open.c: Likewise.
61955         * tests/test-printf-frexp.c: Likewise.
61956         * tests/test-printf-frexpl.c: Likewise.
61957         * tests/test-printf-posix.c: Likewise.
61958         * tests/test-printf-posix.h: Likewise.
61959         * tests/test-rbtree_list.c: Likewise.
61960         * tests/test-rbtree_oset.c: Likewise.
61961         * tests/test-rbtreehash_list.c: Likewise.
61962         * tests/test-read-file.c: Likewise.
61963         * tests/test-rijndael.c: Likewise.
61964         * tests/test-search.c: Likewise.
61965         * tests/test-signbit.c: Likewise.
61966         * tests/test-sleep.c: Likewise.
61967         * tests/test-snprintf-posix.c: Likewise.
61968         * tests/test-snprintf-posix.h: Likewise.
61969         * tests/test-snprintf.c: Likewise.
61970         * tests/test-sprintf-posix.c: Likewise.
61971         * tests/test-sprintf-posix.h: Likewise.
61972         * tests/test-stat-time.c: Likewise.
61973         * tests/test-stdbool.c: Likewise.
61974         * tests/test-stdint.c: Likewise.
61975         * tests/test-stdio.c: Likewise.
61976         * tests/test-stdlib.c: Likewise.
61977         * tests/test-stpncpy.c: Likewise.
61978         * tests/test-strcasestr.c: Likewise.
61979         * tests/test-striconv.c: Likewise.
61980         * tests/test-striconveh.c: Likewise.
61981         * tests/test-striconveha.c: Likewise.
61982         * tests/test-string.c: Likewise.
61983         * tests/test-sys_select.c: Likewise.
61984         * tests/test-sys_socket.c: Likewise.
61985         * tests/test-sys_stat.c: Likewise.
61986         * tests/test-sys_time.c: Likewise.
61987         * tests/test-sysexits.c: Likewise.
61988         * tests/test-time.c: Likewise.
61989         * tests/test-tls.c: Likewise.
61990         * tests/test-trunc.c: Likewise.
61991         * tests/test-truncf.c: Likewise.
61992         * tests/test-truncl.c: Likewise.
61993         * tests/test-unistd.c: Likewise.
61994         * tests/test-vasnprintf-posix.c: Likewise.
61995         * tests/test-vasnprintf-posix2.c: Likewise.
61996         * tests/test-vasnprintf.c: Likewise.
61997         * tests/test-vasprintf-posix.c: Likewise.
61998         * tests/test-vasprintf.c: Likewise.
61999         * tests/test-verify.c: Likewise.
62000         * tests/test-vfprintf-posix.c: Likewise.
62001         * tests/test-vprintf-posix.c: Likewise.
62002         * tests/test-vsnprintf-posix.c: Likewise.
62003         * tests/test-vsnprintf.c: Likewise.
62004         * tests/test-vsprintf-posix.c: Likewise.
62005         * tests/test-wchar.c: Likewise.
62006         * tests/test-wctype.c: Likewise.
62007         * tests/test-wcwidth.c: Likewise.
62008         * tests/test-xstrtol.c: Likewise.
62009         * tests/test-xvasprintf.c: Likewise.
62010         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
62011         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
62012         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
62013         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
62014         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
62015         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
62016         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
62017         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
62018         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
62019         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
62020         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
62021         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
62022         * tests/uniname/test-uninames.c: Likewise.
62023         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
62024         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
62025         * tests/unistdio/test-u16-printf1.h: Likewise.
62026         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
62027         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
62028         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
62029         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
62030         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
62031         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
62032         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
62033         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
62034         * tests/unistdio/test-u32-printf1.h: Likewise.
62035         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
62036         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
62037         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
62038         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
62039         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
62040         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
62041         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
62042         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
62043         * tests/unistdio/test-u8-printf1.h: Likewise.
62044         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
62045         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
62046         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
62047         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
62048         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
62049         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
62050         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
62051         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
62052         * tests/unistdio/test-ulc-printf1.h: Likewise.
62053         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
62054         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
62055         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
62056         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
62057         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
62058         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
62059         * tests/uniwidth/test-u16-strwidth.c: Likewise.
62060         * tests/uniwidth/test-u16-width.c: Likewise.
62061         * tests/uniwidth/test-u32-strwidth.c: Likewise.
62062         * tests/uniwidth/test-u32-width.c: Likewise.
62063         * tests/uniwidth/test-u8-strwidth.c: Likewise.
62064         * tests/uniwidth/test-u8-width.c: Likewise.
62065         * tests/uniwidth/test-uc_width.c: Likewise.
62066         * config/srclist-update: Likewise.
62067         (fixlicense): Update to GPLv3+.
62068
62069         Change copyright notice from LGPLv2.1+ to LGPLv3+.
62070         * tests/test-tsearch.c: Change copyright notice.
62071
62072         Change copyright notice from LGPLv2.0+ to LGPLv3+.
62073         * lib/c-strcaseeq.h: Change copyright notice.
62074         * lib/streq.h: Likewise.
62075         * lib/uniconv.h: Likewise.
62076         * lib/uniconv/u-conv-from-enc.h: Likewise.
62077         * lib/uniconv/u-conv-to-enc.h: Likewise.
62078         * lib/uniconv/u-strconv-from-enc.h: Likewise.
62079         * lib/uniconv/u-strconv-to-enc.h: Likewise.
62080         * lib/uniconv/u16-conv-from-enc.c: Likewise.
62081         * lib/uniconv/u16-conv-to-enc.c: Likewise.
62082         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
62083         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
62084         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
62085         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
62086         * lib/uniconv/u32-conv-from-enc.c: Likewise.
62087         * lib/uniconv/u32-conv-to-enc.c: Likewise.
62088         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
62089         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
62090         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
62091         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
62092         * lib/uniconv/u8-conv-from-enc.c: Likewise.
62093         * lib/uniconv/u8-conv-to-enc.c: Likewise.
62094         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
62095         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
62096         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
62097         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
62098         * lib/uniname.h: Likewise.
62099         * lib/uniname/uniname.c: Likewise.
62100         * lib/unistdio.h: Likewise.
62101         * lib/unistdio/u-asnprintf.h: Likewise.
62102         * lib/unistdio/u-asprintf.h: Likewise.
62103         * lib/unistdio/u-printf-args.c: Likewise.
62104         * lib/unistdio/u-printf-args.h: Likewise.
62105         * lib/unistdio/u-printf-parse.h: Likewise.
62106         * lib/unistdio/u-snprintf.h: Likewise.
62107         * lib/unistdio/u-sprintf.h: Likewise.
62108         * lib/unistdio/u-vasprintf.h: Likewise.
62109         * lib/unistdio/u-vsnprintf.h: Likewise.
62110         * lib/unistdio/u-vsprintf.h: Likewise.
62111         * lib/unistdio/u16-asnprintf.c: Likewise.
62112         * lib/unistdio/u16-asprintf.c: Likewise.
62113         * lib/unistdio/u16-printf-parse.c: Likewise.
62114         * lib/unistdio/u16-snprintf.c: Likewise.
62115         * lib/unistdio/u16-sprintf.c: Likewise.
62116         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
62117         * lib/unistdio/u16-u16-asprintf.c: Likewise.
62118         * lib/unistdio/u16-u16-snprintf.c: Likewise.
62119         * lib/unistdio/u16-u16-sprintf.c: Likewise.
62120         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
62121         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
62122         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
62123         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
62124         * lib/unistdio/u16-vasnprintf.c: Likewise.
62125         * lib/unistdio/u16-vasprintf.c: Likewise.
62126         * lib/unistdio/u16-vsnprintf.c: Likewise.
62127         * lib/unistdio/u16-vsprintf.c: Likewise.
62128         * lib/unistdio/u32-asnprintf.c: Likewise.
62129         * lib/unistdio/u32-asprintf.c: Likewise.
62130         * lib/unistdio/u32-printf-parse.c: Likewise.
62131         * lib/unistdio/u32-snprintf.c: Likewise.
62132         * lib/unistdio/u32-sprintf.c: Likewise.
62133         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
62134         * lib/unistdio/u32-u32-asprintf.c: Likewise.
62135         * lib/unistdio/u32-u32-snprintf.c: Likewise.
62136         * lib/unistdio/u32-u32-sprintf.c: Likewise.
62137         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
62138         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
62139         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
62140         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
62141         * lib/unistdio/u32-vasnprintf.c: Likewise.
62142         * lib/unistdio/u32-vasprintf.c: Likewise.
62143         * lib/unistdio/u32-vsnprintf.c: Likewise.
62144         * lib/unistdio/u32-vsprintf.c: Likewise.
62145         * lib/unistdio/u8-asnprintf.c: Likewise.
62146         * lib/unistdio/u8-asprintf.c: Likewise.
62147         * lib/unistdio/u8-printf-parse.c: Likewise.
62148         * lib/unistdio/u8-snprintf.c: Likewise.
62149         * lib/unistdio/u8-sprintf.c: Likewise.
62150         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
62151         * lib/unistdio/u8-u8-asprintf.c: Likewise.
62152         * lib/unistdio/u8-u8-snprintf.c: Likewise.
62153         * lib/unistdio/u8-u8-sprintf.c: Likewise.
62154         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
62155         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
62156         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
62157         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
62158         * lib/unistdio/u8-vasnprintf.c: Likewise.
62159         * lib/unistdio/u8-vasprintf.c: Likewise.
62160         * lib/unistdio/u8-vsnprintf.c: Likewise.
62161         * lib/unistdio/u8-vsprintf.c: Likewise.
62162         * lib/unistdio/ulc-asnprintf.c: Likewise.
62163         * lib/unistdio/ulc-asprintf.c: Likewise.
62164         * lib/unistdio/ulc-printf-parse.c: Likewise.
62165         * lib/unistdio/ulc-snprintf.c: Likewise.
62166         * lib/unistdio/ulc-sprintf.c: Likewise.
62167         * lib/unistdio/ulc-vasnprintf.c: Likewise.
62168         * lib/unistdio/ulc-vasprintf.c: Likewise.
62169         * lib/unistdio/ulc-vsnprintf.c: Likewise.
62170         * lib/unistdio/ulc-vsprintf.c: Likewise.
62171         * lib/unistr.h: Likewise.
62172         * lib/unistr/u-cpy-alloc.h: Likewise.
62173         * lib/unistr/u-cpy.h: Likewise.
62174         * lib/unistr/u-endswith.h: Likewise.
62175         * lib/unistr/u-move.h: Likewise.
62176         * lib/unistr/u-set.h: Likewise.
62177         * lib/unistr/u-startswith.h: Likewise.
62178         * lib/unistr/u-stpcpy.h: Likewise.
62179         * lib/unistr/u-stpncpy.h: Likewise.
62180         * lib/unistr/u-strcat.h: Likewise.
62181         * lib/unistr/u-strcpy.h: Likewise.
62182         * lib/unistr/u-strcspn.h: Likewise.
62183         * lib/unistr/u-strdup.h: Likewise.
62184         * lib/unistr/u-strlen.h: Likewise.
62185         * lib/unistr/u-strncat.h: Likewise.
62186         * lib/unistr/u-strncpy.h: Likewise.
62187         * lib/unistr/u-strnlen.h: Likewise.
62188         * lib/unistr/u-strpbrk.h: Likewise.
62189         * lib/unistr/u-strspn.h: Likewise.
62190         * lib/unistr/u-strstr.h: Likewise.
62191         * lib/unistr/u-strtok.h: Likewise.
62192         * lib/unistr/u16-check.c: Likewise.
62193         * lib/unistr/u16-chr.c: Likewise.
62194         * lib/unistr/u16-cmp.c: Likewise.
62195         * lib/unistr/u16-cpy-alloc.c: Likewise.
62196         * lib/unistr/u16-cpy.c: Likewise.
62197         * lib/unistr/u16-endswith.c: Likewise.
62198         * lib/unistr/u16-mblen.c: Likewise.
62199         * lib/unistr/u16-mbsnlen.c: Likewise.
62200         * lib/unistr/u16-mbtouc-aux.c: Likewise.
62201         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
62202         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
62203         * lib/unistr/u16-mbtouc.c: Likewise.
62204         * lib/unistr/u16-mbtoucr.c: Likewise.
62205         * lib/unistr/u16-move.c: Likewise.
62206         * lib/unistr/u16-next.c: Likewise.
62207         * lib/unistr/u16-prev.c: Likewise.
62208         * lib/unistr/u16-set.c: Likewise.
62209         * lib/unistr/u16-startswith.c: Likewise.
62210         * lib/unistr/u16-stpcpy.c: Likewise.
62211         * lib/unistr/u16-stpncpy.c: Likewise.
62212         * lib/unistr/u16-strcat.c: Likewise.
62213         * lib/unistr/u16-strchr.c: Likewise.
62214         * lib/unistr/u16-strcmp.c: Likewise.
62215         * lib/unistr/u16-strcpy.c: Likewise.
62216         * lib/unistr/u16-strcspn.c: Likewise.
62217         * lib/unistr/u16-strdup.c: Likewise.
62218         * lib/unistr/u16-strlen.c: Likewise.
62219         * lib/unistr/u16-strmblen.c: Likewise.
62220         * lib/unistr/u16-strmbtouc.c: Likewise.
62221         * lib/unistr/u16-strncat.c: Likewise.
62222         * lib/unistr/u16-strncmp.c: Likewise.
62223         * lib/unistr/u16-strncpy.c: Likewise.
62224         * lib/unistr/u16-strnlen.c: Likewise.
62225         * lib/unistr/u16-strpbrk.c: Likewise.
62226         * lib/unistr/u16-strrchr.c: Likewise.
62227         * lib/unistr/u16-strspn.c: Likewise.
62228         * lib/unistr/u16-strstr.c: Likewise.
62229         * lib/unistr/u16-strtok.c: Likewise.
62230         * lib/unistr/u16-to-u32.c: Likewise.
62231         * lib/unistr/u16-to-u8.c: Likewise.
62232         * lib/unistr/u16-uctomb-aux.c: Likewise.
62233         * lib/unistr/u16-uctomb.c: Likewise.
62234         * lib/unistr/u32-check.c: Likewise.
62235         * lib/unistr/u32-chr.c: Likewise.
62236         * lib/unistr/u32-cmp.c: Likewise.
62237         * lib/unistr/u32-cpy-alloc.c: Likewise.
62238         * lib/unistr/u32-cpy.c: Likewise.
62239         * lib/unistr/u32-endswith.c: Likewise.
62240         * lib/unistr/u32-mblen.c: Likewise.
62241         * lib/unistr/u32-mbsnlen.c: Likewise.
62242         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
62243         * lib/unistr/u32-mbtouc.c: Likewise.
62244         * lib/unistr/u32-mbtoucr.c: Likewise.
62245         * lib/unistr/u32-move.c: Likewise.
62246         * lib/unistr/u32-next.c: Likewise.
62247         * lib/unistr/u32-prev.c: Likewise.
62248         * lib/unistr/u32-set.c: Likewise.
62249         * lib/unistr/u32-startswith.c: Likewise.
62250         * lib/unistr/u32-stpcpy.c: Likewise.
62251         * lib/unistr/u32-stpncpy.c: Likewise.
62252         * lib/unistr/u32-strcat.c: Likewise.
62253         * lib/unistr/u32-strchr.c: Likewise.
62254         * lib/unistr/u32-strcmp.c: Likewise.
62255         * lib/unistr/u32-strcpy.c: Likewise.
62256         * lib/unistr/u32-strcspn.c: Likewise.
62257         * lib/unistr/u32-strdup.c: Likewise.
62258         * lib/unistr/u32-strlen.c: Likewise.
62259         * lib/unistr/u32-strmblen.c: Likewise.
62260         * lib/unistr/u32-strmbtouc.c: Likewise.
62261         * lib/unistr/u32-strncat.c: Likewise.
62262         * lib/unistr/u32-strncmp.c: Likewise.
62263         * lib/unistr/u32-strncpy.c: Likewise.
62264         * lib/unistr/u32-strnlen.c: Likewise.
62265         * lib/unistr/u32-strpbrk.c: Likewise.
62266         * lib/unistr/u32-strrchr.c: Likewise.
62267         * lib/unistr/u32-strspn.c: Likewise.
62268         * lib/unistr/u32-strstr.c: Likewise.
62269         * lib/unistr/u32-strtok.c: Likewise.
62270         * lib/unistr/u32-to-u16.c: Likewise.
62271         * lib/unistr/u32-to-u8.c: Likewise.
62272         * lib/unistr/u32-uctomb.c: Likewise.
62273         * lib/unistr/u8-check.c: Likewise.
62274         * lib/unistr/u8-chr.c: Likewise.
62275         * lib/unistr/u8-cmp.c: Likewise.
62276         * lib/unistr/u8-cpy-alloc.c: Likewise.
62277         * lib/unistr/u8-cpy.c: Likewise.
62278         * lib/unistr/u8-endswith.c: Likewise.
62279         * lib/unistr/u8-mblen.c: Likewise.
62280         * lib/unistr/u8-mbsnlen.c: Likewise.
62281         * lib/unistr/u8-mbtouc-aux.c: Likewise.
62282         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
62283         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
62284         * lib/unistr/u8-mbtouc.c: Likewise.
62285         * lib/unistr/u8-mbtoucr.c: Likewise.
62286         * lib/unistr/u8-move.c: Likewise.
62287         * lib/unistr/u8-next.c: Likewise.
62288         * lib/unistr/u8-prev.c: Likewise.
62289         * lib/unistr/u8-set.c: Likewise.
62290         * lib/unistr/u8-startswith.c: Likewise.
62291         * lib/unistr/u8-stpcpy.c: Likewise.
62292         * lib/unistr/u8-stpncpy.c: Likewise.
62293         * lib/unistr/u8-strcat.c: Likewise.
62294         * lib/unistr/u8-strchr.c: Likewise.
62295         * lib/unistr/u8-strcmp.c: Likewise.
62296         * lib/unistr/u8-strcpy.c: Likewise.
62297         * lib/unistr/u8-strcspn.c: Likewise.
62298         * lib/unistr/u8-strdup.c: Likewise.
62299         * lib/unistr/u8-strlen.c: Likewise.
62300         * lib/unistr/u8-strmblen.c: Likewise.
62301         * lib/unistr/u8-strmbtouc.c: Likewise.
62302         * lib/unistr/u8-strncat.c: Likewise.
62303         * lib/unistr/u8-strncmp.c: Likewise.
62304         * lib/unistr/u8-strncpy.c: Likewise.
62305         * lib/unistr/u8-strnlen.c: Likewise.
62306         * lib/unistr/u8-strpbrk.c: Likewise.
62307         * lib/unistr/u8-strrchr.c: Likewise.
62308         * lib/unistr/u8-strspn.c: Likewise.
62309         * lib/unistr/u8-strstr.c: Likewise.
62310         * lib/unistr/u8-strtok.c: Likewise.
62311         * lib/unistr/u8-to-u16.c: Likewise.
62312         * lib/unistr/u8-to-u32.c: Likewise.
62313         * lib/unistr/u8-uctomb-aux.c: Likewise.
62314         * lib/unistr/u8-uctomb.c: Likewise.
62315         * lib/unitypes.h: Likewise.
62316         * lib/uniwidth.h: Likewise.
62317         * lib/uniwidth/cjk.h: Likewise.
62318         * lib/uniwidth/u16-strwidth.c: Likewise.
62319         * lib/uniwidth/u16-width.c: Likewise.
62320         * lib/uniwidth/u32-strwidth.c: Likewise.
62321         * lib/uniwidth/u32-width.c: Likewise.
62322         * lib/uniwidth/u8-strwidth.c: Likewise.
62323         * lib/uniwidth/u8-width.c: Likewise.
62324         * lib/uniwidth/width.c: Likewise.
62325
62326 2007-10-07  Bruno Haible  <bruno@clisp.org>
62327
62328         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
62329         The file is still under LGPL (see modules/inttypes).
62330
62331 2007-10-06  Bruno Haible  <bruno@clisp.org>
62332
62333         * modules/trunc (Dependencies): Add 'extensions'.
62334         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
62335         Reported by Ben Pfaff <blp@gnu.org>.
62336
62337 2007-10-06  Bruno Haible  <bruno@clisp.org>
62338
62339         * modules/freopen-tests: New file.
62340         * tests/test-freopen.c: New file.
62341
62342         * modules/fopen-tests: New file.
62343         * tests/test-fopen.c: New file.
62344
62345         * modules/fopen: New file.
62346         * lib/fopen.c: New file.
62347         * m4/fopen.m4: New file.
62348         * modules/freopen: New file.
62349         * lib/freopen.c: New file.
62350         * m4/freopen.m4: New file.
62351         * lib/stdio.in.h (fopen, freopen): New declarations.
62352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
62353         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62354         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
62355         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
62356         * doc/functions/fopen.texi: Mention the 'fopen' module.
62357         * doc/functions/freopen.texi: Mention the 'freopen' module.
62358
62359 2007-10-06  Bruno Haible  <bruno@clisp.org>
62360
62361         * modules/open-tests: New file.
62362         * tests/test-open.c: New file.
62363
62364         * modules/open: New file.
62365         * lib/open.c: New file.
62366         * m4/open.m4: New file.
62367         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
62368         lib/open.c does.
62369         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
62370         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
62371         macros.
62372         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
62373         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
62374         REPLACE_OPEN.
62375         * doc/functions/open.texi: Mention the 'open' module.
62376
62377 2007-10-04  Bruno Haible  <bruno@clisp.org>
62378
62379         * modules/ceill-tests: New file.
62380         * tests/test-ceill.c: New file.
62381
62382         * modules/ceill: New file.
62383         * lib/ceill.c: Replace entire file.
62384         * m4/ceill.m4: New file.
62385         * lib/math.in.h (ceill): Replace declaration.
62386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
62387         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
62388         * doc/functions/ceill.texi: Mention the 'ceill' module.
62389         * modules/mathl (Files): Remove lib/ceill.c.
62390         (Depends-on): Add ceill.
62391
62392 2007-10-04  Bruno Haible  <bruno@clisp.org>
62393
62394         * modules/ceilf-tests: New file.
62395         * tests/test-ceilf.c: New file.
62396
62397         * modules/ceilf: New file.
62398         * lib/ceil.c: New file.
62399         * lib/ceilf.c: New file.
62400         * m4/ceilf.m4: New file.
62401         * lib/math.in.h (ceilf): New declaration.
62402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
62403         HAVE_DECL_CEILF.
62404         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
62405         HAVE_DECL_CEILF.
62406         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
62407
62408 2007-10-04  Bruno Haible  <bruno@clisp.org>
62409
62410         * modules/floorl-tests: New file.
62411         * tests/test-floorl.c: New file.
62412
62413         * modules/floorl: New file.
62414         * lib/floorl.c: Replace entire file.
62415         * m4/floorl.m4: New file.
62416         * lib/math.in.h (floorl): Replace declaration.
62417         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
62418         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
62419         * doc/functions/floorl.texi: Mention the 'floorl' module.
62420         * modules/mathl (Files): Remove lib/floorl.c.
62421         (Depends-on): Add floorl.
62422
62423 2007-10-04  Bruno Haible  <bruno@clisp.org>
62424
62425         * modules/floorf-tests: New file.
62426         * tests/test-floorf.c: New file.
62427
62428         * modules/floorf: New file.
62429         * lib/floor.c: New file.
62430         * lib/floorf.c: New file.
62431         * m4/floorf.m4: New file.
62432         * lib/math.in.h (floorf): New declaration.
62433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
62434         HAVE_DECL_FLOORF.
62435         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
62436         HAVE_DECL_FLOORF.
62437         * doc/functions/floorf.texi: Mention the 'floorf' module.
62438
62439 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
62440             Bruno Haible  <bruno@clisp.org>
62441
62442         Advertise for the Git server instead of the CVS server.
62443         * doc/gnulib-intro.texi (Steady Development): Mention the Git
62444         repository instead of the CVS one.
62445         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
62446         about all VCS systems generically.
62447         * doc/gnulib.texi (Introduction): Capitalize `Git'.
62448
62449 2007-10-04  Bruno Haible  <bruno@clisp.org>
62450
62451         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
62452         means.
62453         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
62454
62455 2007-10-04  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/truncl-tests: New file.
62458         * tests/test-truncl.c: New file.
62459
62460         * modules/truncl: New file.
62461         * lib/truncl.c: New file.
62462         * m4/truncl.m4: New file.
62463         * lib/math.in.h (truncl): New declaration.
62464         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
62465         HAVE_DECL_TRUNCL.
62466         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
62467         HAVE_DECL_TRUNCL.
62468         * doc/functions/truncl.texi: Mention the 'truncl' module.
62469
62470 2007-10-04  Bruno Haible  <bruno@clisp.org>
62471
62472         * modules/truncf-tests: New file.
62473         * tests/test-truncf.c: New file.
62474
62475         * modules/truncf: New file.
62476         * lib/trunc.c: Make paramerizable through USE_* macros.
62477         * lib/truncf.c: New file.
62478         * m4/truncf.m4: New file.
62479         * lib/math.in.h (truncf): New declaration.
62480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
62481         HAVE_DECL_TRUNCF.
62482         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
62483         HAVE_DECL_TRUNCF.
62484         * doc/functions/truncf.texi: Mention the 'truncf' module.
62485
62486 2007-10-03  Bruno Haible  <bruno@clisp.org>
62487
62488         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
62489         augmentation also for tests modules.
62490         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
62491         * modules/atexit-tests (Makefile.am): Likewise.
62492         * modules/binary-io-tests (Makefile.am): Likewise.
62493         * modules/c-strcase-tests (Makefile.am): Likewise.
62494         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
62495         * modules/canonicalize-tests (Makefile.am): Likewise.
62496         * modules/closein-tests (Makefile.am): Likewise.
62497         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62498         * modules/freadahead-tests (Makefile.am): Likewise.
62499         * modules/fseek-tests (Makefile.am): Likewise.
62500         * modules/fseeko-tests (Makefile.am): Likewise.
62501         * modules/ftell-tests (Makefile.am): Likewise.
62502         * modules/ftello-tests (Makefile.am): Likewise.
62503         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
62504         * modules/isnanl-tests (Makefile.am): Likewise.
62505         * modules/lseek-tests (Makefile.am): Likewise.
62506         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62507         * modules/mbscasestr-tests (Makefile.am): Likewise.
62508         * modules/mbschr-tests (Makefile.am): Likewise.
62509         * modules/mbscspn-tests (Makefile.am): Likewise.
62510         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62511         * modules/mbspbrk-tests (Makefile.am): Likewise.
62512         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62513         * modules/mbsrchr-tests (Makefile.am): Likewise.
62514         * modules/mbsspn-tests (Makefile.am): Likewise.
62515         * modules/mbsstr-tests (Makefile.am): Likewise.
62516         * modules/printf-posix-tests (Makefile.am): Likewise.
62517         * modules/snprintf-posix-tests (Makefile.am): Likewise.
62518         * modules/sprintf-posix-tests (Makefile.am): Likewise.
62519         * modules/tsearch-tests (Makefile.am): Likewise.
62520         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62521         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62522         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62523         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62524         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62525         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62526         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62527         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62528         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
62529         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
62530         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62531         * modules/xstrtol-tests (Makefile.am): Likewise.
62532         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62533         * modules/yesno-tests (Makefile.am): Likewise.
62534
62535 2007-10-03  Bruno Haible  <bruno@clisp.org>
62536
62537         * modules/trunc-tests: New file.
62538         * tests/test-trunc.c: New file.
62539
62540         * modules/trunc: New file.
62541         * lib/trunc.c: New file.
62542         * m4/trunc.m4: New file.
62543         * lib/math.in.h (trunc): New declaration.
62544         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
62545         HAVE_DECL_TRUNC.
62546         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
62547         HAVE_DECL_TRUNC.
62548         * doc/functions/trunc.texi: Mention the 'trunc' module.
62549
62550 2007-10-03  Bruno Haible  <bruno@clisp.org>
62551
62552         * tests/test-fpending.c: New file, mostly copied
62553         from coreutils/lib/t-fpending.c.
62554         * modules/fpending-tests: New file.
62555
62556 2007-10-03  Bruno Haible  <bruno@clisp.org>
62557
62558         Port the stdio extensions to QNX (untested).
62559         * lib/fseterr.c (fseterr): Add support for QNX.
62560         * lib/fbufmode.c (fbufmode): Likewise.
62561         * lib/freadable.c (freadable): Likewise.
62562         * lib/fwritable.c (fwritable): Likewise.
62563         * lib/freading.c (freading): Likewise.
62564         * lib/fwriting.c (fwriting): Likewise.
62565         * lib/freadahead.c (freadahed): Likewise.
62566         * lib/fpurge.c (fpurge): Likewise.
62567         * lib/fseeko.c (rpl_fseeko): Likewise.
62568
62569 2007-10-03  Bruno Haible  <bruno@clisp.org>
62570             Jim Meyering  <jim@meyering.net>
62571             Eric Blake  <ebb9@byu.net>
62572
62573         * doc/relocatable.texi: Use @command instead of @program.
62574
62575 2007-10-02  Jim Meyering  <jim@meyering.net>
62576
62577         Perform one more "_.h" -> ".in.h" substitution.
62578         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
62579         instead of unistd_.h here, too.
62580
62581 2007-10-01  Bruno Haible  <bruno@clisp.org>
62582
62583         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
62584         Needed for the alloca-opt module.
62585
62586 2007-09-30  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/alloca.in.h: Renamed from lib/alloca_.h.
62589         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
62590         alloca_.h.
62591         * lib/argz.in.h: Renamed from lib/argz_.h.
62592         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
62593         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
62594         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
62595         byteswap_.h.
62596         * lib/dirent.in.h: Renamed from lib/dirent_.h.
62597         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
62598         dirent_.h.
62599         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
62600         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
62601         fcntl_.h.
62602         * lib/float.in.h: Renamed from lib/float_.h.
62603         * modules/float (Files, Makefile.am): Use float.in.h instead of
62604         float_.h.
62605         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
62606         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
62607         fnmatch_.h.
62608         * lib/getopt.in.h: Renamed from lib/getopt_.h.
62609         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
62610         getopt_.h.
62611         * lib/glob.in.h: Renamed from lib/glob_.h.
62612         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
62613         * lib/iconv.in.h: Renamed from lib/iconv_.h.
62614         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
62615         iconv_.h.
62616         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
62617         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
62618         inttypes_.h.
62619         * lib/locale.in.h: Renamed from lib/locale_.h.
62620         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
62621         locale_.h.
62622         * lib/math.in.h: Renamed from lib/math_.h.
62623         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
62624         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
62625         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
62626         of netinet_in_.h. Add dependency.
62627         * lib/poll.in.h: Renamed from lib/poll_.h.
62628         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
62629         * lib/search.in.h: Renamed from lib/search_.h.
62630         * modules/search (Files, Makefile.am): Use search.in.h instead of
62631         search_.h.
62632         * lib/signal.in.h: Renamed from lib/signal_.h.
62633         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
62634         _signal.h.
62635         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
62636         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
62637         stdbool_.h.
62638         * lib/stdint.in.h: Renamed from lib/stdint_.h.
62639         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
62640         stdint_.h.
62641         * lib/stdio.in.h: Renamed from lib/stdio_.h.
62642         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
62643         stdio_.h.
62644         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
62645         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
62646         stdlib_.h.
62647         * lib/string.in.h: Renamed from lib/string_.h.
62648         * modules/string (Files, Makefile.am): Use string.in.h instead of
62649         string_.h.
62650         * doc/gnulib-tool.texi (Initial import): Update.
62651         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
62652         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
62653         of sys_select_.h. Add dependency.
62654         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
62655         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
62656         of sys_socket_.h.
62657         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
62658         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
62659         sys_stat_.h.
62660         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
62661         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
62662         sys_time_.h.
62663         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
62664         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
62665         sysexits_.h.
62666         * lib/time.in.h: Renamed from lib/time_.h.
62667         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
62668         * lib/unistd.in.h: Renamed from lib/unistd_.h.
62669         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
62670         unistd_.h.
62671         * lib/wchar.in.h: Renamed from lib/wchar_.h.
62672         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
62673         wchar_.h.
62674         * lib/wctype.in.h: Renamed from lib/wctype_.h.
62675         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
62676         wctype_.h.
62677         * build-aux/bootstrap (slurp): Update.
62678         * lib/.cppi-disable: Update.
62679
62680 2007-09-30  Bruno Haible  <bruno@clisp.org>
62681
62682         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
62683         Needed on BeOS.
62684
62685 2007-09-30  Bruno Haible  <bruno@clisp.org>
62686
62687         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
62688
62689 2007-09-29  Bruno Haible  <bruno@clisp.org>
62690
62691         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
62692
62693 2007-09-29  Bruno Haible  <bruno@clisp.org>
62694
62695         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
62696         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
62697         * build-aux/install-reloc: Compile also areadlink.c.
62698         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
62699
62700 2007-09-29  Bruno Haible  <bruno@clisp.org>
62701
62702         * gnulib-tool (func_emit_initmacro_done): Indentation.
62703
62704 2007-09-29  Bruno Haible  <bruno@clisp.org>
62705
62706         * README: Add CVS checkout update instructions.
62707         Info from Bob Proulx <bob@proulx.com>.
62708
62709 2007-09-28  Eric Blake  <ebb9@byu.net>
62710
62711         Provide move-if-change.
62712         * build-aux/move-if-change: New file, based on best practice
62713         rather than any canonical upstream location.
62714
62715 2007-09-28  Jim Meyering  <jim@meyering.net>
62716
62717         Fix canonicalize loop-detection corner case.
62718         Do not attempt to stat the symlink values stored via seen_triple.
62719         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
62720         on linux-2.6.18, (but not 2.6.22).
62721         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
62722         triple_compare.  The former compares dev,ino,filename, while the latter
62723         would actually stat dirname(filename) when dev and ino were equal.
62724         * lib/hash-triple.c: Install <string.h>.
62725         (STREQ): Define.
62726         (triple_compare_ino_str): New function.
62727         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
62728
62729 2007-09-28  Eric Blake  <ebb9@byu.net>
62730
62731         Enforce that AC_REPLACE_FUNCS files exist.
62732         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
62733         override check for typos.
62734
62735         Fix test-closein on Solaris 10.
62736         * tests/test-closein.c (main): Don't assume stdin can be inherited
62737         closed on all systems.
62738         * tests/test-closein.sh: Likewise.
62739         Reported by Piotr Tarnowski.
62740
62741 2007-09-28  Jim Meyering  <jim@meyering.net>
62742
62743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
62744
62745 2007-09-27  Jim Meyering  <jim@meyering.net>
62746
62747         canonicalize: Avoid a false-positive cycle failure.
62748         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
62749         Sort.  Remove cycle-check.
62750         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
62751         not cycle-check.h.
62752         (seen_triple): New function.
62753         (canonicalize_filename_mode): Use it instead of cycle-check.
62754         * tests/test-canonicalize.c: Add a test for this bug.
62755         * tests/test-canonicalize.sh: Set up and run the test.
62756
62757         New module, file-set, from coreutils.
62758         * modules/file-set: Define it.
62759         * lib/file-set.c, lib/file-set.h: Implement.
62760
62761         New module, hash-triple, from coreutils.
62762         * modules/hash-triple: Define it.
62763         * lib/hash-triple.c, lib/hash-triple.h: Implement.
62764
62765 2007-09-25  Eric Blake  <ebb9@byu.net>
62766
62767         Fix strerror on Interix.
62768         * lib/string_.h (strerror): Declare replacement.
62769         * doc/functions/strerror.texi (strerror): Document the Interix
62770         shortcoming.
62771         * modules/string (Makefile.am): Support new hooks.
62772         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
62773         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
62774         gl_FUNC_STRERROR_SEPARATE.
62775         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
62776         * lib/strerror.c (rpl_strerror): Provide replacement.
62777         * modules/strerror (Depends-on): Add string.
62778         (configure.ac): Detect use of module.
62779         * tests/test-strerror.c: New file.
62780         * modules/strerror-tests: New test module.
62781         * modules/argp (Depends-on): Add strerror.
62782         * modules/error (Depends-on): Likewise.
62783         Reported by Martin Koeppe.
62784
62785 2007-09-24  Bruno Haible  <bruno@clisp.org>
62786
62787         * README: Update git instructions.
62788
62789 2007-09-24  Eric Blake  <ebb9@byu.net>
62790
62791         Revert fpending breakage from 2007-09-08.
62792         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
62793         __fpending.c.
62794
62795 2007-09-24  Jim Meyering  <jim@meyering.net>
62796
62797         filenamecat.c: Add a test.
62798         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
62799         showing how the function works when DIR is the empty string.
62800
62801 2007-09-21  Simon Josefsson  <simon@josefsson.org>
62802
62803         * tests/test-canonicalize.sh: Turn on executable bit.
62804
62805 2007-09-19  Eric Blake  <ebb9@byu.net>
62806
62807         * README: Update CVS instructions.
62808
62809 2007-09-18  Bruno Haible  <bruno@clisp.org>
62810
62811         * modules/areadlink: New file.
62812         * lib/areadlink.h (areadlink): New declaration.
62813         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62814
62815 2007-09-17  Jim Meyering  <jim@meyering.net>
62816
62817         * lib/savewd.c (ESTALE) [!defined]: Define.
62818         Reported to be required on Interix by Martin Koeppe.
62819
62820 2007-09-17  Bruno Haible  <bruno@clisp.org>
62821
62822         * gnulib-tool (func_version): Use $version.
62823
62824 2007-09-16  Bruno Haible  <bruno@clisp.org>
62825
62826         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62827         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62828         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62829         Reported by Greg Schafer <gschafer@zip.com.au>.
62830
62831 2007-09-15  Bruno Haible  <bruno@clisp.org>
62832
62833         * gnulib-tool (sed): Try a little harder to make bash understand the
62834         alias.
62835         Reported by Bruce Korb <bruce.korb@gmail.com>.
62836
62837 2007-09-13  Eric Blake  <ebb9@byu.net>
62838
62839         * ChangeLog: Remove conflict markers.
62840
62841 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62842
62843         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62844         Reported by Bruno Haible <bruno@clisp.org>.
62845
62846 2007-09-12  Bruno Haible  <bruno@clisp.org>
62847
62848         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62849         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62850         is not defined.
62851
62852 2007-09-12  Eric Blake  <ebb9@byu.net>
62853
62854         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62855         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62856         Autoconf definition.
62857         * modules/euidaccess (Depends-on): Add extensions, for
62858         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62859         * modules/fnmatch (Depends-on): Likewise.
62860         * modules/getaddrinfo (Depends-on): Likewise.
62861         * modules/getdelim (Depends-on): Likewise.
62862         * modules/getline (Depends-on): Likewise.
62863         * modules/getsubopt (Depends-on): Likewise.
62864         * modules/gettext (Depends-on): Likewise.
62865         * modules/group-member (Depends-on): Likewise.
62866         * modules/mbchar (Depends-on): Likewise.
62867         * modules/memmem (Depends-on): Likewise.
62868         * modules/mempcpy (Depends-on): Likewise.
62869         * modules/memrchr (Depends-on): Likewise.
62870         * modules/pagealign_alloc (Depends-on): Likewise.
62871         * modules/readutmp (Depends-on): Likewise.
62872         * modules/stpcpy (Depends-on): Likewise.
62873         * modules/stpncpy (Depends-on): Likewise.
62874         * modules/strchrnul (Depends-on): Likewise.
62875         * modules/strndup (Depends-on): Likewise.
62876         * modules/strsep (Depends-on): Likewise.
62877         * modules/strverscmp (Depends-on): Likewise.
62878         * modules/vasprintf (Depends-on): Likewise.
62879         * modules/wcwidth (Depends-on): Likewise.
62880         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62881         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62882         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62884         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62885         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62886         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62887         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62888         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62889         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62890         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62891         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62892         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62893         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62894         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62895         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62896         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62897         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62898         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62899         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62900         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62901         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62902         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62903         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62904         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62905         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62906         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62907         so that lock.m4 can be used in gettext without extensions module.
62908
62909 2007-09-11  Bruno Haible  <bruno@clisp.org>
62910
62911         * m4/isc-posix.m4: Remove file.
62912         Suggested by Eric Blake.
62913
62914 2007-09-11  Eric Blake  <ebb9@byu.net>
62915
62916         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62917
62918 2007-09-10  Bruno Haible  <bruno@clisp.org>
62919
62920         * posix-modules: Fix typo in error message.
62921         Reported by Matt <mkraai@beckman.com>.
62922
62923 2007-09-09  Bruno Haible  <bruno@clisp.org>
62924
62925         * doc/functions/getdelim.texi: Update list of platforms lacking the
62926         function.
62927         * doc/functions/getline.texi: Likewise.
62928
62929 2007-09-09  Jim Meyering  <jim@meyering.net>
62930
62931         * lib/hash.c (hash_initialize): Detect calloc failure.
62932         Reported by Bruno Haible.
62933
62934 2007-09-09  Bruno Haible  <bruno@clisp.org>
62935
62936         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62937         malloc or realloc fails.
62938
62939 2007-09-09  Bruno Haible  <bruno@clisp.org>
62940
62941         * modules/getcwd (Depends-on): Add malloc-posix.
62942         * modules/glob (Depends-on): Likewise.
62943         * modules/putenv (Depends-on): Likewise.
62944         * modules/strdup (Depends-on): Likewise.
62945         * modules/getdelim (Depends-on): Add realloc-posix.
62946         * modules/read-file (Depends-on): Likewise.
62947
62948 2007-09-09  Bruno Haible  <bruno@clisp.org>
62949
62950         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62951         (gl_FUNC_MALLOC_POSIX): Require it.
62952         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62953         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62954         * modules/realloc (Files): Add m4/malloc.m4.
62955         * modules/calloc (Files): Likewise.
62956
62957 2007-09-09  Bruno Haible  <bruno@clisp.org>
62958
62959         * modules/malloc-posix: New file.
62960         * modules/malloc (Depends-on): Add malloc-posix.
62961         * lib/malloc.c: Include errno.h.
62962         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62963         and a POSIX-compatible malloc into a single function. Set ENOMEM
62964         when returning NULL.
62965         * m4/malloc.m4: New file.
62966         * doc/functions/malloc.texi: Mention the malloc-posix module.
62967         * lib/stdlib_.h (malloc): New declaration.
62968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62969         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62970         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62971         and HAVE_MALLOC_POSIX.
62972
62973 2007-09-09  Bruno Haible  <bruno@clisp.org>
62974
62975         * modules/realloc-posix: New file.
62976         * modules/realloc (Depends-on): Add realloc-posix.
62977         * lib/realloc.c: Include errno.h.
62978         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62979         and a POSIX-compatible realloc into a single function. Set ENOMEM
62980         when returning NULL.
62981         * m4/realloc.m4: New file.
62982         * doc/functions/realloc.texi: Mention the realloc-posix module.
62983         * lib/stdlib_.h (realloc): New declaration.
62984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62985         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62986         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62987         and HAVE_REALLOC_POSIX.
62988
62989 2007-09-09  Bruno Haible  <bruno@clisp.org>
62990
62991         * modules/calloc-posix: New file.
62992         * modules/calloc (Depends-on): Add calloc-posix.
62993         * lib/calloc.c: Include errno.h.
62994         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62995         and a POSIX-compatible calloc into a single function. Set ENOMEM
62996         when returning NULL.
62997         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62998         * doc/functions/calloc.texi: Mention the calloc-posix module.
62999         * lib/stdlib_.h (calloc): New declaration.
63000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
63001         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
63002         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
63003         and HAVE_CALLOC_POSIX.
63004
63005 2007-09-09  Bruno Haible  <bruno@clisp.org>
63006
63007         Allow for modules to show an arbitrary notice.
63008         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
63009         * gnulib-tool: New option --extract-notice.
63010         (func_usage): Document it.
63011         (sed_extract_prog): Update.
63012         (func_get_notice): New function.
63013         (func_modules_notice): New function.
63014         (func_import, func_create_testdir): Invoke it.
63015         Suggested by Jim Meyering.
63016
63017 2007-09-09  Bruno Haible  <bruno@clisp.org>
63018
63019         * gnulib-tool: New options --verbose, --quiet.
63020         (func_usage): Document them.
63021         (verbose): New variable.
63022         (func_execute_command): New function.
63023         (func_import): Don't show the module list and the file list if
63024         $verbose < 0.
63025         (func_create_testdir): Likewise. Use func_execute_command.
63026         (func_create_megatestdir): Use func_execute_command.
63027
63028 2007-09-08  Bruno Haible  <bruno@clisp.org>
63029
63030         * gnulib-tool (func_import): Prefer rsync over wget when available,
63031         for fetching the PO files.
63032
63033 2007-09-08  Bruno Haible  <bruno@clisp.org>
63034
63035         * posix-modules: New file. Portions copied from gnulib-tool.
63036         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
63037
63038 2007-09-08  Jim Meyering  <jim@meyering.net>
63039
63040         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
63041         * lib/fpending.h: Rename from __fpending.h.
63042         * lib/fpending.c: Rename from __fpending.c.
63043         Include "fpending.h", not "__fpending.h".
63044         * lib/__fpending.h, lib/__fpending.c: Remove files.
63045         * modules/fpending (Files): Reflect new file names.
63046         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
63047
63048 2007-09-08  Bruno Haible  <bruno@clisp.org>
63049
63050         * m4/inttypes-h.m4: Remove stub file.
63051
63052 2007-09-07  Simon Josefsson  <simon@josefsson.org>
63053
63054         * doc/headers/stdint.texi: Discuss #include_next issue.
63055
63056 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63057
63058         * build-aux/bootstrap: Remove obsolete comment about wget --help.
63059
63060 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63061
63062         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
63063         in variable name.
63064
63065 2007-09-03  Jim Meyering  <jim@meyering.net>
63066
63067         New module: git-version-gen.
63068         * modules/git-version-gen: New file.
63069
63070         Import changes from coreutils for bootstrap script.
63071
63072         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
63073
63074         bootstrap: uses rsync to download the .po files
63075         * build-aux/bootstrap (po_download_command_format): New global.
63076         (download_po_files): Use rsync.
63077         (update_po_files): Don't remove .po files after download,
63078         so future rsync runs can take advantage of the copies.
63079
63080         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
63081
63082         Solve the unnecessary-.po-file-regeneration problem once and for all.
63083         * build-aux/bootstrap (download_po_files): New function, renamed from
63084         get_translations.  Now, downloads, but doesn't update LINGUAS.
63085         (update_po_files): New function.
63086
63087         bootstrap: Ignore more.
63088         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
63089         uniwidth to e.g., lib/.gitignore.
63090         (slurp): Handle the sys_stat_.h -> sys mapping, too.
63091
63092         * build-aux/bootstrap: New setting: vc_ignore.
63093         (insert_sorted_if_absent): Create $file if absent.
63094         Adapt to new, possibly empty, list: $vc_ignore.
63095
63096         bootstrap: generate more ignorable names
63097         * build-aux/bootstrap (slurp): When generating ignorable names,
63098         also map .sin to .sed, .gperf to .c, and .y to .c.
63099
63100 2007-09-03  Jim Meyering  <jim@meyering.net>
63101
63102         * build-aux/git-version-gen: New file, from coreutils.  For details, see
63103         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
63104
63105 2007-09-02  Bruno Haible  <bruno@clisp.org>
63106
63107         Fix mis-recognition of 'mcs' on QNX 6.
63108         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
63109         output contains the string "Mono".
63110         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
63111         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
63112
63113 2007-09-01  Bruno Haible  <bruno@clisp.org>
63114
63115         Fix collision between uniwidth/* and linebreak modules.
63116         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
63117         u32_width): Remove declarations.
63118         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
63119         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
63120         streq3, streq2, streq1, streq0): Remove functions.
63121         (STREQ): Remove macro.
63122         (is_cjk_encoding): Remove function.
63123         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
63124         (uc_width, u8_width, u16_width, u32_width): Remove functions.
63125         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
63126         * NEWS: Document the change.
63127
63128 2007-09-01  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/streq.h: Add double-inclusion guard.
63131
63132 2007-09-01  Karl Berry  <karl@gnu.org>
63133
63134         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
63135
63136 2007-08-28  Jim Meyering  <jim@meyering.net>
63137
63138         Rename mreadlink_with_size to areadlink_with_size.
63139         * NEWS: Document the change.
63140         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
63141         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
63142         * lib/mreadlink.h: Rename this to...
63143         * lib/areadlink.h: ...this.
63144         * modules/mreadlink-with-size: Rename this to...
63145         * modules/areadlink-with-size: ...this.
63146         * lib/canonicalize.c: Reflect the renaming.
63147         * modules/canonicalize: Likewise.
63148
63149 2007-08-26  Bruno Haible  <bruno@clisp.org>
63150
63151         * gnulib-tool (func_import): When deciding which files to remove,
63152         consider also dangling symbolic links.
63153         Reported by Eric Blake.
63154
63155 2007-08-26  Bruno Haible  <bruno@clisp.org>
63156
63157         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
63158
63159 2007-08-23  Simon Josefsson  <simon@josefsson.org>
63160
63161         * lib/readline.c: Don't include getline.h, the prototype is now
63162         found in stdio.h.
63163
63164 2007-08-23  Jim Meyering  <jim@meyering.net>
63165
63166         Getdelim touchup.
63167         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
63168         around the funlockfile call, since funlockfile never sets errno.
63169         Don't set errno upon failed realloc.
63170
63171 2007-08-22  Eric Blake  <ebb9@byu.net>
63172
63173         Getline touchups.
63174         * lib/getdelim.c (getdelim): Revert regression that required *n to
63175         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
63176         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
63177         getdelim, rather than whether implementation is missing.
63178         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
63179         * lib/stdio_.h (getline): Also declare if replacement is
63180         required.
63181         * doc/functions/getdelim.texi: New file.
63182         * doc/functions/getline.texi: Likewise.
63183         * doc/gnulib.texi (Function Substitutes): Add new files.
63184         Reported by Bruno Haible.
63185
63186 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
63187
63188         * users.txt: Add Guile.
63189
63190 2007-08-22  Eric Blake  <ebb9@byu.net>
63191
63192         * tests/test-getdelim.c (main): Use remove, not unlink.
63193         * tests/test-getline.c (main): Likewise.
63194
63195         Move getline and getdelim into stdio.h, per POSIX 200x.
63196         * modules/getline (Files): Remove getline.h.
63197         (Depends-on): Add stdio.
63198         (configure.ac): Add module indicator.
63199         * modules/getdelim (Files): Remove getdelim.h.
63200         (Depends-on): Add stdio.
63201         (configure.ac): Add module indicator.
63202         * modules/stdio (Makefile.am): Work with new indicators.
63203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
63204         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
63205         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63206         * lib/getdelim.h: Delete.
63207         * lib/getline.h: Delete.
63208         * lib/stdio_.h (getdelim, getline): Declare.
63209         * modules/getdelim-tests: New module.
63210         * modules/getline-tests: Likewise.
63211         * tests/test-getdelim.c: New file.
63212         * tests/test-getline.c: Likewise.
63213         * NEWS: Document the change.
63214         * lib/getline.c: Update choice of header.
63215         * lib/csharpcomp.c: Likewise.
63216         * lib/getpass.c: Likewise.
63217         * lib/javacomp.c: Likewise.
63218         * lib/javaversion.c: Likewise.
63219         * lib/yesno.c: Likewise.
63220         * lib/getdelim.c: Likewise.
63221         (getdelim): Set errno on failure, and avoid memory leak.
63222
63223 2007-08-19  Bruno Haible  <bruno@clisp.org>
63224
63225         * modules/closein (Depends-on): Add freadahead.
63226         * lib/closein.c: Include freadahead.h.
63227         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
63228         is zero.
63229
63230 2007-08-19  Bruno Haible  <bruno@clisp.org>
63231
63232         * modules/freadahead-tests: New file.
63233         * tests/test-freadahead.sh: New file.
63234         * tests/test-freadahead.c: New file.
63235
63236         * modules/freadahead: New file.
63237         * lib/freadahead.h: New file.
63238         * lib/freadahead.c: New file.
63239         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
63240         fbufmode, fpurge, freadable, fwritable.
63241
63242 2007-08-19  Eric Blake  <ebb9@byu.net>
63243
63244         Test yesno in combination with closein.
63245         * lib/yesno.c (yesno): Document use of stdin.
63246         * modules/yesno-tests (Files): New module.
63247         * tests/test-yesno.c (main): New file.
63248         * tests/test-yesno.sh: Likewise.
63249
63250 2007-08-19  Bruno Haible  <bruno@clisp.org>
63251
63252         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
63253         * lib/fseeko.c (rpl_fseeko): Likewise.
63254         * lib/fseterr.c (fseterr): Likewise.
63255
63256 2007-08-19  Bruno Haible  <bruno@clisp.org>
63257
63258         * tests/test-lseek.c (main): Disable a test for BeOS.
63259         * doc/functions/lseek.texi: Document the BeOS bug.
63260
63261 2007-08-19  Bruno Haible  <bruno@clisp.org>
63262             Eric Blake  <ebb9@byu.net>
63263
63264         * lib/lseek.c: Include <sys/stat.h>.
63265         (rpl_lseek): Add workaround code also for Unix platforms.
63266         Needed for BeOS.
63267         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
63268         * doc/functions/lseek.texi: Document BeOS definiency.
63269
63270 2007-08-18  Bruno Haible  <bruno@clisp.org>
63271
63272         * modules/fstrcmp-tests: New file.
63273         * tests/test-fstrcmp.c: New file.
63274
63275 2007-08-18  Bruno Haible  <bruno@clisp.org>
63276
63277         * modules/fstrcmp: New file, from GNU gettext with modifications.
63278         * lib/fstrcmp.h: New file, from GNU gettext.
63279         * lib/fstrcmp.c: New file, from GNU gettext.
63280         * MODULES.html.sh (String handling): Add fstrcmp.
63281
63282 2007-08-18  Bruno Haible  <bruno@clisp.org>
63283
63284         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
63285         'bool'.
63286         (diag, compareseq): Remove const from the ctxt argument.
63287         (USE_HEURISTIC): Undefine at the end.
63288
63289 2007-08-18  Jim Meyering  <jim@meyering.net>
63290
63291         New file: lib/idcache.h
63292         * NEWS: Mention the addition.
63293         * modules/idcache (Files): Add lib/idcache.h
63294         * lib/idcache.c: Include "idcache.h".
63295         Don't include <sys/types.h>.
63296         Add a FIXME comment.
63297         Move file-scoped "static" declarations to the top.
63298         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
63299
63300 2007-08-17  Bruno Haible  <bruno@clisp.org>
63301         and Paul Eggert  <eggert@cs.ucla.edu>
63302
63303         * MODULES.html.sh: Add diffseq.
63304         * modules/diffseq: New file.
63305         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
63306         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
63307
63308 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         Import changes from coreutils for bootstrap script.
63311
63312         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * build-aux/bootstrap (slurp): Work even in environments where
63315         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
63316         current code does not slurp files whose names start with ".", and
63317         this looks like it might be a troublesome area.
63318
63319         2007-07-11  Jim Meyering  <jim@meyering.net>
63320
63321         If there's a GPL vN copyright comment, require that N == 3.
63322
63323         2007-07-08  Jim Meyering  <jim@meyering.net>
63324
63325         Run the coreutils-specific code only if tests/Makefile.am.in exists.
63326         * build-aux/bootstrap (mam_template): Move definition out of loop.
63327
63328         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
63329
63330         * build-aux/bootstrap (symlink_to_dir): Rename function from
63331         symlink_to_gnulib.  Add a directory parameter.  Update all
63332         callers.
63333         (cp_mark_as_generated): Also check for -- and link to -- files in
63334         gl/.
63335
63336         2007-07-08  Jim Meyering  <jim@meyering.net>
63337
63338         Adapt to deeper hierarchy in gnulib.
63339         * build-aux/bootstrap (symlink_to_dir): If the destination
63340         directory doesn't exist, create it. This is required at least for
63341         "lib/uniwidth/cjk.h".
63342
63343         2007-05-15  Jim Meyering  <jim@meyering.net>
63344
63345         * build-aux/bootstrap: Now that generated Makefile.am files
63346         are no longer under version control, they must be created at
63347         bootstrap time.
63348
63349 2007-08-14  Ben Pfaff  <blp@gnu.org>
63350
63351         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
63352
63353 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
63354
63355         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
63356         given the changes below.
63357         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
63358         even on hosts that have padding bits beyond the supported 64.
63359
63360 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
63361
63362         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
63363         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
63364         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
63365         depends on it.
63366         (xstrtol_error): Remove.
63367         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
63368         but with a different signature.
63369         (ATTRIBUTE_NORETURN, __attribute__): New macros.
63370         * lib/xstrtol-error.c: Include exitfail.h.
63371         (xstrtol_fatal): New function, with a different signature from the
63372         old xstrtol_error, so that the caller need not worry about passing
63373         in an exit status, or about storage management of the option argument.
63374         (xstrtol_error): Now a static function.  Redo signature to
63375         implement xstrtol_fatal.  Output the correct number of hyphens in
63376         front of the option so that the caller need not worry about
63377         storage management.
63378         (N_): New macro.
63379         (_): Remove; not used now.
63380         * modules/xstrtol: Depend on getopt.
63381         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
63382         of old STRTOL_FATAL_ERROR macro.
63383         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
63384         of test program.
63385         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
63386         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
63387
63388 2007-08-08  Eric Blake  <ebb9@byu.net>
63389
63390         * lib/xstrtol-error.c: Add missing include.
63391
63392         Move xstrtol messages into gnulib domain, when --pobase is used.
63393         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
63394         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
63395         * modules/xstrtol (Files): Distribute new file.
63396         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
63397         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
63398         * tests/test-xstrtol.c: ...into new file.
63399         * tests/test-xstrtoul.c: Also test xstrtoul.
63400         * tests/test-xstrtoimax.c: Also test xstrtoimax.
63401         * tests/test-xstrtoumax.c: Also test xstrtoumax.
63402         * tests/test-xstrtol.sh: Drive the tests.
63403         * tests/test-xstrtoimax.sh: Likewise.
63404         * tests/test-xstrtoumax.sh: Likewise.
63405         * modules/xstrtol-tests: New module.
63406         * modules/xstrtoimax-tests: Likewise.
63407         * modules/xstrtoumax-tests: Likewise.
63408
63409 2007-08-08  Jim Meyering  <jim@meyering.net>
63410
63411         New function: mfile_name_concat.
63412         * lib/filenamecat.c (mfile_name_concat): New function, just like
63413         file_name_concat, but return NULL upon failure rather than exiting
63414         with a diagnostic.
63415         * lib/filenamecat.h: Declare it.
63416
63417 2007-08-07  Bruno Haible  <bruno@clisp.org>
63418
63419         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
63420         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
63421         warning from gcc.
63422         Reported by Eric Blake.
63423
63424 2007-08-07  Simon Josefsson  <simon@josefsson.org>
63425
63426         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
63427         * modules/crypto/arcfour (License): Likewise.
63428         * modules/crypto/des-tests (License): Likewise.
63429         * modules/crypto/gc-arctwo-tests (License): Likewise.
63430         * modules/crypto/gc-des-tests (License): Likewise.
63431         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
63432         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
63433         * modules/crypto/gc-md2-tests (License): Likewise.
63434         * modules/crypto/gc-md4-tests (License): Likewise.
63435         * modules/crypto/gc-md5-tests (License): Likewise.
63436         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
63437         * modules/crypto/gc-rijndael-tests (License): Likewise.
63438         * modules/crypto/gc-sha1-tests (License): Likewise.
63439         * modules/crypto/gc-tests (License): Likewise.
63440         * modules/crypto/hmac-md5 (License): Likewise.
63441         * modules/crypto/hmac-sha1 (License): Likewise.
63442         * modules/crypto/md2-tests (License): Likewise.
63443         * modules/crypto/md4-tests (License): Likewise.
63444         * modules/crypto/md5 (License): Likewise.
63445         * modules/crypto/rijndael (License): Likewise.
63446         * modules/crypto/sha1 (License): Likewise.
63447         * modules/memxor (License): Likewise.
63448
63449 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
63450         and Bruno Haible  <bruno@clisp.org>
63451
63452         * NEWS: Describe interface changes to human, xstrtol.
63453         * lib/human.h: Include <xstrtol.h>.
63454         (human_options): Return enum strtol_error, not int.  Remove
63455         bool arg; take int * instead.
63456         * lib/human.c: Don't include "gettext.h".
63457         (_): Remove; no longer used.
63458         Don't include <xstrtol.h>, since human.h does it.
63459         (human_options): Adjust to abovementioned interface changes.
63460         Do not report error to stderr; that's now the caller's
63461         responsibility.
63462         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
63463         interface change.
63464         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
63465         Str, Argument_type_string.  All uses changed.  Put " argument"
63466         in diagnostics to make them clearer.  Change wording of suffix
63467         message for clarity.
63468         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
63469         Argument_type_string.
63470         (STRTOL_FATAL_WARN): Remove; no longer used.
63471         * modules/human (Depends-on): Remove gettext-h.
63472
63473 2007-08-06  Simon Josefsson  <simon@josefsson.org>
63474
63475         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
63476
63477 2007-07-31  Bruno Haible  <bruno@clisp.org>
63478
63479         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
63480         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
63481         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
63482
63483 2007-07-31  Bruno Haible  <bruno@clisp.org>
63484
63485         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
63486         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
63487
63488 2007-07-30  Bruno Haible  <bruno@clisp.org>
63489
63490         * modules/base64 (License): Use the synonymous term "LGPLv2+".
63491         * modules/c-ctype (License): Likewise.
63492         * modules/c-strcase (License): Likewise.
63493         * modules/check-version (License): Likewise.
63494         * modules/iconv (License): Likewise.
63495         * modules/iconv_open (License): Likewise.
63496         * modules/read-file (License): Likewise.
63497         * modules/striconv (License): Likewise.
63498         * modules/strverscmp (License): Likewise.
63499         * modules/vasprintf (License): Likewise.
63500         * modules/crypto/des (License): Likewise.
63501         * modules/crypto/gc (License): Likewise.
63502         * modules/crypto/gc-arcfour (License): Likewise.
63503         * modules/crypto/gc-arctwo (License): Likewise.
63504         * modules/crypto/gc-des (License): Likewise.
63505         * modules/crypto/gc-hmac-md5 (License): Likewise.
63506         * modules/crypto/gc-hmac-sha1 (License): Likewise.
63507         * modules/crypto/gc-md2 (License): Likewise.
63508         * modules/crypto/gc-md4 (License): Likewise.
63509         * modules/crypto/gc-md5 (License): Likewise.
63510         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
63511         * modules/crypto/gc-random (License): Likewise.
63512         * modules/crypto/gc-rijndael (License): Likewise.
63513         * modules/crypto/gc-sha1 (License): Likewise.
63514         * modules/crypto/md2 (License): Likewise.
63515         * modules/crypto/md4 (License): Likewise.
63516
63517 2007-07-30  Jim Meyering  <jim@meyering.net>
63518
63519         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
63520         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
63521         it has valid stat data.  This bug would cause du not to count the
63522         sizes of inaccessible directories.
63523         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
63524         in <http://bugzilla.redhat.com/250077>.
63525
63526 2007-07-25  Peter O'Gorman  <peter@pogma.com>
63527             Bruno Haible  <bruno@clisp.org>
63528
63529         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
63530         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
63531         #include_next, gives a diagnostic about it, but reports no error in
63532         the exit code.
63533         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
63534
63535 2007-07-24  Ben Pfaff  <blp@gnu.org>
63536
63537         Improve name: "count-one-bits" is better than "popcount".
63538         * MODULES.html.sh: Update name.
63539         * lib/popcount.h: Renamed lib/count-one-bits.h.
63540         (popcount): Renamed count_one_bits.
63541         (popcountl): Renamed count_one_bits_l.
63542         (popcountll): Renamed count_one_bits_ll.
63543         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
63544         * modules/popcount: Renamed module/count-one-bits.
63545         * modules/popcount-tests: Renamed module/count-one-bits-tests.
63546         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
63547
63548 2007-07-23  Ben Pfaff  <blp@gnu.org>
63549
63550         * lib/popcount.h (popcount32): Reduce size of constants, to allow
63551         better code generation, and add U to large constants to avoid
63552         warnings, in non-GCC case.
63553         Suggested by Bruno Haible.
63554
63555 2007-07-23  Ben Pfaff  <blp@gnu.org>
63556
63557         * lib/popcount.h: Use verify_true instead of if...abort.
63558         * modules/popcount: Depend on verify module.
63559         Suggested by Jim Meyering.
63560
63561 2007-07-23  Bruno Haible  <bruno@clisp.org>
63562
63563         * gnulib-tool (func_import): Create a .cvsignore file also when the
63564         directory is not yet in CVS but the toplevel directory is. When
63565         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
63566         Reported by Karl Berry.
63567
63568 2007-07-22  Ben Pfaff  <blp@gnu.org>
63569
63570         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
63571         case.
63572         Suggested by Eric Blake.
63573
63574 2007-07-22  Ben Pfaff  <blp@gnu.org>
63575
63576         New module: popcount.
63577         * MODULES.html.sh: Add popcount.
63578         * modules/popcount: New file.
63579         * modules/popcount-tests: New file.
63580         * tests/test-popcount.c: New file.
63581         * lib/popcount.h: New file.
63582         * m4/popcount.m4: New file.
63583
63584 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
63585
63586         * build-aux/announce-gen: Update to GPLv3.
63587
63588         * build-aux/config.guess: Update from config.
63589
63590 2007-07-21  Bruno Haible  <bruno@clisp.org>
63591
63592         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
63593         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
63594
63595 2007-07-20  Jim Meyering  <jim@meyering.net>
63596
63597         * check-module: Diagnose a self-dependency.
63598
63599 2007-07-19  Bruno Haible  <bruno@clisp.org>
63600
63601         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
63602         empty.
63603         Reported by Eric Blake.
63604
63605 2007-07-18  Bruno Haible  <bruno@clisp.org>
63606
63607         * gnulib-tool: New options --po-base, --po-domain.
63608         (func_usage): Document them.
63609         (pobase, po_domain): New variables.
63610         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
63611         DEFAULT_TEXT_DOMAIN.
63612         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
63613         (func_import): Consider pobase and po_domain. Create a po/ directory.
63614         (func_create_testdir): Set pobase and po_domain to empty.
63615         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
63616         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
63617
63618 2007-07-18  Bruno Haible  <bruno@clisp.org>
63619
63620         * gnulib-tool (func_get_automake_snippet): Synthesize also an
63621         EXTRA_DIST augmentation for files in build-aux/.
63622
63623 2007-07-16  Bruno Haible  <bruno@clisp.org>
63624
63625         * modules/lseek (License): Use the synonymous term "LGPLv2+".
63626         * modules/getdelim (License): Likewise.
63627
63628 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
63629
63630         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
63631         * modules/d-type (License): Likewise.
63632         * modules/extensions (License): Likewise.
63633         * modules/fnmatch (License): Likewise.
63634         * modules/fseeko (License): Likewise.
63635         * modules/getaddrinfo (License): Likewise.
63636         * modules/getline (License): Likewise.
63637         * modules/getlogin_r (License): Likewise.
63638         * modules/getpass (License): Likewise.
63639         * modules/gettimeofday (License): Likewise.
63640         * modules/glob (License): Likewise.
63641         * modules/inet_ntop (License): Likewise.
63642         * modules/malloc (License): Likewise.
63643         * modules/malloca (License): Likewise.
63644         * modules/memmem (License): Likewise.
63645         * modules/mempcpy (License): Likewise.
63646         * modules/memset (License): Likewise.
63647         * modules/minmax (License): Likewise.
63648         * modules/mktime (License): Likewise.
63649         * modules/netinet_in (License): Likewise.
63650         * modules/pathmax (License): Likewise.
63651         * modules/poll (License): Likewise.
63652         * modules/regex (License): Likewise.
63653         * modules/snprintf (License): Likewise.
63654         * modules/stdbool (License): Likewise.
63655         * modules/stdint (License): Likewise.
63656         * modules/stdio (License): Likewise.
63657         * modules/strcase (License): Likewise.
63658         * modules/strcasestr (License): Likewise.
63659         * modules/strdup (License): Likewise.
63660         * modules/string (License): Likewise.
63661         * modules/strndup (License): Likewise.
63662         * modules/strnlen (License): Likewise.
63663         * modules/strpbrk (License): Likewise.
63664         * modules/strptime (License): Likewise.
63665         * modules/strsep (License): Likewise.
63666         * modules/sys_select (License): Likewise.
63667         * modules/sys_socket (License): Likewise.
63668         * modules/sys_stat (License): Likewise.
63669         * modules/sys_time (License): Likewise.
63670         * modules/time (License): Likewise.
63671         * modules/time_r (License): Likewise.
63672         * modules/timegm (License): Likewise.
63673         * modules/unistd (License): Likewise.
63674         * modules/vsnprintf (License): Likewise.
63675         * modules/wctype (License): Likewise.
63676
63677 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63678
63679         * modules/argz (License): LGPLv2+.
63680
63681 2007-07-15  Karl Berry  <karl@gnu.org>
63682
63683         * doc/gnulib.texi: revise node structure per new fdl.texi.
63684
63685 2007-07-14  Bruno Haible  <bruno@clisp.org>
63686
63687         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
63688         the output file.
63689         * lib/uniname/uninames.h: Regenerated.
63690
63691 2007-07-14  Karl Berry  <karl@gnu.org>
63692
63693         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
63694         omitting sectioning and index commands.
63695
63696 2007-07-13  Bruno Haible  <bruno@clisp.org>
63697
63698         New gnulib-tool option --more-symlinks.
63699         * gnulib-tool (func_usage): Document --more-symlinks.
63700         (do_copyrights): New variable.
63701         Recognize option --more-symlinks.
63702         (func_import): Don't add a copyright notice transform to
63703         sed_transform_lib_file if do_copyrights is empty.
63704
63705 2007-07-13  Bruno Haible  <bruno@clisp.org>
63706
63707         * lib/vasnprintf.c (decimal_point_char): Define also if
63708         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
63709         && !NEED_PRINTF_DIRECTIVE_A.
63710         Reported by Clemens Koller <clemens.koller@anagramm.de> via
63711         Gary V. Vaughan <gary@gnu.org>.
63712
63713 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
63714
63715         * lib/inttypes_.h: Undo previous change, since it was fixed
63716         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
63717
63718 2007-07-13  Bruno Haible  <bruno@clisp.org>
63719
63720         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
63721         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
63722
63723 2007-07-13  Jim Meyering  <jim@meyering.net>
63724
63725         df: Don't fail for Tru64's "file-on-file mount".
63726         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
63727         so we fall through and use statfs instead.  Details here:
63728         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
63729         Reported by Albert Chin.
63730
63731 2007-07-13  Bruno Haible  <bruno@clisp.org>
63732
63733         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
63734         * modules/configmake (License): Likewise.
63735         * modules/gettext (License): Likewise.
63736         * modules/gettext-h (License): Likewise.
63737         * modules/include_next (License): Likewise.
63738         * modules/link-warning (License): Likewise.
63739         * modules/localcharset (License): Likewise.
63740         * modules/localename (License): Likewise.
63741         * modules/lock (License): Likewise.
63742         * modules/relocatable-lib-lgpl (License): Likewise.
63743         * modules/size_max (License): Likewise.
63744         * modules/vasnprintf (License): Likewise.
63745         * modules/wchar (License): Likewise.
63746         * modules/xsize (License): Likewise.
63747
63748 2007-07-13  Bruno Haible  <bruno@clisp.org>
63749
63750         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
63751         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
63752
63753 2007-07-12  Bruno Haible  <bruno@clisp.org>
63754
63755         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
63756         in the modules files.
63757
63758 2007-07-11  Karl Berry  <karl@gnu.org>
63759
63760         * MODULES.html.sh (func_module): use
63761          sed -e '\|^'"${includefile}"'$|d'
63762          instead of /.../d, to avoid errors on $includefile's containing /.
63763
63764 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
63765
63766         * gnulib-tool (func_import): Avoid duplication of --avoid
63767         statements
63768         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
63769         names to `_' in variable names.
63770
63771 2007-07-10  Eric Blake  <ebb9@byu.net>
63772
63773         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
63774         * NEWS: Document this change.
63775
63776 2007-07-08  Bruno Haible  <bruno@clisp.org>
63777
63778         Update to Unicode 5.0.
63779         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
63780         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
63781         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
63782         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
63783         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
63784         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
63785         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
63786         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
63787         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
63788         U+10A3F, U+1D242..U+1D244.
63789         (nonspacing_table_ind): Update.
63790         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
63791         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
63792
63793 2007-07-08  Bruno Haible  <bruno@clisp.org>
63794
63795         Update to Unicode 5.0.
63796         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
63797         code transform. Extend the name index field of unicode_name_to_code and
63798         unicode_code_to_name from 16 to 24 bits.
63799         * lib/uniname/uniname.c (unicode_character_name,
63800         unicode_name_character): Add the range 0x12xxx to the code transform.
63801         * lib/uniname/uninames.h: Regenerated.
63802         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
63803
63804 2007-07-07  Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/wcwidth-tests: New file.
63807         * tests/test-wcwidth.c: New file.
63808
63809         Work around MacOS X wcwidth() bug.
63810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63811         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63812         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63813         original wcwidth in non-UTF-8 locales.
63814         * modules/wcwidth (Depends-on): Add localcharset, streq,
63815         uniwidth/width.
63816         * doc/functions/wcwidth.texi: Update.
63817
63818 2007-07-07  Bruno Haible  <bruno@clisp.org>
63819
63820         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63821         (wcwidth): New declaration.
63822         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63823         macros.
63824         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63825         here. Prepare for creating <wchar.h> unconditionally.
63826         * modules/wchar (Depends-on): Add link-warning.
63827         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63828         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63829         * lib/wcwidth.h: Remove file.
63830         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63831         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63832         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63833         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63834         (Include): Replace wcwidth.h with <wchar.h>.
63835         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63836         * lib/mbchar.h: Don't include wcwidth.h.
63837         * lib/mbswidth.c: Likewise.
63838         * NEWS: Mention the change.
63839
63840 2007-07-07  Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63843         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63844         definition with an external declaration.
63845         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63846         defined as a function. Remove AC_C_INLINE requirement.
63847         * modules/wcwidth (Files): Add lib/wcwidth.c.
63848         (Makefile.am): Remove redundant statement.
63849
63850 2007-07-07  Bruno Haible  <bruno@clisp.org>
63851
63852         * MODULES.html.sh (Unicode string functions): Add the new modules.
63853
63854         * tests/uniwidth/test-u32-strwidth.c: New file.
63855         * modules/uniwidth/u32-strwidth-tests: New file.
63856
63857         * lib/uniwidth/u32-strwidth.c: New file.
63858         * modules/uniwidth/u32-strwidth: New file.
63859
63860         * tests/uniwidth/test-u16-strwidth.c: New file.
63861         * modules/uniwidth/u16-strwidth-tests: New file.
63862
63863         * lib/uniwidth/u16-strwidth.c: New file.
63864         * modules/uniwidth/u16-strwidth: New file.
63865
63866         * tests/uniwidth/test-u8-strwidth.c: New file.
63867         * modules/uniwidth/u8-strwidth-tests: New file.
63868
63869         * lib/uniwidth/u8-strwidth.c: New file.
63870         * modules/uniwidth/u8-strwidth: New file.
63871
63872         * tests/uniwidth/test-u32-width.c: New file.
63873         * modules/uniwidth/u32-width-tests: New file.
63874
63875         * lib/uniwidth/u32-width.c: New file.
63876         * modules/uniwidth/u32-width: New file.
63877
63878         * tests/uniwidth/test-u16-width.c: New file.
63879         * modules/uniwidth/u16-width-tests: New file.
63880
63881         * lib/uniwidth/u16-width.c: New file.
63882         * modules/uniwidth/u16-width: New file.
63883
63884         * tests/uniwidth/test-u8-width.c: New file.
63885         * modules/uniwidth/u8-width-tests: New file.
63886
63887         * lib/uniwidth/u8-width.c: New file.
63888         * modules/uniwidth/u8-width: New file.
63889
63890         * tests/uniwidth/test-uc_width.c: New file.
63891         * modules/uniwidth/width-tests: New file.
63892
63893         * lib/uniwidth/width.c: New file, from GNU libiconv.
63894         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63895         * modules/uniwidth/width: New file.
63896
63897         * lib/uniwidth.h: New file, from GNU libiconv.
63898         * modules/uniwidth/base: New file.
63899
63900 2007-07-07  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/uniname.h: New file, from GNU gettext.
63903         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63904         * lib/uniname/uninames.h: New file, from GNU gettext.
63905         * lib/uniname/uniname.c: New file, from GNU gettext.
63906         * tests/uniname/test-uninames.sh: New file.
63907         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63908         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63909         * modules/uniname/base: New file.
63910         * modules/uniname/uniname: New file.
63911         * modules/uniname/uniname-tests: New file.
63912         * MODULES.html.sh (Unicode string functions): Add the new modules.
63913
63914 2007-07-06  Bruno Haible  <bruno@clisp.org>
63915
63916         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63917
63918 2007-07-06  Bruno Haible  <bruno@clisp.org>
63919
63920         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63921         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63922         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63923         include <sys/time.h>.
63924         Reported by Eric Blake.
63925
63926 2007-07-06  Eric Blake  <ebb9@byu.net>
63927
63928         Fix testing canonicalize on cygwin.
63929         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63930         Revert patch from 2007-06-19.
63931         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63932         canonicalize module is also in use.
63933         * tests/test-canonicalize.c: New file.
63934         * tests/test-canonicalize.sh: Likewise.
63935         * modules/canonicalize-tests: Likewise.
63936
63937 2007-07-06  Jim Meyering  <jim@meyering.net>
63938
63939         * lib/getugroups.c (getugroups): Detect getgrent failure.
63940         Adjust comment to reflect reality: this function may return -1.
63941
63942 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63943
63944         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63945         the new TP address.
63946         (usage): Fix typo
63947         (gnulib_mk): New variable.
63948
63949 2007-07-05  Jim Meyering  <jim@meyering.net>
63950
63951         Don't let endgrent clobber errno, no matter how improbable.
63952         * lib/getugroups.c (getugroups): Save and restore errno around
63953         endgrent call.
63954
63955         Close the group DB even when failing with 2^31 or more members.
63956         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63957
63958 2007-07-04  Jim Meyering  <jim@meyering.net>
63959
63960         * lib/getugroups.h: New file.
63961         * lib/getugroups.c: Include "getugroups.h".
63962         Remove uses of "register" keyword.
63963         Move local variable, "cp", down into scope where used.
63964         Give "username" parameter the "const" attribute.
63965         * modules/getugroups (Files): Add lib/getugroups.h
63966
63967 2007-07-04  Karl Berry  <karl@gnu.org>
63968
63969         * MODULES.html.sh (func_all_modules): Complete rename of
63970         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63971
63972 2007-07-02  Bruno Haible  <bruno@clisp.org>
63973
63974         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63975         mode, when inttypes.h comes from gnulib.
63976         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63977
63978 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63979
63980         * NEWS: Mention lgpl module name change.
63981
63982         * modules/lgpl-2.1: Renamed from lgpl.
63983
63984         * NEWS: Mention gpl module name change.
63985
63986         * modules/gpl-3.0: New file, based on gpl-2.0.
63987
63988         * modules/gpl-2.0: Renamed from gpl.
63989
63990         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63991         doc/gpl-2.0.texi.
63992
63993 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63994
63995         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63996         #define __STDC_LIMIT_MACROS temporarily while including
63997         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63998         Problem reported by Joel E. Denny in
63999         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
64000
64001 2007-07-01  Bruno Haible  <bruno@clisp.org>
64002
64003         * lib/unistdio.h: New file.
64004         * lib/unistdio/u-asnprintf.h: New file.
64005         * lib/unistdio/u-asprintf.h: New file.
64006         * lib/unistdio/u-printf-args.c: New file.
64007         * lib/unistdio/u-printf-args.h: New file.
64008         * lib/unistdio/u-printf-parse.h: New file.
64009         * lib/unistdio/u-snprintf.h: New file.
64010         * lib/unistdio/u-sprintf.h: New file.
64011         * lib/unistdio/u-vasprintf.h: New file.
64012         * lib/unistdio/u-vsnprintf.h: New file.
64013         * lib/unistdio/u-vsprintf.h: New file.
64014         * lib/unistdio/ulc-asnprintf.c: New file.
64015         * lib/unistdio/ulc-asprintf.c: New file.
64016         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
64017         * lib/unistdio/ulc-printf-parse.c: New file.
64018         * lib/unistdio/ulc-snprintf.c: New file.
64019         * lib/unistdio/ulc-sprintf.c: New file.
64020         * lib/unistdio/ulc-vasnprintf.c: New file.
64021         * lib/unistdio/ulc-vasprintf.c: New file.
64022         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
64023         * lib/unistdio/ulc-vsnprintf.c: New file.
64024         * lib/unistdio/ulc-vsprintf.c: New file.
64025         * lib/unistdio/u8-asnprintf.c: New file.
64026         * lib/unistdio/u8-asprintf.c: New file.
64027         * lib/unistdio/u8-printf-parse.c: New file.
64028         * lib/unistdio/u8-snprintf.c: New file.
64029         * lib/unistdio/u8-sprintf.c: New file.
64030         * lib/unistdio/u8-vasnprintf.c: New file.
64031         * lib/unistdio/u8-vasprintf.c: New file.
64032         * lib/unistdio/u8-vsnprintf.c: New file.
64033         * lib/unistdio/u8-vsprintf.c: New file.
64034         * lib/unistdio/u8-u8-asnprintf.c: New file.
64035         * lib/unistdio/u8-u8-asprintf.c: New file.
64036         * lib/unistdio/u8-u8-snprintf.c: New file.
64037         * lib/unistdio/u8-u8-sprintf.c: New file.
64038         * lib/unistdio/u8-u8-vasnprintf.c: New file.
64039         * lib/unistdio/u8-u8-vasprintf.c: New file.
64040         * lib/unistdio/u8-u8-vsnprintf.c: New file.
64041         * lib/unistdio/u8-u8-vsprintf.c: New file.
64042         * lib/unistdio/u16-asnprintf.c: New file.
64043         * lib/unistdio/u16-asprintf.c: New file.
64044         * lib/unistdio/u16-printf-parse.c: New file.
64045         * lib/unistdio/u16-snprintf.c: New file.
64046         * lib/unistdio/u16-sprintf.c: New file.
64047         * lib/unistdio/u16-vasnprintf.c: New file.
64048         * lib/unistdio/u16-vasprintf.c: New file.
64049         * lib/unistdio/u16-vsnprintf.c: New file.
64050         * lib/unistdio/u16-vsprintf.c: New file.
64051         * lib/unistdio/u16-u16-asnprintf.c: New file.
64052         * lib/unistdio/u16-u16-asprintf.c: New file.
64053         * lib/unistdio/u16-u16-snprintf.c: New file.
64054         * lib/unistdio/u16-u16-sprintf.c: New file.
64055         * lib/unistdio/u16-u16-vasnprintf.c: New file.
64056         * lib/unistdio/u16-u16-vasprintf.c: New file.
64057         * lib/unistdio/u16-u16-vsnprintf.c: New file.
64058         * lib/unistdio/u16-u16-vsprintf.c: New file.
64059         * lib/unistdio/u32-asnprintf.c: New file.
64060         * lib/unistdio/u32-asprintf.c: New file.
64061         * lib/unistdio/u32-printf-parse.c: New file.
64062         * lib/unistdio/u32-snprintf.c: New file.
64063         * lib/unistdio/u32-sprintf.c: New file.
64064         * lib/unistdio/u32-vasnprintf.c: New file.
64065         * lib/unistdio/u32-vasprintf.c: New file.
64066         * lib/unistdio/u32-vsnprintf.c: New file.
64067         * lib/unistdio/u32-vsprintf.c: New file.
64068         * lib/unistdio/u32-u32-asnprintf.c: New file.
64069         * lib/unistdio/u32-u32-asprintf.c: New file.
64070         * lib/unistdio/u32-u32-snprintf.c: New file.
64071         * lib/unistdio/u32-u32-sprintf.c: New file.
64072         * lib/unistdio/u32-u32-vasnprintf.c: New file.
64073         * lib/unistdio/u32-u32-vasprintf.c: New file.
64074         * lib/unistdio/u32-u32-vsnprintf.c: New file.
64075         * lib/unistdio/u32-u32-vsprintf.c: New file.
64076         * tests/unistdio/test-ulc-asnprintf1.c: New file.
64077         * tests/unistdio/test-ulc-asnprintf1.h: New file.
64078         * tests/unistdio/test-ulc-printf1.h: New file.
64079         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
64080         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
64081         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
64082         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
64083         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
64084         * tests/unistdio/test-ulc-vasprintf1.c: New file.
64085         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
64086         * tests/unistdio/test-ulc-vsprintf1.c: New file.
64087         * tests/unistdio/test-u8-asnprintf1.c: New file.
64088         * tests/unistdio/test-u8-asnprintf1.h: New file.
64089         * tests/unistdio/test-u8-printf1.h: New file.
64090         * tests/unistdio/test-u8-vasnprintf1.c: New file.
64091         * tests/unistdio/test-u8-vasnprintf2.c: New file.
64092         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
64093         * tests/unistdio/test-u8-vasnprintf3.c: New file.
64094         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
64095         * tests/unistdio/test-u8-vasprintf1.c: New file.
64096         * tests/unistdio/test-u8-vsnprintf1.c: New file.
64097         * tests/unistdio/test-u8-vsprintf1.c: New file.
64098         * tests/unistdio/test-u16-asnprintf1.c: New file.
64099         * tests/unistdio/test-u16-asnprintf1.h: New file.
64100         * tests/unistdio/test-u16-printf1.h: New file.
64101         * tests/unistdio/test-u16-vasnprintf1.c: New file.
64102         * tests/unistdio/test-u16-vasnprintf2.c: New file.
64103         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
64104         * tests/unistdio/test-u16-vasnprintf3.c: New file.
64105         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
64106         * tests/unistdio/test-u16-vasprintf1.c: New file.
64107         * tests/unistdio/test-u16-vsnprintf1.c: New file.
64108         * tests/unistdio/test-u16-vsprintf1.c: New file.
64109         * tests/unistdio/test-u32-asnprintf1.c: New file.
64110         * tests/unistdio/test-u32-asnprintf1.h: New file.
64111         * tests/unistdio/test-u32-printf1.h: New file.
64112         * tests/unistdio/test-u32-vasnprintf1.c: New file.
64113         * tests/unistdio/test-u32-vasnprintf2.c: New file.
64114         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
64115         * tests/unistdio/test-u32-vasnprintf3.c: New file.
64116         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
64117         * tests/unistdio/test-u32-vasprintf1.c: New file.
64118         * tests/unistdio/test-u32-vsnprintf1.c: New file.
64119         * tests/unistdio/test-u32-vsprintf1.c: New file.
64120         * modules/unistdio/base: New file.
64121         * modules/unistdio/u-printf-args: New file.
64122         * modules/unistdio/ulc-asnprintf: New file.
64123         * modules/unistdio/ulc-asprintf: New file.
64124         * modules/unistdio/ulc-fprintf: New file.
64125         * modules/unistdio/ulc-printf-parse: New file.
64126         * modules/unistdio/ulc-snprintf: New file.
64127         * modules/unistdio/ulc-sprintf: New file.
64128         * modules/unistdio/ulc-vasnprintf: New file.
64129         * modules/unistdio/ulc-vasprintf: New file.
64130         * modules/unistdio/ulc-vfprintf: New file.
64131         * modules/unistdio/ulc-vsnprintf: New file.
64132         * modules/unistdio/ulc-vsprintf: New file.
64133         * modules/unistdio/u8-asnprintf: New file.
64134         * modules/unistdio/u8-asprintf: New file.
64135         * modules/unistdio/u8-printf-parse: New file.
64136         * modules/unistdio/u8-snprintf: New file.
64137         * modules/unistdio/u8-sprintf: New file.
64138         * modules/unistdio/u8-vasnprintf: New file.
64139         * modules/unistdio/u8-vasprintf: New file.
64140         * modules/unistdio/u8-vsnprintf: New file.
64141         * modules/unistdio/u8-vsprintf: New file.
64142         * modules/unistdio/u8-u8-asnprintf: New file.
64143         * modules/unistdio/u8-u8-asprintf: New file.
64144         * modules/unistdio/u8-u8-snprintf: New file.
64145         * modules/unistdio/u8-u8-sprintf: New file.
64146         * modules/unistdio/u8-u8-vasnprintf: New file.
64147         * modules/unistdio/u8-u8-vasprintf: New file.
64148         * modules/unistdio/u8-u8-vsnprintf: New file.
64149         * modules/unistdio/u8-u8-vsprintf: New file.
64150         * modules/unistdio/u16-asnprintf: New file.
64151         * modules/unistdio/u16-asprintf: New file.
64152         * modules/unistdio/u16-printf-parse: New file.
64153         * modules/unistdio/u16-snprintf: New file.
64154         * modules/unistdio/u16-sprintf: New file.
64155         * modules/unistdio/u16-vasnprintf: New file.
64156         * modules/unistdio/u16-vasprintf: New file.
64157         * modules/unistdio/u16-vsnprintf: New file.
64158         * modules/unistdio/u16-vsprintf: New file.
64159         * modules/unistdio/u16-u16-asnprintf: New file.
64160         * modules/unistdio/u16-u16-asprintf: New file.
64161         * modules/unistdio/u16-u16-snprintf: New file.
64162         * modules/unistdio/u16-u16-sprintf: New file.
64163         * modules/unistdio/u16-u16-vasnprintf: New file.
64164         * modules/unistdio/u16-u16-vasprintf: New file.
64165         * modules/unistdio/u16-u16-vsnprintf: New file.
64166         * modules/unistdio/u16-u16-vsprintf: New file.
64167         * modules/unistdio/u32-asnprintf: New file.
64168         * modules/unistdio/u32-asprintf: New file.
64169         * modules/unistdio/u32-printf-parse: New file.
64170         * modules/unistdio/u32-snprintf: New file.
64171         * modules/unistdio/u32-sprintf: New file.
64172         * modules/unistdio/u32-vasnprintf: New file.
64173         * modules/unistdio/u32-vasprintf: New file.
64174         * modules/unistdio/u32-vsnprintf: New file.
64175         * modules/unistdio/u32-vsprintf: New file.
64176         * modules/unistdio/u32-u32-asnprintf: New file.
64177         * modules/unistdio/u32-u32-asprintf: New file.
64178         * modules/unistdio/u32-u32-snprintf: New file.
64179         * modules/unistdio/u32-u32-sprintf: New file.
64180         * modules/unistdio/u32-u32-vasnprintf: New file.
64181         * modules/unistdio/u32-u32-vasprintf: New file.
64182         * modules/unistdio/u32-u32-vsnprintf: New file.
64183         * modules/unistdio/u32-u32-vsprintf: New file.
64184         * modules/unistdio/ulc-asnprintf-tests: New file.
64185         * modules/unistdio/ulc-vasnprintf-tests: New file.
64186         * modules/unistdio/ulc-vasprintf-tests: New file.
64187         * modules/unistdio/ulc-vsnprintf-tests: New file.
64188         * modules/unistdio/ulc-vsprintf-tests: New file.
64189         * modules/unistdio/u8-asnprintf-tests: New file.
64190         * modules/unistdio/u8-vasnprintf-tests: New file.
64191         * modules/unistdio/u8-vasprintf-tests: New file.
64192         * modules/unistdio/u8-vsnprintf-tests: New file.
64193         * modules/unistdio/u8-vsprintf-tests: New file.
64194         * modules/unistdio/u16-asnprintf-tests: New file.
64195         * modules/unistdio/u16-vasnprintf-tests: New file.
64196         * modules/unistdio/u16-vasprintf-tests: New file.
64197         * modules/unistdio/u16-vsnprintf-tests: New file.
64198         * modules/unistdio/u16-vsprintf-tests: New file.
64199         * modules/unistdio/u32-asnprintf-tests: New file.
64200         * modules/unistdio/u32-vasnprintf-tests: New file.
64201         * modules/unistdio/u32-vasprintf-tests: New file.
64202         * modules/unistdio/u32-vsnprintf-tests: New file.
64203         * modules/unistdio/u32-vsprintf-tests: New file.
64204         * MODULES.html.sh (Unicode string functions): Add the new modules.
64205
64206 2007-07-01  Bruno Haible  <bruno@clisp.org>
64207
64208         * lib/sprintf.c (sprintf): Limit the available length estimation,
64209         to avoid address wraparound.
64210         * lib/vsprintf.c (vsprintf): Likewise.
64211         * modules/sprintf-posix (Dependencies): Add stdint.
64212         * modules/vsprintf-posix (Dependencies): Likewise.
64213
64214 2007-07-01  Bruno Haible  <bruno@clisp.org>
64215
64216         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
64217         Windows PATH as well. Conservative double-quoting. Comments.
64218
64219 2007-07-01  Bruno Haible  <bruno@clisp.org>
64220             Eric Blake  <ebb9@byu.net>
64221             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64222
64223         * gnulib-tool (self_abspathname): Fix algorithm to cope with
64224         empty components in $PATH, denoting '.'.
64225
64226 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64227
64228         * gnulib-tool: Fix indentation.
64229         (func_create_megatestdir): Likewise.
64230         Report by Bruno Haible.
64231
64232 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64233
64234         Sync from Automake.
64235         * build-aux/gnupload: Fix shell portability issues with for loops.
64236         Report by Karl Berry.
64237
64238 2007-06-29  Simon Josefsson  <simon@josefsson.org>
64239
64240         * build-aux/maint.mk (POURL): Use translationproject.org.
64241
64242 2007-06-27  Simon Josefsson  <simon@josefsson.org>
64243             Bruno Haible  <bruno@clisp.org>
64244
64245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
64246         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
64247         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
64248         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
64249         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
64250
64251 2007-06-27  Bruno Haible  <bruno@clisp.org>
64252
64253         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
64254         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
64255
64256 2007-06-26  Karl Berry  <karl@gnu.org>
64257
64258         * MODULES.html.sh: remove xreadlink-with-size.
64259
64260 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64261
64262         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
64263         method that I hope also handles the double-include problem noted
64264         by Bruno Haible in
64265         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
64266
64267 2007-06-23  Bruno Haible  <bruno@clisp.org>
64268
64269         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64270         Don't let the 'mostlyclean' target fail if the last subdirectory could
64271         not be removed.
64272         Reported by Karl Berry.
64273
64274 2007-06-23  Bruno Haible  <bruno@clisp.org>
64275
64276         * gnulib-tool (echo): Add a speedier workaround for ksh.
64277         * tests/test-echo.sh: Likewise.
64278
64279 2007-06-23  Bruno Haible  <bruno@clisp.org>
64280
64281         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
64282         * tests/test-echo.sh: Likewise.
64283
64284 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64285
64286         * gnulib-tool (IFS): Initialize early, so we don't set it to
64287         empty later.
64288         (self_abspathname): Rewrite algorithm to set it, reindent.
64289         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
64290         (func_create_megatestdir): Merge some sed scripts.
64291
64292 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
64293
64294         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
64295         exposed by Sun Studio 11 cc on Solaris 8.
64296
64297 2007-06-22  Bruno Haible  <bruno@clisp.org>
64298
64299         * gnulib-tool (echo): Ensure the echo primitive does not interpret
64300         backslashes.
64301         * tests/test-echo.sh: New file.
64302
64303 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64304
64305         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
64306         simplify `sed_replace_build_aux' scripts, they are portable but
64307         echoing them with `echo' is not.
64308         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
64309
64310 2007-06-21  Karl Berry  <karl@gnu.org>
64311
64312         * config/srclist.txt: guess we can't handle the licenses via
64313         srclist at the moment.
64314
64315 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
64316
64317         * MODULES.html.sh: Add include_next.
64318         * modules/include_next: New file.
64319
64320 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
64321
64322         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
64323         INCLUDE_NEXT.
64324         (gl_CHECK_NEXT_HEADERS): New macro.
64325         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
64326         the obsolescent gl_ABSOLUTE_HEADER.
64327         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
64328         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
64329         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
64330         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64331         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
64332         * m4/math_h.m4 (gl_MATH_H): Likewise.
64333         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
64334         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64335         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
64336         * m4/stdint.m4 (gl_STDINT_H): Likewise.
64337         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
64338         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
64339         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
64340         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64341         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
64342         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
64343         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64344         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64345         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
64346         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
64347         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
64348         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64349         * m4/inttypes.m4 (gl_INTTYPES_H): Define
64350         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
64351         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
64352         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
64353         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
64354         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
64355         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
64356         * lib/float_.h: Likewise.
64357         * lib/inttypes_.h: Likewise.
64358         * lib/math_.h: Likewise.
64359         * lib/search_.h: Likewise.
64360         * lib/signal_.h: Likewise.
64361         * lib/stdint_.h: Likewise.
64362         * lib/stdio_.h: Likewise.
64363         * lib/stdlib_.h: Likewise.
64364         * lib/string_.h: Likewise.
64365         * lib/sys_stat_.h: Likewise.
64366         * lib/sys_time_.h: Likewise.
64367         * lib/time_.h: Likewise.
64368         * lib/unistd_.h: Likewise.
64369         * lib/wchar_.h: Likewise.
64370         * lib/wctype_.h: Likewise.
64371         * lib/dirent_.h: Likewise.
64372         * lib/iconv_.h: Likewise.
64373         * lib/locale_.h: Likewise.
64374         * lib/netinet_in_.h: Likewise.
64375         * lib/sys_select_.h: Likewise.
64376         * lib/sys_socket_.h: Likewise.
64377         * lib/sysexits_.h: Likewise.
64378         * modules/fcntl (Depends-on): Depend on include_next, not
64379         absolute_header.
64380         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
64381         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
64382         * modules/fchdir: Likewise.
64383         * modules/float: Likewise.
64384         * modules/iconv_open: Likewise.
64385         * modules/inttypes: Likewise.
64386         * modules/locale: Likewise.
64387         * modules/math: Likewise.
64388         * modules/netinet_in: Likewise.
64389         * modules/search: Likewise.
64390         * modules/signal: Likewise.
64391         * modules/stdint: Likewise.
64392         * modules/stdio: Likewise.
64393         * modules/stdlib: Likewise.
64394         * modules/string: Likewise.
64395         * modules/sys_select: Likewise.
64396         * modules/sys_socket: Likewise.
64397         * modules/sys_stat: Likewise.
64398         * modules/sys_time: Likewise.
64399         * modules/sysexits: Likewise.
64400         * modules/time: Likewise.
64401         * modules/unistd: Likewise.
64402         * modules/wchar: Likewise.
64403         * modules/wctype: Likewise.
64404         * modules/sys_stat: Change maintainer to "all".
64405         * modules/unistd: Likewise.
64406
64407 2007-06-20  Karl Berry  <karl@gnu.org>
64408
64409         * config/srclist.txt: track www changes in license files.
64410
64411 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
64412
64413         * build-aux/bootstrap: Remove stray dot.
64414         Make sure build_aux settings are honored when linking
64415         gnulib_extra_files.
64416
64417 2007-06-19  Eric Blake  <ebb9@byu.net>
64418
64419         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
64420         Allow compilation on cygwin.
64421
64422 2007-06-19  Jim Meyering  <jim@meyering.net>
64423
64424         xreadlink-with-size: Remove module.  No longer used.
64425         Ex-callers now use xreadlink or mreadlink-with-size.
64426         * modules/xreadlink-with-size: Remove module.
64427         * lib/xreadlink-with-size.c: Remove file.
64428         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
64429         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
64430         just before the function definition *is* accurate.
64431
64432         Eliminate one way canonicalize_filename_mode could exit.
64433         * lib/canonicalize.c (canonicalize_filename_mode):
64434         Use mreadlink_with_size, not xreadlink_with_size.
64435
64436 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
64437
64438         Detect porting problems to FreeBSD/arm, which has time_t wider than
64439         long int.  Original problem reported for GNU diff by Xin Li in
64440         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
64441         * modules/getdate (Depends-on): Add intprops, verify.
64442         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
64443         is an integer type no wider than long int.
64444
64445 2007-06-18  Jim Meyering  <jim@meyering.net>
64446
64447         New module: mreadlink-with-size.
64448         * MODULES.html.sh: Add mreadlink-with-size.
64449         * modules/mreadlink-with-size: New module
64450         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
64451         not xreadlink-with-size.
64452         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
64453
64454 2007-06-16  Bruno Haible  <bruno@clisp.org>
64455
64456         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
64457         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
64458         Reported by Gary V. Vaughan <gary@gnu.org>.
64459
64460 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
64461
64462         Revamp lchown so that it lives in unistd.h where it belongs.
64463         * lib/lchown.h: Remove.
64464         * lib/dirchownmod.c: Don't include lib/lchown.h.
64465         * lib/fchownat.c: Likewise.
64466         * lib/openat.c: Likewise.
64467         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
64468         does not follow symlinks.
64469         (EOPNOTSUPP): Define if not defined.
64470         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
64471         is defined to 0.
64472         (lchown): New decl.
64473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
64474         Do not check for lchown decl.
64475         Set REPLACE_LCHOWN.
64476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
64477         REPLACE_LCHOWN.
64478         * modules/chown: Make it clear it follows symlinks.
64479         * modules/lchown: Make it clear it doesn't follow symlinks.
64480         (Files): Remove lib/lchown.h
64481         (Depends-on): Add unistd.
64482         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
64483         (Include): Include <unistd.h>, not "lchown.h".
64484         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
64485         REPLACE_LCHOWN.
64486
64487 2007-06-15  Jim Meyering  <jim@meyering.net>
64488
64489         Change license (GPL to LGPL) of fsusage and dependents.
64490         * modules/fsusage (License): Change to LGPL.
64491         * modules/full-read (License): Likewise.
64492         * modules/full-write (License): Likewise.
64493         * modules/safe-read (License): Likewise.
64494         * modules/safe-write (License): Likewise.
64495
64496 2007-06-14  Ben Pfaff  <blp@gnu.org>
64497
64498         Missing part of allocsa -> malloca transition.
64499         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
64500         gl_MALLOCA.
64501
64502 2007-06-12  Bruno Haible  <bruno@clisp.org>
64503
64504         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
64505         to ia64, x86_64, i386.
64506         Reported by Eric Blake.
64507
64508 2007-06-12  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
64511         cross-compiling to x86_64.
64512
64513 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
64514
64515         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
64516         glitch reported by Ralf Wildenhues in
64517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
64518
64519         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
64520         Vin Shelton.
64521
64522 2007-06-11  Bruno Haible  <bruno@clisp.org>
64523
64524         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
64525         replacement string.
64526         Reported by Eric Blake.
64527
64528 2007-06-10  Bruno Haible  <bruno@clisp.org>
64529
64530         Prepare vasnprintf code for use with Unicode strings.
64531         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
64532         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
64533         TYPE_U32_STRING.
64534         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
64535         a_u32_string variants.
64536         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64537         * lib/printf-args.c: Don't include config.h and the specification
64538         header if PRINTF_FETCHARGS is already defined.
64539         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
64540         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
64541         TYPE_U16_STRING, TYPE_U32_STRING.
64542         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
64543         u16_directive, u16_directives, u32_directive, u32_directives): New
64544         types.
64545         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
64546         New declarations.
64547         * lib/printf-parse.c: Don't include config.h and the specification
64548         header if PRINTF_PARSE is already defined. Eliminate the set of
64549         parameters for WIDE_CHAR_VERSION; the user of this file must provide
64550         them now. Include c-ctype.h.
64551         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
64552         directive and CHAR_T_ONLY_ASCII.
64553         * lib/vasnprintf.c: Don't include config.h and the specification header
64554         if VASNPRINTF is already defined.
64555         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
64556         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
64557         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
64558         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
64559         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
64560         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
64561         code accordingly.
64562         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
64563         pad_ourselves also in this case, with the 'c' and 's' directives, and
64564         with a different notion of "width".
64565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
64566
64567 2007-06-10  Bruno Haible  <bruno@clisp.org>
64568
64569         * modules/unistr/u32-mbsnlen: New file.
64570         * lib/unistr/u32-mbsnlen.c: New file.
64571
64572         * modules/unistr/u16-mbsnlen: New file.
64573         * lib/unistr/u16-mbsnlen.c: New file.
64574
64575         * modules/unistr/u8-mbsnlen: New file.
64576         * lib/unistr/u8-mbsnlen.c: New file.
64577
64578         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
64579         declarations.
64580
64581 2007-06-10  Bruno Haible  <bruno@clisp.org>
64582
64583         * lib/string_.h (mbsnlen): New declaration.
64584         * lib/mbsnlen.c: New file.
64585         * m4/mbsnlen.m4: New file.
64586         * modules/mbsnlen: New file.
64587         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
64588         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
64589         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
64590
64591 2007-06-10  Bruno Haible  <bruno@clisp.org>
64592
64593         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
64594
64595 2007-06-10  Bruno Haible  <bruno@clisp.org>
64596
64597         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
64598         * lib/mbuiter.h: Likewise.
64599
64600 2007-06-10  Bruno Haible  <bruno@clisp.org>
64601
64602         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
64603         declaration.
64604
64605 2007-06-10  Karl Berry  <karl@gnu.org>
64606
64607         * config/srclist.txt: remove gettext entries, Bruno prefers
64608         to update individually.
64609
64610 2007-06-10  Bruno Haible  <bruno@clisp.org>
64611
64612         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
64613         'maxlen'. Ensure only length + width bytes are allocated, not
64614         length + 1 + width.
64615
64616 2007-06-09  Bruno Haible  <bruno@clisp.org>
64617
64618         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
64619         (CHAR_T): Remove macro.
64620         (VASNPRINTF): Update.
64621
64622 2007-06-09  Bruno Haible  <bruno@clisp.org>
64623
64624         * MODULES.html.sh (Unicode string functions): Add the new modules.
64625
64626         * modules/uniconv/u32-conv-to-enc: New file.
64627         * lib/uniconv/u32-conv-to-enc.c: New file.
64628         * modules/uniconv/u32-conv-to-enc-tests: New file.
64629         * tests/uniconv/test-u32-conv-to-enc.c: New file.
64630
64631         * modules/uniconv/u16-conv-to-enc: New file.
64632         * lib/uniconv/u16-conv-to-enc.c: New file.
64633         * lib/uniconv/u-conv-to-enc.h: New file.
64634         * modules/uniconv/u16-conv-to-enc-tests: New file.
64635         * tests/uniconv/test-u16-conv-to-enc.c: New file.
64636
64637         * modules/uniconv/u8-conv-to-enc: New file.
64638         * lib/uniconv/u8-conv-to-enc.c: New file.
64639         * modules/uniconv/u8-conv-to-enc-tests: New file.
64640         * tests/uniconv/test-u8-conv-to-enc.c: New file.
64641
64642         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
64643         u32_conv_to_encoding): New declarations.
64644
64645 2007-06-09  Bruno Haible  <bruno@clisp.org>
64646
64647         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
64648
64649 2007-06-09  Bruno Haible  <bruno@clisp.org>
64650
64651         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
64652         * modules/malloca: Renamed from modules/allocsa, updated.
64653         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
64654         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
64655         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
64656         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
64657         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
64658         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
64659         * modules/xmalloca: Renamed from modules/xallocsa, updated.
64660         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
64661         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
64662         * modules/c-strcasestr (Depends-on): Update.
64663         * lib/c-strcasestr.c: Update.
64664         * modules/c-strstr (Depends-on): Update.
64665         * lib/c-strstr.c: Update.
64666         * modules/canonicalize-lgpl (Depends-on): Update.
64667         * lib/canonicalize-lgpl.c: Update.
64668         * modules/clean-temp (Depends-on): Update.
64669         * lib/clean-temp.c: Update.
64670         * modules/csharpcomp (Depends-on): Update.
64671         * lib/csharpcomp.c: Update.
64672         * modules/csharpexec (Depends-on): Update.
64673         * lib/csharpexec.c: Update.
64674         * modules/javacomp (Depends-on): Update.
64675         * lib/javacomp.c: Update.
64676         * modules/javaexec (Depends-on): Update.
64677         * lib/javaexec.c: Update.
64678         * modules/mbscasestr (Depends-on): Update.
64679         * lib/mbscasestr.c: Update.
64680         * modules/mbsstr (Depends-on): Update.
64681         * lib/mbsstr.c: Update.
64682         * modules/setenv (Depends-on): Update.
64683         * lib/setenv.c: Update.
64684         * modules/strcasestr (Depends-on): Update.
64685         * lib/strcasestr.c: Update.
64686         * modules/striconveha (Depends-on): Update.
64687         * lib/striconveha.c: Update.
64688         * modules/relocatable-prog-wrapper (Files): Update.
64689         * lib/relocwrapper.c: Update.
64690         * build-aux/install-reloc: Update.
64691         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
64692
64693 2007-06-08  Bruno Haible  <bruno@clisp.org>
64694
64695         Port to uClibc.
64696         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
64697         * lib/fpurge.c (fpurge): Likewise.
64698         * lib/freading.c (freading): Likewise.
64699         * lib/fseeko.c (rpl_fseeko): Likewise.
64700         * lib/fseterr.c (fseterr): Likewise.
64701         * lib/fwriting.c (fwriting): Likewise.
64702         * tests/test-fflush.c (main): Avoid a failure on uClibc.
64703
64704 2007-06-08  Bruno Haible  <bruno@clisp.org>
64705
64706         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
64707         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
64708         * modules/gettext (Files): Add m4/intlmacosx.m4.
64709
64710 2007-06-07  Bruno Haible  <bruno@clisp.org>
64711
64712         * modules/localename-tests: New file.
64713         * tests/test-localename.c: New file.
64714
64715         New module 'localename'.
64716         * lib/localename.h: New file.
64717         * lib/localename.c: New file, from GNU gettext.
64718         * m4/localename.m4: New file.
64719         * modules/localename: New file.
64720
64721 2007-06-07  Bruno Haible  <bruno@clisp.org>
64722
64723         Work around the lack of <wchar.h> on some builds of uClibc.
64724         * doc/headers/wchar.texi: Update.
64725         * lib/wchar_.h: Include <wchar.h> only if it exists.
64726         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
64727         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
64728         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
64729         doesn't exist.
64730         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
64731         * modules/mbfile (Depends-on): Add wchar.
64732         * modules/mbiter (Depends-on): Likewise.
64733         * modules/mbuiter (Depends-on): Likewise.
64734         Reported by Simon Josefsson.
64735
64736 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
64737
64738         Work around problem reported by Steven M. Schweda in
64739         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
64740         Tru64 5.1B with the Compaq compiler environment installed declares
64741         an 'isblank' function but does not define it in the C library.
64742         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
64743         * lib/regex_internal.h (isblank): Likewise.
64744         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
64745         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64746
64747 2007-06-05  Bruno Haible  <bruno@clisp.org>
64748
64749         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
64750         ia64.
64751         * modules/printf-safe: New file.
64752         * modules/fprintf-posix (Depends-on): Add printf-safe.
64753         * modules/printf-posix (Depends-on): Likewise.
64754         * modules/snprintf-posix (Depends-on): Likewise.
64755         * modules/sprintf-posix (Depends-on): Likewise.
64756         * modules/vasnprintf-posix (Depends-on): Likewise.
64757         * modules/vasprintf-posix (Depends-on): Likewise.
64758         * modules/vfprintf-posix (Depends-on): Likewise.
64759         * modules/vprintf-posix (Depends-on): Likewise.
64760         * modules/vsnprintf-posix (Depends-on): Likewise.
64761         * modules/vsprintf-posix (Depends-on): Likewise.
64762         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
64763         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
64764         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
64765         "no" on i386, x86_64, ia64.
64766         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
64767         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64768         on i386, x86_64, ia64.
64769         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
64770         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64771         on i386, x86_64, ia64.
64772         * tests/test-vasnprintf-posix.c: Include float.h.
64773         (LDBL80_WORDS): New macro.
64774         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64775         on i386, x86_64, ia64.
64776         * tests/test-vasprintf-posix.c: Include float.h.
64777         (LDBL80_WORDS): New macro.
64778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
64779         on i386, x86_64, ia64.
64780         * tests/test-snprintf-posix.c: Include float.h.
64781         * tests/test-sprintf-posix.c: Likewise.
64782         * tests/test-vsnprintf-posix.c: Likewise.
64783         * tests/test-vsprintf-posix.c: Likewise.
64784
64785 2007-06-05  Bruno Haible  <bruno@clisp.org>
64786
64787         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
64788         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
64789         non-IEEE numbers on i386, x86_64, ia64.
64790         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
64791         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
64792         * tests/test-isnanl.h: Include float.h.
64793         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
64794
64795 2007-06-05  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
64798         also the %a / %A. Handle the %a / %A code before this extra handling.
64799
64800 2007-06-05  Bruno Haible  <bruno@clisp.org>
64801
64802         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
64803         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
64804
64805 2007-06-05  Bruno Haible  <bruno@clisp.org>
64806
64807         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64808         typo in variable name.
64809
64810 2007-06-05  Eric Blake  <ebb9@byu.net>
64811
64812         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64813         Reported by Simon Josefsson.
64814
64815 2007-06-04  Bruno Haible  <bruno@clisp.org>
64816
64817         Avoid test failures on some PowerPC platforms.
64818         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64819         Define differently for PowerPC.
64820         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64821         Reported by Gary V. Vaughan <gary@gnu.org>.
64822
64823 2007-06-02  Bruno Haible  <bruno@clisp.org>
64824
64825         Fix test-stdint failure on FreeBSD/ia64.
64826         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64827         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64828         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64829         * doc/headers/stdint.texi: Update.
64830
64831 2007-06-01  Bruno Haible  <bruno@clisp.org>
64832
64833         * tests/test-binary-io.c (main): Pass a third argument to open().
64834         Reported by Gary V. Vaughan <gary@gnu.org>.
64835
64836 2007-06-01  Bruno Haible  <bruno@clisp.org>
64837
64838         * doc/functions/frexpl.texi: Update for mingw.
64839
64840 2007-06-01  Bruno Haible  <bruno@clisp.org>
64841
64842         * tests/test-lseek.c (main): Disable test of errno for invalid third
64843         argument.
64844         * doc/functions/lseek.texi: Update.
64845         Reported by Gary V. Vaughan <gary@gnu.org>.
64846
64847 2007-05-28  Bruno Haible  <bruno@clisp.org>
64848
64849         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64850
64851 2007-05-31  Eric Blake  <ebb9@byu.net>
64852
64853         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64854         cross compiling.
64855
64856 2007-05-30  Eric Blake  <ebb9@byu.net>
64857         and Bruno Haible  <bruno@clisp.org>
64858
64859         Work around mingw test failures exposed by m4-1.4.9b.
64860         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64861         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64862         moment.
64863
64864 2007-05-30  Bruno Haible  <bruno@clisp.org>
64865
64866         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64867         assuming that they are closed. Needed on HP-UX 11.
64868
64869 2007-05-29  Bruno Haible  <bruno@clisp.org>
64870
64871         Fix a problem with #include_next.
64872         * lib/dirent_.h: Split the double-inclusion guard.
64873         * lib/fcntl_.h: Likewise.
64874         * lib/float_.h: Likewise.
64875         * lib/iconv_.h: Likewise.
64876         * lib/inttypes_.h: Likewise.
64877         * lib/locale_.h: Likewise.
64878         * lib/math_.h: Likewise.
64879         * lib/netinet_in_.h: Likewise.
64880         * lib/search_.h: Likewise.
64881         * lib/signal_.h: Likewise.
64882         * lib/stdint_.h: Likewise.
64883         * lib/stdio_.h: Likewise.
64884         * lib/stdlib_.h: Likewise.
64885         * lib/string_.h: Likewise.
64886         * lib/sys_select_.h: Likewise.
64887         * lib/sys_socket_.h: Likewise.
64888         * lib/sys_stat_.h: Likewise.
64889         * lib/sys_time_.h: Likewise.
64890         * lib/sysexits_.h: Likewise.
64891         * lib/time_.h: Likewise.
64892         * lib/unistd_.h: Likewise.
64893         * lib/wchar_.h: Likewise.
64894         * lib/wctype_.h: Likewise.
64895
64896 2007-05-29  Bruno Haible  <bruno@clisp.org>
64897
64898         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64899         for the moment.
64900
64901 2007-05-29  Bruno Haible  <bruno@clisp.org>
64902
64903         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64904         invocation.
64905         Reported by Eric Blake.
64906
64907 2007-05-29  Bruno Haible  <bruno@clisp.org>
64908
64909         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64910         compiling case.
64911
64912 2007-05-29  Eric Blake  <ebb9@byu.net>
64913             Bruno Haible  <bruno@clisp.org>
64914
64915         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64916         cross compiles.
64917
64918 2007-05-28  Eric Blake  <ebb9@byu.net>
64919
64920         * modules/closein-tests (test_closein_LDADD): Support test on
64921         cygwin with libtool.
64922
64923 2007-05-28  Bruno Haible  <bruno@clisp.org>
64924
64925         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64926         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64927         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64928         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64929         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64930         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64931         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64932         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64933         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64934
64935 2007-05-28  Eric Blake  <ebb9@byu.net>
64936
64937         Unconditionally include <config.h> in unit tests.
64938         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64939         * tests/test-allocsa.c, tests/test-arcfour.c,
64940         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64941         tests/test-array_list.c, tests/test-array_oset.c,
64942         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64943         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64944         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64945         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64946         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64947         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64948         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64949         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64950         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64951         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64952         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64953         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64954         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64955         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64956         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64957         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64958         test-md5.c, test-memmem.c, test-printf-posix.c,
64959         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64960         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64961         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64962         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64963         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64964         test-vasnprintf-posix2.c, test-vasnprintf.c,
64965         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64966         test-vfprintf-posix.c, test-vprintf-posix.c,
64967         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64968         test-xvasprintf.c: Likewise.
64969
64970 2007-05-28  Bruno Haible  <bruno@clisp.org>
64971
64972         * gnulib-tool (func_import): Remember the --with-tests command-line
64973         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64974         Reported by Eric Blake.
64975
64976 2007-05-28  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/ftell-tests: New file.
64979         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64980         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64981
64982         * lib/ftell.c: New file.
64983         * modules/ftell: New file.
64984         * m4/ftell.m4: New file.
64985         * doc/functions/ftell.texi: Update.
64986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64987         REPLACE_FTELL.
64988         * lib/stdio_.h (rpl_ftell): New declaration.
64989         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64990         REPLACE_FTELL.
64991
64992 2007-05-28  Eric Blake  <ebb9@byu.net>
64993
64994         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64995
64996 2007-05-28  Bruno Haible  <bruno@clisp.org>
64997
64998         * modules/fseek-tests: New file.
64999         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
65000         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
65001
65002         * lib/fseek.c: New file.
65003         * modules/fseek: New file.
65004         * m4/fseek.m4: New file.
65005         * doc/functions/fseek.texi: Update.
65006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
65007         REPLACE_FSEEK.
65008         * lib/stdio_.h (rpl_fseek): New declaration.
65009         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
65010         REPLACE_FSEEK.
65011
65012 2007-05-28  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/stdio_.h (fflush): More comments.
65015
65016 2007-05-28  Bruno Haible  <bruno@clisp.org>
65017
65018         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
65019         runtime test.
65020
65021 2007-05-28  Eric Blake  <ebb9@byu.net>
65022
65023         Improve lseek module.
65024         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
65025         * lib/unistd_.h (lseek): Scale back link warning message.
65026         * tests/test-lseek.c: Beef up test.
65027         * tests/test-lseek.sh: Exercise more facets of lseek.
65028         Reported by Bruno Haible.
65029
65030 2007-05-28  Bruno Haible  <bruno@clisp.org>
65031
65032         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
65033         to define.
65034
65035 2007-05-27  Bruno Haible  <bruno@clisp.org>
65036
65037         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
65038
65039 2007-05-27  Bruno Haible  <bruno@clisp.org>
65040
65041         * modules/openmp: New file.
65042         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
65043         Noah Misch.
65044
65045 2007-05-26  Bruno Haible  <bruno@clisp.org>
65046
65047         * modules/chdir-long (Depends-on): Add fchdir.
65048         * modules/chdir-safer (Depends-on): Likewise.
65049         * modules/fts (Depends-on): Likewise.
65050         * modules/fts-lgpl (Depends-on): Likewise.
65051         * modules/openat (Depends-on): Likewise.
65052         * modules/savewd (Depends-on): Likewise.
65053
65054 2007-05-24  Eric Blake  <ebb9@byu.net>
65055
65056         Fix lseek on mingw.
65057         * modules/lseek: New module.
65058         * m4/lseek.m4: New file.
65059         * lib/lseek.c: New file.
65060         * modules/lseek-tests: New file.
65061         * tests/test-lseek.c: New file.
65062         * tests/test-lseek.sh: New file.
65063         * MODULES.html.sh: Document lseek module.
65064         * modules/fflush (Depends-on): Add lseek, fseeko.
65065         * modules/fseeko (Depends-on): Likewise.
65066         * modules/ftello (Depends-on): Likewise.
65067         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
65068         broken.
65069         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
65070         broken.
65071         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
65072         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
65073         * lib/ftello.c (rpl_ftello): Likewise.
65074         * tests/test-fseeko.c (main): Test this.
65075         * tests/test-fseeko.sh: Likewise.
65076         * tests/test-ftello.c (main): Likewise.
65077         * tests/test-ftello.sh: Likewise.
65078         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
65079         implies replacing fseek.
65080         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
65081         HAVE_FTELLO.
65082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
65083         * modules/unistd (Makefile.am): Likewise.
65084         * lib/unistd_.h (lseek): Declare a replacement.
65085         * doc/functions/lseek.texi (lseek): Document this fix.
65086         * doc/functions/fseek.texi (fseek): Likewise.
65087         * doc/functions/ftell.texi (ftell): Likewise.
65088
65089 2007-05-24  Bruno Haible  <bruno@clisp.org>
65090
65091         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
65092         in the printed representation of a NaN.
65093         * tests/test-vasprintf-posix.c (test_function): Likewise.
65094         * tests/test-snprintf-posix.h (test_function): Likewise.
65095         * tests/test-sprintf-posix.h (test_function): Likewise.
65096         Reported by Eric Blake.
65097
65098 2007-05-23  Eric Blake  <ebb9@byu.net>
65099
65100         Fix fseeko/ftello on cygwin 1.5.24.
65101         * doc/functions/fseeko.texi (fseeko): Document the fix.
65102         * doc/functions/ftello.texi (ftello): Document the fix.
65103         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
65104         * doc/functions/stdout.text (stdout): New file.
65105         * doc/functions/stderr.text (stderr): New file.
65106         * doc/gnulib.texi (Function Substitutes): Use new files.
65107         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
65108         prior to 1.7.0.
65109         * tests/test-ftello.c (main): Likewise for ftello.
65110         * tests/test-fseeko.sh: New file.
65111         * tests/test-ftello.sh: New file.
65112         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
65113         with seekable stdin.
65114         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
65115         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
65116         (gl_REPLACE_FSEEKO): New macro.
65117         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
65118         * modules/fseeko (Files): Distribute fseeko.c.
65119         * modules/ftello (Files): Distribute ftello.c.
65120         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
65121         mode.
65122         * lib/ftello.c (rpl_ftello): New file.
65123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
65124         fseeko, ftello.
65125         (gl_STDIN_LARGE_OFFSET): New macro.
65126         * modules/stdio (Makefile.am): Perform the replacement.
65127         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
65128
65129 2007-05-23  Bruno Haible  <bruno@clisp.org>
65130
65131         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
65132         GNULIB_POSIXCHECK is defined.
65133
65134 2007-05-21  Bruno Haible  <bruno@clisp.org>
65135
65136         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
65137         Check also the output for NaN arguments. When cross-compiling, guess
65138         no on IRIX.
65139         * lib/vasnprintf.c: Update comments.
65140         * tests/test-vasnprintf-posix.c (strisnan): New function.
65141         (test_function): Use it.
65142         * tests/test-vasprintf-posix.c (strisnan): New function.
65143         (test_function): Use it.
65144         * tests/test-snprintf-posix.h (strisnan): New function.
65145         (test_function): Use it.
65146         * tests/test-sprintf-posix.h (strisnan): New function.
65147         (test_function): Use it.
65148         Reported by Eric Blake.
65149
65150 2007-05-20  Bruno Haible  <bruno@clisp.org>
65151
65152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
65153         numbers that fails on BeOS.
65154         * doc/functions/frexpl.texi: Update.
65155
65156 2007-05-20  Jim Meyering  <jim@meyering.net>
65157
65158         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
65159         forced upon us by glibc-2.6.
65160
65161 2007-05-20  Bruno Haible  <bruno@clisp.org>
65162
65163         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
65164         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
65165         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
65166         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
65167         NEED_PRINTF_INFINITE.
65168         (is_infinitel): New function.
65169         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
65170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
65171         gl_PREREQ_VASNPRINTF_INFINITE.
65172         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
65173         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65174         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
65175         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
65176         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
65177         gl_PREREQ_VASNPRINTF_INFINITE.
65178         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65179         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65181         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65182         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65184         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65185         * doc/functions/fprintf.texi: Update.
65186         * doc/functions/printf.texi: Update.
65187         * doc/functions/snprintf.texi: Update.
65188         * doc/functions/sprintf.texi: Update.
65189         * doc/functions/vfprintf.texi: Update.
65190         * doc/functions/vprintf.texi: Update.
65191         * doc/functions/vsnprintf.texi: Update.
65192         * doc/functions/vsprintf.texi: Update.
65193
65194 2007-05-20  Bruno Haible  <bruno@clisp.org>
65195
65196         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
65197         was not found in libc.
65198         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
65199
65200 2007-05-20  Bruno Haible  <bruno@clisp.org>
65201
65202         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65203         printed as "-nan" instead of "nan".
65204         * tests/test-vasprintf-posix.c (test_function): Likewise.
65205         * tests/test-snprintf-posix.h (test_function): Likewise.
65206         * tests/test-sprintf-posix.h (test_function): Likewise.
65207         Needed for HP-UX 11.
65208
65209 2007-05-20  Jim Meyering  <jim@meyering.net>
65210
65211         Fix buggy test for the fchownat-deref bug.
65212         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
65213         symlink required for the run-test.  Without it, this test would
65214         always declare that fchownat doesn't work, and client code would
65215         unnecessarily use the replacement function with fixed libc.
65216         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
65217         Reported by Greg Schafer.
65218
65219 2007-05-19  Bruno Haible  <bruno@clisp.org>
65220
65221         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
65222         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
65223         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
65224         Needed for IRIX 6.5 and Solaris 2.5.1.
65225
65226 2007-05-19  Bruno Haible  <bruno@clisp.org>
65227
65228         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
65229         (test_function): Skip tests involving -0.0 on platforms where
65230         -0.0 = 0.0.
65231         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
65232         (test_function): Skip tests involving -0.0 on platforms where
65233         -0.0 = 0.0.
65234         * tests/test-snprintf-posix.h (have_minus_zero): New function.
65235         (test_function): Skip tests involving -0.0 on platforms where
65236         -0.0 = 0.0.
65237         * tests/test-sprintf-posix.h (have_minus_zero): New function.
65238         (test_function): Skip tests involving -0.0 on platforms where
65239         -0.0 = 0.0.
65240         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
65241         tests.
65242         * tests/test-printf-posix.h (test_function): Likewise.
65243         * tests/test-printf-posix.output: Remove all -0.0 related results.
65244         Needed for IRIX 6.5.
65245
65246 2007-05-19  Bruno Haible  <bruno@clisp.org>
65247
65248         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
65249         printed as "nan0x7fffffff" instead of "nan".
65250         * tests/test-vasprintf-posix.c (test_function): Likewise.
65251         * tests/test-snprintf-posix.h (test_function): Likewise.
65252         * tests/test-sprintf-posix.h (test_function): Likewise.
65253         * tests/test-fprintf-posix.h (NaN): Remove macro.
65254         (test_function): Remove all NaN related tests.
65255         * tests/test-printf-posix.h (NaN): Remove macro.
65256         (test_function): Remove all NaN related tests.
65257         * tests/test-printf-posix.output: Remove all NaN related results.
65258         Needed for IRIX 6.5.
65259
65260 2007-05-19  Bruno Haible  <bruno@clisp.org>
65261
65262         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
65263         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
65264
65265 2007-05-19  Bruno Haible  <bruno@clisp.org>
65266
65267         * lib/float_.h: New file.
65268         * m4/float_h.m4: New file.
65269         * modules/float: New file.
65270         * modules/isnanl (Dependencies): Add float.
65271         * modules/isnanl-nolibm (Dependencies): Likewise.
65272         * modules/mathl (Dependencies): Likewise.
65273         * modules/printf-frexpl (Dependencies): Likewise.
65274         * modules/signbit (Dependencies): Likewise.
65275         * modules/vasnprintf (Dependencies): Likewise.
65276         * doc/headers/float.texi: Update.
65277
65278 2007-05-19  Jim Meyering  <jim@meyering.net>
65279
65280         * lib/utimens.c (gl_futimens): Rename from futimens,
65281         now that glibc-2.6 declares futimens.
65282         * lib/utimens.h: Likewise.
65283
65284 2007-05-19  Bruno Haible  <bruno@clisp.org>
65285
65286         Avoid test failures on mingw.
65287         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
65288         * tests/test-printf-posix.sh: Likewise.
65289         * tests/test-vfprintf-posix.sh: Likewise.
65290         * tests/test-vprintf-posix.sh: Likewise.
65291
65292 2007-05-19  Bruno Haible  <bruno@clisp.org>
65293
65294         Fix *printf result for NaN, Inf, -0.0 on mingw.
65295         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
65296         * lib/vasnprintf.c: Include math.h and isnan.h.
65297         (is_infinite_or_zero): New function.
65298         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
65299         values in the %f, %F, %e, %E, %g, %G directives.
65300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
65301         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65302         gl_PRINTF_INFINITE and test its result. Invoke
65303         gl_PREREQ_VASNPRINTF_INFINITE.
65304         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65305         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65307         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65308         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65309         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65310         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65311         * doc/functions/fprintf.texi: Update.
65312         * doc/functions/printf.texi: Update.
65313         * doc/functions/snprintf.texi: Update.
65314         * doc/functions/sprintf.texi: Update.
65315         * doc/functions/vfprintf.texi: Update.
65316         * doc/functions/vprintf.texi: Update.
65317         * doc/functions/vsnprintf.texi: Update.
65318         * doc/functions/vsprintf.texi: Update.
65319
65320 2007-05-19  Bruno Haible  <bruno@clisp.org>
65321
65322         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
65323         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
65324         Instead of multiplying with 10^k, set extra_zeroes to k.
65325         (scale10_round_long_double): Remove function.
65326
65327 2007-05-18  Bruno Haible  <bruno@clisp.org>
65328
65329         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
65330         introduced on 2007-05-06.
65331
65332 2007-05-18  Bruno Haible  <bruno@clisp.org>
65333
65334         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
65335         %g directives.
65336         * tests/test-vasprintf-posix.c (test_function): Likewise.
65337         * tests/test-snprintf-posix.h (test_function): Likewise.
65338         * tests/test-sprintf-posix.h (test_function): Likewise.
65339
65340 2007-05-18  Bruno Haible  <bruno@clisp.org>
65341
65342         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
65343         (strmatch): New function.
65344         (test_function): Test the %f directive on numbers of various exponents.
65345         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
65346         (strmatch): New function.
65347         (test_function): Test the %f directive on numbers of various exponents.
65348         * tests/test-snprintf-posix.h (strmatch): New function.
65349         (test_function): Test the %f directive on numbers of various exponents.
65350         * tests/test-sprintf-posix.h (strmatch): New function.
65351         (test_function): Test the %f directive on numbers of various exponents.
65352         * tests/test-snprintf-posix.c (SIZEOF): New macro.
65353         * tests/test-sprintf-posix.c (SIZEOF): New macro.
65354         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
65355         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
65356
65357 2007-05-18  Bruno Haible  <bruno@clisp.org>
65358
65359         Add support for 'long double' number output.
65360         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
65361         * lib/vasnprintf.c: Include math.h and float+.h.
65362         (mp_limb_t): New type.
65363         (GMP_LIMB_BITS): New macro.
65364         (mp_twolimb_t): New type.
65365         (GMP_TWOLIMB_BITS): New macro.
65366         (mpn_t): New type.
65367         (multiply, divide, convert_to_decimal, decode_long_double,
65368         scale10_round_long_double, scale10_round_decimal_long_double,
65369         floorlog10l): New functions.
65370         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
65371         for the %f, %F, %e, %E, %g, %G directives.
65372         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
65373         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65374         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
65375         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
65376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65383         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
65384         * modules/snprintf-posix (Depends-on): Likewise.
65385         * modules/sprintf-posix (Depends-on): Likewise.
65386         * modules/vasnprintf-posix (Depends-on): Likewise.
65387         * modules/vasprintf-posix (Depends-on): Likewise.
65388         * modules/vfprintf-posix (Depends-on): Likewise.
65389         * modules/vsnprintf-posix (Depends-on): Likewise.
65390         * modules/vsprintf-posix (Depends-on): Likewise.
65391         * modules/vasnprintf (Files): Add lib/float+.h.
65392         * doc/functions/fprintf.texi: Update.
65393         * doc/functions/printf.texi: Update.
65394         * doc/functions/snprintf.texi: Update.
65395         * doc/functions/sprintf.texi: Update.
65396         * doc/functions/vfprintf.texi: Update.
65397         * doc/functions/vprintf.texi: Update.
65398         * doc/functions/vsnprintf.texi: Update.
65399         * doc/functions/vsprintf.texi: Update.
65400
65401 2007-05-18  Bruno Haible  <bruno@clisp.org>
65402
65403         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
65404
65405 2007-05-18  Bruno Haible  <bruno@clisp.org>
65406
65407         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
65408         for printing 64-bit integers. Needed for mingw.
65409
65410 2007-05-18  Bruno Haible  <bruno@clisp.org>
65411
65412         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65413         gl_FUNC_FREXPL_WORKS.
65414         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
65415
65416 2007-05-18  Bruno Haible  <bruno@clisp.org>
65417
65418         * modules/frexpl-nolibm-tests: New file.
65419
65420         * modules/frexpl-nolibm: New file.
65421         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
65422
65423 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
65424
65425         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
65426         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65427         GCC 4.2, which otherwise issues a lot of warnings.
65428         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
65429         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
65430         Likewise.
65431         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
65432         * modules/iconv_open (iconv.h): Likewise.
65433         * modules/locale (locale.h): Likewise.
65434         * modules/netinet_in (netinet/in.h): Likewise.
65435         * modules/sys_select (sys_select.h): Likewise.
65436         * modules/sys_socket (sys/socket.h): Likewise.
65437         * modules/sys_stat (sys/stat.h): Likewise.
65438         * modules/sysexits (sysexits.h): Likewise.
65439         * modules/unistd (unistd.h): Likewise.
65440
65441 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65442
65443         * modules/closein-tests (Makefile.am): Distribute
65444         `test-closein.sh'.
65445
65446 2007-05-17  Bruno Haible  <bruno@clisp.org>
65447
65448         * tests/test-printf-posix.output: Renamed from
65449         tests/test-fprintf-posix.out.
65450         * modules/fprintf-posix-tests: Update.
65451         * modules/printf-posix-tests: Update.
65452         * modules/vfprintf-posix-tests: Update.
65453         * modules/vprintf-posix-tests: Update.
65454         * tests/test-fprintf-posix.sh: Update.
65455         * tests/test-printf-posix.sh: Update.
65456         * tests/test-vfprintf-posix.sh: Update.
65457         * tests/test-vprintf-posix.sh: Update.
65458         Reported by Ralf Wildenhues.
65459
65460 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
65461
65462         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
65463         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
65464         GCC 4.2, which otherwise issues a lot of warnings.
65465         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
65466         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
65467         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
65468         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
65469         it should no longer be needed.
65470         * lib/string_.h: Likewise.
65471         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
65472         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
65473         * modules/inttypes (inttypes.h): Likewise.
65474         * modules/math (math.h): Likewise.
65475         * modules/search (search.h): Likewise.
65476         * modules/signal (signal.h): Likewise.
65477         * modules/stdint (stdint.h): Likewise.
65478         * modules/stdio (stdio.h): Likewise.
65479         * modules/stdlib (stdlib.h): Likewise.
65480         * modules/string (string.h): Likewise.
65481         * modules/sys_time (sys/time.h): Likewise.
65482         * modules/time (time.h): Likewise.
65483         * modules/wchar (wchar.h): Likewise.
65484         * modules/wctype (wtype.h): Likewise.
65485
65486 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
65487
65488         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
65489
65490 2007-05-13  Bruno Haible  <bruno@clisp.org>
65491
65492         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
65493         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65494         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
65495         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65496         (gl_PREREQ_STRTOK_R): Don't require it here.
65497
65498 2007-05-13  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
65501         when used in C++ mode.
65502
65503 2007-05-12  Bruno Haible  <bruno@clisp.org>
65504
65505         * lib/linebuffer.h: Tweak doc.
65506         * lib/linebuffer.c: Likewise.
65507
65508 2007-05-12  James Youngman  <jay@gnu.org>
65509
65510         * lib/linebuffer.c (readlinebuffer_delim): New function,
65511         like readlinebuffer, but use a caller-specified delimiter.
65512         (readlinebuffer): Just call readlinebuffer_delim with '\n'
65513         as the delimiter.
65514         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
65515
65516 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65517
65518         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
65519         * modules/openat (Files): Remove openat-die.c.
65520         (Depends-on): Add openat-die.
65521         * modules/openat-die: New module.
65522
65523 2007-05-06  Bruno Haible  <bruno@clisp.org>
65524
65525         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
65526         Update with info about Cygwin.
65527         * doc/functions/fprintf.texi: Update.
65528         * doc/functions/printf.texi: Update.
65529         * doc/functions/snprintf.texi: Update.
65530         * doc/functions/sprintf.texi: Update.
65531         * doc/functions/vfprintf.texi: Update.
65532         * doc/functions/vprintf.texi: Update.
65533         * doc/functions/vsnprintf.texi: Update.
65534         * doc/functions/vsprintf.texi: Update.
65535         Reported by Eric Blake.
65536
65537 2007-05-06  Bruno Haible  <bruno@clisp.org>
65538
65539         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
65540         padding ourselves for the floating-point directives.
65541         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
65542         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
65543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65544         gl_PRINTF_FLAG_ZERO and test its result. Invoke
65545         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
65546         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65547         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65548         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65549         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65550         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65551         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65552         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65553         * tests/test-snprintf-posix.h (test_function): Also check the width
65554         and some flags in the %f directive.
65555         * tests/test-sprintf-posix.h (test_function): Likewise.
65556         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65557         * tests/test-vasprintf-posix.c (test_function): Likewise.
65558         * doc/functions/fprintf.texi: Update.
65559         * doc/functions/printf.texi: Update.
65560         * doc/functions/snprintf.texi: Update.
65561         * doc/functions/sprintf.texi: Update.
65562         * doc/functions/vfprintf.texi: Update.
65563         * doc/functions/vprintf.texi: Update.
65564         * doc/functions/vsnprintf.texi: Update.
65565         * doc/functions/vsprintf.texi: Update.
65566
65567 2007-05-06  Bruno Haible  <bruno@clisp.org>
65568
65569         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
65570         pass the ' flag character to sprintf or snprintf.
65571         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
65572         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
65573         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65574         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
65575         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
65576         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65577         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
65578         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65579         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65581         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65582         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65583         * tests/test-snprintf-posix.h (test_function): Also check the grouping
65584         flag.
65585         * tests/test-sprintf-posix.h (test_function): Likewise.
65586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
65587         * tests/test-vasprintf-posix.c (test_function): Likewise.
65588         * doc/functions/fprintf.texi: Update.
65589         * doc/functions/printf.texi: Update.
65590         * doc/functions/snprintf.texi: Update.
65591         * doc/functions/sprintf.texi: Update.
65592         * doc/functions/vfprintf.texi: Update.
65593         * doc/functions/vprintf.texi: Update.
65594         * doc/functions/vsnprintf.texi: Update.
65595         * doc/functions/vsprintf.texi: Update.
65596
65597 2007-05-01  Bruno Haible  <bruno@clisp.org>
65598
65599         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
65600
65601 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
65602
65603         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
65604         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
65605
65606 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
65609         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
65610         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
65611
65612 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
65613
65614         * lib/argp-help.c (struct hol_entry): New member `ord'.
65615         (HOL_ENTRY_PTRCMP): Use ord for comparison
65616         (hol_sort): Initialize ord.
65617
65618 2007-05-01  Bruno Haible  <bruno@clisp.org>
65619
65620         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
65621         Reported by Eric Blake.
65622         * doc/gnulib.texi (Function Substitutes): Update.
65623
65624 2007-05-01  Bruno Haible  <bruno@clisp.org>
65625
65626         * doc/functions.texi: Remove file, now redundant through
65627         doc/functions/*.texi.
65628
65629 2007-05-01  Bruno Haible  <bruno@clisp.org>
65630
65631         * modules/argp (Depends-on): Add sleep.
65632
65633 2007-05-01  Bruno Haible  <bruno@clisp.org>
65634
65635         * modules/sleep-tests: New file.
65636         * tests/test-sleep.c: New file.
65637
65638         * modules/sleep: New file.
65639         * lib/sleep.c: New file.
65640         * m4/sleep.m4: New file.
65641         * lib/unistd_.h (sleep): New declaration.
65642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
65643         HAVE_SLEEP.
65644         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
65645         * doc/functions/sleep.texi: Document the sleep module.
65646
65647 2007-05-01  Bruno Haible  <bruno@clisp.org>
65648
65649         * lib/sigprocmask.h: Remove file.
65650         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
65651         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
65652         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
65653         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
65654         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
65655         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
65656         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
65657         HAVE_SIGSET_T as a shell variable.
65658         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
65659         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
65660         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
65661         (Depends-on): Add signal. Remove verify.
65662         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
65663         (Include): Mention <signal.h> instead of sigprocmask.h.
65664         * NEWS: Mention the change.
65665         * lib/fatal-signal.c: Don't include sigprocmask.h.
65666
65667 2007-05-01  Bruno Haible  <bruno@clisp.org>
65668
65669         * modules/signal: New file.
65670         * lib/signal_.h: New file.
65671         * m4/signal_h.m4: New file.
65672
65673 2007-05-01  Bruno Haible  <bruno@clisp.org>
65674
65675         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
65676         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
65677         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
65678         HAVE_WCTYPE_CTMP_BUG into wctype.h.
65679
65680 2007-05-01  Bruno Haible  <bruno@clisp.org>
65681
65682         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
65683         configure time.
65684         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
65685         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
65686         * modules/sys_stat (Makefile.am): Substitute their values into
65687         sys/stat.h.
65688
65689 2007-05-01  Bruno Haible  <bruno@clisp.org>
65690
65691         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
65692         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
65693         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
65694
65695 2007-05-01  Bruno Haible  <bruno@clisp.org>
65696
65697         * doc/header/assert.texi: Undo last change: don't mention the gnulib
65698         'assert' module here.
65699
65700 2007-05-01  Bruno Haible  <bruno@clisp.org>
65701
65702         * doc/functions/*.texi: New files.
65703         * doc/functions/google-ranking.txt: New file.
65704         * doc/gnulib.texi (Function Substitutes): New chapter.
65705         (ctime, inet_ntoa): Remove sections.
65706         * doc/ctime.texi: Remove file.
65707         * doc/inet_ntoa.texi: Remove file.
65708         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
65709         dependencies.
65710         (%.info): New rule, specifying a --reference-limit.
65711
65712 2007-05-01  Bruno Haible  <bruno@clisp.org>
65713
65714         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
65715
65716 2007-05-01  Bruno Haible  <bruno@clisp.org>
65717
65718         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
65719         the portability of 'mkdir' to mingw systems.
65720
65721 2007-05-01  Bruno Haible  <bruno@clisp.org>
65722
65723         * doc/headers/google-ranking.txt: New file.
65724
65725 2007-04-30  Eric Blake  <ebb9@byu.net>
65726
65727         Prefer fseeko to fseek.
65728         * modules/getpass (Depends-on): Add fseeko.
65729         * lib/getpass.c (getpass): Use fseeko, not fseek.
65730
65731 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
65732
65733         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
65734         assumes the sorting is stable, while most qsort implementations
65735         are not.  Use argument addresses to ensure they never compare as
65736         equal.
65737
65738         * tests/test-argp-2.sh (usage-indent test): Fix output
65739         (func_compare): Restore diff options
65740         * tests/test-argp.c: Restore #include "progname.h"
65741
65742 2007-04-29  Bruno Haible  <bruno@clisp.org>
65743
65744         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
65745         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65746         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
65747         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
65748         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
65749         (configure.ac): Define CHECK_SNPRINTF_POSIX.
65750         (TESTS, check_PROGRAMS): Add test-snprintf.
65751         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
65752         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
65753         (TESTS, check_PROGRAMS): Add test-vsnprintf.
65754         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
65755         assertions that fail on HP-UX, OSF/1, or IRIX.
65756         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
65757
65758 2007-04-29  Bruno Haible  <bruno@clisp.org>
65759
65760         * MODULES.html.sh (posix_functions): Remove 'contents'.
65761
65762 2007-04-29  Karl Berry  <karl@gnu.org>
65763
65764         * config/srclist.txt (gendocs_template_min): new entry.
65765
65766 2007-04-29  Bruno Haible  <bruno@clisp.org>
65767
65768         Work around fpurge bug on BSD systems.
65769         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
65770         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
65771         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
65772         fpurge to rpl_fpurge if the system already has this function.
65773         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
65774         the case where the system already has this function. Correct invariants
65775         on BSD systems.
65776         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
65777         BSD systems.
65778
65779 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
65780
65781         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
65782         proposed by Sven Verdoolaege.
65783
65784         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
65785         options.
65786         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
65787         (usage and help tests): Update
65788
65789 2007-04-29  Bruno Haible  <bruno@clisp.org>
65790
65791         * tests/test-fflush.c (main): Use a file of size 17, not 10.
65792         Print more information in case of failure. Disable a test on BeOS.
65793
65794 2007-04-29  Bruno Haible  <bruno@clisp.org>
65795
65796         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
65797         This helps debugging on systems on which no gdb is available.
65798
65799 2007-04-29  Bruno Haible  <bruno@clisp.org>
65800
65801         * lib/freading.h: Improve comments.
65802         * lib/fwriting.h: Likewise.
65803         * tests/test-freading.c (main): Don't check freading immediately after
65804         repositioning. Needed for glibc.
65805
65806 2007-04-29  Bruno Haible  <bruno@clisp.org>
65807
65808         * lib/freading.c (freading): Trivial simplification.
65809
65810 2007-04-28  Bruno Haible  <bruno@clisp.org>
65811
65812         * tests/test-fwriting.c (main): Also test the interaction between
65813         fflush and fwriting.
65814         * modules/fwriting-tests (Depends-on): Add fflush.
65815
65816         * tests/test-freading.c (main): Also test the interaction between
65817         fflush and freading.
65818         * modules/freading-tests (Depends-on): Add fflush.
65819
65820 2007-04-28  Bruno Haible  <bruno@clisp.org>
65821
65822         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65823         fseeko and ftello.
65824         Suggested by Eric Blake.
65825
65826 2007-04-28  Jim Meyering  <jim@meyering.net>
65827
65828         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65829         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65830         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65831
65832 2007-04-27  Eric Blake  <ebb9@byu.net>
65833
65834         * doc/headers/assert.texi (assert.h): Document assert module use.
65835
65836 2007-04-27  Bruno Haible  <bruno@clisp.org>
65837
65838         * doc/headers/*.texi: New files.
65839         * doc/gnulib.texi (Header File Substitutes): New chapter.
65840         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65841         dependencies.
65842         (standards.info ,standards.html, standards.dvi): Update dependencies.
65843         (mostlyclean, clean): New targets.
65844
65845 2007-04-27  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65848         * modules/sysexits (Files, Makefile.am): Update.
65849
65850         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65851         * modules/sys_socket (Files, Makefile.am): Update.
65852
65853         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65854         * modules/sys_stat (Files, Makefile.am): Update.
65855
65856 2007-04-27  Eric Blake  <ebb9@byu.net>
65857
65858         * lib/freading.h: Improve comments.
65859         * lib/fwriting.h: Likewise.
65860         * lib/fflush.c: Likewise.
65861
65862         Fix closein for mingw.
65863         * modules/closein-tests: Add tests for closein.
65864         * tests/test-closein.c: New file.
65865         * tests/test-closein.sh: Likewise.
65866         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65867         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65868
65869 2007-04-27  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65872         version is < 6.
65873         * lib/math_.h [__DECC]: Likewise.
65874         * lib/stdio_.h [__DECC]: Likewise.
65875         * lib/stdlib_.h [__DECC]: Likewise.
65876         * lib/string_.h [__DECC]: Likewise.
65877         * lib/time_.h [__DECC]: Likewise.
65878         * lib/wchar_.h [__DECC]: Likewise.
65879         * lib/wctype_.h [__DECC]: Likewise.
65880
65881 2007-04-27  Bruno Haible  <bruno@clisp.org>
65882
65883         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65884
65885 2007-04-27  Bruno Haible  <bruno@clisp.org>
65886
65887         * lib/fflush.c: Add comments.
65888         * modules/fpurge-tests (Depends-on): Add fflush.
65889         * modules/freadable-tests (Depends-on): Likewise.
65890         * modules/fwritable-tests (Depends-on): Likewise.
65891
65892 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65893
65894         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65895         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65896         Report by Bruno Haible <bruno@clisp.org>.
65897
65898 2007-04-26  Eric Blake  <ebb9@byu.net>
65899
65900         Fix fflush on mingw.
65901         * modules/fflush (Depends-on): Add freading.
65902         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65903         but unread data.
65904
65905 2007-04-26  Eric Blake  <ebb9@byu.net>
65906         and Bruno Haible  <bruno@clisp.org>
65907
65908         Implement freading and fwriting.
65909         * lib/freading.c: New file.
65910         * lib/freading.h: Likewise.
65911         * m4/freading.m4: Likewise.
65912         * modules/freading: Likewise.
65913         * modules/freading-tests: Likewise.
65914         * tests/test-freading.c: Likewise.
65915         * lib/fwriting.c: New file.
65916         * lib/fwriting.h: Likewise.
65917         * m4/fwriting.m4: Likewise.
65918         * modules/fwriting: Likewise.
65919         * modules/fwriting-tests: Likewise.
65920         * tests/test-fwriting.c: Likewise.
65921         * MODULES.html.sh (File stream based Input/Output): Mention them.
65922
65923 2007-04-26  Bruno Haible  <bruno@clisp.org>
65924
65925         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65926         'long' when we assume it.
65927         Suggested by Eric Blake.
65928
65929 2007-04-26  Bruno Haible  <bruno@clisp.org>
65930
65931         Ensure fseeko, ftello are declared on glibc systems.
65932         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65933         * modules/fseeko (configure.ac-early): Likewise.
65934         * modules/ftello (configure.ac-early): Likewise.
65935         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65936         AC_FUNC_FSEEKO for this.
65937         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65938         (gl_CHECK_FSEEKO): Remove macro.
65939
65940 2007-04-26  Bruno Haible  <bruno@clisp.org>
65941
65942         * tests/test-fflush.c (main): Also check the ftell result after
65943         fflush and fseek/fseeko.
65944         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65945         file descriptor position cache in the stream.
65946         * lib/fseeko.c (rpl_fseeko): Likewise.
65947
65948 2007-04-26  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/fflush-tests (Depends-on): Add fseeko.
65951
65952 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65953             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65954
65955         * lib/argz_.h: ensure error_t definition is obtained in same
65956         mechanism system argz.h would have.
65957         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65958         argz facilities are known bad.  Err on the side of caution if
65959         cross-compiling.
65960
65961 2007-04-25  Eric Blake  <ebb9@byu.net>
65962
65963         * lib/fpurge.c (includes): Use stdlib.h for free.
65964         * tests/test-fflush.c (main): Also test fflush-fseeko.
65965
65966 2007-04-25  Bruno Haible  <bruno@clisp.org>
65967
65968         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65969         * lib/fseeko.c: New file.
65970         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65971         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65972         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65973         gl_FUNC_FSEEKO.
65974         (gl_FUNC_FSEEKO): Invoke it.
65975         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65976         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65977         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65978
65979 2007-04-25  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/fflush (Depends-on): Add ftello.
65982
65983 2007-04-25  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/ftello-tests: New file.
65986         * tests/test-ftello.c: New file.
65987
65988         * modules/ftello: New file.
65989         * m4/ftello.m4: New file.
65990         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65991         HAVE_FTELLO.
65992         * lib/stdio_.h (ftello): New declaration.
65993         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65994         HAVE_FTELLO.
65995
65996 2007-04-25  Bruno Haible  <bruno@clisp.org>
65997
65998         * modules/fseeko-tests: New file.
65999         * tests/test-fseeko.c: New file.
66000
66001         * modules/fseeko: New file.
66002         * m4/fseeko.m4: New file.
66003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
66004         HAVE_FSEEKO.
66005         * lib/stdio_.h (fseeko): New declaration.
66006         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
66007         HAVE_FSEEKO.
66008
66009 2007-04-25  Bruno Haible  <bruno@clisp.org>
66010
66011         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
66012
66013 2007-04-25  Bruno Haible  <bruno@clisp.org>
66014
66015         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
66016         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
66017         * tests/test-unistd.c: Likewise.
66018         * tests/test-fcntl.c: Likewise.
66019
66020 2007-04-23  Eric Blake  <ebb9@byu.net>
66021
66022         * lib/fflush.c: Fix missing include.
66023         Reported by Bruno Haible.
66024
66025 2007-04-23  Bruno Haible  <bruno@clisp.org>
66026
66027         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
66028         Reported by Eric Blake.
66029
66030 2007-04-23  Bruno Haible  <bruno@clisp.org>
66031
66032         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
66033
66034 2007-04-23  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
66037
66038 2007-04-23  Bruno Haible  <bruno@clisp.org>
66039
66040         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
66041         Needed on HP-UX 11.
66042
66043 2007-04-16  Eric Blake  <ebb9@byu.net>
66044
66045         Make fflush rely on fpurge.
66046         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
66047         open coding all variants.
66048         * modules/fflush (Depends-on): Add fpurge and unistd.
66049         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
66050         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
66051
66052         Fix --with-tests compilation on cygwin.
66053         * modules/argmatch-tests (Makefile.am): List gnulib library first
66054         in LDADD.
66055         * modules/argp-tests (Makefile.am): Likewise.
66056         * modules/array-list-tests (Makefile.am): Likewise.
66057         * modules/array-oset-tests (Makefile.am): Likewise.
66058         * modules/avltree-list-tests (Makefile.am): Likewise.
66059         * modules/avltree-oset-tests (Makefile.am): Likewise.
66060         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66061         * modules/carray-list-tests (Makefile.am): Likewise.
66062         * modules/dirname-tests (Makefile.am): Likewise.
66063         * modules/frexp-tests (Makefile.am): Likewise.
66064         * modules/isnanl-tests (Makefile.am): Likewise.
66065         * modules/linked-list-tests (Makefile.am): Likewise.
66066         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66067         * modules/lock-tests (Makefile.am): Likewise.
66068         * modules/rbtree-list-tests (Makefile.am): Likewise.
66069         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66070         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66071         * modules/tls-tests (Makefile.am): Likewise.
66072         * modules/tsearch-tests (Makefile.am): Likewise.
66073         * modules/xvasprintf-tests (Makefile.am): Likewise.
66074
66075         Fix fpurge for cygwin.
66076         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
66077         value.
66078         * modules/fpurge-tests (Depends-on): Clean up trash.
66079
66080 2007-04-16  Simon Josefsson  <simon@josefsson.org>
66081
66082         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
66083
66084         * m4/autobuild.m4: Re-indent.
66085
66086 2007-04-13  Bruno Haible  <bruno@clisp.org>
66087
66088         * modules/fpurge-tests: New file.
66089         * tests/test-fpurge.c: New file.
66090
66091         * modules/fpurge: New file.
66092         * lib/fpurge.h: New file.
66093         * lib/fpurge.c: New file.
66094         * m4/fpurge.m4: New file.
66095
66096 2007-04-13  Bruno Haible  <bruno@clisp.org>
66097
66098         * modules/fbufmode-tests: New file.
66099         * tests/test-fbufmode.c: New file.
66100
66101         * modules/fbufmode: New file.
66102         * lib/fbufmode.h: New file.
66103         * lib/fbufmode.c: New file.
66104         * m4/fbufmode.m4: New file.
66105
66106 2007-04-13  Bruno Haible  <bruno@clisp.org>
66107
66108         * modules/fwritable-tests: New file.
66109         * tests/test-fwritable.c: New file.
66110
66111         * modules/fwritable: New file.
66112         * lib/fwritable.h: New file.
66113         * lib/fwritable.c: New file.
66114         * m4/fwritable.m4: New file.
66115
66116 2007-04-13  Bruno Haible  <bruno@clisp.org>
66117
66118         * modules/freadable-tests: New file.
66119         * tests/test-freadable.c: New file.
66120
66121         * modules/freadable: New file.
66122         * lib/freadable.h: New file.
66123         * lib/freadable.c: New file.
66124         * m4/freadable.m4: New file.
66125
66126 2007-04-13  Bruno Haible  <bruno@clisp.org>
66127
66128         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
66129         MOSTLYCLEANFILES.
66130
66131 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
66132
66133         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
66134         gzip bootstrap.conf to avoid dragging in i18n machinery.
66135         (gnulib_tool_option): Use it.
66136
66137 2007-04-13  Bruno Haible  <bruno@clisp.org>
66138
66139         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
66140         %F directives.
66141         * tests/test-vasprintf-posix.c (test_function): Likewise.
66142         * tests/test-snprintf-posix.h (test_function): Likewise.
66143         * tests/test-sprintf-posix.h (test_function): Likewise.
66144         * tests/test-fprintf-posix.h (test_function): Likewise.
66145         * tests/test-printf-posix.h (test_function): Likewise.
66146         * tests/test-fprintf-posix.out: Likewise.
66147
66148 2007-04-13  Bruno Haible  <bruno@clisp.org>
66149
66150         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
66151         * modules/tls-tests (configure.ac): Likewise.
66152         Reported by Arto C. Nirkko <anirkko@insel.ch>.
66153
66154 2007-04-13  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/tls.c (glthread_tls_get): Fix return type.
66157         Patch by Arto C. Nirkko <anirkko@insel.ch>.
66158
66159 2007-04-12  Eric Blake  <ebb9@byu.net>
66160
66161         * modules/gettime (Depends-on): Remove gettime.
66162         Reported by Dmitry V. Levin.
66163
66164 2007-04-12  Bruno Haible  <bruno@clisp.org>
66165
66166         * modules/fflush (Include): Mention <stdio.h>.
66167         * modules/strtoimax (Include): Mention <inttypes.h>.
66168         * modules/strtoumax (Include): Likewise.
66169
66170 2007-04-12  Eric Blake  <ebb9@byu.net>
66171
66172         * .cvsignore: New file.
66173         * .gitignore: Likewise.
66174
66175 2007-04-12  Bruno Haible  <bruno@clisp.org>
66176
66177         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
66178         not before, since $(LDADD) often contains libgnu.a.
66179         * modules/striconv-tests (test_striconv_LDADD): Likewise.
66180         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
66181         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
66182         Needed on Cygwin.
66183
66184 2007-04-12  Eric Blake  <ebb9@byu.net>
66185
66186         Work around glibc's failure to flush stdin on fclose.
66187         * lib/closein.c (close_stdin): Flush stdin before closing.
66188
66189         Work around glibc's failure to reset seekable stdin on exit.
66190         * modules/closein: New module.
66191         * lib/closein.c: New file.
66192         * lib/closein.h: Likewise.
66193         * m4/closein.m4: Likewise.
66194         * MODULES.html.sh (File stream based Input/Output): Document it.
66195
66196 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66197
66198         * gnulib-tool: Rename generated 'autobuild' script to
66199         'do-autobuild' in --create-megatestdir output.
66200
66201         * doc/gnulib.texi (Build robot for gnulib): Fix.
66202
66203 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66204
66205         * modules/sysexits (Depends-on): Add absolute-header.
66206
66207 2007-04-12  Eric Blake  <ebb9@byu.net>
66208
66209         No need to preserve errno on success.
66210         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
66211         Reported by Bruno Haible.
66212
66213 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66214
66215         * MODULES.html.sh (Support for maintaining and releasing
66216         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
66217
66218 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66219
66220         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
66221
66222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
66223
66224         * modules/autobuild: New module.
66225
66226         * m4/autobuild.m4: New file.
66227
66228 2007-04-11  Bruno Haible  <bruno@clisp.org>
66229
66230         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
66231         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
66232         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
66233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
66234         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66235         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66236         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66237         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66238         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66239         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66240         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
66241         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66242         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
66244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66246         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
66247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66249         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
66250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66252         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
66253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66255         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
66256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
66257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
66258         Reported by Eric Blake.
66259
66260 2007-04-11  Bruno Haible  <bruno@clisp.org>
66261
66262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
66263
66264 2007-04-10  Bruno Haible  <bruno@clisp.org>
66265
66266         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
66267         for NaN and Infinity. Needed on FreeBSD 6.1.
66268         * tests/test-vasnprintf-posix.c (test_function): Undo last change
66269         regarding results for "%010a" of Infinity and NaN.
66270         * tests/test-vasprintf-posix.c (test_function): Likewise.
66271         * tests/test-snprintf-posix.h (test_function): Likewise.
66272         * tests/test-sprintf-posix.h (test_function): Likewise.
66273         * tests/test-fprintf-posix.h (test_function): Likewise.
66274         * tests/test-printf-posix.h (test_function): Likewise.
66275         * tests/test-fprintf-posix.out: Likewise.
66276
66277 2007-04-10  Bruno Haible  <bruno@clisp.org>
66278
66279         * modules/locale-tests: New file.
66280         * tests/test-locale.c: New file.
66281
66282         * modules/locale: New file.
66283         * lib/locale_.h: New file.
66284         * m4/locale_h.m4: New file.
66285
66286 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
66287             Bruno Haible  <bruno@clisp.org>
66288
66289         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
66290         be determined, test for availability of the copysignf, copysign,
66291         copysignl functions.
66292         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
66293         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
66294         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
66295
66296 2007-04-09  Eric Blake  <ebb9@byu.net>
66297
66298         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
66299         * modules/stdio (Makefile.am): Support fflush.
66300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
66301         * modules/fflush: New file.
66302         * lib/fflush.c: Likewise.
66303         * m4/fflush.m4: Likewise.
66304         * modules/fflush-tests: New test.
66305         * tests/test-fflush.c: Likewise.
66306         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
66307
66308 2007-04-06  Bruno Haible  <bruno@clisp.org>
66309
66310         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
66311         (VASNPRINTF): Use signbit for faster determination whether to print a
66312         minus sign.
66313         * modules/vasnprintf (Files): Remove lib/float+.h.
66314         * modules/fprintf-posix (Depends-on): Add signbit.
66315         * modules/snprintf-posix (Depends-on): Likewise.
66316         * modules/sprintf-posix (Depends-on): Likewise.
66317         * modules/vasnprintf-posix (Depends-on): Likewise.
66318         * modules/vasprintf-posix (Depends-on): Likewise.
66319         * modules/vfprintf-posix (Depends-on): Likewise.
66320         * modules/vsnprintf-posix (Depends-on): Likewise.
66321         * modules/vsprintf-posix (Depends-on): Likewise.
66322
66323 2007-04-06  Bruno Haible  <bruno@clisp.org>
66324
66325         * tests/test-frexp.c (main): Test also the sign bit of zero results.
66326         * tests/test-frexpl.c (main): Likewise.
66327         * tests/test-ldexpl.c (main): Likewise.
66328         * modules/frexp-tests (Depends-on): Add signbit.
66329         * modules/frexpl-tests (Depdends-on): Likewise.
66330         * modules/ldexpl-tests (Depdends-on): Likewise.
66331
66332 2007-04-06  Bruno Haible  <bruno@clisp.org>
66333
66334         * modules/signbit-tests: New file.
66335         * tests/test-signbit.c: New file.
66336
66337         * modules/signbit: New file.
66338         * lib/signbitf.c: New file.
66339         * lib/signbitd.c: New file.
66340         * lib/signbitl.c: New file.
66341         * m4/signbit.m4: New file.
66342         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
66343         (signbit): New macro.
66344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
66345         REPLACE_SIGNBIT.
66346         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
66347         REPLACE_FREXPL into math.h.
66348
66349 2007-04-06  Bruno Haible  <bruno@clisp.org>
66350
66351         * modules/isnanf-nolibm-tests: New file.
66352         * tests/test-isnanf.c: New file.
66353
66354         * modules/isnanf-nolibm: New file.
66355         * lib/isnanf.h: New file.
66356         * lib/isnanf.c: New file.
66357         * lib/isnan.c: Consider the USE_FLOAT macro.
66358         * m4/isnanf.m4: New file.
66359
66360 2007-04-06  Bruno Haible  <bruno@clisp.org>
66361
66362         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
66363         (Link): New section.
66364
66365         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
66366
66367 2007-04-06  Bruno Haible  <bruno@clisp.org>
66368
66369         Assume the 'long double' type.
66370         * m4/longdouble.m4: Remove file.
66371         * config/srclist.txt: Don't mention longdouble.m4.
66372         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
66373         * lib/float+.h: Likewise.
66374         * lib/frexp.c: Likewise.
66375         * lib/printf-args.h: Likewise.
66376         * lib/printf-args.c: Likewise.
66377         * lib/printf-frexp.c: Likewise.
66378         * lib/printf-parse.c: Likewise.
66379         * lib/vasnprintf.c: Likewise.
66380         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
66381         * m4/intl.m4: Likewise.
66382         * m4/isnanl.m4: Likewise.
66383         * m4/printf.m4: Likewise.
66384         * m4/printf-frexpl.m4: Likewise.
66385         * m4/vasnprintf.m4: Likewise.
66386         * modules/allocsa (Files): Remove m4/longdouble.m4.
66387         * modules/gettext (Files): Likewise.
66388         * modules/relocatable-prog-wrapper (Files): Likewise.
66389         * modules/vasnprintf (Files): Likewise.
66390         * modules/isnanl (Files): Likewise.
66391         (Include): Simplify.
66392         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
66393         (Include): Simplify.
66394         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
66395         (Include): Simplify.
66396         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
66397         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66398         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
66399         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66400         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66401         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66402         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
66403         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66404         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
66405         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66406         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
66407         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
66408         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
66409         * tests/test-isnanl.c: Likewise.
66410         * tests/test-snprintf-posix.h: Likewise.
66411         * tests/test-sprintf-posix.h: Likewise.
66412         * tests/test-vasnprintf-posix.c: Likewise.
66413         * tests/test-vasnprintf-posix2.c: Likewise.
66414         * tests/test-vasprintf-posix.c: Likewise.
66415
66416 2007-04-06  Bruno Haible  <bruno@clisp.org>
66417
66418         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
66419         * lib/math_.h [__DECC]: Include the overridden include file through
66420         #include_next, outside the double-inclusion guard.
66421         * lib/stdio_.h [__DECC]: Likewise.
66422         * lib/stdlib_.h [__DECC]: Likewise.
66423         * lib/string_.h [__DECC]: Likewise.
66424         * lib/time_.h [__DECC]: Likewise.
66425         * lib/wchar_.h [__DECC]: Likewise.
66426         * lib/wctype_.h [__DECC]: Likewise.
66427         * lib/inttypes_.h [__DECC]: Likewise.
66428         Reported by Albert Chin <china@thewrittenword.com> in
66429         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
66430
66431 2007-04-04  Eric Blake  <ebb9@byu.net>
66432
66433         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
66434         1.5.x.
66435
66436 2007-04-04  Bruno Haible  <bruno@clisp.org>
66437
66438         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
66439         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
66440
66441 2007-04-04  Bruno Haible  <bruno@clisp.org>
66442
66443         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
66444         results for "%010a" of Infinity and NaN.
66445         * tests/test-vasprintf-posix.c (test_function): Likewise.
66446         * tests/test-snprintf-posix.h (test_function): Likewise.
66447         * tests/test-sprintf-posix.h (test_function): Likewise.
66448         * tests/test-fprintf-posix.h (test_function): Remove these tests.
66449         * tests/test-printf-posix.h (test_function): Likewise.
66450         * tests/test-fprintf-posix.out: Update.
66451         Needed for FreeBSD 6.1.
66452
66453 2007-04-04  Bruno Haible  <bruno@clisp.org>
66454
66455         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
66456         directly used by the gnulib modules nor by gnulib-tool.
66457
66458 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
66459
66460         * DEPENDENCIES: Give overall description of version dependency
66461         desirability.  Use more-typical names for apps.
66462         Add shell, coreutils, diffutils, grep, tar, gzip.
66463
66464 2007-04-04  Simon Josefsson  <simon@josefsson.org>
66465
66466         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
66467
66468 2007-04-04  Karl Berry  <karl@gnu.org>
66469
66470         * MODULES.html.sh (func_module): missing '.
66471
66472 2007-04-03  Bruno Haible  <bruno@clisp.org>
66473
66474         * modules/argmatch-tests (Makefile.am): New variable
66475         test_argmatch_LDADD.
66476         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
66477         * modules/array-list-tests (Makefile.am): New variable
66478         test_array_list_LDADD.
66479         * modules/array-oset-tests (Makefile.am): New variable
66480         test_array_oset_LDADD.
66481         * modules/avltree-list-tests (Makefile.am): New variable
66482         test_avltree_list_LDADD.
66483         * modules/avltree-oset-tests (Makefile.am): New variable
66484         test_avltree_oset_LDADD.
66485         * modules/avltreehash-list-tests (Makefile.am): New variable
66486         test_avltreehash_list_LDADD.
66487         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
66488         test_canonicalize_lgpl_LDADD.
66489         * modules/carray-list-tests (Makefile.am): New variable
66490         test_carray_list_LDADD.
66491         * modules/dirname-tests (Makefile.am): New variable
66492         test_dirname_LDADD.
66493         * modules/linked-list-tests (Makefile.am): New variable
66494         test_linked_list_LDADD.
66495         * modules/linkedhash-list-tests (Makefile.am): New variable
66496         test_linkedhash_list_LDADD.
66497         * modules/rbtree-list-tests (Makefile.am): New variable
66498         test_rbtree_list_LDADD.
66499         * modules/rbtree-oset-tests (Makefile.am): New variable
66500         test_rbtree_oset_LDADD.
66501         * modules/rbtreehash-list-tests (Makefile.am): New variable
66502         test_rbtreehash_list_LDADD.
66503         * modules/xvasprintf-tests (Makefile.am): New variable
66504         test_xvasprintf_LDADD.
66505         Reported by Eric Blake.
66506
66507 2007-04-03  Eric Blake  <ebb9@byu.net>
66508
66509         * DEPENDENCIES: Weaken m4 requirements.
66510
66511 2007-04-03  Bruno Haible  <bruno@clisp.org>
66512
66513         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
66514         * modules/isnanl-tests (configure.ac): Likewise.
66515
66516 2007-04-03  Ben Pfaff  <blp@gnu.org>
66517
66518         * modules/iconv_open: Add $(srcdir)/ to source directory
66519         references in Makefile fragments that call gperf, to fix VPATH
66520         builds.
66521
66522 2007-04-03  Bruno Haible  <bruno@clisp.org>
66523
66524         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
66525         * lib/ldexpl.c: Undo last change.
66526
66527 2007-04-03  Bruno Haible  <bruno@clisp.org>
66528
66529         * modules/printf-frexpl (Depends-on): Undo last change.
66530         (Files): Add m4/ldexpl.m4.
66531
66532 2007-04-03  Bruno Haible  <bruno@clisp.org>
66533
66534         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
66535         * modules/isnanl (Link): New section.
66536
66537         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
66538         * modules/frexp (Link): New section.
66539
66540         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
66541         * modules/frexpl (Link): New section.
66542
66543         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
66544         * modules/ldexpl (Link): New section.
66545
66546 2007-04-03  Bruno Haible  <bruno@clisp.org>
66547
66548         * modules/TEMPLATE-EXTENDED: New file.
66549         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
66550
66551 2007-04-03  Bruno Haible  <bruno@clisp.org>
66552
66553         * DEPENDENCIES: New file.
66554         Suggested by Simon Josefsson.
66555
66556 2007-04-03  Bruno Haible  <bruno@clisp.org>
66557
66558         * doc/gnulib.texi: Escape @.
66559
66560 2007-04-03  James Youngman  <jay@gnu.org>
66561         and Paul Eggert  <eggert@cs.ucla.edu>
66562
66563         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
66564         birthtime on all systems that have birthtime, not just those which
66565         use st_birthtimensec rather than st_birthtim.  Putting zero in
66566         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
66567         that the birth time is not available for files on an NFS mount.
66568
66569 2007-04-03  Simon Josefsson  <simon@josefsson.org>
66570
66571         * modules/memxor: Move back from crypto/, suggested by Bruno.
66572         * modules/crypto/hmac-sha1: Fix memxor dependency.
66573
66574         * modules/crypto/gc: Moved from ../.
66575
66576 2007-04-02  Eric Blake  <ebb9@byu.net>
66577
66578         * lib/ldexpl.c (includes): Avoid libm.
66579
66580         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
66581
66582 2007-04-02  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
66585         on IRIX.
66586
66587 2007-04-02  Bruno Haible  <bruno@clisp.org>
66588
66589         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
66590         x86 or x86_64 platforms running MacOS X.
66591         Reported by Ryan Schmidt <@ryandesign.com>.
66592
66593 2007-04-02  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
66596         i386.
66597
66598 2007-04-01  Simon Josefsson  <simon@josefsson.org>
66599
66600         * modules/crypto/arcfour: Moved from ../.
66601         * modules/crypto/arcfour-tests: Moved from ../.
66602         * modules/crypto/arctwo: Moved from ../.
66603         * modules/crypto/arctwo-tests: Moved from ../.
66604         * modules/crypto/des: Moved from ../.
66605         * modules/crypto/des-tests: Moved from ../.
66606         * modules/crypto/gc-arcfour: Moved from ../.
66607         * modules/crypto/gc-arcfour-tests: Moved from ../.
66608         * modules/crypto/gc-arctwo: Moved from ../.
66609         * modules/crypto/gc-arctwo-tests: Moved from ../.
66610         * modules/crypto/gc-des: Moved from ../.
66611         * modules/crypto/gc-des-tests: Moved from ../.
66612         * modules/crypto/gc-hmac-md5: Moved from ../.
66613         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
66614         * modules/crypto/gc-hmac-sha1: Moved from ../.
66615         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
66616         * modules/crypto/gc-md2: Moved from ../.
66617         * modules/crypto/gc-md2-tests: Moved from ../.
66618         * modules/crypto/gc-md4: Moved from ../.
66619         * modules/crypto/gc-md4-tests: Moved from ../.
66620         * modules/crypto/gc-md5: Moved from ../.
66621         * modules/crypto/gc-md5-tests: Moved from ../.
66622         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
66623         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
66624         * modules/crypto/gc-random: Moved from ../.
66625         * modules/crypto/gc-rijndael: Moved from ../.
66626         * modules/crypto/gc-rijndael-tests: Moved from ../.
66627         * modules/crypto/gc-sha1: Moved from ../.
66628         * modules/crypto/gc-sha1-tests: Moved from ../.
66629         * modules/crypto/gc-tests: Moved from ../.
66630         * modules/crypto/hmac-md5: Moved from ../.
66631         * modules/crypto/hmac-md5-tests: Moved from ../.
66632         * modules/crypto/hmac-sha1: Moved from ../.
66633         * modules/crypto/hmac-sha1-tests: Moved from ../.
66634         * modules/crypto/md2: Moved from ../.
66635         * modules/crypto/md2-tests: Moved from ../.
66636         * modules/crypto/md4: Moved from ../.
66637         * modules/crypto/md4-tests: Moved from ../.
66638         * modules/crypto/md5: Moved from ../.
66639         * modules/crypto/md5-tests: Moved from ../.
66640         * modules/crypto/memxor: Moved from ../.
66641         * modules/crypto/rijndael: Moved from ../.
66642         * modules/crypto/rijndael-tests: Moved from ../.
66643         * modules/crypto/sha1: Moved from ../.
66644
66645 2007-03-30  James Youngman  <jay@gnu.org>
66646
66647         * tests/test-stat-time.c (prepare_test): use chmod() rather than
66648         rename() to change the ctime of a file (because ctime is unaffected
66649         by rename on jfs2 on AIX 5.1).
66650         (main): Start by doing cleanup, in case a previous run failed leaving
66651         test files behind.
66652
66653 2007-03-31  Bruno Haible  <bruno@clisp.org>
66654
66655         Support old proprietary implementations of iconv.
66656         * modules/iconv_open: New file.
66657         * lib/iconv_.h: New file.
66658         * m4/iconv_h.m4: New file.
66659         * lib/iconv_open.c: New file.
66660         * lib/iconv_open-aix.gperf: New file.
66661         * lib/iconv_open-hpux.gperf: New file.
66662         * lib/iconv_open-irix.gperf: New file.
66663         * lib/iconv_open-osf.gperf: New file.
66664         * m4/iconv_open.m4: New file.
66665         * modules/linebreak (Depends-on): Add iconv_open.
66666         * modules/striconv (Depends-on): Likewise.
66667         * modules/striconveh (Depends-on): Likewise.
66668         * modules/unicodeio (Depends-on): Likewise.
66669         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
66670         (iconv_t)(-1).
66671         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
66672         conversion if cd is (iconv_t)(-1).
66673         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
66674         is not possible.
66675
66676 2007-03-31  Bruno Haible  <bruno@clisp.org>
66677
66678         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66679         work on Solaris either. Protect also second use of "autodetect_jp".
66680
66681 2007-03-31  Bruno Haible  <bruno@clisp.org>
66682
66683         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
66684         the function is not present.
66685
66686 2007-03-31  Bruno Haible  <bruno@clisp.org>
66687
66688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
66689         the function is not present.
66690
66691 2007-03-31  Bruno Haible  <bruno@clisp.org>
66692
66693         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
66694         a bug in HP-UX iconv_open().
66695
66696 2007-03-31  Bruno Haible  <bruno@clisp.org>
66697
66698         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
66699         (Mathematics <math.h>): New section, add fpieee.
66700         (Input/output <stdio.h>): Add fseterr.
66701         (Mathematics <math.h>): New section, add printf-frexp.
66702         (Container data structures): Add sublist.
66703         (Core language properties): Add fpucw, inline.
66704         (Functions for greatest-width integer types <inttypes.h>): Add
66705         imaxabs, imaxdiv, inttypes.
66706         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
66707         isnanl-nolibm, ldexp.
66708         (Mathematics <math.h>): New section, add printf-frexpl.
66709         (Support for systems lacking POSIX:2001): Add fprintf-posix,
66710         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
66711         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
66712         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
66713         (Unicode string functions): Add unistr/u*-mbtoucr.
66714         (Java): Add javacomp-script, javaexec-script.
66715         (C#): Add csharpcomp-script, csharpexec-script.
66716         (Support for building libraries and executables): Add havelib,
66717         relocatable-*.
66718         (Support for maintaining and releasing projects): Renamed from
66719         'Support for maintaining and release projects'. Add announce-gen.
66720
66721 2007-03-31  Bruno Haible  <bruno@clisp.org>
66722
66723         * README: Talk primarily about git.
66724         (git and CVS): Renamed from CVS.
66725         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
66726         gnulib is available through git.
66727         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
66728
66729 2007-03-30  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
66732         * lib/poll_.h: Likewise.
66733         * lib/stat_.h: Likewise.
66734         * lib/sys_time_.h: Likewise.
66735         * lib/sysexit_.h: Likewise.
66736         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
66737         * lib/stdbool_.h: Likewise.
66738         * lib/byteswap_.h: Add double-inclusion guard.
66739
66740 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
66741
66742         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
66743
66744 2007-03-30  Karl Berry  <karl@gnu.org>
66745
66746         * config/srclist-update: double space after USA in the license
66747         substitution, since that's how it's usually (?) written.
66748
66749 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
66750
66751         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
66752         reported by Bruno Haible.
66753
66754 2007-03-29  Bruno Haible  <bruno@clisp.org>
66755
66756         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
66757         a bug in AIX iconv().
66758
66759 2007-03-29  Bruno Haible  <bruno@clisp.org>
66760
66761         * modules/ldexpl-tests: New file.
66762         * tests/test-ldexpl.c: New file.
66763
66764 2007-03-29  Bruno Haible  <bruno@clisp.org>
66765
66766         * lib/ldexpl.c: Include fpucw.h.
66767         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
66768         multiplication.
66769         * modules/ldexpl (Depends-on): Add fpucw.
66770
66771 2007-03-29  Bruno Haible  <bruno@clisp.org>
66772
66773         * modules/ldexpl: New file.
66774         * m4/ldexpl.m4: New file.
66775         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
66776         set.
66777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
66778         REPLACE_LDEXPL.
66779         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
66780         REPLACE_LDEXPL.
66781         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66782         gl_FUNC_LDEXPL_WORKS.
66783         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
66784         * modules/mathl (Files): Remove lib/ldexpl.c.
66785         (Depends-on): Add ldexpl.
66786
66787 2007-03-29  Bruno Haible  <bruno@clisp.org>
66788
66789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
66790
66791 2007-03-29  Bruno Haible  <bruno@clisp.org>
66792
66793         * tests/test-striconveh.c (main): Don't assume that a direct conversion
66794         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
66795         and possibly also HP-UX.
66796         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
66797         work on AIX, IRIX, HP-UX, OSF/1.
66798         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66799         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66800         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66801         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66802         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
66803         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66804
66805 2007-03-29  Bruno Haible  <bruno@clisp.org>
66806
66807         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66808
66809 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66810
66811         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66812         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66813
66814 2007-03-29  Eric Blake  <ebb9@byu.net>
66815
66816         * lib/acl-internal.h: Remove redundant include.
66817         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66818         Cygwin when a file is locked.
66819
66820 2007-03-29  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66823         file.
66824         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66825
66826 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66829         try to remove a parent directory if the child couldn't be removed
66830         (except for the first rmdir, which could fail because the child
66831         doesn't exist).  Problem reported by Jeff Blaine in
66832         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66833
66834 2007-03-28  Bruno Haible  <bruno@clisp.org>
66835
66836         * lib/striconveh.c (utf8conv_carefully): New function.
66837         (mem_cd_iconveh_internal): Invoke it.
66838
66839 2007-03-28  Bruno Haible  <bruno@clisp.org>
66840
66841         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66842         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66843         input.
66844         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66845         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66846         unistr/u8-uctomb.
66847
66848 2007-03-28  Bruno Haible  <bruno@clisp.org>
66849
66850         * modules/unistr/u8-mbtoucr: New file.
66851         * lib/unistr/u8-mbtoucr.c: New file.
66852         * modules/unistr/u16-mbtoucr: New file.
66853         * lib/unistr/u16-mbtoucr.c: New file.
66854         * modules/unistr/u16-mbtoucr: New file.
66855         * lib/unistr/u16-mbtoucr.c: New file.
66856         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66857
66858 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66859             Bruno Haible  <bruno@clisp.org>
66860
66861         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66862         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66863         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66864
66865         * m4/stdio_h.m4: Add stubs for vasprintf too.
66866
66867         * modules/stdio: Support vasprintf in sed command.
66868
66869         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66870         vasprintf.h.  Add stdio module indicator.
66871
66872         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66873         vasprintf.h.
66874
66875         * lib/vasprintf.h: File removed.
66876
66877         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66878         * lib/vasprintf.c: Ditto.
66879         * lib/xvasprintf.c: Ditto.
66880         * tests/test-vasprintf-posix.c: Ditto.
66881         * tests/test-vasprintf.c: Ditto.
66882
66883 2007-03-27  Bruno Haible  <bruno@clisp.org>
66884
66885         Make vasnprintf multithread-safe.
66886         * lib/vasnprintf.c (decimal_point_char): New function.
66887         (VASNPRINTF): Use it.
66888         Suggested by Simon Josefsson.
66889
66890 2007-03-27  Eric Blake  <ebb9@byu.net>
66891
66892         Support sub-second birthtime on cygwin.
66893         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66894         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66895         (get_stat_birthtime): Also work with st_birthtim.
66896
66897 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66898
66899         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66900         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66901         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66902         (get_stat_birthtime_ns): Simplify compile-time tests.
66903         (get_stat_birthtime): Change the API to look like
66904         get_stat_mtime etc., except return a negative tv_nsec on error.
66905         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66906         Don't check for "spare" fields.
66907         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66908         or for struct stat.st_birthtime, as these tests aren't used.
66909         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66910
66911 2007-03-27  Bruno Haible  <bruno@clisp.org>
66912
66913         * lib/stat-time.h: Include <sys/stat.h>.
66914
66915 2007-03-27  James Youngman  <jay@gnu.org>
66916
66917         * lib/stat-time.h (get_stat_birthtime): New function for
66918           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66919         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66920           and its variants.
66921         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66922         * modules/stat-time-test: New file.
66923         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66924
66925 2007-03-26  Bruno Haible  <bruno@clisp.org>
66926
66927         Better support of signalling NaNs.
66928         * lib/atanl.c: Include isnanl.h.
66929         (atanl): Perform test for NaN at the beginning of the function and
66930         through a call to isnanl.
66931         * lib/cosl.c: Include isnanl.h.
66932         (cosl): Perform test for NaN at the beginning of the function and
66933         through a call to isnanl.
66934         * lib/ldexpl.c: Include isnanl.h.
66935         (ldexpl): Perform test for NaN through a call to isnanl.
66936         * lib/logl.c: Include isnanl.h.
66937         (logl): Perform test for NaN at the beginning of the function and
66938         through a call to isnanl.
66939         * lib/sinl.c: Include isnanl.h.
66940         (sinl): Perform test for NaN at the beginning of the function and
66941         through a call to isnanl.
66942         * lib/sqrtl.c: Include isnanl.h.
66943         (sqrtl): Perform test for NaN at the beginning of the function and
66944         through a call to isnanl.
66945         * lib/tanl.c: Include isnanl.h.
66946         (tanl): Perform test for NaN at the beginning of the function and
66947         through a call to isnanl.
66948         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66949         * modules/mathl (Depends-on): Add isnanl.
66950
66951 2007-03-26  Eric Blake  <ebb9@byu.net>
66952
66953         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66954         regression in logic sense of previous patch.
66955
66956 2007-03-26  Bruno Haible  <bruno@clisp.org>
66957
66958         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66959         unportable shell command "if ! ...".
66960         Reported by Ralf Wildenhues.
66961
66962 2007-03-25  Bruno Haible  <bruno@clisp.org>
66963
66964         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66965         <sysexits.h> file, and only add EX_CONFIG.
66966         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66967         absolute file name and whether it is sufficient. Substitute also
66968         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66969         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66970         ABSOLUTE_SYSEXITS_H into sysexits.h.
66971
66972 2007-03-25  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66975         hints is NULL.
66976
66977 2007-03-25  Bruno Haible  <bruno@clisp.org>
66978
66979         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66980         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66981
66982 2007-03-25  Bruno Haible  <bruno@clisp.org>
66983
66984         * lib/vasnprintf.c: Include langinfo.h.
66985         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66986         multithread-safe.
66987         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66988         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66989         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66990         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66996         Reported by Simon Josefsson.
66997
66998 2007-03-25  Bruno Haible  <bruno@clisp.org>
66999
67000         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
67001         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
67002         * modules/vasnprintf (Depends-on): Add stdint.
67003
67004 2007-03-25  Bruno Haible  <bruno@clisp.org>
67005
67006         * modules/fpieee: New file.
67007         * m4/fpieee.m4: New file.
67008         * modules/isnan-nolibm (Depends-on): Add fpieee.
67009         * modules/isnanl-nolibm (Depends-on): Add fpieee.
67010         * modules/isnanl (Depends-on): Add fpieee.
67011
67012 2007-03-25  Bruno Haible  <bruno@clisp.org>
67013
67014         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
67015
67016 2007-03-25  Bruno Haible  <bruno@clisp.org>
67017
67018         Avoid test failures on IRIX 6.5.
67019         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
67020         (main): Use it.
67021         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
67022         macros.
67023         (main): Use them.
67024
67025 2007-03-25  Bruno Haible  <bruno@clisp.org>
67026
67027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
67028         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
67029         exists but doesn't work.
67030         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
67031         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
67032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
67033         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
67034         math.h.
67035
67036 2007-03-25  Bruno Haible  <bruno@clisp.org>
67037
67038         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
67039         returns inf. Needed on IRIX 6.5.
67040
67041 2007-03-25  Bruno Haible  <bruno@clisp.org>
67042
67043         * tests/test-frexpl.c: Include isnanl-nolibm.h.
67044         (main): Use isnanl instead of x != x idiom.
67045         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
67046
67047         * tests/test-frexp.c: Include isnan.h.
67048         (main): Use isnan instead of x != x idiom.
67049         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
67050
67051 2007-03-25  Bruno Haible  <bruno@clisp.org>
67052
67053         * tests/test-frexp.c (NaN): New function/macro.
67054         (main): Use it instead of 0.0 / 0.0.
67055         * tests/test-isnan.c (NaN): New function/macro.
67056         (main): Use it instead of 0.0 / 0.0.
67057         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
67058         (test_function): Use it instead of 0.0 / 0.0.
67059         * tests/test-vasprintf-posix.c (NaN): New function/macro.
67060         (test_function): Use it instead of 0.0 / 0.0.
67061         * tests/test-snprintf-posix.h (NaN): New function/macro.
67062         (test_function): Use it instead of 0.0 / 0.0.
67063         * tests/test-sprintf-posix.h (NaN): New function/macro.
67064         (test_function): Use it instead of 0.0 / 0.0.
67065         * tests/test-fprintf-posix.h (NaN): New function/macro.
67066         (test_function): Use it instead of 0.0 / 0.0.
67067         * tests/test-printf-posix.h (NaN): New function/macro.
67068         (test_function): Use it instead of 0.0 / 0.0.
67069
67070         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
67071
67072 2007-03-25  Bruno Haible  <bruno@clisp.org>
67073
67074         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
67075
67076 2007-03-25  Bruno Haible  <bruno@clisp.org>
67077
67078         * lib/regexec.c (merge_state_with_log): Make static.
67079
67080 2007-03-25  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/trigl.c (kernel_rem_pio2): Make static.
67083
67084 2007-03-25  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/sincosl.c (sincosl_table): Make static.
67087
67088 2007-03-25  Bruno Haible  <bruno@clisp.org>
67089
67090         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
67091         if the compiler does not support C99.
67092
67093 2007-03-25  Bruno Haible  <bruno@clisp.org>
67094
67095         * modules/time (Makefile.am): Ensure all rule action lines start with a
67096         tab.
67097
67098 2007-03-24  Bruno Haible  <bruno@clisp.org>
67099
67100         * modules/tsearch-tests: New file.
67101         * tests/test-tsearch.sh: New file.
67102         * tests/test-tsearch.c: New file, mostly copied from glibc.
67103
67104         * modules/search-tests: New file.
67105         * tests/test-search.c: New file.
67106
67107         * modules/search: New file.
67108         * lib/search_.h: New file, incorporating lib/tsearch.h.
67109         * m4/search_h.m4: New file.
67110         * lib/tsearch.h: Remove file.
67111         * lib/tsearch.c: Include search.h instead of tsearch.h.
67112         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
67113         HAVE_TSEARCH.
67114         * modules/tsearch (Files): Remove lib/tsearch.h.
67115         (Depends-on): Add search.
67116         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
67117         (Include): Change tsearch.h into search.h.
67118
67119 2007-03-24  Bruno Haible  <bruno@clisp.org>
67120
67121         * modules/fpucw: New file.
67122         * lib/fpucw.h: New file.
67123         * lib/frexp.c: Include fpucw.h.
67124         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67125         (FUNC): Use them.
67126         * lib/printf-frexp.c: Include fpucw.h.
67127         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
67128         (FUNC): Use them.
67129         * lib/vasnprintf.c: Include fpucw.h.
67130         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
67131         'long double' calculations.
67132         * tests/test-frexpl.c: Include fpucw.h.
67133         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67134         * tests/test-printf-frexpl.c: Include fpucw.h.
67135         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
67136         * modules/frexpl (Depends-on): Add fpucw.
67137         * modules/printf-frexpl (Depends-on): Likewise.
67138         * modules/fprintf-posix (Depends-on): Likewise.
67139         * modules/snprintf-posix (Depends-on): Likewise.
67140         * modules/sprintf-posix (Depends-on): Likewise.
67141         * modules/vasnprintf-posix (Depends-on): Likewise.
67142         * modules/vasprintf-posix (Depends-on): Likewise.
67143         * modules/vfprintf-posix (Depends-on): Likewise.
67144         * modules/vsnprintf-posix (Depends-on): Likewise.
67145         * modules/vsprintf-posix (Depends-on): Likewise.
67146         * modules/frexpl-tests (Depends-on): Likewise.
67147         * modules/printf-frexpl-tests (Depends-on): Likewise.
67148
67149 2007-03-24  Bruno Haible  <bruno@clisp.org>
67150
67151         * lib/float+.h: New file.
67152         * lib/isnan.c: Include float+.h.
67153         (SIZE): New macro.
67154         (FUNC): Compare only SIZE bytes of the value.
67155         * lib/vasnprintf.c: Include float+.h.
67156         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
67157         SIZEOF_LDBL or SIZEOF_DBL bytes.
67158         * modules/isnan-nolibm (Files): Add lib/float+.h.
67159         * modules/isnanl-nolibm (Files): Add lib/float+.h.
67160         * modules/isnanl (Files): Add lib/float+.h.
67161         * modules/vasnprintf (Files): Add lib/float+.h.
67162
67163 2007-03-24  Bruno Haible  <bruno@clisp.org>
67164
67165         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
67166         include isnanl-nolibm.h.
67167
67168 2007-03-24  Bruno Haible  <bruno@clisp.org>
67169
67170         * tests/test-read-file.c (main): Don't produce spurious output for
67171         expected situations. Make the test fail if it encountered unexpected
67172         results.
67173
67174 2007-03-24  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
67177         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
67178
67179 2007-03-24  Bruno Haible  <bruno@clisp.org>
67180
67181         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
67182
67183 2007-03-24  Bruno Haible  <bruno@clisp.org>
67184
67185         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
67186         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
67187
67188         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
67189         * modules/utf8-ucs4: Turn into a symbolic link to module
67190         unistr/u8-mbtouc.
67191
67192         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
67193         utf8-ucs4-unsafe.
67194         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
67195         unistr/u8-mbtouc-unsafe.
67196
67197         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
67198         * modules/utf16-ucs4: Turn into a symbolic link to module
67199         unistr/u16-mbtouc.
67200
67201         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
67202         utf16-ucs4-unsafe.
67203         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
67204         unistr/u16-mbtouc-unsafe.
67205
67206         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
67207         * modules/ucs4-utf8: Turn into a symbolic link to module
67208         unistr/u8-ubtomb.
67209
67210         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
67211         * modules/ucs4-utf16: Turn into a symbolic link to module
67212         unistr/u16-ubtomb.
67213
67214 2007-03-24  Bruno Haible  <bruno@clisp.org>
67215
67216         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
67217         Enable the function only if HAVE_INLINE.
67218         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
67219         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67220         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
67221         Enable the function only if HAVE_INLINE.
67222         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
67223         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
67224         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
67225         Enable the function only if HAVE_INLINE.
67226         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
67227         Enable the function only if HAVE_INLINE.
67228         * modules/utf8-ucs4: Update.
67229         * modules/utf8-ucs4-unsafe: Update.
67230         * modules/utf16-ucs4: Update.
67231         * modules/utf16-ucs4-unsafe: Update.
67232         * modules/ucs4-utf8: Update.
67233         * modules/ucs4-utf16: Update.
67234
67235 2007-03-24  Bruno Haible  <bruno@clisp.org>
67236
67237         * lib/utf8-ucs4.h: Remove file.
67238         * lib/utf8-ucs4-unsafe.h: Remove file.
67239         * lib/utf16-ucs4.h: Remove file.
67240         * lib/utf16-ucs4-unsafe.h: Remove file.
67241         * lib/ucs4-utf8.h: Remove file.
67242         * lib/ucs4-utf16.h: Remove file.
67243         * lib/unistr.h: Include their previous contents.
67244         * m4/utf-ucs4.m4: Remove file.
67245         * m4/ucs4-utf.m4: Remove file.
67246         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
67247         (Depends-on): Add unistr/base.
67248         (configure.ac): Remove gl_UTF_UCS4.
67249         (Makefile.am): Update.
67250         (Include): Change to unistr.h.
67251         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
67252         (Depends-on): Add unistr/base.
67253         (configure.ac): Remove gl_UTF_UCS4.
67254         (Makefile.am): Update.
67255         (Include): Change to unistr.h.
67256         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
67257         (Depends-on): Add unistr/base.
67258         (configure.ac): Remove gl_UTF_UCS4.
67259         (Makefile.am): Update.
67260         (Include): Change to unistr.h.
67261         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
67262         (Depends-on): Add unistr/base.
67263         (configure.ac): Remove gl_UTF_UCS4.
67264         (Makefile.am): Update.
67265         (Include): Change to unistr.h.
67266         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
67267         (Depends-on): Add unistr/base.
67268         (configure.ac): Remove gl_UCS4_UTF.
67269         (Makefile.am): Update.
67270         (Include): Change to unistr.h.
67271         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
67272         (Depends-on): Add unistr/base.
67273         (configure.ac): Remove gl_UCS4_UTF.
67274         (Makefile.am): Update.
67275         (Include): Change to unistr.h.
67276         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
67277         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
67278         utf8-ucs4-unsafe.h.
67279         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
67280         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
67281         utf16-ucs4-unsafe.h.
67282         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
67283         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
67284         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
67285         * lib/unistr/u8-strchr.c: Likewise.
67286         * lib/unistr/u8-strrchr.c: Likewise.
67287         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
67288         * lib/unistr/u16-strchr.c: Likewise.
67289         * lib/unistr/u16-strrchr.c: Likewise.
67290         * lib/striconveh.c: Update.
67291         * lib/linebreak.c: Update.
67292
67293 2007-03-24  Bruno Haible  <bruno@clisp.org>
67294
67295         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
67296         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
67297
67298 2007-03-22  Bruno Haible  <bruno@clisp.org>
67299
67300         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
67301
67302 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * MODULES.html.sh (File system functions): New module write-any-file.
67305         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
67306         * m4/write-any-file.m4: New files.
67307
67308 2007-03-23  Eric Blake  <ebb9@byu.net>
67309
67310         * gnulib-tool: Rearrange space-tab sequences, since some editors
67311         like to eat them.
67312
67313 2007-03-23  Eric Blake  <ebb9@byu.net>
67314
67315         * lib/version-etc.c (version_etc_va): Update license wording to
67316         be more concise.  Recommended by Richard Stallman.
67317
67318 2007-03-22  Bruno Haible  <bruno@clisp.org>
67319
67320         * lib/poll.c (MSG_PEEK): New fallback definition.
67321
67322 2007-03-22  Bruno Haible  <bruno@clisp.org>
67323
67324         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
67325         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
67326         (main): Update.
67327         Fixes a compilation error on BeOS.
67328
67329 2007-03-22  Bruno Haible  <bruno@clisp.org>
67330
67331         * modules/frexpl-tests: New file.
67332         * tests/test-frexpl.c: New file.
67333
67334         * modules/frexpl: New file.
67335         * m4/frexpl.m4: New file.
67336         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
67337         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
67338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
67339         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
67340         (Depends-on): Add frexpl. Remove isnanl-nolibm.
67341         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
67342
67343 2007-03-22  Bruno Haible  <bruno@clisp.org>
67344
67345         * lib/frexpl.c: Share code with lib/frexp.c.
67346         * modules/mathl (Files): Add lib/frexp.c.
67347         (Depends-on): Add isnanl-nolibm.
67348
67349 2007-03-22  Bruno Haible  <bruno@clisp.org>
67350
67351         * modules/printf-frexp (Files): Add m4/frexp.m4.
67352         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
67353         only if the found frexp function actually works.
67354
67355 2007-03-22  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/frexp.c: Remove older implementation that uses divisions.
67358
67359 2007-03-21  Bruno Haible  <bruno@clisp.org>
67360
67361         * modules/frexp-tests: New file.
67362         * tests/test-frexp.c: New file.
67363
67364         * modules/frexp: New file.
67365         * lib/frexp.c: New file.
67366         * m4/frexp.m4: New file.
67367         * lib/math_.h (frexp): New declaration.
67368         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
67369         REPLACE_FREXP.
67370         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
67371
67372 2007-03-21  Bruno Haible  <bruno@clisp.org>
67373
67374         * modules/isnanl-tests: New file.
67375         * tests/test-isnanl.c: New file.
67376
67377         * modules/isnanl: New file.
67378         * lib/isnanl.h: New file.
67379         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
67380         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
67381         gl_FUNC_ISNANL_WORKS.
67382         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
67383         New macros.
67384
67385 2007-03-21  Bruno Haible  <bruno@clisp.org>
67386
67387         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
67388         lib/isnanl.h.
67389         (Include): Update.
67390         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
67391         * lib/vasnprintf.c: Update.
67392         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
67393         tests/test-isnanl.h, remove tests/test-isnanl.c.
67394         (Makefile.am): Update.
67395         * tests/test-isnanl-nolibm.c: New file.
67396         * tests/test-isnanl.h: New file.
67397         * tests/test-isnanl.c: Remove file.
67398
67399 2007-03-21  Jim Meyering  <jim@meyering.net>
67400
67401         When trying to open ".", treat ESTALE like EACCES.
67402         * lib/savewd.c (savewd_save): Resort to forking not just upon
67403         failure with EACCES, but also when errno is ESTALE.
67404
67405 2007-03-20  Bruno Haible  <bruno@clisp.org>
67406
67407         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
67408         Needed on AIX 5.1. Reported by Matthew Woehlke.
67409
67410 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         Suggestions by Bruno Haible:
67413         * lib/acl-internal.h: Include "gettext.h" rather than rolling
67414         our own.
67415         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
67416         * modules/acl (Depends-on): Add gettext.
67417
67418 2007-03-19  Bruno Haible  <bruno@clisp.org>
67419
67420         * modules/iconvme: Remove file.
67421         * lib/iconvme.h: Remove file.
67422         * lib/iconvme.c: Remove file.
67423         * m4/iconvme.m4: Remove file.
67424
67425 2007-03-19  Bruno Haible  <bruno@clisp.org>
67426
67427         * doc/relocatable-maint.texi: Break long shell script line.
67428         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67429
67430 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67431
67432         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
67433         handle file_has_acl.
67434         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
67435         * lib/acl.c: Move header inclusions and related macro defns into
67436         lib/acl-internal.h.
67437         (S_ISLNK): Remove defn, since that's now done for us.
67438         (file_has_acl): Move to lib/file-has-acl.c.
67439         Call acl_trivial if available.  This is the crucial part of the fix.
67440         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
67441         shared within the library.  Rewrite a bit, partly to make it compatible
67442         with the GNU coding style.
67443         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
67444         Remove unnecessary double-quotes.
67445         Don't test for acl_to_text; the build will catch that.
67446         Replace acl_entries if it doesn't exist and it is needed.
67447         Check for -lsec and acl_trivial (as used on Solaris 10).
67448         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
67449         lib/file-has-acl.c.
67450         (Depends-on): Add sys_stat, for S_ISLNK.
67451
67452 2007-03-19  Ben Pfaff  <blp@gnu.org>
67453
67454         * doc/gnulib.texi: Fix typos.
67455         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
67456
67457 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
67458
67459         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
67460         If size is zero here, buf must be zero.
67461
67462 2007-03-19  Simon Josefsson  <simon@josefsson.org>
67463
67464         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
67465         <bruno@clisp.org>.
67466
67467 2007-03-18  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
67470         Suggested by Eric Blake.
67471
67472 2007-03-18  Ben Pfaff  <blp@gnu.org>
67473
67474         * doc/relocatable.texi: Recommend using as prefix a directory
67475         that does not exist and will never be created.  Based on
67476         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
67477         and others.
67478
67479 2007-03-17  Bruno Haible  <bruno@clisp.org>
67480
67481         * lib/fchownat.c: Include lchown.h.
67482
67483 2007-03-17  Bruno Haible  <bruno@clisp.org>
67484
67485         Fix endless loop when the given allocated size was > INT_MAX.
67486         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
67487         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
67488         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
67489         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
67490         * lib/sprintf.c (sprintf): Likewise.
67491
67492 2007-03-17  Bruno Haible  <bruno@clisp.org>
67493
67494         * tests/test-argp-2.sh (func_compare): Output a context diff.
67495
67496 2007-03-17  Bruno Haible  <bruno@clisp.org>
67497
67498         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
67499         locale's decimal-point character.
67500
67501 2007-03-17  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
67504         before comparing it. Needed because on some platforms (e.g. x86) a
67505         'long double' occupies less bytes than sizeof (long double).
67506
67507 2007-03-17  Bruno Haible  <bruno@clisp.org>
67508
67509         * tests/test-crc.c (main): Make printf statements 64-bit clean.
67510         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
67511         * tests/test-getaddrinfo.c (simple): Likewise.
67512         * tests/test-read-file.c (main): Likewise.
67513
67514 2007-03-17  Bruno Haible  <bruno@clisp.org>
67515
67516         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
67517
67518 2007-03-17  Bruno Haible  <bruno@clisp.org>
67519
67520         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
67521         unused variable.
67522
67523 2007-03-17  Bruno Haible  <bruno@clisp.org>
67524
67525         * tests/test-c-strcasecmp.c: Include c-strcase.h.
67526         * tests/test-c-strncasecmp.c: Likewise.
67527
67528 2007-03-17  Bruno Haible  <bruno@clisp.org>
67529
67530         * modules/stdlib (Depends-on): Add unistd.
67531         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
67532         Needed for MacOS X 10.3.
67533
67534 2007-03-17  Bruno Haible  <bruno@clisp.org>
67535
67536         * lib/unistr/u-strdup.h: Include <stdlib.h>.
67537
67538 2007-03-17  Bruno Haible  <bruno@clisp.org>
67539
67540         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
67541
67542 2007-03-17  Bruno Haible  <bruno@clisp.org>
67543
67544         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
67545         to reflect files copied from gnulib (with or without modifications).
67546         Suggested by Jim Meyering.
67547
67548 2007-03-17  Eric Blake  <ebb9@byu.net>
67549
67550         * NEWS: Document stdlib change from 2007-02-18.
67551
67552 2007-03-17  Jim Meyering  <jim@meyering.net>
67553
67554         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
67555         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
67556         someone uses a name containing shell meta-characters.
67557         Reported by Alfred M. Szmidt.
67558
67559         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
67560
67561 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67562
67563         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
67564         and copy gettext configuration files only if configure.ac contains
67565         a use of AM_GNU_GETTEXT_VERSION.
67566
67567 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
67568
67569         * build-aux/bootstrap (gnulib_name): New variable.
67570         (gnulib_tool_options): Use it.
67571
67572 2007-03-13  Simon Josefsson  <simon@josefsson.org>
67573
67574         * tests/test-des.c: Use new namespace.
67575
67576 2007-03-15  Bruno Haible  <bruno@clisp.org>
67577
67578         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
67579         Reported by James Youngman <jay@gnu.org>.
67580
67581 2007-03-15  Bruno Haible  <bruno@clisp.org>
67582
67583         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
67584         declared prototype. Needed with cc on OSF/1 5.1.
67585
67586 2007-03-15  Bruno Haible  <bruno@clisp.org>
67587
67588         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
67589         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
67590         (struct gl_list_implementation): Add dispose_fn argument to the
67591         'create_empty', 'create' methods.
67592         (struct gl_list_impl_base): Add field 'dispose_fn'.
67593         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
67594         argument.
67595         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
67596         dispose_fn argument.
67597         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
67598         dispose_fn on the dropped values.
67599         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
67600         dispose_fn argument.
67601         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
67602         dropped values.
67603         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
67604         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67605         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
67606         (gl_tree_remove_node): Call dispose_fn on the dropped value.
67607         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
67608         argument.
67609         (gl_tree_list_free): Call dispose_fn on the dropped values.
67610         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
67611         the dropped values.
67612         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67613         Add dispose_fn argument.
67614         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
67615         Call dispose_fn on the dropped values.
67616         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
67617         Add dispose_fn argument.
67618         (gl_sublist_create): Initialize the 'dispose_fn' field.
67619         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
67620         * tests/test-array_list.c (main): Update.
67621         * tests/test-carray_list.c (main): Update.
67622         * tests/test-avltree_list.c (main): Update.
67623         * tests/test-rbtree_list.c (main): Update.
67624         * tests/test-avltreehash_list.c (main): Update.
67625         * tests/test-rbtreehash_list.c (main): Update.
67626         * tests/test-linked_list.c (main): Update.
67627         * tests/test-linkedhash_list.c (main): Update.
67628         * tests/test-array_oset.c (main): Update.
67629
67630 2007-03-15  Bruno Haible  <bruno@clisp.org>
67631
67632         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
67633         (gl_oset_create_empty): Add dispose_fn argument.
67634         (struct gl_oset_implementation): Add dispose_fn argument to
67635         'create_empty' method.
67636         (struct gl_oset_impl_base): Add dispose_fn field.
67637         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
67638         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
67639         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
67640         values.
67641         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
67642         (gl_tree_oset_free): Call dispose_fn on the dropped values.
67643         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67644         dropped value.
67645         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
67646         dropped value.
67647         * tests/test-array_oset.c (main): Update.
67648         * tests/test-avltree_oset.c (main): Update.
67649         * tests/test-rbtree_oset.c (main): Update.
67650         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
67651
67652 2007-03-13  Bruno Haible  <bruno@clisp.org>
67653
67654         * tests/test-stdbool.c (i): Update after last patch.
67655
67656 2007-03-12  Bruno Haible  <bruno@clisp.org>
67657
67658         * lib/quotearg.c: Include <wctype.h> early, before the definition of
67659         the iswprint macro. Needed on Solaris 2.5.1.
67660
67661 2007-03-12  Bruno Haible  <bruno@clisp.org>
67662
67663         * tests/test-printf-frexp.c (main): Declare x as volatile.
67664
67665 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67666
67667         * doc/gnulib.texi (Build robot for gnulib): New section.
67668
67669 2007-03-12  Jim Meyering  <jim@meyering.net>
67670
67671         * build-aux/bootstrap: New file.
67672         * build-aux/bootstrap.conf: New file, from coreutils.
67673
67674 2007-03-11  Bruno Haible  <bruno@clisp.org>
67675
67676         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
67677
67678 2007-03-12  Simon Josefsson  <simon@josefsson.org>
67679
67680         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
67681         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
67682         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
67683
67684 2007-03-11  Bruno Haible  <bruno@clisp.org>
67685
67686         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
67687         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
67688
67689 2007-03-11  Bruno Haible  <bruno@clisp.org>
67690
67691         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
67692         formula. Needed for SunPRO C 5.0.
67693
67694 2007-03-11  Bruno Haible  <bruno@clisp.org>
67695
67696         * modules/long-options (Depends-on): Add getopt.
67697
67698 2007-03-11  Bruno Haible  <bruno@clisp.org>
67699
67700         * modules/modechange (Depends-on): Add stdbool.
67701
67702 2007-03-11  Bruno Haible  <bruno@clisp.org>
67703
67704         * modules/i-ring (Depends-on): Add stdbool.
67705
67706 2007-03-11  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/gc-des (Depends-on): Add stdbool.
67709
67710 2007-03-11  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
67713
67714 2007-03-11  Bruno Haible  <bruno@clisp.org>
67715
67716         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
67717
67718 2007-03-11  Bruno Haible  <bruno@clisp.org>
67719
67720         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
67721
67722 2007-03-11  Bruno Haible  <bruno@clisp.org>
67723
67724         * lib/vasnprintf.c (sprintf): Undefine.
67725
67726 2007-03-11  Bruno Haible  <bruno@clisp.org>
67727
67728         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
67729         initializers in SunPRO C and Compaq C compilers.
67730
67731 2007-03-11  Bruno Haible  <bruno@clisp.org>
67732
67733         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
67734         decrementing code ANSI C compliant.
67735
67736 2007-03-11  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
67739         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
67740
67741 2007-03-11  Bruno Haible  <bruno@clisp.org>
67742
67743         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
67744         <stdbool.h> substitute doesn't pass.
67745
67746 2007-03-11  Bruno Haible  <bruno@clisp.org>
67747
67748         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
67749
67750 2007-03-11  Bruno Haible  <bruno@clisp.org>
67751
67752         * gnulib-tool (func_create_megatestdir): Create also an autobuild
67753         script, for submission to autobuild.josefsson.org.
67754
67755 2007-03-10  Bruno Haible  <bruno@clisp.org>
67756
67757         * modules/canonicalize-lgpl-tests: New file.
67758         * tests/test-canonicalize-lgpl.sh: New file.
67759         * tests/test-canonicalize-lgpl.c: New file.
67760
67761         * modules/c-strcase-tests: New file.
67762         * tests/test-c-strcase.sh: New file.
67763         * tests/test-c-strcasecmp.c: New file.
67764         * tests/test-c-strncasecmp.c: New file.
67765
67766         * modules/atexit-tests: New file.
67767         * tests/test-atexit.sh: New file.
67768         * tests/test-atexit.c: New file.
67769
67770 2007-03-10  Bruno Haible  <bruno@clisp.org>
67771
67772         * tests/test-binary-io.sh: Use temporary filenames that are not so
67773         likely to clash with those of other tests (in a parallel make).
67774         * tests/test-binary-io.c: Likewise.
67775
67776 2007-03-10  Bruno Haible  <bruno@clisp.org>
67777
67778         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
67779         fallback; use #error instead.
67780         Suggested by Simon Josefsson.
67781
67782 2007-03-10  Bruno Haible  <bruno@clisp.org>
67783
67784         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
67785         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
67786         first and the last.
67787
67788 2007-03-10  Bruno Haible  <bruno@clisp.org>
67789
67790         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
67791
67792 2007-03-10  Bruno Haible  <bruno@clisp.org>
67793
67794         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
67795         "make distcheck".
67796         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
67797         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
67798         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
67799
67800 2007-03-10  Bruno Haible  <bruno@clisp.org>
67801
67802         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
67803         variable.
67804         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
67805         variable.
67806
67807 2007-03-09  Eric Blake  <ebb9@byu.net>
67808         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67809
67810         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67811         types are not being provided by gnulib.
67812         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67813         types are supported.
67814
67815 2007-03-10  Bruno Haible  <bruno@clisp.org>
67816
67817         * lib/stdio_.h (__attribute__): New macro.
67818         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67819         vsprintf): Specify __attribute__ __format__ for GCC.
67820         Suggested by Eric Blake.
67821
67822 2007-03-09  Bruno Haible  <bruno@clisp.org>
67823
67824         * modules/printf-posix-tests: New file.
67825         * tests/test-printf-posix.sh: New file.
67826         * tests/test-printf-posix.c: New file.
67827
67828         * modules/printf-posix: New file.
67829         * lib/printf.c: New file.
67830         * m4/printf-posix-rpl.m4: New file.
67831         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67832         REPLACE_PRINTF.
67833         * lib/stdio_.h (printf): New declaration.
67834         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67835         ____strfmon____): New macros.
67836         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67837         REPLACE_PRINTF.
67838
67839 2007-03-09  Bruno Haible  <bruno@clisp.org>
67840
67841         * tests/test-vasnprintf-posix2.sh: New file.
67842         * tests/test-vasnprintf-posix2.c: New file.
67843         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67844         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67845         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67846
67847         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67848         a locale dependent decimal point, rather than always '.'.
67849
67850 2007-03-09  Eric Blake  <ebb9@byu.net>
67851
67852         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67853         spite of platforms like Tandem/NSK that define it to -1.
67854
67855 2007-03-08  Bruno Haible  <bruno@clisp.org>
67856
67857         * modules/vprintf-posix-tests: New file.
67858         * tests/test-vprintf-posix.sh: New file.
67859         * tests/test-vprintf-posix.c: New file.
67860         * tests/test-printf-posix.h: New file.
67861
67862         * modules/vprintf-posix: New file.
67863         * lib/vprintf.c: New file.
67864         * m4/vprintf-posix.m4: New file.
67865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67866         REPLACE_VPRINTF.
67867         * lib/stdio_.h (vprintf): New declaration.
67868         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67869         REPLACE_VPRINTF.
67870
67871 2007-03-08  Bruno Haible  <bruno@clisp.org>
67872
67873         * modules/fprintf-posix-tests: New file.
67874         * tests/test-fprintf-posix.sh: New file.
67875         * tests/test-fprintf-posix.c: New file.
67876
67877         * modules/fprintf-posix: New file.
67878         * lib/fprintf.c: New file.
67879         * m4/fprintf-posix.m4: New file.
67880         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67881         REPLACE_FPRINTF.
67882         * lib/stdio_.h (fprintf): New declaration.
67883         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67884         REPLACE_FPRINTF.
67885
67886 2007-03-08  Bruno Haible  <bruno@clisp.org>
67887
67888         * modules/vfprintf-posix-tests: New file.
67889         * tests/test-vfprintf-posix.sh: New file.
67890         * tests/test-vfprintf-posix.c: New file.
67891         * tests/test-fprintf-posix.h: New file.
67892         * tests/test-fprintf-posix.out: New file.
67893
67894         * modules/vfprintf-posix: New file.
67895         * lib/vfprintf.c: New file.
67896         * m4/vfprintf-posix.m4: New file.
67897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67898         REPLACE_VFPRINTF.
67899         * lib/stdio_.h (vfprintf): New declaration.
67900         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67901         REPLACE_VFPRINTF.
67902
67903 2007-03-08  Bruno Haible  <bruno@clisp.org>
67904
67905         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67906
67907 2007-03-08  Bruno Haible  <bruno@clisp.org>
67908
67909         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67910         instead of 'expr' invocations.
67911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67912         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67913         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67916         Suggested by Paul Eggert.
67917
67918 2007-03-08  Bruno Haible  <bruno@clisp.org>
67919
67920         * modules/fseterr-tests: New file.
67921         * tests/test-fseterr.c: New file.
67922
67923         * modules/fseterr: New file.
67924         * lib/fseterr.h: New file.
67925         * lib/fseterr.c: New file.
67926
67927 2007-03-08  Bruno Haible  <bruno@clisp.org>
67928
67929         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67930         * lib/getopt_.h: Likewise.
67931         * lib/mbswidth.h: Likewise.
67932         * lib/setenv.h: Likewise.
67933         * lib/vasnprintf.h: Likewise.
67934         * lib/vasprintf.h: Likewise.
67935         * lib/verror.h: Likewise.
67936         * lib/xsetenv.h: Likewise.
67937         * lib/xvasprintf.h: Likewise.
67938
67939 2007-03-08  Jim Meyering  <jim@meyering.net>
67940
67941         * users.txt: Add parted.
67942
67943         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67944
67945 2007-03-07  Bruno Haible  <bruno@clisp.org>
67946
67947         * m4/printf.m4: Make the shell script snippets copy&pastable.
67948
67949 2007-03-02  Bruno Haible  <bruno@clisp.org>
67950
67951         * lib/netinet_in_.h: New file.
67952         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67953         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67954         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67955         (Depends-on): Add absolute-header.
67956         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67957         into netinet/in.h.
67958
67959 2007-03-03  Bruno Haible  <bruno@clisp.org>
67960
67961         * lib/sys_select_.h: New file.
67962         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67963         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67964         * modules/sys_select (Files): Add lib/sys_select_.h.
67965         (Depends-on): Add absolute-header.
67966         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67967         into sys/select.h.
67968
67969 2007-03-02  Bruno Haible  <bruno@clisp.org>
67970
67971         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67972         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67973         values.
67974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67975         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67976         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67977         * modules/sys_socket (Depends-on): Add absolute-header.
67978         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67979         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67980         (Include): Remove requirement of inclusion of <sys/types.h>.
67981
67982 2007-03-02  Bruno Haible  <bruno@clisp.org>
67983
67984         * lib/byteswap_.h (bswap_32): Fix formula.
67985
67986 2007-03-06  Bruno Haible  <bruno@clisp.org>
67987
67988         * modules/sprintf-posix-tests: New file.
67989         * tests/test-sprintf-posix.c: New file.
67990
67991         * modules/sprintf-posix: New file.
67992         * lib/sprintf.c: New file.
67993         * m4/sprintf-posix.m4: New file.
67994         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67995         REPLACE_SPRINTF.
67996         * lib/stdio_.h (sprintf): New declaration.
67997         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67998         REPLACE_SPRINTF.
67999
68000 2007-03-06  Bruno Haible  <bruno@clisp.org>
68001
68002         * modules/vsprintf-posix-tests: New file.
68003         * tests/test-vsprintf-posix.c: New file.
68004         * tests/test-sprintf-posix.h: New file.
68005
68006         * modules/vsprintf-posix: New file.
68007         * lib/vsprintf.c: New file.
68008         * m4/vsprintf-posix.m4: New file.
68009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
68010         REPLACE_VSPRINTF.
68011         * lib/stdio_.h (vsprintf): New declaration.
68012         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
68013         REPLACE_VSPRINTF.
68014
68015 2007-03-06  Bruno Haible  <bruno@clisp.org>
68016
68017         * modules/vsnprintf (Depend-on): Remove minmax.
68018
68019 2007-03-06  Bruno Haible  <bruno@clisp.org>
68020
68021         * modules/snprintf-posix-tests: New file.
68022         * tests/test-snprintf-posix.c: New file.
68023
68024         * modules/snprintf-posix: New file.
68025         * m4/snprintf-posix.m4: New file.
68026         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
68027         gl_FUNC_SNPRINTF.
68028         (gl_FUNC_SNPRINTF): Invoke it.
68029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
68030         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
68031         is set.
68032         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
68033
68034 2007-03-06  Bruno Haible  <bruno@clisp.org>
68035
68036         * modules/vsnprintf-posix-tests: New file.
68037         * tests/test-vsnprintf-posix.c: New file.
68038         * tests/test-snprintf-posix.h: New file.
68039
68040         * modules/vsnprintf-posix: New file.
68041         * m4/vsnprintf-posix.m4: New file.
68042         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
68043         gl_FUNC_VSNPRINTF.
68044         (gl_FUNC_VSNPRINTF): Invoke it.
68045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
68046         * lib/stdio_.h (vsnprintf): Define as a replacement if
68047         REPLACE_VSNPRINTF is set.
68048         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
68049
68050 2007-03-06  Bruno Haible  <bruno@clisp.org>
68051
68052         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
68053         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
68054
68055 2007-03-06  Bruno Haible  <bruno@clisp.org>
68056
68057         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
68058         (asinl): Declare also if HAVE_DECL_ASINL is set.
68059         (atanl): Declare also if HAVE_DECL_ATANL is set.
68060         (ceill): Declare also if HAVE_DECL_CEILL is set.
68061         (cosl): Declare also if HAVE_DECL_COSL is set.
68062         (expl): Declare also if HAVE_DECL_EXPL is set.
68063         (floorl): Declare also if HAVE_DECL_FLOORL is set.
68064         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
68065         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
68066         (logl): Declare also if HAVE_DECL_LOGL is set.
68067         (sinl): Declare also if HAVE_DECL_SINL is set.
68068         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
68069         (tanl): Declare also if HAVE_DECL_TANL is set.
68070         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
68071         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
68072         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
68073         declaration of frexpl, ldexpl.
68074         * modules/printf-frexpl (Depends-on): Add math.
68075         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
68076
68077 2007-03-05  Bruno Haible  <bruno@clisp.org>
68078
68079         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
68080         frexpl and ldexpl are declared.
68081         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
68082
68083 2007-03-05  Bruno Haible  <bruno@clisp.org>
68084
68085         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
68086         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
68087
68088 2007-03-05  Bruno Haible  <bruno@clisp.org>
68089
68090         * lib/stdio_.h: Include <stddef.h>.
68091
68092 2007-03-05  Bruno Haible  <bruno@clisp.org>
68093
68094         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
68095
68096 2007-03-05  Bruno Haible  <bruno@clisp.org>
68097
68098         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
68099         NetBSD 4, from Ralf Wildenhues.
68100
68101 2007-03-04  Bruno Haible  <bruno@clisp.org>
68102
68103         * lib/vasprintf.h: Update #if logic for the case when the functions
68104         exist but are overridden.
68105
68106 2007-03-04  Bruno Haible  <bruno@clisp.org>
68107
68108         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
68109         implementations: glibc-2.4 and MacOS X 10.3.
68110         * tests/test-vasnprintf-posix.c (test_function): Test also the case
68111         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
68112         * tests/test-vasprintf-posix.c (test_function): Likewise.
68113
68114 2007-03-04  Bruno Haible  <bruno@clisp.org>
68115
68116         * modules/vasprintf-posix-tests: New file.
68117         * tests/test-vasprintf-posix.c: New file.
68118
68119         * modules/vasprintf-posix: New file.
68120         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
68121         defined.
68122         * m4/vasprintf-posix.m4: New file.
68123         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
68124         gl_FUNC_VASPRINTF.
68125         (gl_FUNC_VASPRINTF): Invoke it.
68126         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
68127         here.
68128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
68129
68130 2007-03-04  Bruno Haible  <bruno@clisp.org>
68131
68132         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
68133         REPLACE_GETTIMEOFDAY.
68134         * modules/sys_time (Makefile.am): Likewise.
68135         * m4/sys_time_h.m4: Likewise.
68136         * m4/gettimeofday.m4: Likewise.
68137
68138 2007-03-04  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/vasnprintf-posix-tests: New file.
68141         * tests/test-vasnprintf-posix.c: New file.
68142
68143         * modules/vasnprintf-posix: New file.
68144         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
68145         printf-frexpl.h.
68146         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
68147         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
68148         REPLACE_VASNPRINTF is defined.
68149         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
68150         gl_FUNC_VASNPRINTF.
68151         (gl_FUNC_VASNPRINTF): Invoke it.
68152         * m4/vasnprintf-posix.m4: New file.
68153         * m4/printf.m4: New file.
68154
68155 2007-03-04  Bruno Haible  <bruno@clisp.org>
68156
68157         Compile progreloc.c only if --enable-relocatable is specified.
68158         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
68159         if --enable-relocatable was specified.
68160         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
68161         lib_SOURCES.
68162
68163 2007-03-04  Jim Meyering  <jim@meyering.net>
68164
68165         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
68166         Use it consistently, rather than enumerating errno constants.
68167
68168 2007-03-04  Bruno Haible  <bruno@clisp.org>
68169
68170         * modules/xvasprintf-tests: New file.
68171         * tests/test-xvasprintf.c: New file.
68172
68173         * modules/vasprintf-tests: New file.
68174         * tests/test-vasprintf.c: New file.
68175
68176         * modules/vasnprintf-tests: New file.
68177         * tests/test-vasnprintf.c: New file.
68178
68179         * modules/vsnprintf-tests: New file.
68180         * tests/test-vsnprintf.c: New file.
68181
68182         * modules/snprintf-tests: New file.
68183         * tests/test-snprintf.c: New file.
68184
68185 2007-03-04  Bruno Haible  <bruno@clisp.org>
68186
68187         Compile relocatable.c only if --enable-relocatable is specified.
68188         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
68189         gl_RELOCATABLE_LIBRARY.
68190         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
68191         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
68192         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
68193         gl_RELOCATABLE_LIBRARY.
68194         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
68195         (Makefile.am): Remove lib_SOURCES.
68196         * modules/relocatable-lib-lgpl (configure.ac): Invoke
68197         gl_RELOCATABLE_LIBRARY.
68198         (Makefile.am): Remove lib_SOURCES.
68199         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
68200         always.
68201         * modules/relocatable-prog-wrapper (configure.ac): Invoke
68202         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
68203
68204 2007-03-04  Bruno Haible  <bruno@clisp.org>
68205
68206         * modules/argmatch-tests: New file.
68207         * tests/test-argmatch.c: New file.
68208
68209         * tests/test-allocsa.c (main): Halve the number of loop runs.
68210
68211         * modules/alloca-opt-tests: New file.
68212         * tests/test-alloca-opt.c: New file.
68213
68214 2007-03-04  Jim Meyering  <jim@meyering.net>
68215
68216         Work around difference between Linux ACLs and Solaris 10 ZFS.
68217         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
68218         for EINVAL.
68219
68220 2007-03-03  Bruno Haible  <bruno@clisp.org>
68221
68222         * modules/relocatable-prog (Depends-on): Add back progreloc's
68223         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
68224
68225 2007-03-03  Bruno Haible  <bruno@clisp.org>
68226
68227         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
68228         * modules/relocatable-lib: New file.
68229
68230 2007-03-03  Bruno Haible  <bruno@clisp.org>
68231
68232         * modules/relocatable-prog: Renamed from modules/relocatable.
68233         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
68234
68235 2007-03-03  Bruno Haible  <bruno@clisp.org>
68236
68237         * modules/relocatable-script (Files): Add doc/relocatable.texi,
68238         m4/relocatable-lib.m4.
68239         (Depends-on): Remove 'relocatable'.
68240         (configure.ac): Add gl_RELOCATABLE_NOP.
68241
68242 2007-03-03  Bruno Haible  <bruno@clisp.org>
68243
68244         * modules/relocatable-prog-wrapper: New file.
68245         * modules/relocatable (Depends-on): Add it. Remove all other
68246         dependencies except progname.
68247         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
68248
68249         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
68250         (gl_FUNC_STRERROR): Nop.
68251         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
68252
68253         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
68254         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
68255
68256         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
68257         (gl_FUNC_READLINK): Update.
68258
68259         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
68260
68261 2007-03-03  Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/xreadlink.c: Include <unistd.h> unconditionally.
68264         * modules/xreadlink (Depends-on): Add unistd.
68265         * modules/xreadlink-with-size (Depends-on): Likewise.
68266
68267 2007-03-03  Bruno Haible  <bruno@clisp.org>
68268
68269         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
68270         extracted from gt_FUNC_SETENV.
68271         (gt_FUNC_SETENV): Remove macro.
68272         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
68273         remove gt_FUNC_SETENV.
68274
68275 2007-03-03  Bruno Haible  <bruno@clisp.org>
68276
68277         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
68278         ENABLE_RELOCATABLE here.
68279         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
68280
68281 2007-03-03  Bruno Haible  <bruno@clisp.org>
68282
68283         * modules/rbtreehash-list-tests (Depends-on): Add progname.
68284         * tests/test-rbtreehash_list.c: Include progname.h.
68285         (main): Call set_program_name.
68286
68287         * modules/rbtree-oset-tests (Depends-on): Add progname.
68288         * tests/test-rbtree_oset.c: Include progname.h.
68289         (main): Call set_program_name.
68290
68291         * modules/rbtree-list-tests (Depends-on): Add progname.
68292         * tests/test-rbtree_list.c: Include progname.h.
68293         (main): Call set_program_name.
68294
68295         * modules/linked-list-tests (Depends-on): Add progname.
68296         * tests/test-linked_list.c: Include progname.h.
68297         (main): Call set_program_name.
68298
68299 2007-03-03  Bruno Haible  <bruno@clisp.org>
68300
68301         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
68302         All uses of __restrict changed to _Restrict_.
68303         * lib/glob_.h (__restrict): Remove macro.
68304
68305 2007-03-02  Bruno Haible  <bruno@clisp.org>
68306
68307         * modules/gettext (configure.ac): Require gettext infrastructure
68308         from version 0.16.1.
68309
68310 2007-03-02  Bruno Haible  <bruno@clisp.org>
68311
68312         * modules/linkedhash-list-tests (Depends-on): Add progname.
68313         * tests/test-linkedhash_list.c: Include progname.h.
68314         (main): Call set_program_name.
68315
68316         * modules/carray-list-tests (Depends-on): Add progname.
68317         * tests/test-carray_list.c: Include progname.h.
68318         (main): Call set_program_name.
68319
68320         * modules/avltreehash-list-tests (Depends-on): Add progname.
68321         * tests/test-avltreehash_list.c: Include progname.h.
68322         (main): Call set_program_name.
68323
68324         * modules/avltree-oset-tests (Depends-on): Add progname.
68325         * tests/test-avltree_oset.c: Include progname.h.
68326         (main): Call set_program_name.
68327
68328         * modules/avltree-list-tests (Depends-on): Add progname.
68329         * tests/test-avltree_list.c: Include progname.h.
68330         (main): Call set_program_name.
68331
68332         * modules/array-oset-tests (Depends-on): Add progname.
68333         * tests/test-array_oset.c: Include progname.h.
68334         (main): Call set_program_name.
68335
68336         * modules/array-list-tests (Depends-on): Add progname.
68337         * tests/test-array_list.c: Include progname.h.
68338         (main): Call set_program_name.
68339
68340         * modules/argp-tests (Depends-on): Add progname.
68341         * tests/test-argp.c: Include argp.h first. Include progname.h.
68342         (main): Call set_program_name.
68343
68344 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
68345
68346         * doc/gnulib-tool.texi (Initial import): Reword description of
68347         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
68348         limited effect even if defined after the first system include.
68349
68350 2007-03-01  Bruno Haible  <bruno@clisp.org>
68351
68352         * build-aux/config.libpath: Update to libtool-1.5.22.
68353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68354
68355 2007-03-01  Bruno Haible  <bruno@clisp.org>
68356
68357         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
68358         foo_CFLAGS.
68359         Reported by Ralf Wildenhues.
68360
68361 2007-03-01  Bruno Haible  <bruno@clisp.org>
68362
68363         * build-aux/install-reloc: Remove object files left over by some
68364         compilers.
68365         Reported by Ralf Wildenhues.
68366
68367 2007-03-01  Bruno Haible  <bruno@clisp.org>
68368
68369         * build-aux/install-reloc: Break long lines.
68370
68371 2007-03-01  Bruno Haible  <bruno@clisp.org>
68372
68373         * doc/relocatable.texi: Document that it may not work on OpenBSD.
68374         Reported by Ralf Wildenhues.
68375
68376 2007-03-01  Bruno Haible  <bruno@clisp.org>
68377
68378         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
68379         include ordering constraints.
68380
68381 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68382
68383         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
68384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
68385         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
68386         as another example.
68387         * lib/time_.h: Fix misspelling.
68388         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68389         Require gl_HEADER_TIME_H_DEFAULTS.
68390         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
68391         * m4/time_r.m4 (gl_TIME_R): Likewise.
68392         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
68393
68394 2007-03-01  Bruno Haible  <bruno@clisp.org>
68395
68396         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
68397         * m4/utimens.m4 (gl_UTIMENS): Likewise.
68398
68399 2007-03-01  Jim Meyering  <jim@meyering.net>
68400
68401         * modules/xreadlink (Maintainer): Add my name.
68402         * modules/xreadlink-with-size (Depends-on): Alphabetize.
68403
68404 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
68405             Bruno Haible  <bruno@clisp.org>
68406
68407         * build-aux/install-reloc: Compile also c-ctype.c.
68408         * build-aux/relocatable.sh.in: New file.
68409         * doc/relocatable.texi: New file.
68410         * doc/relocatable-maint.texi: New file.
68411         * doc/gnulib.texi: Include relocatable-maint.texi.
68412         * lib/progreloc.c: Include unistd.h unconditionally.
68413         * lib/relocwrapper.c: Include unistd.h unconditionally.
68414         Include c-ctype.h.
68415         (add_dotbin): Use c_tolower.
68416         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
68417         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
68418         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
68419         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
68420         to m4/relocatable-lib.m4.
68421         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
68422         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
68423         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
68424         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
68425         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
68426         * modules/relocatable: New file.
68427         * modules/relocatable-lib: New file.
68428         * modules/relocatable-script: New file.
68429
68430 2007-02-28  Bruno Haible  <bruno@clisp.org>
68431
68432         Import --enable-relocatable infrastructure.
68433         * build-aux/config.libpath: New file, from GNU gettext.
68434         * build-aux/install-reloc: New file, from GNU gettext.
68435         * build-aux/reloc-ldflags: New file, from GNU gettext.
68436         * lib/relocatable.h: New file, from GNU gettext.
68437         * lib/relocatable.c: New file, from GNU gettext.
68438         * lib/relocwrapper.c: New file, from GNU gettext.
68439         * m4/relocatable.m4: New file, from GNU gettext.
68440
68441 2007-02-28  Bruno Haible  <bruno@clisp.org>
68442
68443         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
68444
68445         * modules/xreadlink: New file, from GNU gettext with modifications.
68446         * lib/xreadlink.c: New file, from GNU gettext.
68447         * lib/xreadlink.h: Add comments.
68448         (xreadlink): New declaration.
68449
68450         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
68451         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
68452         lib/xreadlink-with-size.c.
68453         (configure.ac): Remove gl_XREADLINK invocation.
68454         (Makefile.am): Augment lib_SOURCES.
68455         * m4/xreadlink.m4: Remove file.
68456         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
68457         (xreadlink_with_size): Renamed from xreadink.
68458         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
68459         * modules/canonicalize (Depends-on): Replace xreadlink with
68460         xreadlink-with-size.
68461         * lib/canonicalize.c (canonicalize_filename_mode): Update.
68462
68463 2007-02-25  Jim Meyering  <jim@meyering.net>
68464
68465         * build-aux/announce-gen: When complaining about excess arguments,
68466         list them.
68467
68468 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
68469
68470         * README: Document signed integer overflow situation more
68471         accurately.
68472
68473 2007-02-25  Bruno Haible  <bruno@clisp.org>
68474
68475         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
68476         'a' or 'A' conversion.
68477
68478 2007-02-25  Bruno Haible  <bruno@clisp.org>
68479
68480         * modules/filename: Renamed from modules/pathname.
68481         (Files): Replace lib/pathname.h with lib/filename.h. Replace
68482         lib/concatpath.c with lib/concat-filename.c.
68483         (Makefile.am): Update.
68484         (Include): Replace pathname.h with filename.h.
68485         * lib/filename.h: Renamed from lib/pathname.h.
68486         (concatenated_filename): Renamed from concatenated_pathname.
68487         * lib/concat-filename.c: Renamed from lib/concatpath.c.
68488         (concatenated_filename): Renamed from concatenated_pathname.
68489         * lib/findprog.c: Include filename.h instead of pathname.h.
68490         (find_in_path): Update.
68491         * lib/javacomp.c: Include filename.h instead of pathname.h.
68492         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
68493         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
68494         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
68495         is_oldgcj_14_13_usable, is_javac_usable): Update.
68496         * lib/javaexec.c: Include filename.h instead of pathname.h.
68497         (execute_java_class): Update.
68498         * modules/findprog: Update.
68499         * modules/javacomp: Update.
68500         * modules/javaexec: Update.
68501         * MODULES.html.sh (File system functions): Add 'filename', remove
68502         'pathname'.
68503
68504 2007-02-25  Bruno Haible  <bruno@clisp.org>
68505
68506         * modules/printf-frexpl-tests: New file.
68507         * tests/test-printf-frexpl.c: New file.
68508
68509         * modules/printf-frexpl: New file.
68510         * lib/printf-frexpl.h: New file.
68511         * lib/printf-frexpl.c: New file.
68512         * m4/printf-frexpl.m4: New file.
68513
68514 2007-02-25  Bruno Haible  <bruno@clisp.org>
68515
68516         * modules/printf-frexp-tests: New file.
68517         * tests/test-printf-frexp.c: New file.
68518
68519         * modules/printf-frexp: New file.
68520         * lib/printf-frexp.h: New file.
68521         * lib/printf-frexp.c: New file.
68522         * m4/printf-frexp.m4: New file.
68523
68524 2007-02-25  Bruno Haible  <bruno@clisp.org>
68525
68526         Assume automake >= 1.10 for the tests.
68527         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
68528         * modules/arctwo-tests: Likewise.
68529         * modules/argp-tests: Likewise.
68530         * modules/avltree-list-tests: Likewise.
68531         * modules/avltree-oset-tests: Likewise.
68532         * modules/avltreehash-list-tests: Likewise.
68533         * modules/carray-list-tests: Likewise.
68534         * modules/crc-tests: Likewise.
68535         * modules/des-tests: Likewise.
68536         * modules/gc-arcfour-tests: Likewise.
68537         * modules/gc-arctwo-tests: Likewise.
68538         * modules/gc-des-tests: Likewise.
68539         * modules/gc-hmac-md5-tests: Likewise.
68540         * modules/gc-hmac-sha1-tests: Likewise.
68541         * modules/gc-md2-tests: Likewise.
68542         * modules/gc-md4-tests: Likewise.
68543         * modules/gc-md5-tests: Likewise.
68544         * modules/gc-pbkdf2-sha1-tests: Likewise.
68545         * modules/gc-rijndael-tests: Likewise.
68546         * modules/gc-sha1-tests: Likewise.
68547         * modules/gc-tests: Likewise.
68548         * modules/getaddrinfo-tests: Likewise.
68549         * modules/hmac-md5-tests: Likewise.
68550         * modules/hmac-sha1-tests: Likewise.
68551         * modules/linked-list-tests: Likewise.
68552         * modules/linkedhash-list-tests: Likewise.
68553         * modules/lock-tests: Likewise.
68554         * modules/md2-tests: Likewise.
68555         * modules/md4-tests: Likewise.
68556         * modules/md5-tests: Likewise.
68557         * modules/rbtree-list-tests: Likewise.
68558         * modules/rbtree-oset-tests: Likewise.
68559         * modules/rbtreehash-list-tests: Likewise.
68560         * modules/read-file-tests: Likewise.
68561         * modules/rijndael-tests: Likewise.
68562         * modules/stdint-tests: Likewise.
68563         * modules/tls-tests: Likewise.
68564
68565 2007-02-24  Bruno Haible  <bruno@clisp.org>
68566
68567         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
68568         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
68569         function; instead check whether isnan with a double argument links.
68570         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
68571         function; instead check whether isnan with a 'long double' argument
68572         links.
68573         Reported by Eric Blake <ebb9@byu.net>.
68574
68575 2007-02-24  Bruno Haible  <bruno@clisp.org>
68576
68577         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
68578         defined.
68579         * lib/isnanl.c: Remove all code. Just include isnan.c.
68580         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
68581
68582 2007-02-25  Jim Meyering  <jim@meyering.net>
68583
68584         Avoid conflicting types for 'unsetenv' on FreeBSD.
68585         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
68586         conflicting with FreeBSD's (5.0 and 6.1) function declaration
68587         in stdlib.h.
68588
68589 2007-02-24  Bruno Haible  <bruno@clisp.org>
68590
68591         * modules/isnanl-nolibm-tests: New file.
68592         * tests/test-isnanl.c: New file.
68593
68594         * modules/isnanl-nolibm: New file.
68595         * lib/isnanl.h: New file.
68596         * lib/isnanl.c: New file.
68597         * m4/isnanl.m4: New file.
68598
68599 2007-02-24  Bruno Haible  <bruno@clisp.org>
68600
68601         * modules/isnan-nolibm-tests: New file.
68602         * tests/test-isnan.c: New file.
68603
68604         * modules/isnan-nolibm: New file.
68605         * lib/isnan.h: New file.
68606         * lib/isnan.c: New file.
68607         * m4/isnan.m4: New file.
68608
68609 2007-02-24  Bruno Haible  <bruno@clisp.org>
68610
68611         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
68612         assume that an exponent fits in 20 bits.
68613
68614 2007-02-24  Jim Meyering  <jim@meyering.net>
68615
68616         * m4/regex.m4: Update the description of the configure-time option,
68617         --without-included-regex, to state accurately what the defaults are,
68618         and perhaps to give people an idea why using this option is risky.
68619
68620 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
68623         loops on small arguments.  This attempts to avoid the problem
68624         Bruno Haible reported for AIX 4.3.2 in
68625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
68626
68627 2007-02-23  Bruno Haible  <bruno@clisp.org>
68628
68629         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
68630         Needed for help2man.
68631
68632 2007-02-23  Karl Berry  <karl@gnu.org>
68633
68634         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
68635         exists, foo.h should be cvs-ignored, not committed.
68636
68637 2007-02-23  Eric Blake  <ebb9@byu.net>
68638
68639         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
68640         * lib/stat-time.h (includes): Likewise.
68641         * lib/utimecmp.c (includes): Likewise.
68642         * lib/utimens.h (includes): Likewise.
68643         * lib/getdate.y (includes): Also include "timespec.h" for use
68644         internal to the module.
68645         * modules/utimens (Depends-on): Revert yesterday's patch.
68646         * modules/nanosleep (Depends-on): Add missing dependency.
68647
68648 2007-02-22  Bruno Haible  <bruno@clisp.org>
68649
68650         * lib/glob.c: Don't include getlogin_r.h.
68651
68652 2007-02-22  Jim Meyering  <jim@meyering.net>
68653
68654         * modules/utimens (Depends-on): Add timespec, required for
68655         utimens.h's inclusion of timespec.h.
68656
68657 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
68658
68659         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
68660         long unreadable paths in GNU/Linux.  Problem reported by Andreas
68661         Schwab in
68662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
68663         I'll try to think of a better way to fix the Solaris problem.
68664
68665         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
68666         like glibc; on Solaris 10, it fails with errno == EINVAL.
68667         POSIX says the behavior is unspecified if the first argument is NULL,
68668         so play it safe and never pass NULL to the system getcwd.
68669
68670 2007-02-21  Jim Meyering  <jim@meyering.net>
68671
68672         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
68673         of gettimeofday.  It would conflict with the one now always
68674         provided via sys_time_.h.  Reported by Matthew Woehlke, as
68675         an IRIX 6.5 build failure.
68676
68677 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68678
68679         Minor fixups to port to Solaris 10 with Sun C 5.8.
68680         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
68681         * modules/getcwd (Depends-on): Add dirfd.
68682         * lib/putenv.c (putenv): #undef it.
68683         (rpl_putenv): New decl.
68684         (malloc, free): Include <stdlib.h> rather than prototyping separately.
68685
68686 2007-02-20  Bruno Haible  <bruno@clisp.org>
68687
68688         * modules/stdio-tests: New file.
68689         * tests/test-stdio.c: New file.
68690
68691         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
68692         (Depends-on): Add stdio.
68693         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68694         (Include): Use <stdio.h> instead of vsnprintf.h.
68695         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68696         HAVE_DECL_VSNPRINTF.
68697         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
68698
68699         * modules/snprintf (Files): Remove lib/snprintf.h.
68700         (Depends-on): Add stdio.
68701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
68702         (Include): Use <stdio.h> instead of snprintf.h.
68703         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
68704         HAVE_DECL_SNPRINTF.
68705         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
68706         * lib/getaddrinfo.c: Likewise.
68707
68708         * modules/stdio: New file.
68709         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
68710         * lib/snprintf.h: Remove file.
68711         * lib/vsnprintf.h: Remove file.
68712         * lib/.cppi-disable: Remove snprintf.h.
68713         * m4/stdio_h.m4: New file.
68714         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
68715
68716 2007-02-20  Jim Meyering  <jim@meyering.net>
68717
68718         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
68719         used by e.g., mingw.  From Bruno Haible.
68720
68721 2007-02-19  Bruno Haible  <bruno@clisp.org>
68722
68723         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
68724         warnings.
68725         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68726
68727 2007-02-19  Bruno Haible  <bruno@clisp.org>
68728
68729         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
68730         from mingw users.
68731
68732 2007-02-19  Bruno Haible  <bruno@clisp.org>
68733
68734         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
68735         warnings.
68736         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
68737
68738 2007-02-19  Jim Meyering  <jim@meyering.net>
68739
68740         Don't use FD after a successful "fdopendir (fd)".
68741         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
68742         Reset it by calling dirfd on the just-obtained DIR*.
68743
68744         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
68745         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
68746
68747 2007-02-18  Bruno Haible  <bruno@clisp.org>
68748
68749         * lib/readlink.c: Include <unistd.h>.
68750         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
68751         HAVE_READLINK.
68752         * modules/readlink (Depends-on): Add unistd.
68753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68754         (Include): Add <unistd.h>.
68755
68756         * lib/getlogin_r.h: Remove file.
68757         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
68758         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
68759         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
68760         HAVE_DECL_GETLOGIN_R.
68761         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
68762         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68763         (Include): Use <unistd.h> instead of getlogin_r.h.
68764
68765         * lib/getcwd.h: Remove file.
68766         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
68767         * lib/xgetcwd.c: Likewise.
68768         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
68769         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
68770         * modules/getcwd (Files): Remove lib/getcwd.h.
68771         (Depends-on): Add unistd.
68772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68773         (Include): Use <unistd.h> instad of getcwd.h.
68774
68775         * lib/ftruncate.c: Include <unistd.h> first.
68776         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
68777         Set HAVE_FTRUNCATE.
68778         * modules/ftruncate (Depends-on): Add unistd.
68779         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68780
68781         * lib/fchdir.c: Include <unistd.h> first.
68782         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
68783         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
68784         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
68785         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68786         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
68787
68788         * lib/dup2.c: Include <unistd.h> first.
68789         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
68790         HAVE_DUP2.
68791         * modules/dup2 (Depends-on): Add unistd.
68792         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68793
68794         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
68795         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
68796         REPLACE_CHOWN. Don't define chown as a macro here.
68797         * modules/chown (Depends-on): Add unistd.
68798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
68799
68800         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
68801         Add definition for GL_LINK_WARNING.
68802         (chown, dup2): New declarations.
68803         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
68804         link warning.
68805         (ftruncate): New declaration.
68806         (getcwd): New declaration, taken from old getcwd.h.
68807         (getlogin_r): New declaration, taken from old getlogin_r.h.
68808         (readlink): New declaration.
68809         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68810         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68811         (gl_PREREQ_UNISTD): Remove macro.
68812         (gl_UNISTD_MODULE_INDICATOR): New macro.
68813         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68814         many new variables. Don't set UNISTD_H.
68815         * modules/unistd (Description): Change.
68816         (Depends-on): Add link-warning.
68817         (configure.ac): Update.
68818         (Makefile.am): Create unistd.h always. Substitute many new variables
68819         into it.
68820
68821 2007-02-18  Bruno Haible  <bruno@clisp.org>
68822
68823         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68824         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68825         HAVE_GETSUBOPT.
68826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68827         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68828         * lib/getsubopt.h: Remove file.
68829         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68830         (Depends-on): Add stdlib.
68831         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68832         (Includes): Use <stdlib.h> instead of getsubopt.h.
68833         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68834         Set HAVE_GETSUBOPT.
68835         * lib/getsubopt.c: Don't include getsubopt.h.
68836
68837 2007-02-18  Bruno Haible  <bruno@clisp.org>
68838
68839         * modules/fchdir (Depends-on): Add dup2.
68840
68841 2007-02-18  Bruno Haible  <bruno@clisp.org>
68842
68843         * lib/stdlib_.h: Handle glibc's special invocation convention
68844         specially.
68845
68846 2007-02-18  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/stdlib-tests: New file.
68849         * tests/test-stdlib.c: New file.
68850
68851         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68852         (Depends-on): Add stdlib.
68853         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68854         (Includes): Use <stdlib.h> instead of mkstemp.h.
68855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68856         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68857         * lib/mkstemp.c: Don't include mkstemp.h.
68858         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68859         * lib/stdlib--.h: Don't include mkstemp.h.
68860
68861         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68862         (Depends-on): Add stdlib.
68863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68864         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68865         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68866         HAVE_MKDTEMP.
68867         * lib/mkdtemp.c: Don't include mkdtemp.h.
68868         * lib/clean-temp.c: Don't include mkdtemp.h.
68869
68870         * modules/exit (Files): Remove lib/exit.h.
68871         (Depends-on): Add stdlib.
68872         (Makefile.am): Remove lib_SOURCES.
68873         (Include): Use <stdlib.h> instead of exit.h.
68874         * lib/argmatch.c: Don't include exit.h.
68875         * lib/execute.c: Likewise.
68876         * lib/pagealign_alloc.c: Likewise.
68877         * lib/pipe.c: Likewise.
68878         * lib/wait-process.c: Likewise.
68879         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68880         * lib/exitfail.c: Likewise.
68881         * lib/savewd.c: Likewise.
68882         * lib/xsetenv.c: Likewise.
68883
68884         * modules/stdlib: New file.
68885         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68886         and extra comments about mkstemp().
68887         * lib/exit.h: Remove file.
68888         * lib/mkdtemp.h: Remove file.
68889         * lib/mkstemp.h: Remove file.
68890         * m4/stdlib_h.m4: New file.
68891         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68892
68893 2007-02-18  Bruno Haible  <bruno@clisp.org>
68894
68895         * modules/math-tests: New file.
68896         * tests/test-math.c: New file.
68897
68898         * modules/math: New file.
68899         * modules/mathl (Files): Remove lib/mathl.h.
68900         (Depends-on): Add math.
68901         (Makefile.am): Don't mention mathl.h.
68902         (Include): Use <math.h> instead of mathl.h.
68903         * lib/math_.h: New file.
68904         * lib/mathl.h: Remove file.
68905         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68906         mathl.h.
68907         * lib/asinl.c: Likewise.
68908         * lib/atanl.c: Likewise.
68909         * lib/ceill.c: Likewise.
68910         * lib/cosl.c: Likewise.
68911         * lib/expl.c: Likewise.
68912         * lib/floorl.c: Likewise.
68913         * lib/frexpl.c: Likewise.
68914         * lib/ldexpl.c: Likewise.
68915         * lib/logl.c: Likewise.
68916         * lib/sincosl.c: Likewise.
68917         * lib/sinl.c: Likewise.
68918         * lib/sqrtl.c: Likewise.
68919         * lib/tanl.c: Likewise.
68920         * lib/trigl.c: Likewise.
68921         * m4/math_h.m4: New file.
68922         * MODULES.html.sh (Mathematics): Add math.
68923
68924 2007-02-17  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/wctype-tests: New file.
68927         * tests/test-wctype.c: New file.
68928
68929         * modules/wchar-tests: New file.
68930         * tests/test-wchar.c: New file.
68931
68932         * modules/unistd-tests: New file.
68933         * tests/test-unistd.c: New file.
68934
68935         * modules/time-tests: New file.
68936         * tests/test-time.c: New file.
68937
68938         * modules/sysexits-tests: New file.
68939         * tests/test-sysexits.c: New file.
68940
68941         * modules/sys_time-tests: New file.
68942         * tests/test-sys_time.c: New file.
68943
68944         * modules/sys_stat-tests: New file.
68945         * tests/test-sys_stat.c: New file.
68946
68947         * modules/sys_socket-tests: New file.
68948         * tests/test-sys_socket.c: New file.
68949
68950         * modules/sys_select-tests: New file.
68951         * tests/test-sys_select.c: New file.
68952
68953         * modules/string-tests: New file.
68954         * tests/test-string.c: New file.
68955
68956         * modules/stdbool-tests: New file.
68957         * tests/test-stdbool.c: New file.
68958
68959         * modules/netinet_in-tests: New file.
68960         * tests/test-netinet_in.c: New file.
68961
68962         * modules/inttypes-tests: New file.
68963         * tests/test-inttypes.c: New file.
68964
68965         * modules/fcntl-tests: New file.
68966         * tests/test-fcntl.c: New file.
68967
68968         * modules/byteswap-tests: New file.
68969         * tests/test-byteswap.c: New file.
68970
68971         * modules/arpa_inet-tests: New file.
68972         * tests/test-arpa_inet.c: New file.
68973
68974 2007-02-17  Bruno Haible  <bruno@clisp.org>
68975
68976         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68977         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68978         if the corresponding module is not enabled. Emit link warnings if
68979         the function is used nevertheless.
68980         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68981         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68982         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68983         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68984         * modules/inttypes (Depends-on): Add link-warning.
68985         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68986         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68987         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68988         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68989         * modules/imaxdiv (configure.ac): Likewise.
68990         * modules/strtoimax (configure.ac): Likewise.
68991         * modules/strtoumax (configure.ac): Likewise.
68992
68993 2007-02-17  Bruno Haible  <bruno@clisp.org>
68994
68995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68996         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68997         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68998         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68999
69000 2007-02-17  Bruno Haible  <bruno@clisp.org>
69001
69002         * modules/link-warning: New file.
69003         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
69004         * lib/string_.h (GL_LINK_WARNING): Remove definition.
69005         * modules/string (Depends-on): Add link-warning.
69006         (Makefile.am): Copy the contents of build-aux/link-warning.h into
69007         string.h.
69008         * MODULES.html.sh (Support for building libraries and executables): Add
69009         link-warning.
69010
69011 2007-02-17  Bruno Haible  <bruno@clisp.org>
69012
69013         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
69014         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
69015         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
69016         long lines.
69017
69018 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
69019             Bruno Haible  <bruno@clisp.org>
69020
69021         * modules/tmpfile: New file.
69022         * lib/tmpfile.c: New file.
69023         * m4/tmpfile.m4: New file.
69024         * MODULES.html.sh (func_all_modules): New section "Input/output".
69025
69026 2007-02-15  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
69029         (supports_delete_on_close): New function.
69030         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
69031
69032 2007-02-14  Bruno Haible  <bruno@clisp.org>
69033
69034         * modules/mbspcasecmp-tests: New file.
69035         * tests/test-mbspcasecmp.sh: New file.
69036         * tests/test-mbspcasecmp.c: New file.
69037
69038         New module mbspcasecmp.
69039         * modules/mbspcasecmp: New file.
69040         * lib/mbspcasecmp.c: New file.
69041         * lib/string_.h (strncasecmp): Change warning message.
69042         (mbspcasecmp): New declaration.
69043         * m4/mbspcasecmp.m4: New file.
69044         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69045         GNULIB_MBSPCASECMP.
69046         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
69047         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
69048
69049 2007-02-14  Bruno Haible  <bruno@clisp.org>
69050
69051         * modules/mbsncasecmp-tests: New file.
69052         * tests/test-mbsncasecmp.sh: New file.
69053         * tests/test-mbsncasecmp.c: New file.
69054
69055         New module mbsncasecmp.
69056         * modules/mbsncasecmp: New file.
69057         * lib/mbsncasecmp.c: New file.
69058         * lib/string_.h (mbsncasecmp): New declaration.
69059         * m4/mbsncasecmp.m4: New file.
69060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69061         GNULIB_MBSNCASECMP.
69062         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
69063         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
69064
69065 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
69068         Verify that it doesn't overlap with our flags.
69069         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
69070         do not have the desired effect in multibyte locales; instead, use
69071         mbscasecmp.
69072         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
69073         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
69074         we don't require GNU fnmatch ourselves (if our users require it, they
69075         should do so explicitly).
69076
69077         Fix regex code so it doesn't rely on strcasecmp.
69078         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
69079         Otherwise, include gnulib's langinfo.h.
69080         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
69081         undesirable behavior in non-C locales.  Instead, rely on localecharset.
69082         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
69083         * modules/regex (FILES): Remove m4/codeset.m4.
69084         (Depends-on): Add localcharset.  Remove strcase.
69085
69086 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69087
69088         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
69089         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
69090
69091 2007-02-13  Bruno Haible  <bruno@clisp.org>
69092
69093         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
69094         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69095
69096 2007-02-12  Bruno Haible  <bruno@clisp.org>
69097
69098         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69099         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
69100         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
69101         time warning rather than a link error.
69102
69103 2007-02-12  Bruno Haible  <bruno@clisp.org>
69104
69105         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
69106         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
69107         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69108
69109 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69110
69111         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
69112         args, not 2.
69113
69114 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
69115
69116         New module 'time', so that apps can include <time.h> as per
69117         POSIX and GNU instead of separate include files like time_r.h
69118         and timegm.h.  This implementation tries out a simpler approach
69119         for replacing decls in standard include files (as compared to
69120         the string module), somewhat as an experiment.
69121
69122         * config/srclist.txt: Comment out mktime.c for now.
69123         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
69124         since it doesn't apply any more.  Use generic wording instead.
69125         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
69126         'time'.
69127         * lib/time_.h, m4/time_h.m4, modules/time: New files.
69128         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
69129         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
69130         Don't include <sys/types.h>; no longer needed since we assume C89.
69131         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
69132         * lib/strftime.c: Likewise.
69133         * lib/time_r.c: Likewise.
69134         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
69135         * lib/nanosleep.c: Include <time.h> first, to check interface.
69136         * lib/strptime.c: Likewise.
69137         * lib/time_r.c: Likewise.
69138         * lib/timegm.c: Likewise.
69139         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
69140         needed.
69141         * lib/timegm.c: Don't include timegm.h; no longer needed.
69142         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
69143         time.h now handles any problems in that area.
69144         (struct timespec, nanosleep): Remove; time.h now arranges for these.
69145         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
69146         that time.h defines struct timespec.
69147         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
69148         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
69149         handles that.
69150         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
69151         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
69152         needed.  Set REPLACE_LOCALTIME.
69153         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
69154         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
69155         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
69156         nanosleep; time_h.m4 now does that.  Don't require
69157         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
69158         module handles this now.
69159         * modules/getdate (Depends-on): Remove timespec.  Add time.
69160         * modules/nanosleep (Depends-on): Likewise.
69161         * modules/stat-time (Depends-on): Likewise.
69162         * modules/nanosleep (Include): Include time.h, not timespec.h.
69163         * modules/strptime (Files): Remove lib/strptime.h.
69164         (Depends-on): Add extensions, time.
69165         (Include): Include time.h, not strptime.h.
69166         * modules/time_r (Files): Remove lib/time_r.h.
69167         (Depends-on): Add time.
69168         (Include): Include time.h, not time_r.h.
69169         * modules/timegm: Likewise.
69170         * modules/timespec (Description): Now does timespec-related decls
69171         of our own, instead of struct timespec itself.
69172         (Depends-on): Add time; remove extensions.
69173         (Maintainer): Add self.
69174         * modules/utimecmp (Depends-on): Add time; remove timespec.
69175         * modules/utimens (Depends-on): Likewise.
69176         * modules/xnanosleep (Depends-on): Likewise.
69177
69178 2007-02-11  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/c-strstr.c: Include allocsa.h.
69181         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69182         * lib/c-strcasestr.c: Include allocsa.h.
69183         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69184         * lib/strcasestr.c: Include allocsa.h.
69185         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
69186         * lib/mbsstr.c: Include allocsa.h.
69187         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69188         allocsa/freesa instead of malloc/free.
69189         * lib/mbscasestr.c: Include allocsa.h.
69190         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
69191         allocsa/freesa instead of malloc/free.
69192         * modules/c-strstr (Depends-on): Add allocsa.
69193         * modules/c-strcasestr (Depends-on): Likewise.
69194         * modules/strcasestr (Depends-on): Likewise.
69195         * modules/mbsstr (Depends-on): Likewise.
69196         * modules/mbscasestr (Depends-on): Likewise.
69197
69198 2007-02-11  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
69201
69202         * modules/mbsspn-tests: New file.
69203         * tests/test-mbsspn.sh: New file.
69204         * tests/test-mbsspn.c: New file.
69205
69206 2007-02-11  Bruno Haible  <bruno@clisp.org>
69207
69208         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
69209
69210         * modules/mbspbrk-tests: New file.
69211         * tests/test-mbspbrk.sh: New file.
69212         * tests/test-mbspbrk.c: New file.
69213
69214 2007-02-11  Bruno Haible  <bruno@clisp.org>
69215
69216         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
69217         unneeded cast.
69218
69219         * modules/mbscspn-tests: New file.
69220         * tests/test-mbscspn.sh: New file.
69221         * tests/test-mbscspn.c: New file.
69222
69223 2007-02-11  Bruno Haible  <bruno@clisp.org>
69224
69225         * modules/mbscasecmp-tests: New file.
69226         * tests/test-mbscasecmp.sh: New file.
69227         * tests/test-mbscasecmp.c: New file.
69228
69229 2007-02-11  Bruno Haible  <bruno@clisp.org>
69230
69231         Ensure O(n) worst-case complexity of mbscasestr.
69232         * lib/mbscasestr.c: Include stdbool.h.
69233         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69234         functions.
69235         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
69236         the bookkeeping indicates that it's worth it.
69237         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
69238
69239         * modules/mbscasestr-tests: New file.
69240         * tests/test-mbscasestr1.c: New file.
69241         * tests/test-mbscasestr2.sh: New file.
69242         * tests/test-mbscasestr2.c: New file.
69243         * tests/test-mbscasestr3.sh: New file.
69244         * tests/test-mbscasestr3.c: New file.
69245         * tests/test-mbscasestr4.sh: New file.
69246         * tests/test-mbscasestr4.c: New file.
69247         * m4/locale-tr.m4: New file.
69248
69249 2007-02-11  Bruno Haible  <bruno@clisp.org>
69250
69251         Ensure O(n) worst-case complexity of mbsstr.
69252         * lib/mbsstr.c: Include stdbool.h.
69253         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
69254         functions.
69255         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
69256         bookkeeping indicates that it's worth it.
69257         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
69258
69259         * modules/mbsstr-tests: New file.
69260         * tests/test-mbsstr1.c: New file.
69261         * tests/test-mbsstr2.sh: New file.
69262         * tests/test-mbsstr2.c: New file.
69263         * tests/test-mbsstr3.sh: New file.
69264         * tests/test-mbsstr3.c: New file.
69265         * m4/locale-fr.m4: New file.
69266
69267 2007-02-11  Bruno Haible  <bruno@clisp.org>
69268
69269         * lib/mbsrchr.c (mbsrchr): Fix bug.
69270
69271         * modules/mbsrchr-tests: New file.
69272         * tests/test-mbsrchr.sh: New file.
69273         * tests/test-mbsrchr.c: New file.
69274
69275 2007-02-11  Bruno Haible  <bruno@clisp.org>
69276
69277         * lib/mbschr.c (mbschr): Fix bug.
69278
69279         * modules/mbschr-tests: New file.
69280         * tests/test-mbschr.sh: New file.
69281         * tests/test-mbschr.c: New file.
69282         * m4/locale-zh.m4: New file.
69283
69284 2007-02-11  Bruno Haible  <bruno@clisp.org>
69285
69286         Support for copying multibyte string iterators.
69287         * lib/mbiter.h: Include <string.h>.
69288         (mbiter_multi_copy): New function.
69289         (mbi_copy): New macro.
69290         * lib/mbuiter.h: Include <string.h>.
69291         (mbuiter_multi_copy): New function.
69292         (mbui_copy): New macro.
69293
69294 2007-02-11  Bruno Haible  <bruno@clisp.org>
69295
69296         New module mbslen.
69297         * modules/mbslen: New file.
69298         * lib/mbslen.c: New file.
69299         * lib/string_.h (mbslen): New declaration.
69300         * m4/mbslen.m4: New file.
69301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69302         GNULIB_MBSLEN.
69303         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
69304         * MODULES.html.sh (Internationalization functions): Add mbslen.
69305
69306 2007-02-11  Bruno Haible  <bruno@clisp.org>
69307
69308         Ensure O(n) worst-case complexity of strcasestr substitute.
69309         * lib/strcasestr.c: Include stdbool.h.
69310         (knuth_morris_pratt): New function.
69311         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69312         bookkeeping indicates that it's worth it.
69313         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
69314
69315         * modules/strcasestr-tests: New file.
69316         * tests/test-strcasestr.c: New file.
69317
69318 2007-02-11  Bruno Haible  <bruno@clisp.org>
69319
69320         Ensure O(n) worst-case complexity of c_strcasestr.
69321         * lib/c-strcasestr.c: Include stdbool.h, string.h.
69322         (knuth_morris_pratt): New function.
69323         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
69324         the bookkeeping indicates that it's worth it.
69325         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
69326
69327         * modules/c-strcasestr-tests: New file.
69328         * tests/test-c-strcasestr.c: New file.
69329
69330 2007-02-11  Bruno Haible  <bruno@clisp.org>
69331
69332         Ensure O(n) worst-case complexity of c_strstr.
69333         * lib/c-strstr.c: Include stdbool.h, string.h.
69334         (knuth_morris_pratt): New function.
69335         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
69336         bookkeeping indicates that it's worth it.
69337         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
69338
69339         * lib/c-strstr.c: Complete rewrite for maintainability.
69340
69341         * modules/c-strstr-tests: New file.
69342         * tests/test-c-strstr.c: New file.
69343
69344 2007-02-11  Bruno Haible  <bruno@clisp.org>
69345
69346         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
69347         5.2.1 and earlier, whereby \055 was treated just like the range
69348         delimiter '-'.
69349         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
69350
69351 2007-02-08  Bruno Haible  <bruno@clisp.org>
69352
69353         * modules/regex (Depends-on): Add stdbool.
69354         Reported by Dalibor Topic <robilad@kaffe.org>.
69355
69356 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69357
69358         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
69359         Prefer returning from main to exiting from it.
69360         Remove unnecessary parens after sizeof.
69361
69362 2007-02-05  Bruno Haible  <bruno@clisp.org>
69363
69364         New module mbssep.
69365         * modules/mbssep: New file.
69366         * lib/mbssep.c: New file.
69367         * lib/string_.h (strsep): Add a conditional link warning.
69368         (mbssep): New declaration.
69369         * m4/mbssep.m4: New file.
69370         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69371         GNULIB_MBSSEP.
69372         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
69373         * MODULES.html.sh (Internationalization functions): Add mbssep.
69374
69375 2007-02-05  Bruno Haible  <bruno@clisp.org>
69376
69377         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
69378         Optimize search in case of 1 delimiter.
69379
69380 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69381
69382         * lib/acl.h: Include sys/types.h before sys/acl.h.
69383
69384 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
69385
69386         Merge upstream fix for glibc bugzilla #3957:
69387
69388         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
69389
69390         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
69391         bit for RE_HAT_LISTS_NOT_NEWLINE.
69392         (build_charclass_op): Remove bogus comment.
69393
69394 2007-02-05  Simon Josefsson  <simon@josefsson.org>
69395
69396         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
69397
69398 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69399
69400         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
69401         * lib/memmem.c [!defined _LIBC]: Include config.h.
69402
69403 2007-02-04  Bruno Haible  <bruno@clisp.org>
69404
69405         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
69406         warning message.
69407
69408 2007-02-04  Bruno Haible  <bruno@clisp.org>
69409
69410         New module mbstok_r.
69411         * modules/mbstok_r: New file.
69412         * lib/mbstok_r.c: New file.
69413         * lib/string_.h (strtok_r): Change argument names to match the
69414         comments. Add a conditional link warning.
69415         (mbstok_r): New declaration.
69416         * m4/mbstok_r.m4: New file.
69417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69418         GNULIB_MBSTOK_R.
69419         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
69420         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
69421
69422 2007-02-04  Bruno Haible  <bruno@clisp.org>
69423
69424         New module mbsspn.
69425         * modules/mbsspn: New file.
69426         * lib/mbsspn.c: New file.
69427         * lib/string_.h (strspn): Add a conditional link warning.
69428         (mbsspn): New declaration.
69429         * m4/mbsspn.m4: New file.
69430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69431         GNULIB_MBSSPN.
69432         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
69433         * MODULES.html.sh (Internationalization functions): Add mbsspn.
69434
69435 2007-02-04  Bruno Haible  <bruno@clisp.org>
69436
69437         New module mbspbrk.
69438         * modules/mbspbrk: New file.
69439         * lib/mbspbrk.c: New file.
69440         * lib/string_.h (strpbrk): Add a conditional link warning.
69441         (mbspbrk): New declaration.
69442         * m4/mbspbrk.m4: New file.
69443         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69444         GNULIB_MBSPBRK.
69445         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
69446         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
69447
69448 2007-02-04  Bruno Haible  <bruno@clisp.org>
69449
69450         New module mbscspn.
69451         * modules/mbscspn: New file.
69452         * lib/mbscspn.c: New file.
69453         * lib/string_.h (strcspn): Add a conditional link warning.
69454         (mbscspn): New declaration.
69455         * m4/mbscspn.m4: New file.
69456         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69457         GNULIB_MBSCSPN.
69458         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
69459         * MODULES.html.sh (Internationalization functions): Add mbscspn.
69460
69461 2007-02-04  Bruno Haible  <bruno@clisp.org>
69462
69463         New module mbscasestr, reduced goal of strcasestr.
69464         * modules/mbscasestr: New file.
69465         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
69466         (mbscasestr): Renamed from strcasestr.
69467         * lib/strcasestr.c: Don't include mbuiter.h.
69468         (strcasestr): Remove support for multibyte locales.
69469         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
69470         Change the conditional link warning.
69471         (mbscasestr): New declaration.
69472         * m4/mbscasestr.m4: New file.
69473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
69474         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
69475         REPLACE_STRCASESTR.
69476         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
69477         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69478         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69479         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
69480         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
69481         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
69482         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
69483         (Depends-on): Remove mbuiter.
69484         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
69485
69486 2007-02-04  Bruno Haible  <bruno@clisp.org>
69487
69488         Simplify handling of strncasecmp.
69489         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
69490         the conditional link warning.
69491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69492         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
69493         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
69494         * modules/strcase (configure.ac): Don't invoke
69495         gl_STRING_MODULE_INDICATOR.
69496         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
69497
69498 2007-02-04  Bruno Haible  <bruno@clisp.org>
69499
69500         New module mbscasecmp, reduced goal of strcasecmp.
69501         * modules/mbscasecmp: New file.
69502         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
69503         (mbscasecmp): Renamed from strcasecmp.
69504         * lib/strcasecmp.c: Don't include mbuiter.h.
69505         (strcasecmp): Remove support for multibyte locales.
69506         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
69507         Change the conditional link warning.
69508         (mbscasecmp): New declaration.
69509         * m4/mbscasecmp.m4: New file.
69510         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
69511         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
69512         REPLACE_STRCASECMP.
69513         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
69514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69515         GNULIB_MBSCASECMP.
69516         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
69517         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
69518         * modules/strcase (Files): Remove m4/mbrtowc.m4.
69519         (Depends-on): Remove mbuiter.
69520         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
69521
69522 2007-02-04  Bruno Haible  <bruno@clisp.org>
69523
69524         New module mbsstr. Remove module strstr.
69525         * modules/mbsstr: New file.
69526         * modules/strstr: Remove file.
69527         * lib/mbsstr.c: Renamed from lib/strstr.c.
69528         (mbsstr): Renamed from strstr.
69529         * lib/string_.h (strstr): Remove declaration. Change the conditional
69530         link warning.
69531         (mbsstr): New declaration.
69532         * m4/mbsstr.m4: New file.
69533         * m4/strstr.m4: Remove file.
69534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69535         REPLACE_STRSTR.
69536         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
69537         Don't initialize GNULIB_STRSTR.
69538         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
69539         substitute GNULIB_STRSTR and REPLACE_STRSTR.
69540         * MODULES.html.sh (Internationalization functions): Add mbsstr.
69541         (Support for systems lacking ANSI C 89): Remove strstr.
69542
69543 2007-02-04  Bruno Haible  <bruno@clisp.org>
69544
69545         New module mbsrchr.
69546         * modules/mbsrchr: New file.
69547         * lib/mbsrchr.c: New file.
69548         * lib/string_.h (strrchr): Add a conditional link warning.
69549         (mbsrchr): New declaration.
69550         * m4/mbsrchr.m4: New file.
69551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69552         GNULIB_MBSRCHR.
69553         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
69554         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
69555
69556 2007-02-04  Bruno Haible  <bruno@clisp.org>
69557
69558         New module mbschr.
69559         * modules/mbschr: New file.
69560         * lib/mbschr.c: New file.
69561         * lib/string_.h (strchr): Add a conditional link warning.
69562         (mbschr): New declaration.
69563         * m4/mbschr.m4: New file.
69564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
69565         GNULIB_MBSCHR.
69566         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
69567         * MODULES.html.sh (Internationalization functions): Add mbschr.
69568
69569 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
69572
69573         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
69574
69575 2007-02-04  Bruno Haible  <bruno@clisp.org>
69576
69577         New module description section 'configure.ac-early'.
69578         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
69579         (func_get_autoconf_early_snippet): New function.
69580         (func_import, func_create_testdir): Use it. Remove special cases for
69581         modules 'extensions' and 'lock'.
69582         * modules/extensions (configure.ac-early): Require
69583         gl_USE_SYSTEM_EXTENSIONS.
69584         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
69585
69586 2007-02-04  Bruno Haible  <bruno@clisp.org>
69587
69588         Make use of gcj-4.3's -fsource and -ftarget option.
69589         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
69590         and if so try the options -fsource and -ftarget.
69591         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
69592         source_version, ftarget_option, target_version arguments.
69593         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
69594         (is_envjavac_oldgcj_14_14_usable): Renamed from
69595         is_envjavac_gcj_14_14_usable.
69596         (is_envjavac_oldgcj_14_13_usable): Renamed from
69597         is_envjavac_gcj_14_13_usable.
69598         (is_gcj_present): Update.
69599         (is_gcj_43, is_gcj43_usable): New functions.
69600         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
69601         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
69602         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
69603         try the options -fsource and -ftarget.
69604
69605 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69606
69607         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
69608         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
69609         larger value.
69610
69611 2007-02-03  Jim Meyering  <jim@meyering.net>
69612
69613         Give tools a better chance to allocate space for very large buffers.
69614         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
69615
69616         Make pwd and readlink work also when run with an unreadable parent dir
69617         on systems with openat support.
69618         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
69619         provided getcwd function, even when we have openat support.
69620         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
69621
69622 2007-02-02  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
69625         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
69626         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
69627         portability problems if one of these functions is only used on specific
69628         platforms.
69629         Reported by Paul Eggert.
69630
69631 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
69634         is causing more trouble than it's curing.
69635         * lib/regex_internal.h (__mempcpy): Remove.
69636         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
69637         (and make the code a tad smaller to boot).
69638         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
69639
69640 2007-02-02  Jim Meyering  <jim@meyering.net>
69641
69642         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
69643         section, not in the Makefile.am: one.
69644
69645 2007-02-02  Eric Blake  <ebb9@byu.net>
69646
69647         * lib/strchrnul.c: Always include config.h first.
69648
69649         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
69650         gnulib strstr is not necessary here.
69651
69652 2007-02-02  Simon Josefsson  <simon@josefsson.org>
69653
69654         * m4/socklen.m4: Fix typo.
69655
69656 2007-02-02  Eric Blake  <ebb9@byu.net>
69657
69658         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
69659         * modules/netinet_in (Makefile.am): Likewise.
69660
69661 2007-02-01  Bruno Haible  <bruno@clisp.org>
69662
69663         * lib/string_.h (GL_LINK_WARNING): New macro.
69664         (strcasecmp, strstr, strcasestr): If provided by the system,
69665         conditionally define as a macro that leads to a warning instead of to
69666         an error.
69667         (strncasecmp): Conditionally define as a macro that leads to a warning.
69668
69669 2007-02-01  Karl Berry  <karl@gnu.org>
69670
69671         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
69672
69673 2007-02-01  Bruno Haible  <bruno@clisp.org>
69674
69675         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
69676         renamings.
69677
69678 2007-02-01  Eric Blake  <ebb9@byu.net>
69679
69680         * modules/regex (Depends-on): Revert dependence on mempcpy.
69681         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
69682         module's definition of mempcpy.
69683         Reported by Paul Eggert.
69684
69685 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69686
69687         * lib/string_.h: If the gnulib module XYZ is not present, undefine
69688         the symbol XYZ before redefining it.  This fixes a problem with
69689         programs that don't use XYZ, when compiled on systems that define
69690         XYZ to something else.
69691
69692 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
69693
69694         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
69695         occurs when "mkdir -m foo" creates a setgid directory that is (1)
69696         writeable to group or other and (2) is intended to have a special
69697         mode bit that is set or cleared.  In such a case, the directory
69698         should be neither group- nor other-writeable until the special
69699         mode bits are right.
69700
69701 2007-01-31  Eric Blake  <ebb9@byu.net>
69702
69703         * modules/mountlist (Depends-on): Add strstr.
69704
69705         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
69706         bug.
69707         * modules/string (Makefile.am): Remove redundant replacement.
69708         * modules/regex (Depends-on): Add mempcpy.
69709
69710 2007-01-31  Bruno Haible  <bruno@clisp.org>
69711
69712         New module description field 'Link'.
69713         * gnulib-tool (func_usage): Document --extract-link-directive.
69714         (sed_extract_prog): Recognize 'Link' directive.
69715         (func_get_link_directive): New function.
69716         (func_import): Show summary of link directives.
69717         Handle --extract-link-directive option.
69718         * modules/acl (Link): New section.
69719         * modules/clock-time (Link): New section.
69720         * modules/euidaccess (Link): New section.
69721         * modules/gettext (Link): New section.
69722         * modules/iconv (Link): New section.
69723         * modules/lock (Link): New section.
69724         * modules/nanosleep (Link): New section.
69725         * modules/readline (Link): New section.
69726
69727 2007-01-27  Bruno Haible  <bruno@clisp.org>
69728
69729         Enforce the use of gnulib modules for unportable <string.h> functions.
69730         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
69731         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
69732         (gl_HEADER_STRING_H_BODY): Require it.
69733         * lib/string_.h: If the gnulib module XYZ is not present, redefine
69734         the symbol XYZ to one that gives a link error.
69735         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
69736         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
69737         * modules/mempcpy (configure.ac): Likewise.
69738         * modules/memrchr (configure.ac): Likewise.
69739         * modules/stpcpy (configure.ac): Likewise.
69740         * modules/stpncpy (configure.ac): Likewise.
69741         * modules/strcase (configure.ac): Likewise.
69742         * modules/strcasestr (configure.ac): Likewise.
69743         * modules/strchrnul (configure.ac): Likewise.
69744         * modules/strdup (configure.ac): Likewise.
69745         * modules/strndup (configure.ac): Likewise.
69746         * modules/strnlen (configure.ac): Likewise.
69747         * modules/strpbrk (configure.ac): Likewise.
69748         * modules/strsep (configure.ac): Likewise.
69749         * modules/strstr (configure.ac): Likewise.
69750         * modules/strtok_r (configure.ac): Likewise.
69751
69752 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
69753
69754         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
69755
69756 2007-01-30  Jim Meyering  <jim@meyering.net>
69757
69758         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
69759
69760 2007-01-29  Bruno Haible  <bruno@clisp.org>
69761
69762         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
69763         * lib/execute.c: Likewise.
69764         * lib/pipe.c: Likewise.
69765         * lib/printf-args.h: Likewise.
69766         * lib/printf-args.c: Likewise.
69767         * lib/printf-parse.c: Likewise.
69768         * lib/vasnprintf.c: Likewise.
69769
69770 2007-01-29  Eric Blake  <ebb9@byu.net>
69771
69772         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
69773         declaration.
69774
69775 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
69776
69777         * lib/strptime.h (strptime): Use 'restrict' for args where
69778         POSIX requires this.
69779         * lib/strptime.c (strptime): Likewise.
69780         Change license notice from LGPL to GPL, since gnulib-tool will
69781         change this as needed.
69782         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
69783         defined.
69784         Include "strptime.h" first, to check interface.
69785         Do not #undef _LIBC and _NL_CURRENT.
69786         Do not include <stdlib.h>; no longer needed.
69787         Include "time_r.h" and declare ptime_locale_status
69788         only if _LIBC is not defined.
69789         (__P): Remove unused macro.
69790         (match_string): Bring back glibc version, but use it only if _LIBC
69791         is defined.
69792         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
69793         Remove unnecessary assertion and abort() call.
69794         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
69795         * m4/strptime.m4: Fix serial number comment.
69796         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
69797         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
69798         (Depends-on): Add time_r.
69799
69800 2007-01-29  Bruno Haible  <bruno@clisp.org>
69801
69802         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69803         strptime.
69804         * modules/strptime (Depends-on): Add stdbool.
69805         * lib/strptime.h: Include <time.h> always. Add comments.
69806
69807 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69808
69809         * modules/strptime: New file.
69810         * lib/strptime.h: New file.
69811         * lib/strptime.c: New file.
69812         * m4/strptime.m4: New file.
69813
69814 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69815
69816         * MODULES.html.sh: New module mpsort.
69817         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69818
69819         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69820         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69821         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69822         All uses changed.
69823         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69824         All uses changed.
69825         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69826         to _Restrict_.
69827         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69828         the parameter matches the prototype.
69829
69830 2007-01-28  Jim Meyering  <jim@meyering.net>
69831
69832         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69833         sys/time.h here, reverting that part of the previous patch:
69834         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69835
69836 2007-01-28  Bruno Haible  <bruno@clisp.org>
69837
69838         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69839         value of $(SYS_TIME_H).
69840         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69841         remove it conditionally, too. [added by Jim Meyering]
69842         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69843         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69844         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69845         GETTIMEOFDAY_REPLACEMENT to 1.
69846
69847 2007-01-28  Bruno Haible  <bruno@clisp.org>
69848
69849         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69850         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69852         Set UNISTD_H instead of UNISTD_H2.
69853         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69854
69855 2007-01-28  Bruno Haible  <bruno@clisp.org>
69856
69857         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69858         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69859
69860 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69861
69862         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69863         (func_create_testdir): Ensure C locale for `grep' and `tr'
69864         character ranges.
69865         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69866         ACLOCAL_AMFLAGS parsing state machine.
69867
69868 2007-01-27  Bruno Haible  <bruno@clisp.org>
69869
69870         * modules/unistr/base: Update.
69871
69872 2007-01-27  Bruno Haible  <bruno@clisp.org>
69873
69874         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69875         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69876         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69877         modules/unistr/u32-mbtouc.
69878         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69879         * lib/unistr.h: Update.
69880         * lib/linebreak.c: Update.
69881         * modules/unistr/u32-mbtouc: Renamed from
69882         modules/unistr/u32-mbtouc-safe.
69883         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69884         * lib/unistr.h: Update.
69885         * lib/unistr/u32-to-u8.c: Update.
69886         * lib/unistr/u32-to-u16.c: Update.
69887
69888 2007-01-27  Bruno Haible  <bruno@clisp.org>
69889
69890         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69891         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69892         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69893         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69894         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69895         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69896         modules/unistr/u16-mbtouc.
69897         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69898         * lib/unistr.h: Update.
69899         * lib/linebreak.c: Update.
69900         * modules/linebreak: Update.
69901         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69902         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69903         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69904         * modules/unistr/u16-mbtouc: Renamed from
69905         modules/unistr/u16-mbtouc-safe.
69906         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69907         * lib/unistr.h: Update.
69908         * lib/unistr/u16-to-u8.c: Update.
69909         * modules/unistr/u16-to-u8: Update.
69910         * lib/unistr/u16-to-u32.c: Update.
69911         * modules/unistr/u16-to-u32: Update.
69912
69913 2007-01-27  Bruno Haible  <bruno@clisp.org>
69914
69915         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69916         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69917         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69918         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69919         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69920         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69921         modules/unistr/u8-mbtouc.
69922         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69923         * lib/unistr.h: Update.
69924         * lib/striconveh.c: Update.
69925         * modules/striconveh: Update.
69926         * lib/linebreak.c: Update.
69927         * modules/linebreak: Update.
69928         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69929         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69930         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69931         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69932         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69933         * lib/unistr.h: Update.
69934         * lib/striconveh.c: Update.
69935         * modules/striconveh: Update.
69936         * lib/unistr/u8-to-u16.c: Update.
69937         * modules/unistr/u8-to-u16: Update.
69938         * lib/unistr/u8-to-u32.c: Update.
69939         * modules/unistr/u8-to-u32: Update.
69940
69941 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69942
69943         Sync from Libtool.
69944         * lib/argz.c: Do not include strings.h nor memory.h, include
69945         string.h unconditionally.  Patch by Simon Josefsson.
69946
69947 2007-01-27  Bruno Haible  <bruno@clisp.org>
69948
69949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69950         from gl_HEADER_STRING_H_BODY.
69951         (gl_HEADER_STRING_H_BODY): Require it.
69952         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69953         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69954         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69955         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69956         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69957         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69958         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69959         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69960         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69961         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69962         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69963         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69964         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69965         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69966         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69967
69968 2007-01-27  Bruno Haible  <bruno@clisp.org>
69969
69970         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69971         check_PROGRAMS into noinst_PROGRAMS.
69972         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69973         check_PROGRAMS in this case.
69974         (func_import): Set for_test to false.
69975         (func_create_testdir): Set for_test to true.
69976
69977 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69978             Bruno Haible  <bruno@clisp.org>
69979
69980         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69981         (Depends-on): Add string.
69982         (Includes): Use <string.h> instead of strcasestr.h.
69983         * modules/string (Makefile.am): Also substitute the value of
69984         REPLACE_STRCASESTR.
69985         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69986         assume strcasestr is declared in <string.h> not <strings.h>. Also
69987         set REPLACE_STRCASESTR.
69988         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69989         REPLACE_STRCASESTR.
69990         * lib/strcasestr.h: Remove file.
69991         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69992         * lib/string_.h (strcasestr): New declaration.
69993
69994 2007-01-27  Bruno Haible  <bruno@clisp.org>
69995
69996         * lib/string_.h: Use 'extern'.
69997
69998 2007-01-27  Jim Meyering  <jim@meyering.net>
69999
70000         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
70001         of set-but-not-used local, "q".
70002
70003         * lib/mempcpy.c: Include <config.h> before <string.h>.
70004         This fixes a compilation error on HP-UX, due to the system's
70005         "restrict"-using mempcpy prototype.
70006
70007 2007-01-26  Bruno Haible  <bruno@clisp.org>
70008
70009         Small optimization.
70010         * lib/javacomp.c: Include c-strstr.h.
70011          (is_envjavac_gcj): Use c_strstr instead of strstr.
70012         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
70013
70014 2007-01-26  Bruno Haible  <bruno@clisp.org>
70015
70016         * MODULES.html.sh (Unicode string functions): Add the new modules.
70017
70018         * modules/uniconv/u32-strconv-to-locale: New file.
70019         * lib/uniconv/u32-strconv-to-locale.c: New file.
70020
70021         * modules/uniconv/u16-strconv-to-locale: New file.
70022         * lib/uniconv/u16-strconv-to-locale.c: New file.
70023
70024         * modules/uniconv/u8-strconv-to-locale: New file.
70025         * lib/uniconv/u8-strconv-to-locale.c: New file.
70026
70027         * modules/uniconv/u32-strconv-from-locale: New file.
70028         * lib/uniconv/u32-strconv-from-locale.c: New file.
70029
70030         * modules/uniconv/u16-strconv-from-locale: New file.
70031         * lib/uniconv/u16-strconv-from-locale.c: New file.
70032
70033         * modules/uniconv/u8-strconv-from-locale: New file.
70034         * lib/uniconv/u8-strconv-from-locale.c: New file.
70035
70036         * modules/uniconv/u32-strconv-to-enc: New file.
70037         * lib/uniconv/u32-strconv-to-enc.c: New file.
70038         * modules/uniconv/u32-strconv-to-enc-tests: New file.
70039         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
70040
70041         * modules/uniconv/u16-strconv-to-enc: New file.
70042         * lib/uniconv/u16-strconv-to-enc.c: New file.
70043         * lib/uniconv/u-strconv-to-enc.h: New file.
70044         * modules/uniconv/u16-strconv-to-enc-tests: New file.
70045         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
70046
70047         * modules/uniconv/u8-strconv-to-enc: New file.
70048         * lib/uniconv/u8-strconv-to-enc.c: New file.
70049         * modules/uniconv/u8-strconv-to-enc-tests: New file.
70050         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
70051
70052         * modules/uniconv/u32-strconv-from-enc: New file.
70053         * lib/uniconv/u32-strconv-from-enc.c: New file.
70054         * modules/uniconv/u32-strconv-from-enc-tests: New file.
70055         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
70056
70057         * modules/uniconv/u16-strconv-from-enc: New file.
70058         * lib/uniconv/u16-strconv-from-enc.c: New file.
70059         * modules/uniconv/u16-strconv-from-enc-tests: New file.
70060         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
70061
70062         * modules/uniconv/u8-strconv-from-enc: New file.
70063         * lib/uniconv/u8-strconv-from-enc.c: New file.
70064         * lib/uniconv/u-strconv-from-enc.h: New file.
70065         * modules/uniconv/u8-strconv-from-enc-tests: New file.
70066         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
70067
70068         * modules/uniconv/u32-conv-from-enc: New file.
70069         * lib/uniconv/u32-conv-from-enc.c: New file.
70070         * modules/uniconv/u32-conv-from-enc-tests: New file.
70071         * tests/uniconv/test-u32-conv-from-enc.c: New file.
70072
70073         * modules/uniconv/u16-conv-from-enc: New file.
70074         * lib/uniconv/u16-conv-from-enc.c: New file.
70075         * lib/uniconv/u-conv-from-enc.h: New file.
70076         * modules/uniconv/u16-conv-from-enc-tests: New file.
70077         * tests/uniconv/test-u16-conv-from-enc.c: New file.
70078
70079         * modules/uniconv/u8-conv-from-enc: New file.
70080         * lib/uniconv/u8-conv-from-enc.c: New file.
70081         * modules/uniconv/u8-conv-from-enc-tests: New file.
70082         * tests/uniconv/test-u8-conv-from-enc.c: New file.
70083
70084         * modules/uniconv/base: New file.
70085         * lib/uniconv.h: New file.
70086
70087 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * doc/gnulib-tool.texi (Initial import): Update to match current
70090         behavior with strdup module.
70091         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
70092         * lib/memmem.h: Remove; all uses removed.  This is now done
70093         by <string.h>.
70094         * lib/mempcpy.h: Likewise.
70095         * lib/memrchr.h: Likewise.
70096         * lib/stpcpy.h: Likewise.
70097         * lib/stpncpy.h: Likewise.
70098         * lib/strcase.h: Likewise.
70099         * lib/strchrnul.h: Likewise.
70100         * lib/strdup.h: Likewise.
70101         * lib/strndup.h: Likewise.
70102         * lib/strnlen.h: Likewise.
70103         * lib/strpbrk.h: Likewise.
70104         * lib/strsep.h: Likewise.
70105         * lib/strstr.h: Likewise.
70106         * lib/strtok_r.h: Likewise.
70107         * lib/string_.h: New file.
70108         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
70109         Rely on <string.h> instead.
70110         * lib/canon-host.c: Likewise.
70111         * lib/chdir-long.c: Likewise.
70112         * lib/concatpath.c: Likewise.
70113         * lib/exclude.c: Likewise.
70114         * lib/fchdir.c: Likewise.
70115         * lib/getaddrinfo.c: Likewise.
70116         * lib/getcwd.c: Likewise.
70117         * lib/getsubopt.c: Likewise.
70118         * lib/glob.c: Likewise.
70119         * lib/hard-locale.c: Likewise.
70120         * lib/iconvme.c: Likewise.
70121         * lib/javacomp.c: Likewise.
70122         * lib/mempcpy.c: Likewise.
70123         * lib/memrchr.c: Likewise.
70124         * lib/regex_internal.h: Likewise.
70125         * lib/stpncpy.c: Likewise.
70126         * lib/strcasecmp.c: Likewise.
70127         * lib/strchrnul.c: Likewise.
70128         * lib/strdup.c: Likewise.
70129         * lib/striconv.c: Likewise.
70130         * lib/striconveh.c: Likewise.
70131         * lib/striconveha.c: Likewise.
70132         * lib/strncasecmp.c: Likewise.
70133         * lib/strndup.c: Likewise.
70134         * lib/strnlen.c: Likewise.
70135         * lib/strsep.c: Likewise.
70136         * lib/strstr.c: Likewise.
70137         * lib/strtok_r.c: Likewise.
70138         * lib/userspec.c: Likewise.
70139         * lib/w32spawn.h: Likewise.
70140         * lib/xstrndup.c: Likewise.
70141         * lib/mountlist.c (strstr): Remove decl.
70142         * m4/string_h.m4: New file.
70143         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
70144         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
70145         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
70146         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
70147         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
70148         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
70149         Set REPLACE_STRCASECMP if necessary.
70150         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
70151         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
70152         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
70153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
70154         HAVE_DECL_STRDUP if necessary.
70155         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
70156         since gl_FUNC_STRNDUP does that now.
70157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
70158         Check for decl here...
70159         (gl_PREREQ_STRNLEN): ... not here.
70160         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
70161         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
70162         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
70163         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
70164         necessary.
70165         * modules/string: New file.
70166         * modules/memmem (Files): Remove special-purpose include file.
70167         (Depends-on): Add string.
70168         (Include): Include <string.h>, not the removed file.
70169         * modules/mempcpy: Likewise.
70170         * modules/memrchr: Likewise.
70171         * modules/stpcpy: Likewise.
70172         * modules/stpncpy: Likewise.
70173         * modules/strcase: Likewise.
70174         * modules/strchrnul: Likewise.
70175         * modules/strdup: Likewise.
70176         * modules/strndup: Likewise.
70177         * modules/strnlen: Likewise.
70178         * modules/strpbrk: Likewise.
70179         * modules/strsep: Likewise.
70180         * modules/strstr: Likewise.
70181         * modules/strtok_r: Likewise.
70182         * tests/test-dirname.c: Don't include "strdup.h", since
70183         <string.h> now suffices.
70184         * tests/test-memmem.c: Don't include "memmem.h", since
70185         <string.h> now suffices.
70186
70187 2007-01-25  Bruno Haible  <bruno@clisp.org>
70188
70189         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
70190         *resultp is 0.
70191
70192         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
70193         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
70194         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
70195         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
70196
70197         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
70198         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
70199         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
70200         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
70201         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
70202         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
70203
70204 2007-01-24  Bruno Haible  <bruno@clisp.org>
70205
70206         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
70207         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
70208         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
70209         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
70210         gl_FUNC_FTS_CORE.
70211         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
70212         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
70213         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70214         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
70215         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
70216         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
70217         gl_FUNC_FCHOWNAT.
70218         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
70219         gl_FUNC_STRFTIME.
70220         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
70221         Reported by Ralf Wildenhues.
70222
70223 2007-01-24  Bruno Haible  <bruno@clisp.org>
70224
70225         Drop AC_REQUIRE calls that are redundant with the module dependencies.
70226         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
70227         gl_GETADDRINFO.
70228         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
70229         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
70230         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
70231
70232 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
70233
70234         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
70235         Don't use 'exit'; just return from 'main'.
70236         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
70237
70238         * lib/fnmatch_.h: Readjust white space and comments to match
70239         glibc, to avoid spurious diffs.
70240
70241 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
70244         2004-12-01 change by Jakub Jelinek, since this code won't compile
70245         if !LIBC.  Problem reported by Bob Proulx.
70246
70247 2007-01-23  Bruno Haible  <bruno@clisp.org>
70248
70249         * lib/striconveh.c: Include c-strcaseeq.h.
70250         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
70251         * modules/striconveh (Depends-on): Add c-strcaseeq.
70252
70253 2007-01-23  Bruno Haible  <bruno@clisp.org>
70254
70255         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
70256
70257         * modules/c-strcaseeq: New file.
70258         * lib/c-strcaseeq.h: New file.
70259
70260         * modules/streq: New file.
70261         * lib/streq.h: New file.
70262
70263 2007-01-23  Bruno Haible  <bruno@clisp.org>
70264
70265         * modules/striconveha-tests: New file.
70266         * tests/test-striconveha.c: New file.
70267
70268         * lib/striconveha.h: Include <stdbool.h>.
70269         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
70270         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
70271         (mem_iconveha_notranslit): Renamed from mem_iconveha.
70272         (mem_iconveha): New function.
70273         (str_iconveha_notranslit): Renamed from str_iconveha.
70274         (str_iconveha): New function.
70275         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
70276         c-strcase.
70277
70278 2007-01-23  Bruno Haible  <bruno@clisp.org>
70279
70280         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
70281         encodings without forgiving before trying any encoding with handler.
70282         (str_iconveha): Try all encodings without forgiving before trying any
70283         encoding with handler.
70284
70285 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
70286
70287         Import the following changes from libc.
70288
70289         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
70290
70291         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
70292
70293         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
70294
70295         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
70296         normal_bracket label.
70297
70298         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
70299
70300         [BZ #361]
70301         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
70302         to normal_bracket after fetching the next character.
70303
70304 2007-01-22  Bruno Haible  <bruno@clisp.org>
70305
70306         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
70307         argument.
70308         * lib/striconveh.c (iconv_carefully_1): New function.
70309         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
70310         argument.
70311         (str_cd_iconveh): Update.
70312         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
70313         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
70314         * tests/test-striconveh.c (MAGIC): New macro.
70315         (new_offsets): New function.
70316         (main): Test call with and without offsets.
70317
70318 2007-01-22  Bruno Haible  <bruno@clisp.org>
70319
70320         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
70321         * modules/sys_select (Makefile.am): Likewise.
70322         * modules/sys_socket (Makefile.am): Likewise.
70323         * modules/sys_time (Makefile.am): Likewise.
70324
70325 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
70326
70327         * modules/gettimeofday (License): Change from GPL to LGPL, since
70328         gettimeofday is a library function.
70329
70330 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70331
70332         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
70333
70334 2007-01-21  Bruno Haible  <bruno@clisp.org>
70335
70336         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
70337
70338 2007-01-21  Bruno Haible  <bruno@clisp.org>
70339
70340         * modules/striconveha: New file.
70341         * lib/striconveha.h: New file.
70342         * lib/striconveha.c: New file.
70343         * MODULES.html.sh (Internationalization functions): Add striconveha.
70344         * lib/striconv.c (str_iconv): Optimize the case of an empty input
70345         string.
70346         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
70347
70348 2007-01-21  Bruno Haible  <bruno@clisp.org>
70349
70350         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
70351         * lib/striconveh.c (str_iconveh): Likewise.
70352
70353 2007-01-21  Bruno Haible  <bruno@clisp.org>
70354
70355         * lib/striconveh.h (mem_iconveh): New declaration.
70356         * lib/striconveh.c (mem_iconveh): New function.
70357         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
70358
70359 2007-01-21  Bruno Haible  <bruno@clisp.org>
70360
70361         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
70362
70363         * lib/striconveh.h (mem_cd_iconveh): Change specification.
70364         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
70365         original result buffer.
70366         (str_cd_iconveh): Update.
70367         * tests/test-striconveh.c (main): Update.
70368
70369         * lib/striconv.h (mem_cd_iconv): Change specification.
70370         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
70371         result buffer.
70372         (str_cd_iconv): Update.
70373         * tests/test-striconv.c (main): Update.
70374
70375 2007-01-21  Bruno Haible  <bruno@clisp.org>
70376
70377         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
70378
70379 2007-01-20  Jim Meyering  <jim@meyering.net>
70380
70381         * lib/userspec.c (parse_with_separator): If a user or group string
70382         starts with "+", skip the corresponding name-to-ID look-up, since
70383         such a look-up must fail: user and group names may not include "+".
70384
70385 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * lib/poll.c: Include sys/time.h and time.h unconditionally,
70388         since we now assume the sys_time module.
70389         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
70390         check for sys/time.h; no longer needed.
70391         * modules/poll (Depends-on): Depend on sys_time.
70392
70393 2007-01-18  Bruno Haible  <bruno@clisp.org>
70394
70395         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
70396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70397
70398         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
70399         gettimeofday.
70400
70401         * tests/test-gettimeofday.c: Include <time.h>.
70402         (dummy): Remove variable.
70403
70404         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
70405         gl_HEADER_SYS_TIME_H.
70406         (gl_HEADER_SYS_TIME_H): New macro.
70407
70408         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
70409         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70410         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
70411         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
70412         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
70414         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
70415         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70416         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
70417         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
70418         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70419
70420         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
70421         last change; it caused a compilation error when cross-compiling to
70422         Cygwin.
70423
70424 2007-01-18  Jim Meyering  <jim@meyering.net>
70425
70426         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
70427         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
70428         than the race-prone "test -d sys || mkdir sys".
70429         (configure.ac): Use AC_PROG_MKDIR_P.
70430         * modules/sys_select: Likewise.
70431         * modules/sys_socket: Likewise.
70432         * modules/sys_time: Likewise.
70433
70434 2007-01-18  Eric Blake  <ebb9@byu.net>
70435
70436         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
70437         replace gettimeofday.
70438         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
70439         name, to avoid infinite recursion.
70440
70441 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
70442
70443         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
70444         module sys_time.
70445         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
70446         assume timespec.h defines struct timeval.
70447         * lib/settime.c: Likewise.
70448         * lib/utimens.c: Likewise.
70449         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
70450         since we now assume the gettimeofday module.
70451         * lib/tempname.c (__gen_tempname): Likewise.
70452         * lib/gettimeofday.h: Remove.
70453         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
70454         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
70455         Include <time.h>, for 'time()'.
70456         (localtime_buffer_addr): Also use this workaround if
70457         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
70458         to simplify the uses.  All uses changed.
70459         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
70460         that #undef is inside {}, and 'const' follows type name consistently.
70461         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
70462         (gettimeofday): Do not use the maximum possible value for
70463         tv->tv_usec, since that might break usages other than ls.c.
70464         Instead, we'll leave ls.c alone.  This undoes today's patch
70465         by Bruno.  Add a compile-time warning for 1s-clock resolution;
70466         we've never observed the problem but might as well keep the
70467         canary.
70468         * lib/nanosleep.c: Include timespec.h first, for interface check.
70469         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
70470         now assume the sys_time module.
70471         * lib/tempname.c: Likewise.
70472         * lib/timespec.h: Likewise.
70473         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
70474         needed.
70475         * lib/strftime.c: Likewise.
70476         * lib/timespec.h: Likewise.
70477         * lib/posixtm.c: Include posixtm.h first, for interface check.
70478         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
70479         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
70480         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
70481         * lib/sys_time_.h: New file.
70482         * lib/timespec.h (struct timespec): Use long int, not long.
70483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
70484         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
70485         Remove obsolescent call to AC_HEADER_TIME.
70486         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
70487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
70488         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
70489         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
70490         Likewise.
70491         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
70492         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
70493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
70494         into the sys_time module.  Check for gettimeofday just once.
70495         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
70496         for gettimeofday signature to just check the signature.  Merely
70497         compile it, since linking doesn't test signature.  Improve test for
70498         whether gettimeofday.o is actually needed.
70499         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
70500         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
70501         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
70502         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70503         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
70504         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
70505         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
70506         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
70507         than worrying about sys/time.h.
70508         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70509         Don't bother worrying about TIME_WITH_SYS_TIME.
70510         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
70511         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
70512         * m4/sys_time_h.m4: New file.
70513         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
70514         Don't include sys/time.h.  Return from main rather than exiting.
70515         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
70516         all uses changed.
70517         * modules/gethrxtime (Depends-on): Add sys_time.
70518         * modules/gettime (Depends-on): Likewise.
70519         * modules/gettimeofday (Depends-on): Likewise.
70520         * modules/nanosleep (Depends-on): Likewise.
70521         * modules/settime (Depends-on): Likewise.
70522         * modules/tempname (Depends-on): Likewise.
70523         * modules/utimens (Depends-on): Likewise.
70524         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
70525         (Include): Change back to <sys/time.h>.
70526         (Maintainer): Add self.
70527         * modules/sys_time: New file.
70528         * modules/tempname (Depends-on): Add gettimeofday.
70529         * tests/test-gettimeofday.c: Include <sys/time.h>
70530         rather than gettimeofday.h.
70531
70532 2007-01-17  Bruno Haible  <bruno@clisp.org>
70533
70534         * gnulib-tool (func_get_license): Revert last patch. Instead, let
70535         the license default to GPL.
70536         (func_create_testdir): Don't complain if a module is LGPL and its
70537         tests module depends on GPLed modules.
70538
70539 2007-01-17  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/gettimeofday.c (gettimeofday): Add code for the case
70542         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
70543         maximum possible value for tv->tv_usec, rather than the minimum one.
70544
70545 2005-10-08  Martin Lambers  <marlam@marlam.de>
70546 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
70547 2007-01-16  Bruno Haible  <bruno@clisp.org>
70548
70549         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
70550         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
70551         gl_FUNC_GETTIMEOFDAY.
70552         (Include): Add gettimeofday.h.
70553         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
70554         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
70555         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
70556         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
70557         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
70558         * lib/gettimeofday.h: New file.
70559         * lib/gettimeofday.c: Include <sys/timeb.h>.
70560         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
70561         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
70562         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
70563         fall back on time().
70564
70565         * tests/test-gettimeofday.c: New file.
70566         * modules/gettimeofday-tests: New file.
70567
70568 2007-01-16  Eric Blake  <ebb9@byu.net>
70569
70570         * modules/fnmatch (Depends-on): Depend on wchar.
70571         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
70572         * m4/fnmatch.m4: Likewise.
70573         * modules/mbchar (Makefile.am): Assume <wchar.h>.
70574         * m4/mbchar.m4: Likewise.
70575         * modules/mbswidth (Depends-on): Depend on wchar.
70576         * lib/mbswidth.c: Assume <wchar.h>.
70577         * m4/mbswidth.m4: Likewise.
70578         * modules/quotearg (Depends-on): Depend on wchar.
70579         * lib/quotearg.c: Assume <wchar.h>.
70580         * m4/quotearg.m4: Likewise.
70581         * modules/regex (Depends-on): Depend on wchar.
70582         * lib/regex_internal.h: Assume <wchar.h>.
70583         * m4/regex.m4: Likewise.
70584         * modules/stdint (Depends-on): Depend on wchar.
70585         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
70586         * m4/stdint.m4: Likewise.
70587         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
70588         * modules/strftime (Depends-on): Depend on wchar.
70589         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
70590         * modules/strtol (Depends-on): Depend on wchar.
70591         * lib/strtol.c: Assume <wchar.h>.
70592         * modules/wcwidth (Depends-on): Depend on wchar.
70593         * lib/wcwidth.h: Assume <wchar.h>.
70594         * m4/wcwidth.m4: Likewise.
70595
70596 2007-01-16  Bruno Haible  <bruno@clisp.org>
70597
70598         * modules/csharpexec-script: New, created from...
70599         * modules/csharpexec: ... this.
70600
70601 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
70602
70603         * modules/javaexec-script: New, created from...
70604         * modules/javaexec: ... this.
70605
70606 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70607
70608         * modules/poll (Dependencies): Add sys_select.
70609
70610 2007-01-15  Jim Meyering  <jim@meyering.net>
70611
70612         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
70613         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
70614         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
70615         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
70616
70617 2007-01-15  Bruno Haible  <bruno@clisp.org>
70618
70619         * modules/striconveh: New file.
70620         * lib/striconveh.h: New file.
70621         * lib/striconveh.c: New file.
70622         * MODULES.html.sh (Internationalization functions): Add striconveh.
70623
70624         * modules/striconveh-tests: New file.
70625         * tests/test-striconveh.c: New file.
70626
70627 2007-01-15  Bruno Haible  <bruno@clisp.org>
70628
70629         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
70630         not from GNU libiconv or GNU libc.
70631
70632 2007-01-15  Bruno Haible  <bruno@clisp.org>
70633
70634         * doc/gnulib-intro.texi (Copyright): Explain the different license
70635         terms for module descriptions, autoconf macros, tests, documentation.
70636
70637 2007-01-14  Bruno Haible  <bruno@clisp.org>
70638
70639         * modules/striconv-tests: New file.
70640         * tests/test-striconv.c: New file.
70641
70642 2007-01-14  Bruno Haible  <bruno@clisp.org>
70643
70644         * modules/iconv-tests: New file.
70645         * tests/test-iconv.c: New file.
70646
70647 2007-01-14  Bruno Haible  <bruno@clisp.org>
70648
70649         * gnulib-tool (func_get_license): For test modules, use the license of
70650         the main module.
70651
70652 2007-01-14  Bruno Haible  <bruno@clisp.org>
70653
70654         * modules/iconv (Include): Clarify that <iconv.h> can only be included
70655         if iconv is found to exist.
70656
70657 2007-01-14  Bruno Haible  <bruno@clisp.org>
70658
70659         * modules/c-ctype-tests: New file.
70660         * tests/test-c-ctype.c: New file.
70661
70662 2007-01-14  Bruno Haible  <bruno@clisp.org>
70663
70664         * modules/binary-io-tests: New file.
70665         * tests/test-binary-io.sh: New file.
70666         * tests/test-binary-io.c: New file.
70667
70668 2007-01-14  Bruno Haible  <bruno@clisp.org>
70669
70670         * modules/array-oset-tests: New file.
70671         * tests/test-array_oset.c: New file.
70672
70673 2007-01-14  Bruno Haible  <bruno@clisp.org>
70674
70675         * modules/array-list-tests: New file.
70676         * tests/test-array_list.c: New file.
70677
70678 2007-01-14  Bruno Haible  <bruno@clisp.org>
70679
70680         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
70681         and make.
70682         Reported by Simon Josefsson in
70683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
70684
70685 2007-01-14  Bruno Haible  <bruno@clisp.org>
70686
70687         * modules/allocsa-tests: New file.
70688         * tests/test-allocsa.c: New file.
70689
70690 2007-01-14  Bruno Haible  <bruno@clisp.org>
70691
70692         * modules/fchdir (Depends-on): Add absolute-header.
70693         * modules/unistd (Depends-on): Likewise.
70694
70695 2006-12-30  Bruno Haible  <bruno@clisp.org>
70696
70697         * modules/fchdir: New file.
70698         * modules/unistd (Files): Add lib/unistd_.h.
70699         (Makefile.am): Generate unistd.h from unistd_.h.
70700         * lib/fchdir.c: New file.
70701         * lib/dirent_.h: New file.
70702         * lib/unistd_.h: New file.
70703         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
70704         * m4/fchdir.m4: New file.
70705         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
70706         (gl_HEADER_UNISTD): Invoke it.
70707         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
70708         function.
70709         * lib/backupfile.c (opendir, closedir): Undefine.
70710         * lib/chown.c (open, close): Undefine.
70711         * lib/clean-temp.c (open, close): Undefine.
70712         * lib/copy-file.c (open, close): Undefine.
70713         * lib/execute.c (open, close): Undefine.
70714         * lib/fsusage.c (open, close): Undefine.
70715         * lib/gc-gnulib.c (open, close): Undefine.
70716         * lib/getcwd.c (opendir, closedir): Undefine.
70717         * lib/glob.c (opendir, closedir): Undefine.
70718         * lib/javacomp.c (open, close): Undefine.
70719         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
70720         * lib/openat-proc.c (open, close): Undefine.
70721         * lib/pagealign_alloc.c (open, close): Undefine.
70722         * lib/pipe.c (open, close): Undefine.
70723         * lib/progreloc.c (open, close): Undefine.
70724         * lib/savedir.c (opendir, closedir): Undefine.
70725         * lib/utime.c (open, close): Undefine.
70726         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
70727
70728 2007-01-10  Bruno Haible  <bruno@clisp.org>
70729
70730         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
70731
70732 2007-01-12  Eric Blake  <ebb9@byu.net>
70733
70734         Provide a robust <wchar.h>.  Further simplifications are now
70735         possible in other modules, but not included here.
70736         * modules/wchar: New module.
70737         * m4/wchar.m4: New file.
70738         * lib/wchar_.h: Likewise.
70739         * modules/mbchar (Depends-on): Depend on wchar, as the first use
70740         of the new module.
70741         * MODULES.html.sh (Extended multibyte and wide character utilities):
70742         New section.
70743
70744 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
70745
70746         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
70747         to a reasonable default for memory allocation.
70748         (xreadlink): Don't allocate a huge buffer, to work around a buggy
70749         file system that reports garbage st_size values for symlinks.
70750         Problem reported by Liyang Hu.
70751
70752 2007-01-11  Simon Josefsson  <simon@josefsson.org>
70753
70754         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
70755         Emacs .#* auto-save files).
70756
70757 2007-01-11  Bruno Haible  <bruno@clisp.org>
70758
70759         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
70760         directory.
70761
70762 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
70763
70764         Use @...@ consistently in lib/wctype_.h.
70765         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
70766         on it being set to 1 or 0.
70767         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
70768         go back to AC_SUBSTing it.
70769         * modules/wctype (Makefile.am): Undo previous change.
70770
70771 2007-01-10  Eric Blake  <ebb9@byu.net>
70772
70773         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
70774         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
70775         * modules/wctype (Makefile.am): Likewise.
70776         Reported by Chris McGuire.
70777
70778 2007-01-10  Jim Meyering  <jim@meyering.net>
70779
70780         fts.c: a small readability/maintainability improvement
70781         * lib/fts.c (fts_read): Make this code slightly more readable and
70782         maintainable by hoisting the "sp->fts_cur = p" assignments to
70783         immediately follow the statements that set P.  Derived from
70784         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
70785
70786 2007-01-10  Eric Blake  <ebb9@byu.net>
70787
70788         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
70789         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
70790         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70791         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
70792         Reported by Chris McGuire.
70793
70794 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70795
70796         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
70797         in sed script.
70798
70799 2007-01-09  Bruno Haible  <bruno@clisp.org>
70800
70801         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
70802         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
70803         variables.
70804         (func_module): Use them.
70805
70806 2007-01-09  Bruno Haible  <bruno@clisp.org>
70807
70808         * modules/unistr/base: New file.
70809         * lib/unistr.h: New file.
70810
70811         * modules/unistr/u8-to-u16: New file.
70812         * lib/unistr/u8-to-u16.c: New file.
70813
70814         * modules/unistr/u8-to-u32: New file.
70815         * lib/unistr/u8-to-u32.c: New file.
70816
70817         * modules/unistr/u16-to-u8: New file.
70818         * lib/unistr/u16-to-u8.c: New file.
70819
70820         * modules/unistr/u16-to-u32: New file.
70821         * lib/unistr/u16-to-u32.c: New file.
70822
70823         * modules/unistr/u32-to-u8: New file.
70824         * lib/unistr/u32-to-u8.c: New file.
70825
70826         * modules/unistr/u32-to-u16: New file.
70827         * lib/unistr/u32-to-u16.c: New file.
70828
70829         * modules/unistr/u8-check: New file.
70830         * modules/unistr/u16-check: New file.
70831         * modules/unistr/u32-check: New file.
70832         * lib/unistr/u8-check.c: New file.
70833         * lib/unistr/u16-check.c: New file.
70834         * lib/unistr/u32-check.c: New file.
70835
70836         * modules/unistr/u8-chr: New file.
70837         * modules/unistr/u16-chr: New file.
70838         * modules/unistr/u32-chr: New file.
70839         * lib/unistr/u8-chr.c: New file.
70840         * lib/unistr/u16-chr.c: New file.
70841         * lib/unistr/u32-chr.c: New file.
70842
70843         * modules/unistr/u8-cmp: New file.
70844         * modules/unistr/u16-cmp: New file.
70845         * modules/unistr/u32-cmp: New file.
70846         * lib/unistr/u8-cmp.c: New file.
70847         * lib/unistr/u16-cmp.c: New file.
70848         * lib/unistr/u32-cmp.c: New file.
70849
70850         * modules/unistr/u8-cpy: New file.
70851         * modules/unistr/u16-cpy: New file.
70852         * modules/unistr/u32-cpy: New file.
70853         * lib/unistr/u8-cpy.c: New file.
70854         * lib/unistr/u16-cpy.c: New file.
70855         * lib/unistr/u32-cpy.c: New file.
70856         * lib/unistr/u-cpy.h: New file.
70857
70858         * modules/unistr/u8-cpy-alloc: New file.
70859         * modules/unistr/u16-cpy-alloc: New file.
70860         * modules/unistr/u32-cpy-alloc: New file.
70861         * lib/unistr/u8-cpy-alloc.c: New file.
70862         * lib/unistr/u16-cpy-alloc.c: New file.
70863         * lib/unistr/u32-cpy-alloc.c: New file.
70864         * lib/unistr/u-cpy-alloc.h: New file.
70865
70866         * modules/unistr/u8-endswith: New file.
70867         * modules/unistr/u16-endswith: New file.
70868         * modules/unistr/u32-endswith: New file.
70869         * lib/unistr/u8-endswith.c: New file.
70870         * lib/unistr/u16-endswith.c: New file.
70871         * lib/unistr/u32-endswith.c: New file.
70872         * lib/unistr/u-endswith.h: New file.
70873
70874         * modules/unistr/u8-mblen: New file.
70875         * modules/unistr/u16-mblen: New file.
70876         * modules/unistr/u32-mblen: New file.
70877         * lib/unistr/u8-mblen.c: New file.
70878         * lib/unistr/u16-mblen.c: New file.
70879         * lib/unistr/u32-mblen.c: New file.
70880
70881         * modules/unistr/u8-mbtouc: New file.
70882         * modules/unistr/u16-mbtouc: New file.
70883         * modules/unistr/u32-mbtouc: New file.
70884         * lib/unistr/u8-mbtouc.c: New file.
70885         * lib/unistr/u16-mbtouc.c: New file.
70886         * lib/unistr/u32-mbtouc.c: New file.
70887
70888         * modules/unistr/u8-mbtouc-safe: New file.
70889         * modules/unistr/u16-mbtouc-safe: New file.
70890         * modules/unistr/u32-mbtouc-safe: New file.
70891         * lib/unistr/u8-mbtouc-safe.c: New file.
70892         * lib/unistr/u16-mbtouc-safe.c: New file.
70893         * lib/unistr/u32-mbtouc-safe.c: New file.
70894
70895         * modules/unistr/u8-move: New file.
70896         * modules/unistr/u16-move: New file.
70897         * modules/unistr/u32-move: New file.
70898         * lib/unistr/u8-move.c: New file.
70899         * lib/unistr/u16-move.c: New file.
70900         * lib/unistr/u32-move.c: New file.
70901         * lib/unistr/u-move.h: New file.
70902
70903         * modules/unistr/u8-next: New file.
70904         * modules/unistr/u16-next: New file.
70905         * modules/unistr/u32-next: New file.
70906         * lib/unistr/u8-next.c: New file.
70907         * lib/unistr/u16-next.c: New file.
70908         * lib/unistr/u32-next.c: New file.
70909
70910         * modules/unistr/u8-prev: New file.
70911         * modules/unistr/u16-prev: New file.
70912         * modules/unistr/u32-prev: New file.
70913         * lib/unistr/u8-prev.c: New file.
70914         * lib/unistr/u16-prev.c: New file.
70915         * lib/unistr/u32-prev.c: New file.
70916
70917         * modules/unistr/u8-set: New file.
70918         * modules/unistr/u16-set: New file.
70919         * modules/unistr/u32-set: New file.
70920         * lib/unistr/u8-set.c: New file.
70921         * lib/unistr/u16-set.c: New file.
70922         * lib/unistr/u32-set.c: New file.
70923         * lib/unistr/u-set.h: New file.
70924
70925         * modules/unistr/u8-startswith: New file.
70926         * modules/unistr/u16-startswith: New file.
70927         * modules/unistr/u32-startswith: New file.
70928         * lib/unistr/u8-startswith.c: New file.
70929         * lib/unistr/u16-startswith.c: New file.
70930         * lib/unistr/u32-startswith.c: New file.
70931         * lib/unistr/u-startswith.h: New file.
70932
70933         * modules/unistr/u8-stpcpy: New file.
70934         * modules/unistr/u16-stpcpy: New file.
70935         * modules/unistr/u32-stpcpy: New file.
70936         * lib/unistr/u8-stpcpy.c: New file.
70937         * lib/unistr/u16-stpcpy.c: New file.
70938         * lib/unistr/u32-stpcpy.c: New file.
70939         * lib/unistr/u-stpcpy.h: New file.
70940
70941         * modules/unistr/u8-stpncpy: New file.
70942         * modules/unistr/u16-stpncpy: New file.
70943         * modules/unistr/u32-stpncpy: New file.
70944         * lib/unistr/u8-stpncpy.c: New file.
70945         * lib/unistr/u16-stpncpy.c: New file.
70946         * lib/unistr/u32-stpncpy.c: New file.
70947         * lib/unistr/u-stpncpy.h: New file.
70948
70949         * modules/unistr/u8-strcat: New file.
70950         * modules/unistr/u16-strcat: New file.
70951         * modules/unistr/u32-strcat: New file.
70952         * lib/unistr/u8-strcat.c: New file.
70953         * lib/unistr/u16-strcat.c: New file.
70954         * lib/unistr/u32-strcat.c: New file.
70955         * lib/unistr/u-strcat.h: New file.
70956
70957         * modules/unistr/u8-strchr: New file.
70958         * modules/unistr/u16-strchr: New file.
70959         * modules/unistr/u32-strchr: New file.
70960         * lib/unistr/u8-strchr.c: New file.
70961         * lib/unistr/u16-strchr.c: New file.
70962         * lib/unistr/u32-strchr.c: New file.
70963
70964         * modules/unistr/u8-strcmp: New file.
70965         * modules/unistr/u16-strcmp: New file.
70966         * modules/unistr/u32-strcmp: New file.
70967         * lib/unistr/u8-strcmp.c: New file.
70968         * lib/unistr/u16-strcmp.c: New file.
70969         * lib/unistr/u32-strcmp.c: New file.
70970
70971         * modules/unistr/u8-strcpy: New file.
70972         * modules/unistr/u16-strcpy: New file.
70973         * modules/unistr/u32-strcpy: New file.
70974         * lib/unistr/u8-strcpy.c: New file.
70975         * lib/unistr/u16-strcpy.c: New file.
70976         * lib/unistr/u32-strcpy.c: New file.
70977         * lib/unistr/u-strcpy.h: New file.
70978
70979         * modules/unistr/u8-strcspn: New file.
70980         * modules/unistr/u16-strcspn: New file.
70981         * modules/unistr/u32-strcspn: New file.
70982         * lib/unistr/u8-strcspn.c: New file.
70983         * lib/unistr/u16-strcspn.c: New file.
70984         * lib/unistr/u32-strcspn.c: New file.
70985         * lib/unistr/u-strcspn.h: New file.
70986
70987         * modules/unistr/u8-strdup: New file.
70988         * modules/unistr/u16-strdup: New file.
70989         * modules/unistr/u32-strdup: New file.
70990         * lib/unistr/u8-strdup.c: New file.
70991         * lib/unistr/u16-strdup.c: New file.
70992         * lib/unistr/u32-strdup.c: New file.
70993         * lib/unistr/u-strdup.h: New file.
70994
70995         * modules/unistr/u8-strlen: New file.
70996         * modules/unistr/u16-strlen: New file.
70997         * modules/unistr/u32-strlen: New file.
70998         * lib/unistr/u8-strlen.c: New file.
70999         * lib/unistr/u16-strlen.c: New file.
71000         * lib/unistr/u32-strlen.c: New file.
71001         * lib/unistr/u-strlen.h: New file.
71002
71003         * modules/unistr/u8-strmblen: New file.
71004         * modules/unistr/u16-strmblen: New file.
71005         * modules/unistr/u32-strmblen: New file.
71006         * lib/unistr/u8-strmblen.c: New file.
71007         * lib/unistr/u16-strmblen.c: New file.
71008         * lib/unistr/u32-strmblen.c: New file.
71009
71010         * modules/unistr/u8-strmbtouc: New file.
71011         * modules/unistr/u16-strmbtouc: New file.
71012         * modules/unistr/u32-strmbtouc: New file.
71013         * lib/unistr/u8-strmbtouc.c: New file.
71014         * lib/unistr/u16-strmbtouc.c: New file.
71015         * lib/unistr/u32-strmbtouc.c: New file.
71016
71017         * modules/unistr/u8-strncat: New file.
71018         * modules/unistr/u16-strncat: New file.
71019         * modules/unistr/u32-strncat: New file.
71020         * lib/unistr/u8-strncat.c: New file.
71021         * lib/unistr/u16-strncat.c: New file.
71022         * lib/unistr/u32-strncat.c: New file.
71023         * lib/unistr/u-strncat.h: New file.
71024
71025         * modules/unistr/u8-strncmp: New file.
71026         * modules/unistr/u16-strncmp: New file.
71027         * modules/unistr/u32-strncmp: New file.
71028         * lib/unistr/u8-strncmp.c: New file.
71029         * lib/unistr/u16-strncmp.c: New file.
71030         * lib/unistr/u32-strncmp.c: New file.
71031
71032         * modules/unistr/u8-strncpy: New file.
71033         * modules/unistr/u16-strncpy: New file.
71034         * modules/unistr/u32-strncpy: New file.
71035         * lib/unistr/u8-strncpy.c: New file.
71036         * lib/unistr/u16-strncpy.c: New file.
71037         * lib/unistr/u32-strncpy.c: New file.
71038         * lib/unistr/u-strncpy.h: New file.
71039
71040         * modules/unistr/u8-strnlen: New file.
71041         * modules/unistr/u16-strnlen: New file.
71042         * modules/unistr/u32-strnlen: New file.
71043         * lib/unistr/u8-strnlen.c: New file.
71044         * lib/unistr/u16-strnlen.c: New file.
71045         * lib/unistr/u32-strnlen.c: New file.
71046         * lib/unistr/u-strnlen.h: New file.
71047
71048         * modules/unistr/u8-strpbrk: New file.
71049         * modules/unistr/u16-strpbrk: New file.
71050         * modules/unistr/u32-strpbrk: New file.
71051         * lib/unistr/u8-strpbrk.c: New file.
71052         * lib/unistr/u16-strpbrk.c: New file.
71053         * lib/unistr/u32-strpbrk.c: New file.
71054         * lib/unistr/u-strpbrk.h: New file.
71055
71056         * modules/unistr/u8-strrchr: New file.
71057         * modules/unistr/u16-strrchr: New file.
71058         * modules/unistr/u32-strrchr: New file.
71059         * lib/unistr/u8-strrchr.c: New file.
71060         * lib/unistr/u16-strrchr.c: New file.
71061         * lib/unistr/u32-strrchr.c: New file.
71062
71063         * modules/unistr/u8-strspn: New file.
71064         * modules/unistr/u16-strspn: New file.
71065         * modules/unistr/u32-strspn: New file.
71066         * lib/unistr/u8-strspn.c: New file.
71067         * lib/unistr/u16-strspn.c: New file.
71068         * lib/unistr/u32-strspn.c: New file.
71069         * lib/unistr/u-strspn.h: New file.
71070
71071         * modules/unistr/u8-strstr: New file.
71072         * modules/unistr/u16-strstr: New file.
71073         * modules/unistr/u32-strstr: New file.
71074         * lib/unistr/u8-strstr.c: New file.
71075         * lib/unistr/u16-strstr.c: New file.
71076         * lib/unistr/u32-strstr.c: New file.
71077         * lib/unistr/u-strstr.h: New file.
71078
71079         * modules/unistr/u8-strtok: New file.
71080         * modules/unistr/u16-strtok: New file.
71081         * modules/unistr/u32-strtok: New file.
71082         * lib/unistr/u8-strtok.c: New file.
71083         * lib/unistr/u16-strtok.c: New file.
71084         * lib/unistr/u32-strtok.c: New file.
71085         * lib/unistr/u-strtok.h: New file.
71086
71087         * modules/unistr/u8-uctomb: New file.
71088         * modules/unistr/u16-uctomb: New file.
71089         * modules/unistr/u32-uctomb: New file.
71090         * lib/unistr/u8-uctomb.c: New file.
71091         * lib/unistr/u16-uctomb.c: New file.
71092         * lib/unistr/u32-uctomb.c: New file.
71093
71094         * MODULES.html.sh (Unicode string functions): Add the new modules.
71095
71096 2007-01-08  Bruno Haible  <bruno@clisp.org>
71097
71098         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
71099         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
71100         subdirectories.
71101
71102 2007-01-08  Karl Berry  <karl@gnu.org>
71103
71104         * doc/error.texi: mention that main() fns must set program_name
71105         when progname is used.
71106
71107 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
71110         WCTYPE_H is empty, for the benefit of builds from non-distclean
71111         directories.  Problem reported by Eric Blake in
71112         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
71113
71114 2007-01-08  Bruno Haible  <bruno@clisp.org>
71115
71116         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
71117         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
71118         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
71119         PROVIDE_CANONICALIZE_FILENAME_MODE.
71120         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
71121
71122 2007-01-08  Bruno Haible  <bruno@clisp.org>
71123
71124         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
71125         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
71126         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
71127         * lib/fts.c: Likewise.
71128         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
71129
71130 2006-12-25  Bruno Haible  <bruno@clisp.org>
71131
71132         * modules/utf8-ucs4-safe: New file.
71133         * lib/utf8-ucs4-safe.h: New file.
71134         * lib/unistr/utf8-ucs4-safe.c: New file.
71135
71136         * modules/utf16-ucs4-safe: New file.
71137         * lib/utf16-ucs4-safe.h: New file.
71138         * lib/unistr/utf16-ucs4-safe.c: New file.
71139
71140         * MODULES.html.sh (Unicode string functions): Add the new modules.
71141
71142 2007-01-08  Bruno Haible  <bruno@clisp.org>
71143
71144         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
71145         (Depends-on): Add unitypes.
71146         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71147         (u8_mbtouc_aux): Move out to separate file.
71148         (u8_mbtouc): Use ucs4_t, uint8_t types.
71149         * lib/unistr/utf8-ucs4.c: New file.
71150
71151         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
71152         (Depends-on): Add unitypes.
71153         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
71154         (u16_mbtouc_aux): Move out to separate file.
71155         (u16_mbtouc): Use ucs4_t, uint16_t types.
71156         * lib/unistr/utf16-ucs4.c: New file.
71157
71158         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
71159         (Depends-on): Add unitypes.
71160         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
71161         (u8_uctomb_aux): Move out to separate file.
71162         (u8_uctomb): Use ucs4_t, uint8_t types.
71163         * lib/unistr/ucs4-utf8.c: New file.
71164
71165         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
71166         (Depends-on): Add unitypes.
71167         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
71168         (u16_uctomb_aux): Move out to separate file.
71169         (u16_uctomb): Use ucs4_t, uint16_t types.
71170         * lib/unistr/ucs4-utf16.c: New file.
71171
71172 2006-12-25  Bruno Haible  <bruno@clisp.org>
71173
71174         * modules/unitypes: New file.
71175         * lib/unitypes.h: New file.
71176         * MODULES.html.sh (func_all_modules): New section "Unicode string
71177         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
71178         this section. Add unitypes.
71179
71180 2007-01-08  Bruno Haible  <bruno@clisp.org>
71181
71182         Avoid variable names that conflict with those from libtool.
71183         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
71184         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
71185         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
71186         library_names_spec to acl_library_names_spec, hardcode_* to
71187         acl_hardcode_*.
71188         Reported by Ralf Wildenhues.
71189
71190 2007-01-08  Bruno Haible  <bruno@clisp.org>
71191
71192         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
71193         definition.
71194         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
71195         definition.
71196         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
71197         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
71198         definition.
71199         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
71200         definition.
71201         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
71202         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
71203         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
71204         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
71205         definition.
71206         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
71207         definition.
71208         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
71209         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
71210         GC_USE_<algorithm>.
71211         * lib/gc-libgcrypt.c: Likewise.
71212         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
71213         * modules/gc-arctwo (configure.ac): Likewise.
71214         * modules/gc-des (configure.ac): Likewise.
71215         * modules/gc-hmac-md5 (configure.ac): Likewise.
71216         * modules/gc-hmac-sha1 (configure.ac): Likewise.
71217         * modules/gc-md2 (configure.ac): Likewise.
71218         * modules/gc-md4 (configure.ac): Likewise.
71219         * modules/gc-md5 (configure.ac): Likewise.
71220         * modules/gc-random (configure.ac): Likewise.
71221         * modules/gc-rijndael (configure.ac): Likewise.
71222         * modules/gc-sha1 (configure.ac): Likewise.
71223
71224 2007-01-08  Bruno Haible  <bruno@clisp.org>
71225
71226         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
71227         macro definition.
71228         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
71229         definition.
71230         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
71231         definition.
71232         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
71233         * modules/fcntl-safer (configure.ac): Likewise.
71234         * modules/fopen-safer (configure.ac): Likewise.
71235         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
71236         GNULIB_FWRITEERROR macro definition.
71237
71238 2007-01-08  Bruno Haible  <bruno@clisp.org>
71239
71240         * m4/gnulib-common.m4: New file.
71241         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
71242         (func_get_filelist): Add m4/gnulib-common.m4.
71243
71244 2007-01-08  Bruno Haible  <bruno@clisp.org>
71245
71246         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
71247         command.
71248
71249 2007-01-08  Jim Meyering  <jim@meyering.net>
71250
71251         Use a more robust test for a "can't happen" condition.
71252         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
71253         narrowed the st_size value.  Presuming the "can't happen" condition
71254         is true, that narrowing could conceivably convert an invalid st_size
71255         value into a valid one.  Instead, use a change based on Matthew
71256         Woehlke's original patch.
71257
71258         Slight readability improvement: use an assert-like macro
71259         in place of literal "abort ()" uses.
71260         * lib/fts.c (fts_assert): Define.
71261         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
71262         Use this macro instead of a bare 'abort'.
71263
71264 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
71265
71266         Don't worry about using IRIX 5.3's wctype.h broken definitions;
71267         simply work around them.
71268         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
71269         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
71270         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
71271         declaring.
71272         Don't bother to define as macros, since the standard doesn't require it.
71273         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
71274         longer worry about IRIX 5.3.
71275         (HAVE_WCTYPE_CTMP_BUG): Remove.
71276
71277 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
71278
71279         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
71280         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
71281         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
71282         Problems reported by Georg Schwarz for IRIX 5.3.
71283
71284         * gnulib-tool (autoconf_minversion): Take the maximum version number
71285         found, not the minimum.  Problem reported by James Youngman.
71286
71287 2007-01-03  Karl Berry  <karl@gnu.org>
71288
71289         * doc/error.texi: new file, explaining interaction with progname.
71290         * doc/gnulib.texi: include it.  Update copyright.
71291
71292 2007-01-03  Simon Josefsson  <simon@josefsson.org>
71293
71294         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
71295         AC_CANONICAL_HOST, to improve autobuild outputs.
71296
71297 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
71298             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71299
71300         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
71301         sockets, server sockets, and other file descriptors.  Count errors
71302         to compute the return value.  Reorder the code a bit to be easier
71303         to follow.  Don't set event bits that were not requested (except
71304         POLLERR and POLLHUP).
71305
71306 2007-01-01  Bruno Haible  <bruno@clisp.org>
71307
71308         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
71309
71310 2007-01-03  Jim Meyering  <jim@meyering.net>
71311
71312         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
71313
71314 2007-01-02  Bruno Haible  <bruno@clisp.org>
71315
71316         * modules/settime (Include): Require timespec.h.
71317         * modules/nanosleep (Include): Likewise.
71318
71319 2007-01-01  Bruno Haible  <bruno@clisp.org>
71320
71321         * gnulib-tool (func_emit_copyright_notice): Bump year.
71322         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
71323
71324 2007-01-01  Bruno Haible  <bruno@clisp.org>
71325
71326         Improve support for OpenBSD.
71327         * build-aux/config.rpath (libname_spec): Export.
71328         (library_names_spec): New variable. Export.
71329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
71330         library_names_spec from the config.rpath output. Locate shared library
71331         through the name pattern in library_names_spec.
71332
71333 2007-01-01  Eric Blake  <ebb9@byu.net>
71334
71335         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
71336
71337 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
71338
71339         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
71340         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
71341         assume the C locale, and avoid an "eval" that could cause trouble.
71342         Problem with SORT reported by Bob Proulx.
71343
71344         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
71345         Define.  Trivial patch from Henning Nielsen Lund, originally
71346         sent to bug-grep@gnu.org today.
71347
71348 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
71349
71350         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
71351         struct stat.  Problem reported by Henning Nielsen Lund.
71352         * lib/acl.c: Include acl.h first, to check interface.  Don't
71353         bother to include sys/types.h and sys/stat.h again.
71354
71355 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
71356
71357         Import the following change from libc; problem reported by
71358         Sven Verdoolaege.
71359
71360         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
71361
71362         [BZ #1373]
71363         * lib/argp.h: Remove __NTH for __argp_usage inline function.
71364
71365 2006-12-28  Jim Meyering  <jim@meyering.net>
71366
71367         * build-aux/announce-gen: Do not assume that the package
71368         builds any of tar.gz, tar.bz2, and .xdelta files.
71369         Suggestion from Simon Josefsson.
71370
71371 2006-12-28  Simon Josefsson  <simon@josefsson.org>
71372
71373         * modules/announce-gen: New file.
71374
71375 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
71376
71377         * lib/mbchar.h: Just include <wctype.h>; the wctype module
71378         handles its gotchas now.
71379         * lib/mbswidth.c: Likewise.
71380         * lib/wcwidth.h: Likewise.
71381         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
71382         and iswcntrl; the wctype module does this stuff now.
71383         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
71384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
71385         * modules/mbchar (Depends-on): Add wctype.
71386         * modules/mbswidth (Depends-on): Likewise.
71387         * modules/wcwidth (Depends-on): Likewise.
71388
71389 2006-12-27  Eric Blake  <ebb9@byu.net>
71390
71391         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
71392         module uses more than what <wctype.h> is required to provide.
71393
71394 2006-12-26  Eric Blake  <ebb9@byu.net>
71395
71396         * gnulib-tool (sed_extract_prog): Avoid space-tab.
71397
71398 2006-12-26  Eric Blake  <ebb9@byu.net>
71399
71400         * modules/absolute-header: New module.
71401         * modules/fcntl (Depends-on): Depend on it.
71402         * modules/inttypes (Depends-on): Likewise.
71403         * modules/stdint (Depends-on): Likewise.
71404         * modules/sys_stat (Depends-on): Likewise.
71405         * modules/wctype (Depends-on): Likewise.
71406         * MODULES.html.sh (Support for building libraries and
71407         executables): Document it.
71408
71409 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * gnulib-tool (SED): Remove, undoing previous change.
71412         The problem was that it broke coreutils on Solaris, because
71413         "sed --posix" leaked into a makefile.
71414         (sed): New alias, if 'alias' and GNU sed.
71415
71416 2006-12-24  Jim Meyering  <jim@meyering.net>
71417
71418         Work around an fchownat bug in glibc-2.4:
71419         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
71420         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
71421         in spite of the -P option.
71422         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
71423         New macros.
71424         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
71425         * modules/openat (Files): Add lib/fchownat.c.
71426         * lib/openat.c (fchownat): Don't define here.  Move to...
71427         * lib/fchownat.c: ...this new file.
71428
71429 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
71430
71431         Fix bug reported by Bruno Haible in
71432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
71433         where quotearg.c didn't compile on Mac OS X 10.2 because it
71434         lacks <wchar.h> and wint_t.
71435         * lib/wctype_.h (__wctype_wint_t): New type.
71436         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
71437         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
71438         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
71439         Arg is now of type __wctype_wint_t, not wint_t.
71440         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
71441         substitute HAVE_WINT_T.
71442         * modules/wctype (Files): Add m4/wint_t.m4.
71443         (wctype.h): Substitute HAVE_WINT_T.
71444
71445 2006-12-23  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
71448
71449 2006-12-23  Bruno Haible  <bruno@clisp.org>
71450
71451         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
71452         S_ISLNK.
71453         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
71454         mingw.
71455
71456 2006-12-22  Bruno Haible  <bruno@clisp.org>
71457
71458         * lib/copy-file.c: Include acl.h.
71459         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
71460         Close the file descriptors only after being done with copy_acl.
71461         * modules/copy-file (Depends-on): Add acl.
71462
71463 2006-12-22  Bruno Haible  <bruno@clisp.org>
71464
71465         * gnulib-tool (SED): New variable.
71466         Use $SED instead of sed everywhere.
71467
71468 2006-12-22  Bruno Haible  <bruno@clisp.org>
71469
71470         * modules/no-c++: New file.
71471         * m4/no-c++.m4: New file.
71472         * MODULES.html.sh (Support for building libraries and executables):
71473         Add no-c++.
71474
71475 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
71476
71477         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
71478         Include <limits.h>, and use its INT_MAX to rewrite the
71479         j loop so that it does not overflow 'int'.  Problem reported by
71480         Ralf Wildenhues in
71481         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
71482         Play it safe by shifting left by 1 rather than multiplying by 2,
71483         as GCC is less likely to optimize this away when the value
71484         is signed (when it assumes overflow leads to undefined behavior).
71485         Also, don't assume time_t uses two's complement.
71486
71487 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         * MODULES.html.sh: New module wctype.
71490         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
71491         * lib/fnmatch.c: Don't bother to include <wchar.h> before
71492         <wctype.h>, since the new wctype module should fix this.
71493         * lib/quotearg.c: Include <wctype.h> unconditionally, since
71494         the wctype module should arrange for it.
71495         * lib/regex_internal.h: Likewise.
71496         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
71497         since the wctype module should handle this now.
71498         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
71499         * modules/fnmatch (Depends-on): Add wctype.
71500         * modules/quotearg (Depends-on): Likewise.
71501         * modules/regex (Depends-on): Likewise.
71502
71503 2006-12-19  Bruno Haible  <bruno@clisp.org>
71504
71505         * lib/strdup.h [C++]: Wrap definitions in extern "C".
71506         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
71507
71508 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71509
71510         * modules/savewd (Depends-on): Fix dependency on fcntl.
71511
71512 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71513
71514         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
71515         conforms to C99, rather than relying on the user's environment
71516         setting of STDINT_H.
71517
71518 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
71519         and Eric Blake  <ebb9@byu.net>
71520
71521         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
71522         This is more consistent with the other defines here.
71523         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
71524         Port to z/OS.  Problem reported by Paul Gilmartin.
71525         Change local vars to use gl_ prefix rather than ac_.
71526         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
71527         with other defines.
71528         * modules/double-slash-root: New module.
71529         * modules/dirname (Files): Remove m4/double-slash-root.m4.
71530         (Depends-on): Add double-slash-root.
71531         * MODULES.html.sh (File system functions): Mention new module.
71532
71533 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
71536         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
71537         This is for the benefit of gzip, which doesn't do i18n.
71538
71539 2006-12-12  Jim Meyering  <jim@meyering.net>
71540
71541         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
71542         Reported by Andreas Schwab <schwab@suse.de>.
71543
71544 2006-12-12  Bruno Haible  <bruno@clisp.org>
71545
71546         Merge these changes.
71547         2006-09-05  Bruno Haible  <bruno@clisp.org>
71548         * lib/iconvme.c (iconv_string): No need to save and restore errno when
71549         iconv_alloc succeeded.
71550         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
71551         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
71552         test for " && dest " at the end - dest is always != NULL there. Call
71553         iconv with 4xNULL arguments initially, to reset the state. Call iconv
71554         with 2xNULL arguments, also to flush the state storage. Handle the
71555         IRIX iconv behaviour. Realloc the final result, to throw away unused
71556         memory.
71557
71558 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
71559
71560         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
71561         and fchmodat unconditionally, since glibc 2.4 has them.
71562         Problem reported by Arkadiusz Miskiewicz.
71563
71564 2006-12-10  Bruno Haible  <bruno@clisp.org>
71565
71566         * gnulib-tool (func_import): Show the include files only for those
71567         modules that are copied and specified.
71568         Reported by Karl Berry.
71569
71570 2006-12-08  Jim Meyering  <jim@meyering.net>
71571
71572         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
71573         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
71574
71575         * build-aux/announce-gen: Add two new options, both optional:
71576         --bootstrap-tools=TOOL_LIST
71577               a comma-separated list of tools, e.g.,
71578               autoconf,automake,bison,gnulib
71579         --gnulib-snapshot-date=DATE
71580               if gnulib is in the bootstrap tool list,
71581               then report this as the snapshot date.
71582               If not specified, use the current date/time.
71583               If you specify a date here, be sure it's UTC.
71584
71585 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71586
71587         * tests/test-argp-2.sh: Fix test to match actual output.
71588         (func_compare): Fix sed script to be portable.
71589
71590 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
71593         workaround for this case.  It is not autoconfigured now; offhand
71594         it's hard to see how to autoconfigure it.
71595
71596 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
71599         a directory that is about to be chowned.  Such a directory's
71600         initial file permissions should permit the owner only and this
71601         should not be changed until after the chown, since the group and
71602         other bits would be incorrect if they granted permission before
71603         the chown.
71604
71605         Fix porting problem for iswctype reported by Georg Schwarz in:
71606         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
71607         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
71608         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
71609         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
71610         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
71611
71612 2006-12-03  Jim Meyering  <jim@meyering.net>
71613
71614         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
71615         p->fts_statp may not yet be defined.
71616         (fts_read): Instead, set it in the caller, once p->fts_statp is
71617         sure to be defined, and corresponds to a top-level directory.
71618         This bug made du -x fail.  Here's the coreutils test case:
71619         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
71620         Reported by Mike Frysinger.
71621
71622 2006-12-01  Jim Meyering  <jim@meyering.net>
71623
71624         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
71625         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
71626         Reported by Simon Josefsson.
71627
71628 2006-11-30  Jim Meyering  <jim@meyering.net>
71629
71630         * m4/warning.m4: Use the all-permissive copyright notice
71631         recommended by RMS (rather than LGPL).
71632         * m4/vararrays.m4: Likewise.
71633         * m4/flexmember.m4: Likewise.
71634
71635 2006-11-29  Bruno Haible  <bruno@clisp.org>
71636
71637         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71638         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
71639         using +=.
71640         Reported by Simon Josefsson <simon@josefsson.org>.
71641
71642 2006-11-28  James Youngman <jay@gnu.org>
71643
71644         * README: Advise users that they might find the bug-gnulib@gnu.org
71645         and autotools-announce@gnu.org mailing lists useful.
71646
71647 2006-11-28  Bruno Haible  <bruno@clisp.org>
71648
71649         * m4/ptrdiff_max.m4: Remove file.
71650
71651 2006-11-21  Bruno Haible  <bruno@clisp.org>
71652
71653         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
71654         _AC_COMPUTE_INT.
71655         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71656         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
71657         _AC_COMPUTE_INT.
71658         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71659         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
71660         _AC_COMPUTE_INT.
71661         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71662
71663 2006-11-28  Jim Meyering  <jim@meyering.net>
71664
71665         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
71666         warning from "gcc -Wshadow" about shadowing the builtin.
71667
71668 2006-11-27  Bruno Haible  <bruno@clisp.org>
71669
71670         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
71671         _AC_COMPUTE_INT.
71672         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
71673
71674 2006-11-27  Bruno Haible  <bruno@clisp.org>
71675             Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
71678
71679 2006-11-26  Bruno Haible  <bruno@clisp.org>
71680
71681         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
71682         noinst_LTLIBRARIES.
71683
71684 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
71685             Bruno Haible  <bruno@clisp.org>
71686
71687         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
71688         if compiling with "gcc -ansi".
71689
71690 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
71691
71692         Fix some incompatibilities with gcc -ansi -pedantic.
71693         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
71694         if compiling pedantically with GCC, unless it's C99 or later.
71695         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
71696         it mishandles gcc -ansi -pedantic as well.
71697         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
71698         if gcc -pedantic.
71699         * lib/regexec.c (check_node_accept_bytes): Don't use auto
71700         initializers for struct if -pedantic, unless it's C99 or later.
71701
71702 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
71703
71704         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
71705         Don't close an fd more than once. Identical atimes indicate
71706         success, not failure.
71707
71708 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
71709
71710         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
71711
71712 2006-11-23  Jim Meyering  <jim@meyering.net>
71713
71714         * build-aux/announce-gen: New file.  From coreutils.
71715
71716 2006-11-22  Jim Meyering  <jim@meyering.net>
71717
71718         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
71719         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
71720         (fts_read): Use a temporary to narrow the overused st_size member
71721         before using it in a switch statement.  Reported by Matthew Woehlke.
71722
71723         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
71724         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
71725
71726 2006-11-20  Bruno Haible  <bruno@clisp.org>
71727
71728         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
71729         changequote instead of pairs of brackets.
71730         Reported by Andreas Schwab <schwab@suse.de>.
71731
71732 2006-11-21  Jim Meyering  <jim@meyering.net>
71733
71734         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
71735         so as to remain compatible with older compilers.
71736         Patch from Michael Deutschmann.
71737
71738 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * MODULES.html.sh (File system functions): Add openat.
71741
71742         * lib/openat.h (rpl_fstatat): New macro, if
71743         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
71744         (fstatat): Define to rpl_fstatat under the same conditions,
71745         unless COMPILING_FSTATAT.
71746         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
71747         seems to have the bug.
71748         * lib/fstatat.c: New file.
71749         * modules/openat (Files): Add it.
71750
71751 2006-11-20  Bruno Haible  <bruno@clisp.org>
71752
71753         * Makefile: New file.
71754
71755 2006-11-20  Jim Meyering  <jim@meyering.net>
71756
71757         The beginnings of syntax-related checks for gnulib.
71758         * lib/Makefile: New file.
71759         * lib/t-idcache: New script.  Ensure that the two halves of
71760         idcache.c stay in sync.
71761
71762         * lib/idcache.c: Adjust comments in user- and group- portions to
71763         be more accurate, and to be consistent with one another.
71764
71765 2006-11-20  Jim Meyering  <jim@meyering.net>
71766
71767         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
71768         continue using the flexible array member (thus, this module performs
71769         half as many malloc calls), with the addition that...
71770         (getgroup, getuser): Consistently record a non-match via an empty
71771         "name" string, and map an empty string match to a NULL return value.
71772         * modules/idcache (Depends-on): Re-add flexmember.
71773
71774         * lib/idcache.c (getuser): Remove all uses of the register keyword.
71775         (getuidbyname, getgroup, getgidbyname): Likewise.
71776
71777         Use cleaner syntax: NULL rather than 0.
71778         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
71779
71780 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
71783         It mishandled the case where the group was missing.
71784         Problem reported by Greg Schafer.
71785         * modules/idcache: Likewise.
71786
71787 2006-11-18  Jim Meyering  <jim@meyering.net>
71788
71789         * check-module (%exempt_header): Add exception for some
71790         conditionally-included headers.
71791
71792         * modules/i-ring (Depends-on): Add verify.
71793         (License): Change to LGPL.
71794
71795 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
71796
71797         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
71798         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
71799         and inttostr.h.  Use snprintf rather than uinttostr, so that
71800         LGPLed code doesn't depend on GPLed.
71801
71802 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
71803
71804         * modules/inline (License): Change from GPL to LGPL.
71805
71806 2006-11-17  Jim Meyering  <jim@meyering.net>
71807
71808         * modules/d-type (License): Switch to LGPL.
71809
71810 2006-11-15  Bruno Haible  <bruno@clisp.org>
71811
71812         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71813
71814 2006-11-15  Eric Blake  <ebb9@byu.net>
71815
71816         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71817         the module dependency.
71818
71819 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71820             Bruno Haible  <bruno@clisp.org>
71821
71822         * gnulib-tool (func_create_testdir): Add license consistency check.
71823
71824 2006-11-15  Eric Blake  <ebb9@byu.net>
71825
71826         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71827         random "(cached)" in configure output.
71828
71829 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71830
71831         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71832         test for conforming inttypes.h is both announced and cached.
71833
71834         * MODULES.html.sh (seen_modules, seen_files): New variables.
71835         (func_module): Rewrite to use a few less gnulib-tool and sed
71836         invocations.  Avoid a couple of quadratic algorithms for ...
71837         (missed_modules, missed_files): ... these, with ...
71838         (func_append, func_tmpdir): ... these new functions, from
71839         gnulib-tool.  Analogously, install traps for cleanup.
71840
71841         * tests/test-gc.c (main): Remove unused variables.
71842         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71843
71844 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * modules/inttostr (License): Change to LGPL.
71847
71848 2006-11-14  Eric Blake  <ebb9@byu.net>
71849
71850         * modules/tempname (License): Change to LGPL.
71851
71852 2006-11-14  Eric Blake  <ebb9@byu.net>
71853
71854         * doc/functions.texi (Function Portability): *printf functions on
71855         Cygwin now understand all POSIX size specifiers.
71856
71857 2006-11-14  Bruno Haible  <bruno@clisp.org>
71858
71859         * modules/c-ctype (License): Change to LGPL.
71860
71861 2006-11-12  Bruno Haible  <bruno@clisp.org>
71862
71863         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71864         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71865         for GNOME libraries, for which the include files are installed in
71866         subdirectories of $prefix/include.
71867
71868 2006-11-12  Bruno Haible  <bruno@clisp.org>
71869
71870         * m4/lib-link.m4: Require at least autoconf-2.54.
71871         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71872         name to underscores for the --with option.
71873
71874 2006-11-13  Bruno Haible  <bruno@clisp.org>
71875
71876         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71877         the tests directory.
71878         Reported by Ralf Wildenhues.
71879
71880 2006-11-13  Bruno Haible  <bruno@clisp.org>
71881
71882         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71883         (func_emit_initmacro_end): Undo the override here.
71884         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71885         Works around the famous automake error in coreutils.
71886
71887 2006-11-13  Eric Blake  <ebb9@byu.net>
71888
71889         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71890         element, not its node.
71891
71892 2006-11-12  Bruno Haible  <bruno@clisp.org>
71893
71894         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71895         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71896
71897 2006-11-12  Bruno Haible  <bruno@clisp.org>
71898
71899         * gnulib-tool: New option --local-symlink.
71900         (func_usage): Document it.
71901         (lsymbolic): New variable.
71902         (func_import, func_create_testdir): If --symlink was not specified,
71903         test whether --local-symlink was specified and the file comes from
71904         the local_gnulib_dir.
71905
71906 2006-11-12  Bruno Haible  <bruno@clisp.org>
71907
71908         * gnulib-tool (func_ln): New function.
71909         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71910
71911 2006-11-12  Bruno Haible  <bruno@clisp.org>
71912
71913         Finish support for source files in subdirectories.
71914         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71915         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71916         AUTOMAKE_OPTIONS.
71917         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71918
71919 2006-11-12  Bruno Haible  <bruno@clisp.org>
71920
71921         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71922         EXTRA_lib_SOURCES augmentation.
71923         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71924
71925 2006-11-12  Jim Meyering  <jim@meyering.net>
71926
71927         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71928         file descriptors.  This also averts a failure on systems with
71929         native openat support when a traversed directory lacks "x" access.
71930         * lib/fts_.h: Include "i-ring.h"
71931         (struct FTS) [fts_fd_ring]: New member.
71932         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71933         (FCHDIR): Add parentheses.
71934         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71935         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71936         When descending, rather than simply closing the previous
71937         fts_cwd_fd value, push that file descriptor onto the ring.
71938         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71939         (fts_open): Initialize the new fd_ring member.
71940         (fts_close): Clear the ring.
71941         (fts_safe_changedir): When possible, use our new fd_ring to skip
71942         the diropen and fstat and dev/ino comparison that would normally
71943         accompany a virtual `chdir ("..")'.
71944
71945         * modules/fts (Depends-on): Add i-ring.
71946         * modules/i-ring: New module.
71947         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71948         * m4/i-ring.m4: New file.
71949
71950 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71951
71952         * gnulib-tool (func_create_testdir): Fix replacement of
71953         `build-aux' in configure.ac.  Run autotools in gltests
71954         subdirectory.
71955         (func_create_testdir, func_create_megatestdir, test): There is
71956         no need for '--force' in most autotool invocations in a new
71957         tree.  Actually fail the whole test if any of the tools, or the
71958         configure or make stages fail.
71959
71960         Sync from Automake.
71961         * build-aux/gnupload: Revert last change.  Add pointer to upload
71962         instructions of the GNU Maintenance Instructions.
71963         Suggestion by Karl Berry.
71964
71965 2006-11-10  Jim Meyering  <jim@meyering.net>
71966
71967         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71968
71969 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71970
71971         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71972         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71973         (bind_textdomain_codeset) [! ENABLE_NLS]:
71974         Evaluate all the arguments.  That way, callers get compatible behavior
71975         if the arguments have side effects.  Also, it avoids some GCC
71976         diagnostics in some cases; Joel E. Denny reported problems when Bison
71977         was configured with --enable-gcc-warnigs.
71978
71979 2006-11-10  Jim Meyering  <jim@meyering.net>
71980
71981         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71982         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71983         account.
71984
71985 2006-11-10  Jim Meyering  <jim@meyering.net>
71986
71987         * modules/inline: New file/module.
71988         * modules/xalloc (Files): Remove m4/inline.m4.
71989         (Depends-on): Add inline, instead.
71990         * modules/oset: Likewise.
71991         * modules/list: Likewise.
71992
71993 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71996         Problem reported by Matthew Woehlke.
71997
71998 2006-11-09  Bruno Haible  <bruno@clisp.org>
71999
72000         * lib/tempname.c (gen_tempname): Remove variant that invokes
72001         __gen_tempname.
72002         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
72003         __gen_tempname.
72004
72005 2006-11-08  Bruno Haible  <bruno@clisp.org>
72006
72007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
72008         to 'yes' instead of 'cross-compiling'.
72009
72010 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
72011
72012         * lib/quotearg.h (quotearg_free): New decl.
72013         * lib/quotearg.c (quotearg_free): New function.
72014         (slot0, nslots, slotvec0, slotvec):
72015         Now file-scope so that quotearg_free can get at them.
72016
72017 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72018
72019         Sync from Automake.
72020         * build-aux/gnupload: Add missing 'gnu' to example URL.
72021         Report by Karl Berry.
72022
72023 2006-11-08  Bruno Haible  <bruno@clisp.org>
72024
72025         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
72026         Suggested by Paul Eggert.
72027
72028 2006-11-08  Jim Meyering  <jim@meyering.net>
72029
72030         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
72031         It's already included if !_LIBC.
72032         (fts_safe_changedir): Add a comment.
72033
72034 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72035
72036         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
72037         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
72038         Matthew Woehlke.
72039
72040         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
72041         definitions up, to avoid colliding with change below.
72042         (static_inline) [HAVE_INLINE]: New macro.
72043         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
72044         Provide extern decls when !HAVE_INLINE.  Do not define unless
72045         static_inline is defined, either by us or by xmalloc.c.  Use
72046         static_inline rather than static inline.
72047         (XCALLOC): Optimize sizeof(T) = 1 case.
72048         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
72049
72050 2006-11-07  Bruno Haible  <bruno@clisp.org>
72051
72052         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
72053         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
72054         AC_C_INLINE.
72055         * modules/xalloc (Files): Add m4/inline.m4.
72056
72057 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72058
72059         * README: Fix typo.
72060         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
72061         (Miscellanous Notes): ...from this.
72062
72063 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
72064
72065         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
72066         Mention that offsetof should be used instead of sizeof.
72067         From Bruno Haible.
72068
72069 2006-11-07  Bruno Haible  <bruno@clisp.org>
72070
72071         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
72072
72073 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72074
72075         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72076         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
72077         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72078         (gl_tree_add_before, gl_tree_add_after):
72079         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
72080         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
72081         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
72082         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
72083         (gl_linked_add_after, gl_linked_add_at): Likewise.
72084         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
72085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
72086         (gl_tree_add_before, gl_tree_add_after): Likewise.
72087         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
72088         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
72089         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
72090
72091 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72092
72093         * lib/gl_oset.h: Use C comment style, not C++ comment style.
72094
72095 2006-11-06  Bruno Haible  <bruno@clisp.org>
72096
72097         * m4/inline.m4: New file.
72098         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
72099         * modules/list (Files): Add m4/inline.m4.
72100         * modules/oset (Files): Likewise.
72101
72102 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
72103
72104         * lib/idcache.c: Include <stddef.h>, for offsetof.
72105         (struct userid.name): Change from char * to a flexible array member.
72106         All uses changed.
72107         * modules/idcache (Depends-on): Add flexmember.
72108
72109         * MODULES.html.sh (Core language properties): New module flexmember.
72110         * modules/flexmember, m4/flexmember.m4: New files.
72111
72112         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
72113         inline functions that are identical with the old xnmalloc_inline,
72114         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
72115         that we can avoid some unnecessary integer multiplications and
72116         divisions in the common case where the element size is known at
72117         compile time.
72118         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
72119         needed.
72120         (xnboundedmalloc): Remove.
72121         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
72122         arguments, for consistency with rest of this header.
72123         (xcharalloc): Rewrite using XNMALLOC.
72124         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
72125         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
72126         versions have been moved to lib/xalloc.h and renamed to be the
72127         non-*_inline versions.
72128         (xmalloc, xrealloc): Implement without reference to the xnmalloc
72129         and xnrealloc functions, since those functions are now inline and
72130         now call us.
72131         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
72132         renaming described above.
72133         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
72134         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
72135         captures the dependency in AC_C_INLINE.
72136
72137         New module canonicalize-lgpl, proposed by Charles Wilson in
72138         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
72139         with a few small changes afterwards.
72140         * MODULES.html.sh (File system functions): New module
72141         canonicalize-lgpl.
72142         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
72143         and canonicalize_file_name.
72144         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
72145         * modules/canonicalize-lgpl: New files.
72146
72147 2006-11-05  Bruno Haible  <bruno@clisp.org>
72148
72149         * gnulib-tool (func_import, func_create_testdir): Create directories
72150         also for files in subdirectories of lib/.
72151
72152 2006-11-05  Bruno Haible  <bruno@clisp.org>
72153
72154         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
72155         ANSI C compliant.
72156
72157 2006-11-03  Bruno Haible  <bruno@clisp.org>
72158
72159         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
72160         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
72161         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
72162         (xnboundedmalloc): New inline function.
72163         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
72164         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
72165         xmalloc.
72166         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
72167         xmalloc.
72168         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
72169         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
72170         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
72171         xmalloc.
72172         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72173         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
72174         xmalloc.
72175         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
72176         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72177         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
72178         xmalloc.
72179         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
72180         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
72181         gl_tree_add_after): Use XMALLOC instead of xmalloc.
72182         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
72183         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
72184         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
72185         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
72186
72187 2006-11-03  Bruno Haible  <bruno@clisp.org>
72188
72189         * lib/c-ctype.h [C++]: Define functions without name mangling.
72190         * lib/fwriteerror.h [C++]: Likewise.
72191         * lib/gcd.h [C++]: Likewise.
72192         * lib/linebreak.h [C++]: Likewise.
72193
72194 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
72197         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
72198         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
72199         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
72200         Check for functions and headers just once.
72201         Check for declaration of canonicalize_file_name.
72202         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
72203
72204 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72205
72206         * gnulib-tool (func_import): Fix typo in actioncmd.
72207
72208 2006-11-02  Bruno Haible  <bruno@clisp.org>
72209
72210         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
72211         newline sequence in the Makefile.am snippet as a space, like "make"
72212         does.
72213         Reported by Roger Persson <perrog@gmail.com>.
72214
72215 2006-11-01  Bruno Haible  <bruno@clisp.org>
72216
72217         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
72218         already declared in <string.h>.
72219         * lib/strcase.h (strncasecmp): Don't declare it if yes.
72220
72221 2006-11-01  Bruno Haible  <bruno@clisp.org>
72222
72223         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
72224         * lib/strcase.h: Include <string.h>.
72225         (strcasecmp): Define to rpl_strcasecmp here.
72226
72227 2006-11-01  Bruno Haible  <bruno@clisp.org>
72228
72229         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
72230
72231 2006-11-01  Eric Blake  <ebb9@byu.net>
72232
72233         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
72234
72235         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
72236
72237 2006-10-29  Bruno Haible  <bruno@clisp.org>
72238
72239         Make it compile in C++ mode.
72240         * lib/full-write.c (full_rw): Add a cast.
72241
72242 2006-11-01  Bruno Haible  <bruno@clisp.org>
72243
72244         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
72245         be POSIX compliant.
72246         Reported by Roger Persson <perrog@gmail.com>.
72247
72248 2006-11-01  Eric Blake  <ebb9@byu.net>
72249
72250         * lib/getopt_.h: Fix comments.
72251
72252 2006-10-31  Eric Blake  <ebb9@byu.net>
72253
72254         * modules/tmpdir (Depends-on): Add sys_stat.
72255         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
72256         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
72257         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
72258         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
72259         tempname.
72260
72261 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
72262
72263         Avoid some C++ diagnostics reported by Bruno Haible.
72264         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
72265         xmalloc.
72266         (quotearg_alloc): Use xcharalloc rather than xmalloc.
72267         (struct slotvec): Move to top level.
72268         (quotearg_n_options): Rewrite to avoid xmalloc.
72269         * lib/xalloc.h (xcharalloc): New function.
72270         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
72271         [defined __cplusplus]: Add function template that provides result
72272         type propagation.  This part of the change is from Bruno Haible.
72273
72274 2006-10-29  Bruno Haible  <bruno@clisp.org>
72275
72276         Make it compile in C++ mode.
72277         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
72278         * lib/strnlen1.c (strnlen1): Cast memchr result.
72279         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
72280         * lib/clean-temp.c (string_equals, string_hash): Add casts.
72281         (create_temp_dir): Rename local variable 'template'.
72282         (compile_csharp_using_sscli): Add cast.
72283         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
72284         * lib/findprog.c (find_in_path): Likewise.
72285         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
72286         * lib/wait-process.c (register_slave_subprocess): Likewise.
72287
72288 2006-10-22  Bruno Haible  <bruno@clisp.org>
72289
72290         * modules/tsearch: New file.
72291         * lib/tsearch.h: New file.
72292         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
72293         * m4/tsearch.m4: New file.
72294         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
72295
72296 2006-10-29  Eric Blake  <ebb9@byu.net>
72297
72298         * lib/arcfour.c: Assume config.h.
72299         * lib/arctwo.c: Likewise.
72300         * lib/base64.c: Likewise.
72301         * lib/check-version.c: Likewise.
72302         * lib/crc.c: Likewise.
72303         * lib/des.c: Likewise.
72304         * lib/gc-gnulib.c: Likewise.
72305         * lib/gc-libgcrypt.c: Likewise.
72306         * lib/gc-pbkdf2-sha1.c: Likewise.
72307         * lib/getaddrinfo.c: Likewise.
72308         * lib/getdelim.c: Likewise.
72309         * lib/getline.c: Likewise.
72310         * lib/hmac-md5.c: Likewise.
72311         * lib/hmac-sha1.c: Likewise.
72312         * lib/iconvme.c: Likewise.
72313         * lib/md2.c: Likewise.
72314         * lib/md4.c: Likewise.
72315         * lib/memxor.c: Likewise.
72316         * lib/read-file.c: Likewise.
72317         * lib/readline.c: Likewise.
72318         * lib/rijndael-alg-fst.c: Likewise.
72319         * lib/rijndael-api-fst.c: Likewise.
72320         * lib/xgetdomainname.c: Likewise.
72321
72322 2006-10-28  Eric Blake  <ebb9@byu.net>
72323
72324         * lib/xstrndup.c: Assume config.h.
72325
72326 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
72327
72328         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
72329         stat-macros.h is now for our own macros, whereas stat_h is for
72330         macros in the <sys/stat.h> name space.
72331         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
72332         (STAT_MACROS_H): Remove.
72333         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
72334         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
72335         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
72336         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
72337         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
72338         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
72339         Move these macros to ...
72340         * lib/stat_.h: here.  Don't include stat-macros.h.
72341         * lib/canonicalize.c: Don't include stat-macros.h.
72342         * lib/chown.c: Likewise.
72343         * lib/euidaccess.c: Likewise.
72344         * lib/file-type.c: Likewise.
72345         * lib/filemode.c: Likewise.
72346         * lib/glob.c: Likewise.
72347         * lib/isapipe.c: Likewise.
72348         * lib/lchown.c: Likewise.
72349         * lib/lstat.c: Likewise.
72350         * lib/mkdir-p.c: Likewise.
72351         * lib/rmdir.c: Likewise.
72352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
72353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
72354         unless mkdir isn't declared, to speed up 'configure'.
72355         Always create sys/stat.h, since it's unlikely any real sys/stat.h
72356         would define all the S_* symbols.
72357         * modules/canonicalize (Depends-on):
72358         Depend on sys_stat, not stat-macros.
72359         * modules/chown: Likewise.
72360         * modules/euidaccess: Likewise.
72361         * modules/filemode: Likewise.
72362         * modules/file-type: Likewise.
72363         * modules/glob: Likewise.
72364         * modules/isapipe: Likewise.
72365         * modules/lchown: Likewise.
72366         * modules/lstat: Likewise.
72367         * modules/mkancesdirs: Likewise.
72368         * modules/rmdir: Likewise.
72369         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
72370         * modules/modechange: Likewise.
72371         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
72372         (configure.ac): Remove gl_STAT_MACROS.
72373         * modules/sys_stat (Depends-on): Remove stat-macros.
72374
72375 2006-10-27  Bruno Haible  <bruno@clisp.org>
72376
72377         * m4/signed.m4: Remove file.
72378         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
72379         invocation.
72380         * modules/vasnprintf (Files): Remove m4/signed.m4.
72381
72382 2006-10-27  Bruno Haible  <bruno@clisp.org>
72383
72384         Update to GNU gettext 0.16.
72385         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
72386         m4/inttypes-h.m4, m4/signed.m4.
72387         * m4/gettext.m4: Update to GNU gettext 0.16.
72388         * m4/intl.m4: New file, from GNU gettext.
72389         * m4/intldir.m4: New file, from GNU gettext.
72390         * config/srclist.txt: Update
72391
72392 2006-10-27  Eric Blake  <ebb9@byu.net>
72393
72394         * MODULES.html.sh: Document tempname.
72395         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
72396         dependencies.
72397         (Files): Move lib/tempname.c...
72398         * modules/tempname: ...to this new module.
72399         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
72400         (gl_PREREQ_TEMPNAME): Move...
72401         * m4/tempname.m4: ...to this new file.
72402         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
72403         * modules/sys_stat (Depends-on): Add stat-macros.
72404         * lib/stat_.h (includes): Pick up stat macros.
72405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
72406         if stat macros are broken.
72407         * lib/tempname.c (includes): No need to include "stat-macros.h".
72408         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
72409         (direxists, __path_search) [!_LIBC]: Don't compile these in
72410         gnulib; the tmpdir module covers that.
72411         * lib/tempname.h: New file.
72412
72413 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
72414
72415         * COPYING: Explain how gnulib-tool converts licence headers.
72416         Almost all wording by Eric Blake.
72417
72418 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * lib/mbchar.h (is_basic_table): Make read-only.
72421         * lib/mbchar.c (is_basic_table): Likewise.
72422         Reported by John Darrington.
72423
72424 2006-10-25  Bruno Haible  <bruno@clisp.org>
72425
72426         * lib/progname.h (set_program_name): Undefine before defining.
72427
72428 2006-10-25  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
72431         false for non-gcc C++ compilers.
72432         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
72433
72434 2006-10-24  Bruno Haible  <bruno@clisp.org>
72435
72436         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
72437         iconv implementations like Irix iconv.
72438
72439 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72440
72441         * modules/vararrays: New file.
72442         * m4/vararrays.m4: New file, taken from diffutils.
72443         * MODULES.html.sh: New module vararrays.
72444
72445 2006-10-24  Karl Berry  <karl@gnu.org>
72446
72447         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
72448         Don't call GNU Unix.
72449
72450 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72451
72452         * users.txt: Add Libtool.
72453
72454         Sync from Libtool:
72455
72456         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
72459         to gnulib's policy of including config.h unconditionally.
72460
72461 2006-10-24  Bruno Haible  <bruno@clisp.org>
72462
72463         * modules/wcwidth (Files): Add m4/wint_t.m4.
72464         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
72465         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
72466
72467 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
72468
72469         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
72470         to pacify GCC with some -W flags enabled.  Problem reported by
72471         Bruno Haible.
72472
72473 2006-10-24  Jim Meyering  <jim@meyering.net>
72474
72475         * MODULES.html.sh: Remove uinttostr.  It's not a module.
72476         Reported by Karl Berry.
72477
72478 2006-10-23  Bruno Haible  <bruno@clisp.org>
72479
72480         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
72481
72482 2006-10-24  Bruno Haible  <bruno@clisp.org>
72483
72484         * lib/gl_list.h: Use C comment style, not C++ comment style.
72485
72486 2006-10-23  Eric Blake  <ebb9@byu.net>
72487
72488         * lib/getaddrinfo.c (includes): Add missing include.
72489
72490 2006-10-23  Bruno Haible  <bruno@clisp.org>
72491             Paul Eggert  <eggert@cs.ucla.edu>
72492
72493         Ability to rename obstack_free.
72494         * lib/obstack.h (__obstack_free): New macro. Declare instead of
72495         obstack_free.
72496         (obstack_free): Invoke the __obstack_free macro.
72497         * lib/obstack.c (obstack_free): Use __obstack_free macro.
72498
72499 2006-10-23  Bruno Haible  <bruno@clisp.org>
72500             Paul Eggert  <eggert@cs.ucla.edu>
72501
72502         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
72503         __argc, __argv from the declaration. (They are defined as macros on
72504         mingw.)
72505
72506 2006-10-22  Bruno Haible  <bruno@clisp.org>
72507
72508         * doc/gnulib-intro.texi: New file.
72509         * doc/gnulib.texi: Include it.
72510
72511 2006-10-21  Bruno Haible  <bruno@clisp.org>
72512
72513         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
72514         "Introduction", "Miscellanous Notes", "Particular Modules".
72515
72516 2006-10-21  Bruno Haible  <bruno@clisp.org>
72517
72518         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72519         Change mostlyclean-local rule to avoid sh syntax error from bash
72520         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
72521
72522 2006-10-23  Jim Meyering  <jim@meyering.net>
72523
72524         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
72525         in place of snprintf.
72526
72527         * modules/inttostr (Files): Add lib/uinttostr.c.
72528         * lib/uinttostr.c (inttostr): New file/function.
72529         * lib/inttostr.h (uinttostr): Declare.
72530         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
72531         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
72532         Add uinttostr.
72533         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
72534
72535 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/canonicalize.c (ELOOP): Define if not already defined.
72538         Problem reported by Bruno Haible in
72539         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
72540
72541 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
72542
72543         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
72544         Problem reported by Perry Smith and Ville Laurikari.
72545
72546         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
72547         uses.
72548
72549 2006-10-19  Bruno Haible  <bruno@clisp.org>
72550
72551         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
72552         for mingw.
72553
72554 2006-10-19  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
72557         Needed for mingw.
72558
72559 2006-10-19  Bruno Haible  <bruno@clisp.org>
72560
72561         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
72562
72563 2006-10-19  Bruno Haible  <bruno@clisp.org>
72564
72565         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
72566         it.
72567
72568 2006-10-19  Bruno Haible  <bruno@clisp.org>
72569
72570         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
72571         invocation.
72572
72573 2006-10-19  Bruno Haible  <bruno@clisp.org>
72574
72575         * gnulib-tool (func_create_testdir): Don't include ftruncate and
72576         mountlist by default.
72577
72578 2006-10-16  Bruno Haible  <bruno@clisp.org>
72579
72580         * lib/c-strstr.c: Include c-strstr.h.
72581
72582 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72583
72584         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
72585         in a slash.
72586
72587 2006-10-18  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/lock.h [C++]: Wrap definitions in extern "C".
72590
72591 2006-10-18  Bruno Haible  <bruno@clisp.org>
72592
72593         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
72594         gl_LIBOBJS list.
72595
72596 2006-10-18  Bruno Haible  <bruno@clisp.org>
72597
72598         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
72599
72600 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
72601
72602         * lib/xstrtol.h: Include gettext.h.
72603         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
72604         Problem reported by Eric Blake.
72605         * modules/xstrtol (Depends-on): Add gettext-h.
72606
72607 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
72608
72609         * lib/strftime.c (advance): New macro.
72610         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
72611         incomplete type, so you can't add 0 to it.  Problem and patch
72612         reported by Eelco Dolstra for dietlibc.
72613
72614 2006-10-18  Jim Meyering  <jim@meyering.net>
72615
72616         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
72617         type for a local, and rename it: s/up/user_proc/.
72618
72619 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
72620
72621         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
72622         READ_UTMP_USER_PROCESS.
72623         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
72624
72625 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
72626
72627         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
72628         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
72629
72630 2006-10-17  Eric Blake  <ebb9@byu.net>
72631
72632         * lib/sigprocmask.c (sigprocmask): Fix typo.
72633
72634         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
72635
72636         * modules/clean-temp (Makefile.am): Don't add to make output...
72637         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
72638         config.h.
72639
72640 2006-10-17  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
72643         differently if DEFAULT_TEXT_DOMAIN is set.
72644
72645 2006-10-16  Bruno Haible  <bruno@clisp.org>
72646
72647         * lib/clean-temp.c: Include fwriteerror.h.
72648
72649 2006-10-16  Bruno Haible  <bruno@clisp.org>
72650
72651         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
72652
72653 2006-10-16  Bruno Haible  <bruno@clisp.org>
72654
72655         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
72656         * lib/sigprocmask.h: Include <sys/types.h>.
72657         (sigset_t): Use the system's definition if present.
72658
72659 2006-10-17  Eric Blake  <ebb9@byu.net>
72660
72661         * lib/xvasprintf.c (includes): Assume config.h.
72662         * lib/xasprintf.c (includes): Likewise.
72663
72664 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
72665
72666         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
72667         at least as wide as intmax_t.
72668
72669 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
72670
72671         (Imported from Automake.)
72672         * build-aux/gnupload: Update to version 1.1 of directive file.
72673
72674 2006-10-16  Eric Blake  <ebb9@byu.net>
72675
72676         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
72677         match Automake 1.10a.
72678
72679 2006-10-14  Bruno Haible  <bruno@clisp.org>
72680
72681         * modules/sigprocmask: New file.
72682         * lib/sigprocmask.h: New file.
72683         * lib/sigprocmask.c: New file.
72684         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
72685         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
72686         request sigprocmask.o.
72687         (gl_PREREQ_SIGPROCMASK): New macro.
72688         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
72689         (Depends-on): Add sigprocmask.
72690         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
72691         gt_SIGNALBLOCKING. Test for 'raise' only once.
72692         * lib/fatal-signal.c: Include sigprocmask.h.
72693         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
72694         unblock_fatal_signals): Define always.
72695         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72696         sigprocmask.
72697
72698 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         Sync from Automake.
72701         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
72702         which incorrectly sets the mode of an existing destination
72703         directory.  In some cases the unpatched install-sh could do the
72704         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
72705         system.  We hope this is rare in practice, but it's clearly worth
72706         fixing.  Problem reported by Alex Unleashed in
72707         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
72708         Also, don't bother to check for -m bugs unless we're using -m;
72709         suggested by Stepan Kasal.
72710
72711 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72712
72713         Sync from Automake.
72714         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
72715         `-c' flag, so they appear at the same position as in %FASTDEP%
72716         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
72717         which ignores unknown options only after the first non-option.
72718         Bug report against M4 by Nelson H. F. Beebe.
72719
72720 2006-10-13  Jim Meyering  <jim@meyering.net>
72721
72722         Fix a bug in yesterday's change.
72723         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
72724         p->fts_statp->st_dev would be used uninitialized.
72725         Ensures that we always call fts_stat on the very first entry.
72726         Miklos Szeredi reported that find -xdev stopped working.
72727
72728 2006-10-12  Bruno Haible  <bruno@clisp.org>
72729
72730         * gnulib-tool (func_get_automake_snippet): Append an automatically
72731         computed EXTRA_DIST augmentation.
72732         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
72733         * modules/alloca-opt (Makefile.am): Likewise.
72734         * modules/allocsa (Makefile.am): Likewise.
72735         * modules/arcfour (Makefile.am): Likewise.
72736         * modules/arctwo (Makefile.am): Likewise.
72737         * modules/argmatch (Makefile.am): Likewise.
72738         * modules/argz (Makefile.am): Likewise.
72739         * modules/atexit (Makefile.am): Likewise.
72740         * modules/backupfile (Makefile.am): Likewise.
72741         * modules/byteswap (Makefile.am): Likewise.
72742         * modules/c-strtod (Makefile.am): Likewise.
72743         * modules/c-strtold (Makefile.am): Likewise.
72744         * modules/calloc (Makefile.am): Likewise.
72745         * modules/canon-host (Makefile.am): Likewise.
72746         * modules/canonicalize (Makefile.am): Likewise.
72747         * modules/chdir-long (Makefile.am): Likewise.
72748         * modules/chdir-safer (Makefile.am): Likewise.
72749         * modules/check-version (Makefile.am): Likewise.
72750         * modules/chown (Makefile.am): Likewise.
72751         * modules/cloexec (Makefile.am): Likewise.
72752         * modules/close-stream (Makefile.am): Likewise.
72753         * modules/closeout (Makefile.am): Likewise.
72754         * modules/crc (Makefile.am): Likewise.
72755         * modules/csharpexec (Makefile.am): Likewise.
72756         * modules/cycle-check (Makefile.am): Likewise.
72757         * modules/des (Makefile.am): Likewise.
72758         * modules/dev-ino (Makefile.am): Likewise.
72759         * modules/dirfd (Makefile.am): Likewise.
72760         * modules/dirname (Makefile.am): Likewise.
72761         * modules/dup2 (Makefile.am): Likewise.
72762         * modules/eealloc (Makefile.am): Likewise.
72763         * modules/error (Makefile.am): Likewise.
72764         * modules/euidaccess (Makefile.am): Likewise.
72765         * modules/exclude (Makefile.am): Likewise.
72766         * modules/exitfail (Makefile.am): Likewise.
72767         * modules/fcntl-safer (Makefile.am): Likewise.
72768         * modules/fcntl (Makefile.am): Likewise.
72769         * modules/file-type (Makefile.am): Likewise.
72770         * modules/fileblocks (Makefile.am): Likewise.
72771         * modules/filemode (Makefile.am): Likewise.
72772         * modules/filenamecat (Makefile.am): Likewise.
72773         * modules/fnmatch (Makefile.am): Likewise.
72774         * modules/fopen-safer (Makefile.am): Likewise.
72775         * modules/fpending (Makefile.am): Likewise.
72776         * modules/fprintftime (Makefile.am): Likewise.
72777         * modules/free (Makefile.am): Likewise.
72778         * modules/fsusage (Makefile.am): Likewise.
72779         * modules/ftruncate (Makefile.am): Likewise.
72780         * modules/fts (Makefile.am): Likewise.
72781         * modules/gc-arcfour (Makefile.am): Likewise.
72782         * modules/gc-des (Makefile.am): Likewise.
72783         * modules/gc-hmac-md5 (Makefile.am): Likewise.
72784         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
72785         * modules/gc-md4 (Makefile.am): Likewise.
72786         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72787         * modules/gc-sha1 (Makefile.am): Likewise.
72788         * modules/gc (Makefile.am): Likewise.
72789         * modules/getaddrinfo (Makefile.am): Likewise.
72790         * modules/getcwd (Makefile.am): Likewise.
72791         * modules/getdelim (Makefile.am): Likewise.
72792         * modules/getdomainname (Makefile.am): Likewise.
72793         * modules/getgroups (Makefile.am): Likewise.
72794         * modules/gethostname (Makefile.am): Likewise.
72795         * modules/gethrxtime (Makefile.am): Likewise.
72796         * modules/getline (Makefile.am): Likewise.
72797         * modules/getloadavg (Makefile.am): Likewise.
72798         * modules/getlogin_r (Makefile.am): Likewise.
72799         * modules/getndelim2 (Makefile.am): Likewise.
72800         * modules/getopt (Makefile.am): Likewise.
72801         * modules/getpagesize (Makefile.am): Likewise.
72802         * modules/getpass-gnu (Makefile.am): Likewise.
72803         * modules/getpass (Makefile.am): Likewise.
72804         * modules/getsubopt (Makefile.am): Likewise.
72805         * modules/gettime (Makefile.am): Likewise.
72806         * modules/gettimeofday (Makefile.am): Likewise.
72807         * modules/getugroups (Makefile.am): Likewise.
72808         * modules/getusershell (Makefile.am): Likewise.
72809         * modules/glob (Makefile.am): Likewise.
72810         * modules/group-member (Makefile.am): Likewise.
72811         * modules/hard-locale (Makefile.am): Likewise.
72812         * modules/hash (Makefile.am): Likewise.
72813         * modules/hmac-md5 (Makefile.am): Likewise.
72814         * modules/hmac-sha1 (Makefile.am): Likewise.
72815         * modules/human (Makefile.am): Likewise.
72816         * modules/idcache (Makefile.am): Likewise.
72817         * modules/imaxabs (Makefile.am): Likewise.
72818         * modules/imaxdiv (Makefile.am): Likewise.
72819         * modules/inet_ntop (Makefile.am): Likewise.
72820         * modules/inet_pton (Makefile.am): Likewise.
72821         * modules/intprops (Makefile.am): Likewise.
72822         * modules/inttostr (Makefile.am): Likewise.
72823         * modules/inttypes (Makefile.am): Likewise.
72824         * modules/isapipe (Makefile.am): Likewise.
72825         * modules/javaversion (Makefile.am): Likewise.
72826         * modules/lchmod (Makefile.am): Likewise.
72827         * modules/lchown (Makefile.am): Likewise.
72828         * modules/localcharset (Makefile.am): Likewise.
72829         * modules/long-options (Makefile.am): Likewise.
72830         * modules/lstat (Makefile.am): Likewise.
72831         * modules/malloc (Makefile.am): Likewise.
72832         * modules/mathl (Makefile.am): Likewise.
72833         * modules/mbchar (Makefile.am): Likewise.
72834         * modules/md2 (Makefile.am): Likewise.
72835         * modules/md4 (Makefile.am): Likewise.
72836         * modules/md5 (Makefile.am): Likewise.
72837         * modules/memcasecmp (Makefile.am): Likewise.
72838         * modules/memchr (Makefile.am): Likewise.
72839         * modules/memcmp (Makefile.am): Likewise.
72840         * modules/memcoll (Makefile.am): Likewise.
72841         * modules/memcpy (Makefile.am): Likewise.
72842         * modules/memmem (Makefile.am): Likewise.
72843         * modules/memmove (Makefile.am): Likewise.
72844         * modules/mempcpy (Makefile.am): Likewise.
72845         * modules/memrchr (Makefile.am): Likewise.
72846         * modules/memset (Makefile.am): Likewise.
72847         * modules/memxor (Makefile.am): Likewise.
72848         * modules/mkancesdirs (Makefile.am): Likewise.
72849         * modules/mkdir-p (Makefile.am): Likewise.
72850         * modules/mkdir (Makefile.am): Likewise.
72851         * modules/mkdtemp (Makefile.am): Likewise.
72852         * modules/mkstemp (Makefile.am): Likewise.
72853         * modules/mktime (Makefile.am): Likewise.
72854         * modules/modechange (Makefile.am): Likewise.
72855         * modules/mountlist (Makefile.am): Likewise.
72856         * modules/nanosleep (Makefile.am): Likewise.
72857         * modules/obstack (Makefile.am): Likewise.
72858         * modules/openat (Makefile.am): Likewise.
72859         * modules/pagealign_alloc (Makefile.am): Likewise.
72860         * modules/pathmax (Makefile.am): Likewise.
72861         * modules/physmem (Makefile.am): Likewise.
72862         * modules/poll (Makefile.am): Likewise.
72863         * modules/posixtm (Makefile.am): Likewise.
72864         * modules/posixver (Makefile.am): Likewise.
72865         * modules/putenv (Makefile.am): Likewise.
72866         * modules/quote (Makefile.am): Likewise.
72867         * modules/quotearg (Makefile.am): Likewise.
72868         * modules/raise (Makefile.am): Likewise.
72869         * modules/read-file (Makefile.am): Likewise.
72870         * modules/readline (Makefile.am): Likewise.
72871         * modules/readlink (Makefile.am): Likewise.
72872         * modules/readtokens (Makefile.am): Likewise.
72873         * modules/readutmp (Makefile.am): Likewise.
72874         * modules/realloc (Makefile.am): Likewise.
72875         * modules/regex (Makefile.am): Likewise.
72876         * modules/rename-dest-slash (Makefile.am): Likewise.
72877         * modules/rename (Makefile.am): Likewise.
72878         * modules/rijndael (Makefile.am): Likewise.
72879         * modules/rmdir (Makefile.am): Likewise.
72880         * modules/rpmatch (Makefile.am): Likewise.
72881         * modules/safe-read (Makefile.am): Likewise.
72882         * modules/safe-write (Makefile.am): Likewise.
72883         * modules/same-inode (Makefile.am): Likewise.
72884         * modules/same (Makefile.am): Likewise.
72885         * modules/save-cwd (Makefile.am): Likewise.
72886         * modules/savedir (Makefile.am): Likewise.
72887         * modules/setenv (Makefile.am): Likewise.
72888         * modules/settime (Makefile.am): Likewise.
72889         * modules/sha1 (Makefile.am): Likewise.
72890         * modules/sig2str (Makefile.am): Likewise.
72891         * modules/snprintf (Makefile.am): Likewise.
72892         * modules/stat-macros (Makefile.am): Likewise.
72893         * modules/stat-time (Makefile.am): Likewise.
72894         * modules/stdbool (Makefile.am): Likewise.
72895         * modules/stdint (Makefile.am): Likewise.
72896         * modules/stdlib-safer (Makefile.am): Likewise.
72897         * modules/stpcpy (Makefile.am): Likewise.
72898         * modules/stpncpy (Makefile.am): Likewise.
72899         * modules/strcase (Makefile.am): Likewise.
72900         * modules/strcasestr (Makefile.am): Likewise.
72901         * modules/strchrnul (Makefile.am): Likewise.
72902         * modules/strcspn (Makefile.am): Likewise.
72903         * modules/strdup (Makefile.am): Likewise.
72904         * modules/strerror (Makefile.am): Likewise.
72905         * modules/strftime (Makefile.am): Likewise.
72906         * modules/strndup (Makefile.am): Likewise.
72907         * modules/strnlen (Makefile.am): Likewise.
72908         * modules/strpbrk (Makefile.am): Likewise.
72909         * modules/strsep (Makefile.am): Likewise.
72910         * modules/strstr (Makefile.am): Likewise.
72911         * modules/strtod (Makefile.am): Likewise.
72912         * modules/strtoimax (Makefile.am): Likewise.
72913         * modules/strtok_r (Makefile.am): Likewise.
72914         * modules/strtol (Makefile.am): Likewise.
72915         * modules/strtoll (Makefile.am): Likewise.
72916         * modules/strtoul (Makefile.am): Likewise.
72917         * modules/strtoull (Makefile.am): Likewise.
72918         * modules/strtoumax (Makefile.am): Likewise.
72919         * modules/strverscmp (Makefile.am): Likewise.
72920         * modules/sys_socket (Makefile.am): Likewise.
72921         * modules/sys_stat (Makefile.am): Likewise.
72922         * modules/sysexits (Makefile.am): Likewise.
72923         * modules/time_r (Makefile.am): Likewise.
72924         * modules/timegm (Makefile.am): Likewise.
72925         * modules/timespec (Makefile.am): Likewise.
72926         * modules/tmpfile-safer (Makefile.am): Likewise.
72927         * modules/trim (Makefile.am): Likewise.
72928         * modules/unistd-safer (Makefile.am): Likewise.
72929         * modules/unlinkdir (Makefile.am): Likewise.
72930         * modules/unlocked-io (Makefile.am): Likewise.
72931         * modules/userspec (Makefile.am): Likewise.
72932         * modules/utime (Makefile.am): Likewise.
72933         * modules/utimecmp (Makefile.am): Likewise.
72934         * modules/utimens (Makefile.am): Likewise.
72935         * modules/vasnprintf (Makefile.am): Likewise.
72936         * modules/vasprintf (Makefile.am): Likewise.
72937         * modules/vsnprintf (Makefile.am): Likewise.
72938         * modules/xalloc (Makefile.am): Likewise.
72939         * modules/xgetcwd (Makefile.am): Likewise.
72940         * modules/xnanosleep (Makefile.am): Likewise.
72941         * modules/xreadlink (Makefile.am): Likewise.
72942         * modules/xstrtod (Makefile.am): Likewise.
72943         * modules/xstrtol (Makefile.am): Likewise.
72944         * modules/xstrtold (Makefile.am): Likewise.
72945         * modules/yesno (Makefile.am): Likewise.
72946         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72947
72948 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72949
72950         * modules/error (Makefile.am): Distribute files through
72951         EXTRA_DIST, not lib_SOURCES.
72952
72953 2006-10-12  Eric Blake  <ebb9@byu.net>
72954
72955         * modules/error (Makefile.am): Distribute files in /lib.
72956         * modules/obstack (Makefile.am): Likewise.
72957
72958 2006-10-12  Bruno Haible  <bruno@clisp.org>
72959
72960         * modules/acl (Makefile.am): Distribute all files in lib/ through
72961         EXTRA_DIST.
72962         * modules/arcfour (Makefile.am): Likewise.
72963         * modules/arctwo (Makefile.am): Likewise.
72964         * modules/argmatch (Makefile.am): Likewise.
72965         * modules/argz (Makefile.am): Likewise.
72966         * modules/atexit (Makefile.am): Likewise.
72967         * modules/backupfile (Makefile.am): Likewise.
72968         * modules/c-strtod (Makefile.am): Likewise.
72969         * modules/c-strtold (Makefile.am): Likewise.
72970         * modules/calloc (Makefile.am): Likewise.
72971         * modules/canon-host (Makefile.am): Likewise.
72972         * modules/canonicalize (Makefile.am): Likewise.
72973         * modules/chdir-long (Makefile.am): Likewise.
72974         * modules/chdir-safer (Makefile.am): Likewise.
72975         * modules/check-version (Makefile.am): Likewise.
72976         * modules/chown (Makefile.am): Likewise.
72977         * modules/cloexec (Makefile.am): Likewise.
72978         * modules/close-stream (Makefile.am): Likewise.
72979         * modules/closeout (Makefile.am): Likewise.
72980         * modules/crc (Makefile.am): Likewise.
72981         * modules/cycle-check (Makefile.am): Likewise.
72982         * modules/des (Makefile.am): Likewise.
72983         * modules/dirfd (Makefile.am): Likewise.
72984         * modules/dirname (Makefile.am): Likewise.
72985         * modules/dup2 (Makefile.am): Likewise.
72986         * modules/euidaccess (Makefile.am): Likewise.
72987         * modules/exclude (Makefile.am): Likewise.
72988         * modules/exitfail (Makefile.am): Likewise.
72989         * modules/fcntl-safer (Makefile.am): Likewise.
72990         * modules/file-type (Makefile.am): Likewise.
72991         * modules/fileblocks (Makefile.am): Likewise.
72992         * modules/filemode (Makefile.am): Likewise.
72993         * modules/filenamecat (Makefile.am): Likewise.
72994         * modules/fnmatch (Makefile.am): Likewise.
72995         * modules/fopen-safer (Makefile.am): Likewise.
72996         * modules/fpending (Makefile.am): Likewise.
72997         * modules/fprintftime (Makefile.am): Likewise.
72998         * modules/free (Makefile.am): Likewise.
72999         * modules/fsusage (Makefile.am): Likewise.
73000         * modules/ftruncate (Makefile.am): Likewise.
73001         * modules/fts (Makefile.am): Likewise.
73002         * modules/gc (Makefile.am): Likewise.
73003         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
73004         * modules/getaddrinfo (Makefile.am): Likewise.
73005         * modules/getcwd (Makefile.am): Likewise.
73006         * modules/getdelim (Makefile.am): Likewise.
73007         * modules/getdomainname (Makefile.am): Likewise.
73008         * modules/getgroups (Makefile.am): Likewise.
73009         * modules/gethostname (Makefile.am): Likewise.
73010         * modules/gethrxtime (Makefile.am): Likewise.
73011         * modules/getline (Makefile.am): Likewise.
73012         * modules/getloadavg (Makefile.am): Likewise.
73013         * modules/getlogin_r (Makefile.am): Likewise.
73014         * modules/getopt (Makefile.am): Likewise.
73015         * modules/getpass (Makefile.am): Likewise.
73016         * modules/getpass-gnu (Makefile.am): Likewise.
73017         * modules/getsubopt (Makefile.am): Likewise.
73018         * modules/gettime (Makefile.am): Likewise.
73019         * modules/gettimeofday (Makefile.am): Likewise.
73020         * modules/getugroups (Makefile.am): Likewise.
73021         * modules/getusershell (Makefile.am): Likewise.
73022         * modules/glob (Makefile.am): Likewise.
73023         * modules/group-member (Makefile.am): Likewise.
73024         * modules/hard-locale (Makefile.am): Likewise.
73025         * modules/hash (Makefile.am): Likewise.
73026         * modules/hmac-md5 (Makefile.am): Likewise.
73027         * modules/hmac-sha1 (Makefile.am): Likewise.
73028         * modules/human (Makefile.am): Likewise.
73029         * modules/idcache (Makefile.am): Likewise.
73030         * modules/imaxabs (Makefile.am): Likewise.
73031         * modules/imaxdiv (Makefile.am): Likewise.
73032         * modules/inet_ntop (Makefile.am): Likewise.
73033         * modules/inet_pton (Makefile.am): Likewise.
73034         * modules/inttostr (Makefile.am): Likewise.
73035         * modules/isapipe (Makefile.am): Likewise.
73036         * modules/lchown (Makefile.am): Likewise.
73037         * modules/long-options (Makefile.am): Likewise.
73038         * modules/lstat (Makefile.am): Likewise.
73039         * modules/malloc (Makefile.am): Likewise.
73040         * modules/mathl (Makefile.am): Likewise.
73041         * modules/mbchar (Makefile.am): Likewise.
73042         * modules/md2 (Makefile.am): Likewise.
73043         * modules/md4 (Makefile.am): Likewise.
73044         * modules/md5 (Makefile.am): Likewise.
73045         * modules/memcasecmp (Makefile.am): Likewise.
73046         * modules/memchr (Makefile.am): Likewise.
73047         * modules/memcmp (Makefile.am): Likewise.
73048         * modules/memcoll (Makefile.am): Likewise.
73049         * modules/memcpy (Makefile.am): Likewise.
73050         * modules/memmem (Makefile.am): Likewise.
73051         * modules/memmove (Makefile.am): Likewise.
73052         * modules/mempcpy (Makefile.am): Likewise.
73053         * modules/memrchr (Makefile.am): Likewise.
73054         * modules/memset (Makefile.am): Likewise.
73055         * modules/memxor (Makefile.am): Likewise.
73056         * modules/mkancesdirs (Makefile.am): Likewise.
73057         * modules/mkdir (Makefile.am): Likewise.
73058         * modules/mkdir-p (Makefile.am): Likewise.
73059         * modules/mkdtemp (Makefile.am): Likewise.
73060         * modules/mkstemp (Makefile.am): Likewise.
73061         * modules/mktime (Makefile.am): Likewise.
73062         * modules/modechange (Makefile.am): Likewise.
73063         * modules/mountlist (Makefile.am): Likewise.
73064         * modules/nanosleep (Makefile.am): Likewise.
73065         * modules/openat (Makefile.am): Likewise.
73066         * modules/pagealign_alloc (Makefile.am): Likewise.
73067         * modules/physmem (Makefile.am): Likewise.
73068         * modules/poll (Makefile.am): Likewise.
73069         * modules/posixtm (Makefile.am): Likewise.
73070         * modules/posixver (Makefile.am): Likewise.
73071         * modules/putenv (Makefile.am): Likewise.
73072         * modules/quote (Makefile.am): Likewise.
73073         * modules/quotearg (Makefile.am): Likewise.
73074         * modules/raise (Makefile.am): Likewise.
73075         * modules/read-file (Makefile.am): Likewise.
73076         * modules/readline (Makefile.am): Likewise.
73077         * modules/readlink (Makefile.am): Likewise.
73078         * modules/readtokens (Makefile.am): Likewise.
73079         * modules/readutmp (Makefile.am): Likewise.
73080         * modules/realloc (Makefile.am): Likewise.
73081         * modules/regex (Makefile.am): Likewise.
73082         * modules/rename (Makefile.am): Likewise.
73083         * modules/rename-dest-slash (Makefile.am): Likewise.
73084         * modules/rijndael (Makefile.am): Likewise.
73085         * modules/rmdir (Makefile.am): Likewise.
73086         * modules/rpmatch (Makefile.am): Likewise.
73087         * modules/safe-read (Makefile.am): Likewise.
73088         * modules/safe-write (Makefile.am): Likewise.
73089         * modules/same (Makefile.am): Likewise.
73090         * modules/save-cwd (Makefile.am): Likewise.
73091         * modules/savedir (Makefile.am): Likewise.
73092         * modules/setenv (Makefile.am): Likewise.
73093         * modules/settime (Makefile.am): Likewise.
73094         * modules/sha1 (Makefile.am): Likewise.
73095         * modules/sig2str (Makefile.am): Likewise.
73096         * modules/snprintf (Makefile.am): Likewise.
73097         * modules/stdlib-safer (Makefile.am): Likewise.
73098         * modules/stpcpy (Makefile.am): Likewise.
73099         * modules/stpncpy (Makefile.am): Likewise.
73100         * modules/strcase (Makefile.am): Likewise.
73101         * modules/strcasestr (Makefile.am): Likewise.
73102         * modules/strchrnul (Makefile.am): Likewise.
73103         * modules/strcspn (Makefile.am): Likewise.
73104         * modules/strdup (Makefile.am): Likewise.
73105         * modules/strerror (Makefile.am): Likewise.
73106         * modules/strftime (Makefile.am): Likewise.
73107         * modules/strndup (Makefile.am): Likewise.
73108         * modules/strnlen (Makefile.am): Likewise.
73109         * modules/strpbrk (Makefile.am): Likewise.
73110         * modules/strsep (Makefile.am): Likewise.
73111         * modules/strstr (Makefile.am): Likewise.
73112         * modules/strtod (Makefile.am): Likewise.
73113         * modules/strtoimax (Makefile.am): Likewise.
73114         * modules/strtok_r (Makefile.am): Likewise.
73115         * modules/strtol (Makefile.am): Likewise.
73116         * modules/strtoll (Makefile.am): Likewise.
73117         * modules/strtoul (Makefile.am): Likewise.
73118         * modules/strtoull (Makefile.am): Likewise.
73119         * modules/strtoumax (Makefile.am): Likewise.
73120         * modules/strverscmp (Makefile.am): Likewise.
73121         * modules/time_r (Makefile.am): Likewise.
73122         * modules/timegm (Makefile.am): Likewise.
73123         * modules/tmpfile-safer (Makefile.am): Likewise.
73124         * modules/unistd-safer (Makefile.am): Likewise.
73125         * modules/unlinkdir (Makefile.am): Likewise.
73126         * modules/userspec (Makefile.am): Likewise.
73127         * modules/utime (Makefile.am): Likewise.
73128         * modules/utimecmp (Makefile.am): Likewise.
73129         * modules/utimens (Makefile.am): Likewise.
73130         * modules/vasnprintf (Makefile.am): Likewise.
73131         * modules/vasprintf (Makefile.am): Likewise.
73132         * modules/vsnprintf (Makefile.am): Likewise.
73133         * modules/xalloc (Makefile.am): Likewise.
73134         * modules/xgetcwd (Makefile.am): Likewise.
73135         * modules/xnanosleep (Makefile.am): Likewise.
73136         * modules/xreadlink (Makefile.am): Likewise.
73137         * modules/xstrtod (Makefile.am): Likewise.
73138         * modules/xstrtol (Makefile.am): Likewise.
73139         * modules/xstrtold (Makefile.am): Likewise.
73140         * modules/yesno (Makefile.am): Likewise.
73141
73142 2006-10-12  Jim Meyering  <jim@meyering.net>
73143
73144         * m4/getloadavg.m4: Revert the change below.
73145
73146         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
73147         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
73148         fail with a symlink, which is what coreutils' ./bootstrap now
73149         creates by default.
73150
73151 2006-10-12  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
73154         mingw.
73155         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
73156         MSVC and mingw explicitly.
73157
73158 2006-10-11  Simon Josefsson  <jas@extundo.com>
73159             Bruno Haible  <bruno@clisp.org>
73160
73161         Add support for multiple gnulib-tool invocations in the scope of a
73162         single configure.ac file.
73163         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
73164         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
73165         with the same contents as the _LIBADD variable.
73166         (func_emit_initmacro_start, func_emit_initmacro_end,
73167         func_emit_initmacro_done): New functions.
73168         (func_import, func_create_testdir): Invoke them. Allow the identifiers
73169         gl_LIBOBJS and gl_LTLIBOBJS.
73170
73171 2006-10-11  Bruno Haible  <bruno@clisp.org>
73172
73173         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
73174         (func_create_testdir): Don't create po/Makefile.am, don't invoke
73175         autoreconf. Instead, invoke autopoint explicitly but move back the
73176         *.m4 files from gnulib.
73177
73178 2006-10-11  Bruno Haible  <bruno@clisp.org>
73179
73180         * gnulib-tool (func_usage): Make module names after --create-testdir
73181         optional.
73182         (func_create_testdir): If no module was specified, use nearly all
73183         modules.
73184
73185 2006-10-12  Jim Meyering  <jim@meyering.net>
73186
73187         Big performance improvement for fts-based tools that use FTS_NOSTAT.
73188         Avoid spurious inode-mismatch problems on non-POSIX file systems.
73189         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
73190         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
73191         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
73192         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
73193         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
73194         (fts_set_stat_required): New function.
73195         (fts_open): Defer the calls to fts_stat, if possible or requested.
73196         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
73197         into fts_stat itself.
73198         (fts_read): Perform any required (deferred) fts_stat call.
73199         (fts_build): Likewise, for the directory we're about to open and read.
73200         In the readdir loop, carefully decide whether each entry will require
73201         an eventual call to fts_stat, using dirent.d_type info if available.
73202         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
73203         a command line argument into this function.  Update all callers.
73204         Map a return value of FTS_DOT to FTS_D for a command line argument.
73205         * modules/fts (Depends-on): Add d-type.  Alphabetize.
73206         Thanks to Miklos Szeredi for his tenacity and for the initial
73207         bug report about "find" failing on a FUSE-based file system.
73208
73209         * lib/fts.c (fts_open): Use consistent indentation.
73210
73211 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
73214         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
73215         reported by Jim Meyering.  All uses of cache variables renamed
73216         to match Autoconf's.
73217         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
73218         the other one.
73219
73220         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
73221         Fix misspelling in diagnostic.
73222
73223 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
73226         defined.  Problem reported by Matthew Woehlke.
73227
73228         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
73229         Add support for Tandem NonStop R series.
73230         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
73231         Use new macro.
73232
73233         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
73234         (has_trailing_slash): Omit size arg; all callers changed.
73235         Omit 'inline', since it doesn't help performance and we'd
73236         need to configure it.
73237         Don't count //, ///, etc. as having a trailing slash.
73238         As a side effect, this removes a C99ism reported by Matthew Woehlke.
73239         (rpl_rename_dest_slash): On failure, use rename's errno rather
73240         than (in some cases) an incorrect or junk errno.
73241         Simplify code by removing need to compute length; this does
73242         cause it to make two passes instead of one over the file name,
73243         but it's worth it.
73244
73245         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
73246         change, since Autoconf's version may no longer be appropriate now
73247         that we are using CVS Autoconf's version.  Add support for Tandem.
73248
73249 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
73250             Bruno Haible  <bruno@clisp.org>
73251
73252         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
73253         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
73254         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
73255         gl_AC_TYPE_LONG_LONG.
73256
73257         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
73258         instead of HAVE_LONG_LONG.
73259         * lib/printf-args.c (printf_fetchargs): Likewise.
73260         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
73261         * lib/vasnprintf.c (VASNPRINTF): Likewise.
73262         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
73263         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
73264         gl_AC_TYPE_LONG_LONG.
73265
73266 2006-10-11  Bruno Haible  <bruno@clisp.org>
73267
73268         * m4/longlong.m4: Add comments.
73269         * m4/ulonglong.m4: Likewise.
73270
73271 2006-10-10  Bruno Haible  <bruno@clisp.org>
73272
73273         Make it possible to #define stpcpy, strdup to aliases.
73274         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
73275         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
73276
73277 2006-10-10  Bruno Haible  <bruno@clisp.org>
73278
73279         Make it possible to #define gcd to an alias.
73280         * lib/gcd.c: Include config.h.
73281
73282 2006-10-10  Bruno Haible  <bruno@clisp.org>
73283
73284         Make it possible to #define c_isascii to an alias.
73285         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
73286         defined. Undefine the macros before defining them, to avoid gcc
73287         warnings.
73288         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
73289         define NO_C_CTYPE_MACROS early.
73290
73291 2006-10-10  Bruno Haible  <bruno@clisp.org>
73292
73293         Make it possible to #define set_program_name to an alias.
73294         * lib/progname.c: Don't undefine set_program_name; instead, undefine
73295         ENABLE_RELOCATABLE early.
73296
73297 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
73298
73299         Port to Tandem NSK OSS, which has 64-bit signed int but at most
73300         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
73301         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
73302         More generally, don't assume that 64-bit signed int is available
73303         if unsigned int is, and vice versa.
73304         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
73305         unsigned symbols, not on their signed counterparts.
73306         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
73307         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
73308         (UINT64_C, UINTMAX_C):
73309         Likewise.
73310         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
73311         unsigned counterparts.
73312         (Have_long_long, Unsigned): New macros.
73313         (Int): Renamed from INT.
73314         (strtoimax): Use the new macros.
73315         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
73316         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
73317         * modules/inttypes (inttypes.h): Substitute
73318         HAVE_UNSIGNED_LONG_LONG_INT.
73319         * modules/stdint (stdint.h): Likewise.
73320         (Files): Add m4/ulonglong.m4.
73321
73322 2006-10-10  Bruno Haible  <bruno@clisp.org>
73323
73324         Fix a gcc -Wshadow warning.
73325         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
73326         to 'bucket'.
73327         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
73328         gl_linked_indexof_from_to): Likewise.
73329         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
73330         Likewise.
73331         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
73332         Likewise.
73333         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
73334         Reported by Eric Blake.
73335
73336 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
73339         for NetBSD.  Problem reported by Bruno Haible.
73340
73341 2006-10-09  Jim Meyering  <jim@meyering.net>
73342
73343         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
73344         Patch from Bruno Haible.
73345
73346 2006-10-09  Jim Meyering  <jim@meyering.net>
73347
73348         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
73349         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
73350         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
73351
73352 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73353
73354         Don't include <config.h> twice; this doesn't work in some cases,
73355         e.g., when config.h has "#define intmax_t long long int" and
73356         we include <config.h>, <inttypes.h>, <config.h> in that order.
73357         Problem reported by Matthew Woehlke in:
73358         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
73359         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
73360         * lib/fts-cycle.c: Don't include config.h.
73361         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
73362         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
73363         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
73364         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
73365         inttypes.h.
73366         * lib/xstrtoumax.c: Likewise.
73367         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
73368         __strtol and the like, so that this module is more like its siblings.
73369         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
73370         Remove; no longer needed now that we assume gnulib inttypes.h.
73371
73372 2006-10-08  Bruno Haible  <bruno@clisp.org>
73373
73374         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
73375         option.
73376
73377 2006-10-07  Jim Meyering  <jim@meyering.net>
73378
73379         * modules/inttypes (inttypes.h): Revert what seems to have been
73380         an inadvertent part of today's change: use "|", not "/" in the
73381         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
73382
73383 2006-10-07  Bruno Haible  <bruno@clisp.org>
73384
73385         * modules/sublist: New file.
73386
73387 2006-10-07  Bruno Haible  <bruno@clisp.org>
73388
73389         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
73390         * modules/argz (argz.h): Likewise.
73391         * modules/arpa_inet (arpa/inet.h): Likewise.
73392         * modules/byteswap (byteswap.h): Likewise.
73393         * modules/configmake (configmake.h): Likewise.
73394         * modules/fcntl (fcntl.h): Likewise.
73395         * modules/fnmatch (fnmatch.h): Likewise.
73396         * modules/getopt (getopt.h): Likewise.
73397         * modules/glob (glob.h): Likewise.
73398         * modules/inttypes (inttypes.h): Likewise.
73399         * modules/netinet_in (netinet/in.h): Likewise.
73400         * modules/poll (poll.h): Likewise.
73401         * modules/stdbool (stdbool.h): Likewise.
73402         * modules/stdint (stdint.h): Likewise.
73403         * modules/sys_select (sys/select.h): Likewise.
73404         * modules/sys_socket (sys/socket.h): Likewise.
73405         * modules/sys_stat (sys/stat.h): Likewise.
73406         * modules/sysexits (sysexits.h): Likewise.
73407         * modules/unistd (unistd.h): Likewise.
73408         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73409         Add a "DO NOT EDIT" comment to the generated file.
73410         (func_import): Likewise for gnulib-comp.m4.
73411
73412 2006-10-07  Bruno Haible  <bruno@clisp.org>
73413
73414         * lib/gl_sublist.h: New file.
73415         * lib/gl_sublist.c: New file.
73416
73417 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
73420         name (relative to the original working directory) and the file
73421         name component (relative to the temporary working directory).  All
73422         callers changed.
73423         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
73424         * lib/mkdir-p.c (make_dir_parents): Likewise.
73425         * lib/mkdir-p.h (make_dir_parents): Likewise.
73426
73427 2006-10-06  Eric Blake  <ebb9@byu.net>
73428
73429         Define several macros for use by the clean-temp module.
73430         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
73431         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
73432         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
73433
73434         * lib/clean-temp.h (close_stream_temp): New declaration.
73435         * lib/clean-temp.c (includes): Pull in headers according to what
73436         other modules are in use.
73437         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
73438
73439 2006-10-06  Bruno Haible  <bruno@clisp.org>
73440
73441         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
73442         instead of fopen, fwriteerror.
73443
73444 2006-10-06  Bruno Haible  <bruno@clisp.org>
73445
73446         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
73447         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
73448         int.
73449         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
73450         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
73451         Return an error indicator.
73452         Suggested by Eric Blake.
73453
73454 2006-10-06  Bruno Haible  <bruno@clisp.org>
73455
73456         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
73457         Reported by Eric Blake.
73458
73459 2006-10-06  Bruno Haible  <bruno@clisp.org>
73460
73461         * modules/closeout (Description): Mention stderr too.
73462
73463 2006-10-06  Bruno Haible  <bruno@clisp.org>
73464         and Paul Eggert  <eggert@cs.ucla.edu>
73465
73466         * lib/closeout.c (close_stdout): Also close stderr.
73467         * lib/closeout.h: Update comment.
73468
73469 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
73472         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
73473         * lib/dirchownmod.c: Include lchown.h.
73474         * lib/lchown.c: Don't include files that lchown.h now includes.
73475         Don't declare chown, since lchown.h now does that.
73476         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
73477         (lchown): Define to rpl_chown if lchown is declared but
73478         does not exist.  Declare using a prototype if lchown is not
73479         declared.  Add a copyright notice.
73480         * lib/mkstemp.h: Include <unistd.h>.
73481         * lib/openat.c: Include lchown.h.
73482
73483         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
73484         we now test for that separately.
73485         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
73486         rather than O_NOFOLLOW, when testing whether it's possible to
73487         avoid a race condition reliably.
73488         * lib/savewd.c (savewd_chdir): Likewise.
73489
73490         Remove macros that are no longer needed now that stdint.h is
73491         reliable.
73492         * lib/fsusage.c (UINTMAX_MAX): Remove.
73493         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
73494         * lib/utimecmp.c (SIZE_MAX): Remove.
73495
73496         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
73497
73498         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
73499         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
73500         O_NOATIME works.
73501
73502 2006-10-05  Bruno Haible  <bruno@clisp.org>
73503
73504         * lib/gl_list.h (gl_sortedlist_search_from_to,
73505         gl_sortedlist_indexof_from_to): New declarations.
73506         (gl_list_implementation): New fields sortedlist_search_from_to,
73507         sortedlist_indexof_from_to.
73508         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
73509         inline functions.
73510         * lib/gl_list.c (gl_sortedlist_search_from_to,
73511         gl_sortedlist_indexof_from_to): New functions.
73512         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
73513         function.
73514         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
73515         (gl_array_sortedlist_search_from_to): New function.
73516         (gl_array_list_implementation): Update.
73517         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
73518         function.
73519         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
73520         (gl_carray_sortedlist_search_from_to): New function.
73521         (gl_carray_list_implementation): Update.
73522         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
73523         gl_linked_sortedlist_indexof_from_to): New functions.
73524         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73525         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73526         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
73527         gl_tree_sortedlist_indexof_from_to): New functions.
73528         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73529         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73530         Update.
73531         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73532         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
73533         Update.
73534
73535 2006-10-05  Bruno Haible  <bruno@clisp.org>
73536
73537         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
73538         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
73539         (struct gl_list_implementation): Add fields search_from_to,
73540         indexof_from_to. Remove fields search, indexof.
73541         (gl_list_search): Use the search_from_to method.
73542         (gl_list_search_from, gl_list_search_from_to): New functions.
73543         (gl_list_indexof): Use the indexof_from_to method.
73544         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73545         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
73546         (gl_list_search_from, gl_list_search_from_to): New functions.
73547         (gl_list_indexof): Use the indexof_from_to method.
73548         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
73549         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
73550         gl_array_indexof. Add start_index, end_index arguments.
73551         (gl_array_search_from_to): Renamed from gl_array_search. Add
73552         start_index, end_index arguments.
73553         (gl_array_remove, gl_array_list_implementation): Update.
73554         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
73555         gl_carray_indexof. Add start_index, end_index arguments.
73556         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
73557         start_index, end_index arguments.
73558         (gl_carray_remove, gl_carray_list_implementation): Update.
73559         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
73560         gl_linked_search. Add start_index, end_index arguments.
73561         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
73562         start_index, end_index arguments.
73563         (gl_linked_remove): Update.
73564         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
73565         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
73566         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
73567         field to 'size_t'.
73568         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
73569         gl_tree_search. Add start_index, end_index arguments.
73570         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73571         start_index, end_index arguments.
73572         (gl_tree_remove): Update.
73573         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
73574         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
73575         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
73576         function.
73577         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
73578         gl_tree_search. Add start_index, end_index arguments.
73579         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
73580         start_index, end_index arguments.
73581         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
73582         Update.
73583         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
73584
73585 2006-10-05  Bruno Haible  <bruno@clisp.org>
73586
73587         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
73588
73589         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
73590         fwriteerror_temp): New declarations.
73591         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
73592         (descriptors): New variable.
73593         (cleanup): First, close the descriptors.
73594         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
73595         fclose_temp, fwriteerror_temp): New functions.
73596
73597 2006-10-04  Jim Meyering  <jim@meyering.net>
73598
73599         * lib/fts.c (fts_open): Tiny comment change.
73600
73601 2006-10-04  Bruno Haible  <bruno@clisp.org>
73602
73603         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
73604         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
73605         gl_LOCK_BODY.
73606         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
73607         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
73608         gl_LOCK_EARLY_BODY.
73609         (gl_LOCK): Require gl_LOCK_BODY.
73610
73611 2006-10-04  Bruno Haible  <bruno@clisp.org>
73612
73613         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
73614         (gl_oset_search_atleast): New declaration.
73615         (struct gl_oset_implementation): Add field 'search_atleast'.
73616         (gl_oset_search_atleast): New inline function.
73617         * lib/gl_oset.c (gl_oset_search_atleast): New function.
73618         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
73619         (gl_array_oset_implementation): Update.
73620         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
73621         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
73622         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
73623
73624 2006-10-04  Bruno Haible  <bruno@clisp.org>
73625
73626         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
73627
73628 2006-10-03  Bruno Haible  <bruno@clisp.org>
73629
73630         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
73631         from gl_avltreehash_list_implementation.
73632
73633 2006-10-03  Bruno Haible  <bruno@clisp.org>
73634
73635         * lib/gl_oset.c (gl_oset_add): Fix return type.
73636
73637 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
73638
73639         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
73640
73641 2006-10-02  Eric Blake  <ebb9@byu.net>
73642
73643         * modules/strnlen (Depends-on): Add extensions.
73644
73645 2006-10-02  Eric Blake  <ebb9@byu.net>
73646
73647         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
73648         definition in 2.60+.
73649
73650 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
73651
73652         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
73653         checks.
73654
73655 2006-10-02  Bruno Haible  <bruno@clisp.org>
73656
73657         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
73658         to the AUTOMAKE_OPTIONS.
73659         Reported by Jim Meyering.
73660
73661 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         Work around bug in Solaris 10 /proc file system:
73664         /proc/self/fd/NNN/.. isn't the parent directory of
73665         the directory whose file descriptor is NNN.  This needs to
73666         be worked around at run time, not compile time, since a
73667         program might be built on Solaris 8, where things work, and
73668         run on Solaris 10.
73669         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
73670         to use the following interface instead:
73671         (OPENAT_BUFFER_SIZE): New macro.
73672         (openat_proc_name): New function.
73673         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
73674         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
73675         Likewise.
73676         * lib/openat-proc.c: New file.
73677         * modules/openat (Files): Add lib/openat-proc.c.
73678         (Depends-on): Add same-inode, stdbool.
73679         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
73680
73681 2006-09-29  Bruno Haible  <bruno@clisp.org>
73682
73683         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
73684         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
73685         argument. Set stdout_closed before testing for ferror, not after.
73686         (fwriteerror, fwriteerror_no_ebadf): New functions.
73687
73688 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73689
73690         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
73691
73692 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
73693
73694         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
73695         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
73696
73697 2006-09-28  Jim Meyering  <jim@meyering.net>
73698
73699         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
73700         Include <unistd.h>.
73701
73702 2006-09-28  Bruno Haible  <bruno@clisp.org>
73703
73704         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
73705         * modules/linkedhash-list (Depends-on): Likewise.
73706         * modules/rbtreehash-list (Depends-on): Likewise.
73707
73708 2006-09-28  Bruno Haible  <bruno@clisp.org>
73709
73710         * lib/strndup.h: Simplify the redefinition of strndup.
73711         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
73712         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
73713
73714 2006-09-28  Bruno Haible  <bruno@clisp.org>
73715
73716         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
73717         * lib/gl_linkedhash_list.c: Likewise.
73718         * lib/gl_rbtreehash_list.c: Likewise.
73719
73720 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
73721
73722         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
73723         getaddrinfo.
73724
73725         * lib/__fpending.h: Don't include <stdio_ext.h> unless
73726         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
73727         it causes <stdio_ext.h> to cause a compile-time error.
73728         Problem reported by Nelson H. F. Beebe.
73729         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
73730         of HAVE_DECL___PENDING.
73731
73732         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
73733         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
73734         declaration.
73735
73736 2006-09-27  Jim Meyering  <jim@meyering.net>
73737
73738         This file could end up with a definition for a function
73739         named __strndup, rather than rpl_strndup on a system with
73740         incomplete weak_alias support.
73741         * lib/strndup.c (strndup): Rename from __strndup.
73742         Remove #defines that used to map __strndup to strndup.
73743         Don't use K&R prototypes.
73744         Remove LIBC-related code, since this file is not sync'd with glibc.
73745         * lib/strndup.h: Revamp, accordingly.
73746         * m4/strndup.m4: Modernize.
73747
73748 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
73749
73750         * modules/savewd (Depends-on): Add 'raise'.
73751         * lib/savewd.c: Include <signal.h>, for 'raise'.
73752
73753 2006-09-26  Jim Meyering  <jim@meyering.net>
73754
73755         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
73756         when we detect Darwin 8.7.0's acl_get_file bug.
73757         Rearrange to perform the new (below) run-test while $LIBS
73758         contains any acl-related library.  Set USE_ACL at the end.
73759         (gl_ACL_GET_FILE): New function.
73760
73761 2006-09-26  Eric Blake  <ebb9@byu.net>
73762
73763         * lib/verror.c: Include <config.h> unconditionally.
73764
73765 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         * modules/clock-time (Maintainer): Add self.
73768         * modules/getlogin_r (Depends-on): Add extensions.
73769
73770 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73771
73772         * modules/clock-time: New module.
73773         * modules/nanosleep (Depends-on): Add clock-time.
73774         * modules/gethrxtime (Depends-on): Likewise.
73775         * modules/gettime (Depends-on): Likewise.
73776         * modules/settime (Depends-on): Likewise.
73777
73778         * modules/fts-lgpl: Depend on openat.
73779         * modules/mkancesdirs: Depend on savewd.
73780         * modules/mkdir-p: Likewise.
73781
73782 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73783
73784         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
73785
73786         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
73787         `gl_have_arbitrary_file_name_length_limit' to
73788         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
73789         actually works between configure runs.
73790
73791 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73792             Bruno Haible  <bruno@clisp.org>
73793
73794         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
73795
73796 2006-09-25  Jim Meyering  <jim@meyering.net>
73797
73798         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
73799         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
73800
73801 2006-09-25  Eric Blake  <ebb9@byu.net>
73802
73803         * gnulib-tool (func_import, func_create_testdir): Fix typos in
73804         exec's in 2006-09-18 patch when shuffling fds.
73805
73806 2006-09-25  Bruno Haible  <bruno@clisp.org>
73807
73808         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73809         Reported by Jim Meyering.
73810
73811 2006-09-24  Jim Meyering  <jim@meyering.net>
73812
73813         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73814         compare a pointer against a literal "0".  That caused failures with
73815         at least HP-UX's hpcc.
73816
73817 2006-09-22  Simon Josefsson  <jas@extundo.com>
73818
73819         * modules/gc-sha1:
73820         * modules/gc-md4:
73821         * modules/gc-hmac-sha1:
73822         * modules/gc-hmac-md5:
73823         * modules/gc-des:
73824         * modules/gc-arcfour: Distribute more files.
73825
73826 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73827
73828         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73829         (gl_linked_iterator_from_to): Initialize struct completely.
73830         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73831         (gl_tree_iterator_from_to): Likewise
73832         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73833         * lib/gl_array_list.c [lint] (gl_array_iterator)
73834         (gl_array_iterator_from_to): Likewise.
73835         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73836         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73837         (gl_carray_iterator_from_to): Likewise.
73838
73839         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73840         * lib/md4.c (md4_process_block): Remove unused variable.
73841         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73842         parentheses for clarity.
73843
73844 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73845
73846         * modules/bison-i18n (Depends-on): Add gettext.
73847
73848 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73849
73850         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73851         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73852         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73853         also add missing comma that caused broken test.
73854         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73855         stdlib.h, for `abort'.
73856         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73857         variables.
73858         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73859         include unistd.h if present, for `rmdir'.
73860         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73861         variables.
73862         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73863         in the process include standard headers for prototypes.
73864         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73865         gets declared on GNU/Linux.
73866         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73867         unistd.h, for `rmdir'.
73868         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73869
73870         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73871         always true.
73872         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73873
73874         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73875
73876 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73877
73878         * gnulib-tool (func_version): Create output all at once.  This
73879         may help avoid triggering unnecessary SIGPIPEs, and at any
73880         rate it doesn't hurt.
73881
73882 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73883             Bruno Haible  <bruno@clisp.org>
73884
73885         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73886         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73887         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73888
73889         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73890         (gl_FUNC_VASPRINTF): Invoke it.
73891
73892 2006-09-22  Bruno Haible  <bruno@clisp.org>
73893
73894         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73895         getloadavg.c as first argument.
73896
73897 2006-09-22  Bruno Haible  <bruno@clisp.org>
73898
73899         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73900         at the beginning of the gl_INIT macro.
73901         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73902         gl_GETLOADAVG.
73903
73904 2006-09-22  Bruno Haible  <bruno@clisp.org>
73905
73906         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73907         module.
73908         Suggested by Ralf Wildenhues.
73909
73910 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         Import this patch from libc:
73913
73914         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73915
73916         * lib/regex_internal.c (re_string_reconstruct): Handle
73917         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73918         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73919         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73920         re_string_context_at.
73921
73922         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73923         now requires it.
73924         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73925         gl_REGEX now does it for us.
73926         (gl_REGEX): Add test taken from
73927         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73928
73929         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73930         Check that large offsets work.  Modernize Autoconf usages.
73931         Prefer "yes" to mean a good thing rather than a bad.
73932         Don't put "#define mkstemp" in config.h, as this might interfere
73933         with standard system headers that "#define mkstemp mkstemp64".
73934
73935         * modules/mkstemp (Depends-on): Add extensions, so that
73936         mkstemp is visible on some platforms.
73937         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73938         (Include): Change to "mkstemp.h" from <stdlib.h>.
73939         (Files): Add mkstemp.h.
73940
73941         * lib/mkstemp.h: New file, since some standard headers
73942         #define mkstemp.
73943         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73944         Include "mkstemp.h".
73945         Make the _LIBC code resemble glibc original more,
73946         e.g., use K&R style.
73947         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73948         (mkstemp): Remove, since mkstemp.h does this for us.
73949         * lib/stdlib--.h: Include mkstemp.h.
73950
73951         Import this patch from libc:
73952
73953         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73954
73955         * lib/tempname.c (__gen_tempname): Change attempts_min
73956         into a macro.  Use preprocessor to decide how to initialize
73957         attempts [Coverity CID 67].
73958
73959 2006-09-20  Bruno Haible  <bruno@clisp.org>
73960
73961         * lib/mkdtemp.c: Import from libc.
73962         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73963                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73964                 attempts_min into a macro.  Use preprocessor to decide how to
73965                 initialize attempts [Coverity CID 67].
73966         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73967                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73968                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73969
73970 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73971
73972         * gnulib-tool (func_exit): New function, to allow to pass the
73973         exit status portably through the trap.  Use everywhere.
73974         (--help, --version): Signal a write error.
73975         (trap): catch SIGPIPE, for write errors.
73976         Exit at the end of the trap, with the correct exit status.
73977
73978 2006-09-19  Karl Berry  <karl@gnu.org>
73979
73980         * doc/gnulib.texi: note about the license texinfo files.
73981
73982 2006-09-19  Eric Blake  <ebb9@byu.net>
73983
73984         * gnulib-tool: Avoid space-tab.
73985
73986 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73987
73988         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73989         that prevented coreutils 6.1 from building.  Problem reported
73990         by Petter Reinholdtsen.
73991
73992 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73993
73994         * gnulib-tool (avoidlist): Fix typo that broke options like
73995         --avoid=lock that are used by coreutils bootstrap.
73996
73997 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73998
73999         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
74000         more systematically.
74001
74002 2006-09-18  Jim Meyering  <jim@meyering.net>
74003
74004         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
74005
74006 2006-09-18  Bruno Haible  <bruno@clisp.org>
74007
74008         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
74009
74010 2006-09-18  Bruno Haible  <bruno@clisp.org>
74011
74012         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
74013         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
74014         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
74015         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
74016         * m4/gettext.m4: Require autoconf >= 2.52.
74017         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
74018         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
74019         of gl_cv_header_inttypes_h.
74020
74021 2006-09-18  Bruno Haible  <bruno@clisp.org>
74022
74023         * lib/javaversion.c: Include configmake.h.
74024
74025 2006-09-18  Bruno Haible  <bruno@clisp.org>
74026
74027         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
74028         avoid that the while loops be executed in a subshell.
74029
74030 2006-09-18  Bruno Haible  <bruno@clisp.org>
74031
74032         * MODULES.html.sh (func_module): Break long lines.
74033         Suggested by Bruce Korb <bkorb@gnu.org>.
74034
74035 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74036
74037         Speed up by a factor of 1.12.
74038         * gnulib-tool (nl): New variable.
74039         (func_import): Rewrite include directive extraction to only read each
74040         directive once.
74041
74042 2006-09-17  Bruno Haible  <bruno@clisp.org>
74043
74044         * modules/javaversion (Makefile.am): Remove DEFS setting.
74045         (Depends-on): Add configmake, for PKGDATADIR definition.
74046
74047 2006-09-17  Bruno Haible  <bruno@clisp.org>
74048
74049         * gnulib-tool (func_create_testdir): Rewrite all files at once.
74050
74051 2006-09-17  Bruno Haible  <bruno@clisp.org>
74052
74053         * gnulib-tool (func_append): New function, stolen from libtool.m4.
74054         (func_modules_transitive_closure, func_modules_add_dummy,
74055         func_modules_to_filelist, func_import, func_create_testdir,
74056         func_create_megatestdir, ...): Use it wherever possible.
74057         Suggested by Ralf Wildenhues.
74058
74059 2006-09-16  Karl Berry  <karl@gnu.org>
74060
74061         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
74062         to avoid sectioning errors.
74063         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
74064         [ifinfo]: blank line after @center-ed titles.
74065         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
74066         Spell FSF address consistently with others.
74067         (These changes approved by rms.)
74068
74069 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74070
74071         Speed up by a factor of 1.61.
74072         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
74073         already checked module names again.
74074
74075 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74076
74077         Speed up by a factor of 1.13.
74078         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
74079         for new_files, and the input to func_add_or_update.
74080
74081 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74082
74083         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
74084         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
74085
74086 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74087
74088         * modules/mkancesdirs (Depends-on): Add fcntl.
74089         * modules/savewd: New file.
74090         * MODULES.html.sh (File system functions): Add savewd.
74091
74092         * modules/configmake (Makefile.am): Add support for the
74093         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
74094
74095 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74096
74097         * m4/savewd.m4: New file.
74098
74099 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
74100
74101         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
74102         (dirchownmod): New arg FD.  All callers changed.
74103         Use FD rather than opening the directory ourself, as opening is
74104         now the caller's responsibility.
74105         * lib/dirchownmod.h: Likewise.
74106         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
74107         hosts that require <sys/types.h> before <sys/stat.h>.  Include
74108         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
74109         (test_dir): Remove.
74110         (mkancesdirs): Return length of prefix of FILE that has already
74111         been made, or -2 if there is a child doing the work.  Redo
74112         algorithm so that it is O(N) rather than O(N**2).  Optimize away
74113         ".", and treat ".." specially since it might stray back into
74114         already-created areas.  Use a subprocess if necessary.  New arg
74115         WD; all users changed.  MAKE_DIR function should now return 1
74116         if it creates a directory that is not readable.  Return -2 if
74117         a child process is spun off.
74118         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
74119         Adjust signature to match code.
74120         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
74121         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
74122         all users changed.
74123         * lib/savewd.c, lib/savewd.h: New files.
74124
74125 2006-09-15  Jim Meyering  <jim@meyering.net>
74126
74127         * modules/rename-dest-slash: New module.
74128         * MODULES.html.sh (posix_compat): Add it here.
74129
74130         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
74131
74132 2006-09-15  Jim Meyering  <jim@meyering.net>
74133
74134         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
74135         file.
74136
74137         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
74138
74139 2006-09-15  Jim Meyering  <jim@meyering.net>
74140
74141         * lib/rename-dest-slash.c (has_trailing_slash): Use
74142         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
74143         (rpl_rename_dest_slash): Perform the cheaper trailing slash
74144         test before testing whether SRC is a directory.
74145         Suggestions from Bruno Haible.
74146
74147         Avoid a warning about an unused variable.
74148         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
74149         into the #ifdef block where it's used.
74150
74151         * lib/rename-dest-slash.c: New file.
74152
74153 2006-09-14  Bruno Haible  <bruno@clisp.org>
74154
74155         * lib/allocsa.c: Include <config.h> unconditionally.
74156         * lib/asnprintf.c: Likewise.
74157         * lib/asprintf.c: Likewise.
74158         * lib/c-strcasecmp.c: Likewise.
74159         * lib/c-strcasestr.c: Likewise.
74160         * lib/c-strncasecmp.c: Likewise.
74161         * lib/c-strstr.c: Likewise.
74162         * lib/classpath.c: Likewise.
74163         * lib/clean-temp.c: Likewise.
74164         * lib/concatpath.c: Likewise.
74165         * lib/copy-file.c: Likewise.
74166         * lib/csharpcomp.c: Likewise.
74167         * lib/csharpexec.c: Likewise.
74168         * lib/execute.c: Likewise.
74169         * lib/fatal-signal.c: Likewise.
74170         * lib/findprog.c: Likewise.
74171         * lib/fwriteerror.c: Likewise.
74172         * lib/gl_array_list.c: Likewise.
74173         * lib/gl_array_oset.c: Likewise.
74174         * lib/gl_avltree_list.c: Likewise.
74175         * lib/gl_avltree_oset.c: Likewise.
74176         * lib/gl_avltreehash_list.c: Likewise.
74177         * lib/gl_carray_list.c: Likewise.
74178         * lib/gl_linked_list.c: Likewise.
74179         * lib/gl_linkedhash_list.c: Likewise.
74180         * lib/gl_list.c: Likewise.
74181         * lib/gl_oset.c: Likewise.
74182         * lib/gl_rbtree_list.c: Likewise.
74183         * lib/gl_rbtree_oset.c: Likewise.
74184         * lib/gl_rbtreehash_list.c: Likewise.
74185         * lib/imaxabs.c: Likewise.
74186         * lib/imaxdiv.c: Likewise.
74187         * lib/javacomp.c: Likewise.
74188         * lib/javaexec.c: Likewise.
74189         * lib/javaversion.c: Likewise.
74190         * lib/linebreak.c: Likewise.
74191         * lib/localcharset.c: Likewise.
74192         * lib/lock.c: Likewise.
74193         * lib/mbchar.c: Likewise.
74194         * lib/mbswidth.c: Likewise.
74195         * lib/mkdtemp.c: Likewise.
74196         * lib/pipe.c: Likewise.
74197         * lib/printf-args.c: Likewise.
74198         * lib/printf-parse.c: Likewise.
74199         * lib/progname.c: Likewise.
74200         * lib/progreloc.c: Likewise.
74201         * lib/readlink.c: Likewise.
74202         * lib/sh-quote.c: Likewise.
74203         * lib/stpcpy.c: Likewise.
74204         * lib/stpncpy.c: Likewise.
74205         * lib/strcasecmp.c: Likewise.
74206         * lib/strcasestr.c: Likewise.
74207         * lib/strcspn.c: Likewise.
74208         * lib/striconv.c: Likewise.
74209         * lib/strncasecmp.c: Likewise.
74210         * lib/strnlen1.c: Likewise.
74211         * lib/strstr.c: Likewise.
74212         * lib/strtok_r.c: Likewise.
74213         * lib/tls.c: Likewise.
74214         * lib/tmpdir.c: Likewise.
74215         * lib/unicodeio.c: Likewise.
74216         * lib/unsetenv.c: Likewise.
74217         * lib/vasnprintf.c: Likewise.
74218         * lib/vasprintf.c: Likewise.
74219         * lib/wait-process.c: Likewise.
74220         * lib/xallocsa.c: Likewise.
74221         * lib/xsetenv.c: Likewise.
74222         * lib/xstriconv.c: Likewise.
74223
74224 2006-09-13  Simon Josefsson  <jas@extundo.com>
74225
74226         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
74227         that internally, suggested by Ralf Wildenhues
74228         <Ralf.Wildenhues@gmx.de>.
74229
74230 2006-09-13  Simon Josefsson  <jas@extundo.com>
74231
74232         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
74233         @LIBOBJS@.
74234         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74235
74236 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * lib/_fpending.c: Include <config.h> unconditionally, since we no
74239         longer worry about uses that don't define HAVE_CONFIG_H.
74240         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
74241         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
74242         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
74243         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
74244         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
74245         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
74246         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
74247         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
74248         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
74249         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
74250         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
74251         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
74252         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
74253         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
74254         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
74255         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
74256         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
74257         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
74258         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
74259         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
74260         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
74261         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
74262         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
74263         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
74264         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
74265         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
74266         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
74267         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
74268         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
74269         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
74270         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
74271         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
74272         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
74273         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
74274         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
74275         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
74276         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
74277         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
74278         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
74279         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
74280         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
74281         Likewise.
74282
74283 2006-09-13  Eric Blake  <ebb9@byu.net>
74284
74285         * lib/getopt.c: Fix typo in last commit.
74286
74287 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
74288
74289         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
74290         dgettext.
74291
74292 2006-09-12  Jim Meyering  <jim@meyering.net>
74293
74294         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
74295         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
74296         Reported by Nelson H. F. Beebe.
74297
74298 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74299
74300         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
74301         program_invocation_name and program_invocation_short_name are
74302         initialized.
74303         * lib/argp-namefrob.h: Move declarations of program_invocation_name
74304         and program_invocation_short_name to argp.h, so they are visible
74305         to user programs.
74306         * lib/argp.h: Likewise
74307
74308 2006-09-10  Bruno Haible  <bruno@clisp.org>
74309
74310         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74311         m4/inttypes_h.m4, m4/uintmax_t.m4.
74312
74313 2006-09-10  Bruno Haible  <bruno@clisp.org>
74314
74315         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
74316         gl_AC_TYPE_UINTMAX_T.
74317
74318 2006-09-10  Bruno Haible  <bruno@clisp.org>
74319
74320         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
74321
74322 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74323
74324         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
74325         convention.  Text proposed by Bruno Haible.
74326         (struct argp_option): Document the use of N_() wrappers.
74327
74328         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
74329         '\v', and translate the two parts separately, instead of feeding
74330         the whole string to gettext.  This allows to exclude
74331         '\v' from the strings visible to the translator by writing doc
74332         strings as N_("..") "\v" N_("..").
74333
74334 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * config/srclist.txt: Undo latest change; the bug was fixed.
74337
74338 2006-09-09  Bruno Haible  <bruno@clisp.org>
74339
74340         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
74341         assignments if building a library without libtool.
74342         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
74343         in func_emit_lib_Makefile_am.
74344         (func_import): When building a static library libfoo.a, arrange to
74345         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
74346         (func_create_testdir): Likewise.
74347         * modules/gc (configure.ac, Makefile.am): If building statically,
74348         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
74349         * modules/iconvme (configure.ac, Makefile.am): Likewise.
74350         * modules/striconv (configure.ac, Makefile.am): Likewise.
74351         Based on a suggestion by Ralf Wildenhues.
74352
74353 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74354
74355         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74356         Check for unistd.h too, since Autoconf doesn't assume POSIX.
74357         Also:
74358
74359         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74360         Add year_2050_test to catch glibc bug 2821
74361         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74362
74363         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74364         Prefer #ifdef to #if.
74365
74366         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
74367         Return from 'main' instead of calling 'exit'.
74368
74369 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * lib/mktime.c (guess_time_tm): Fix bug where mktime
74372         returned the maximum time_t value rather than (time_t) -1.
74373         Problem originally reported by William Bardwell
74374         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
74375
74376         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74377         Moved to here ...
74378         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
74379         ... from here.
74380
74381 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
74382
74383         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
74384         2821 is fixed.
74385
74386 2006-09-08  Jim Meyering  <jim@meyering.net>
74387
74388         Don't make generated files read-only.  That would bother too many
74389         people.  However, do retain the ability to work when targets are
74390         read-only: remove the destination and temporary files before writing
74391         them (when generated via sed or echo), or by using the -f option for
74392         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
74393         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74394         * modules/byteswap, modules/configmake, modules/fcntl:
74395         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74396         * modules/localcharset, modules/netinet_in, modules/poll:
74397         * modules/stdbool, modules/stdint, modules/sys_select:
74398         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74399
74400 2006-09-08  Jim Meyering  <jim@meyering.net>
74401
74402         Avoid new build failure on FreeBSD 6.0.
74403         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
74404         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
74405         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
74406
74407 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74408
74409         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
74410
74411 2006-09-07  Jim Meyering  <jim@meyering.net>
74412
74413         Fix global typo in last change: use chmod u-w, not chmod u-x.
74414         Spotted by Paul Eggert and Bruce Korb.
74415         * modules/alloca-opt, modules/argz, modules/arpa_inet:
74416         * modules/byteswap, modules/configmake, modules/fcntl:
74417         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
74418         * modules/localcharset, modules/netinet_in, modules/poll:
74419         * modules/stdbool, modules/stdint, modules/sys_select:
74420         * modules/sys_socket, modules/sys_stat, modules/sysexits:
74421
74422 2006-09-06  Jim Meyering  <jim@meyering.net>
74423
74424         Make generated files be read-only.
74425         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
74426         Ensure that each generated file is now read-only.
74427         * modules/argz: Likewise.
74428         * modules/arpa_inet: Likewise.
74429         * modules/byteswap: Likewise.
74430         * modules/configmake: Likewise.
74431         * modules/fcntl: Likewise.
74432         * modules/fnmatch: Likewise.
74433         * modules/getopt: Likewise.
74434         * modules/glob: Likewise.
74435         * modules/inttypes: Likewise.
74436         * modules/netinet_in: Likewise.
74437         * modules/poll: Likewise.
74438         * modules/stdbool: Likewise.
74439         * modules/stdint: Likewise.
74440         * modules/sys_select: Likewise.
74441         * modules/sys_socket: Likewise.
74442         * modules/sys_stat: Likewise.
74443         * modules/sysexits: Likewise.
74444         * modules/localcharset: Same as above, but continue using temporary
74445         file named "t-$@" (why different?) rather than the "$@-t" used
74446         everywhere else.
74447
74448         * modules/sysexits (Makefile.am): Replace literal occurrences
74449         of "sysexit.h" more readable, and more consistent, "$@".
74450
74451 2006-09-06  Bruno Haible  <bruno@clisp.org>
74452
74453         * modules/striconv: New file.
74454         * modules/xstriconv: New file.
74455         * MODULES.html.sh (Internationalization functions): Add striconv,
74456         xstriconv.
74457
74458 2006-09-06  Bruno Haible  <bruno@clisp.org>
74459
74460         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
74461         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
74462         not using libtool correctly.
74463
74464 2006-09-06  Bruno Haible  <bruno@clisp.org>
74465
74466         * lib/striconv.h: New file.
74467         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
74468         iconvstring.c.
74469         * lib/xstriconv.h: New file.
74470         * lib/xstriconv.c: New file.
74471
74472 2006-09-06  Bruno Haible  <bruno@clisp.org>
74473
74474         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74475         lib_..._LDFLAGS.
74476
74477 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74478
74479         * lib/argz_.h: Sync from Libtool.
74480
74481         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
74482                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74483
74484         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
74485
74486 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74487
74488         * modules/trim: New file.
74489
74490 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
74491
74492         * lib/trim.h: New file.
74493         * lib/trim.c: New file.
74494
74495 2006-09-05  Bruno Haible  <bruno@clisp.org>
74496
74497         * MODULES.html.sh (String handling): Add trim.
74498
74499 2006-09-04  Karl Berry  <karl@gnu.org>
74500
74501         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
74502         until next release.
74503
74504 2006-09-03  Bruno Haible  <bruno@clisp.org>
74505
74506         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
74507         correctly.
74508
74509 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74510
74511         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
74512         not gl_GETLOADAVG.  Omit unneeded semicolons.
74513         Problems reported by Ralf Wildenhues in
74514         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74515         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
74516         at the end, which is the usual gnulib style.
74517
74518         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
74519         of doing all the work ourselves.
74520         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
74521         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
74522
74523 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74524
74525         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
74526         Problem reported by Ralf Wildenhues in
74527         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
74528
74529         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
74530         HAVE_STRUCT_STATFS_F_FSTYPENAME.
74531
74532 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
74535         yesterday's patch by changing test -n to test -z.
74536
74537 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74538
74539         * modules/getloadavg (Files): Add m4/getloadavg.m4.
74540         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
74541         the former is now obsolescent.
74542
74543         * modules/chdir-long (Depends-on): Add fcntl.
74544
74545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74546
74547         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
74548         obsolescent, and programs should use gnulib instead.
74549         * m4/getloadavg.m4: New file, with contents taken from Autoconf
74550         but with prefixes changed.
74551
74552 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
74553
74554         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
74555         or stdbool.h, because they might not exist while configuring.
74556
74557         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
74558         Don't include unistd.h or limits.h; not needed, since chdir-long.h
74559         does that for us.
74560         (O_DIRECTORY): Remove.
74561
74562 2006-08-31  Eric Blake  <ebb9@byu.net>
74563
74564         * gnulib-tool: Don't let emacs change spaces to TAB.
74565
74566 2006-08-31  Bruno Haible  <bruno@clisp.org>
74567
74568         * gnulib-tool: When calling func_import more than once, do it in a
74569         subshell.
74570         Reported by Eric Blake <ebb9@byu.net>.
74571
74572 2006-08-31  Bruno Haible  <bruno@clisp.org>
74573
74574         * gnulib-tool (nl): Remove variable.
74575         (sed_transform_lib_file): Use more robust test for config-h module.
74576         (func_import): Fix typo in 2006-08-25 patch.
74577
74578 2006-08-31  Bruno Haible  <bruno@clisp.org>
74579
74580         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
74581         specified, augment Makefile.am variables instead of assigning them.
74582
74583 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74584
74585         Work around a bug in both the Linux and SunOS 64-bit kernels:
74586         nanosleep mishandles sleeps for longer than 2**31 seconds.
74587         Problem reported by Frank v Waveren in
74588         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74589         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
74590         Check for nanosleep bug.
74591         (LIB_NANOSLEEP): Append clock_gettime library if needed.
74592
74593 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         Work around a bug in both the Linux and SunOS 64-bit kernels:
74596         nanosleep mishandles sleeps for longer than 2**31 seconds.
74597         Problem reported by Frank v Waveren in
74598         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
74599         * lib/nanosleep.c (BILLION): New constant.
74600         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
74601         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
74602         implementation.
74603
74604 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * modules/nanosleep (Depends-on): Add gettime.
74607
74608 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
74609         and Simon Josefsson  <jas@extundo.com>
74610         and Oskar Liljeblad  <oskar@osk.mine.nu>
74611
74612         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
74613         * gnulib-tool (func_import): New license type 'unmodifiable license
74614         text'.
74615         * modules/fdl: Use it.  Longer description.
74616         * module/gpl, module/lgpl: New files.
74617
74618 2006-08-30  Jim Meyering  <jim@meyering.net>
74619
74620         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
74621         shadowing the parameter.
74622
74623 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74624
74625         Sync from Libtool:
74626
74627         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74628
74629         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
74630         sharing with gnulib.  Report by Eric Blake.
74631
74632 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74633
74634         * modules/isapipe: New file.
74635         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
74636
74637 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74638
74639         * modules/configmake (Makefile.am): Add a comment, and omit
74640         the CONFIGMAKE_ prefix from generated macro names.  Suggested
74641         by Bruno Haible.
74642
74643 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74644
74645         * m4/isapipe.m4: New file.
74646
74647 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
74648
74649         * lib/isapipe.c, lib/isapipe.h: New files.
74650
74651 2006-08-29  Jim Meyering  <jim@meyering.net>
74652
74653         * modules/configmake (Makefile.am): Make configmake.h depend on
74654         Makefile.  Otherwise, a stale configmake.h could hang around.
74655
74656 2006-08-29  Eric Blake  <ebb9@byu.net>
74657
74658         * lib/error.c (error_at_line, print_errno_message): Match libc, after
74659         resolution of upstream bug 3044.
74660
74661 2006-08-29  Bruno Haible  <bruno@clisp.org>
74662
74663         * modules/localcharset (Depends-on): Add configmake.
74664         (Makefile.am): Remove setting of LIBDIR through DEFS.
74665
74666 2006-08-29  Bruno Haible  <bruno@clisp.org>
74667
74668         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
74669         defined.
74670
74671 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74672
74673         * modules/fcntl: New file.
74674         * modules/chdir-safer (Depends-on): Add fcntl.
74675         * modules/fts: Likewise.
74676         * modules/mkdir-p: Likewise.
74677
74678         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
74679         This undoes the most recent change, since we're now addressing the
74680         problem in a different way.
74681
74682         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
74683         into output, since the output might be called Makefile.am even
74684         if $makefile_name is something different.
74685         (func_import): Use $makefile_am rather than
74686         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
74687         empty.
74688
74689         * modules/inttypes (Files): Add m4/inttypes-h.m4.
74690
74691 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74692
74693         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
74694         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
74695         recent change to stdint.m4, since we're now addressing the problem in a
74696         different way.
74697
74698 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74699
74700         * m4/fcntl_h.m4: New file.
74701
74702 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
74703
74704         * lib/fcntl_.h: New file.
74705         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
74706         the fcntl module.
74707         * lib/dirchownmod.c: Likewise.
74708         * lib/fts.c: Likewise.
74709
74710         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
74711         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
74712         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
74713         just before including <inttypes.h>, to avoid circular inclusion.
74714
74715 2006-08-28  Jim Meyering  <jim@meyering.net>
74716
74717         * doc/visibility.texi: Actually read and correct the grammar of the
74718         sentence affected by yesterday's change.
74719
74720 2006-08-28  Eric Blake  <ebb9@byu.net>
74721
74722         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
74723         needs wrapper.
74724
74725 2006-08-28  Eric Blake  <ebb9@byu.net>
74726
74727         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
74728
74729 2006-08-28  Eric Blake  <ebb9@byu.net>
74730
74731         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
74732
74733 2006-08-28  Bruno Haible  <bruno@clisp.org>
74734
74735         * modules/c-strstr: New file, from GNU gettext.
74736         * MODULES.html.sh (String handling): Add c-strstr.
74737
74738 2006-08-28  Bruno Haible  <bruno@clisp.org>
74739
74740         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
74741         macros.
74742         Reported by Eric Blake.
74743
74744 2006-08-28  Bruno Haible  <bruno@clisp.org>
74745
74746         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
74747         (VASNPRINTF): Return a string of length > INT_MAX without failing.
74748         * lib/vasprintf.c: Include errno.h, limits.h.
74749         (EOVERFLOW): New fallback definition.
74750         (vasprintf): Test here whether the string length is > INT_MAX.
74751         * lib/vsnprintf.c: Include errno.h, limits.h.
74752         (EOVERFLOW): New fallback definition.
74753         (vsnprintf): Fix bug when generated string was too long for the buffer.
74754         Test here whether the string length is > INT_MAX.
74755
74756 2006-08-28  Bruno Haible  <bruno@clisp.org>
74757
74758         * lib/inttypes_.h (SCNX*): Remove definitions.
74759         Reported by Eric Blake.
74760
74761 2006-08-28  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/c-strstr.h: New file, from GNU gettext.
74764         * lib/c-strstr.c: New file, from GNU gettext.
74765
74766 2006-08-28  Bruno Haible  <bruno@clisp.org>
74767
74768         * gnulib-tool: Reorder some statements.
74769
74770 2006-08-28  Bruno Haible  <bruno@clisp.org>
74771
74772         * gnulib-tool: New option --makefile-name.
74773         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
74774         $makefile_name.
74775         (func_import): Write $makefile_name to the cache file, and read it from
74776         there unless explicitly specified. Use $makefile_name as file name
74777         instead of Makefile.am. Adjust the recommendations accordingly.
74778
74779 2006-08-28  Bruno Haible  <bruno@clisp.org>
74780
74781         * gnulib-tool (func_verify_module): Check against misapplying patch.
74782
74783 2006-08-28  Bruno Haible  <bruno@clisp.org>
74784
74785         * gnulib-tool (func_relativize, func_relconcat): New functions.
74786         Give an error if --local-dir is given with --update.
74787         Remove trailing slashes from $local_gnulib_dir.
74788         (func_import): Store the relativized $local_gnulib_dir in
74789         gnulib-cache.m4, and read it from there if not specified explicitly.
74790
74791 2006-08-28  Bruno Haible  <bruno@clisp.org>
74792
74793         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
74794         is the current directory. Respect also $local_gnulib_dir.
74795
74796 2006-08-28  Bruno Haible  <bruno@clisp.org>
74797             Simon Josefsson  <jas@extundo.com>
74798
74799         BeOS portability.
74800         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
74801
74802 2006-08-27  Jim Meyering  <jim@meyering.net>
74803
74804         * doc/visibility.texi: Remove duplicate word: "pointer".
74805
74806 2006-08-26  Bruno Haible  <bruno@clisp.org>
74807
74808         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74809         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74810         (Makefile.am): Create inttypes.h from inttypes_.h.
74811         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74812
74813         * modules/imaxabs: New file.
74814
74815         * modules/imaxdiv: New file.
74816
74817 2006-08-26  Bruno Haible  <bruno@clisp.org>
74818
74819         * m4/inttypes.m4: New file.
74820         * m4/_inttypes_h.m4: Remove file.
74821         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74822         PRI_MACROS_BROKEN.
74823         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74824
74825         * m4/imaxabs.m4: New file.
74826
74827         * m4/imaxdiv.m4: New file.
74828
74829 2006-08-26  Bruno Haible  <bruno@clisp.org>
74830
74831         * lib/inttypes_.h: New file.
74832         * lib/inttypes.h: Remove file.
74833         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74834
74835         * lib/imaxabs.c: New file.
74836
74837         * lib/imaxdiv.c: New file.
74838
74839 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74840
74841         New config-h module, so that "make" output needn't be cluttered
74842         by -DHAVE_CONFIG_H.
74843         * MODULES.html.sh (Support for building libraries and executables):
74844         Add config-h.
74845         * modules/config-h: New file.
74846         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74847         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74848         the config-h module is used.
74849
74850         New configmake module, so that "make" output needn't be cluttered
74851         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74852         * MODULES.html.sh (Support for building libraries and executables):
74853         Add configmake.
74854         * modules/configmake: New file.
74855
74856 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * m4/config-h.m4: New file.
74859
74860 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * config/srclist.txt: Add elisp-comp.
74863
74864 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74865
74866         * MODULES.html.sh (Support for building libraries and executables):
74867         Add elisp-comp.
74868         * build-aux/elisp-comp: New file.
74869         * modules/elisp-comp: New file.
74870
74871 2006-08-24  Bruno Haible  <bruno@clisp.org>
74872
74873         * gnulib-tool (func_create_testdir): Use non-default values of
74874         sourcebase and m4base.
74875
74876 2006-08-24  Bruno Haible  <bruno@clisp.org>
74877
74878         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74879         HTML structure.
74880
74881 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74882
74883         * modules/openat (Depends-on): Add lchown.
74884
74885 2006-08-23  Bruno Haible  <bruno@clisp.org>
74886
74887         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74888         of gl_LOCK_EARLY instead of gl_LOCK.
74889
74890 2006-08-23  Bruno Haible  <bruno@clisp.org>
74891
74892         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74893         on OSF/1 to no.
74894         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74895
74896 2006-08-23  Bruno Haible  <bruno@clisp.org>
74897
74898         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74899         as unusable.
74900
74901         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74902         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74903         (gl_LOCK): New macro.
74904
74905 2006-08-22  Simon Josefsson  <jas@extundo.com>
74906
74907         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74908         to md5 module.
74909
74910 2006-08-22  Simon Josefsson  <jas@extundo.com>
74911
74912         * MODULES.html.sh: Add "Support for maintaining and release
74913         projects".
74914
74915         * build-aux/gnupload: New file, from coreutils.
74916
74917 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74918
74919         Avoid the need for AC_LIBSOURCES in m4 macros.
74920         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74921         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74922         * modules/check-version (EXTRA_DIST): Add check-version.h.
74923         * modules/crc (EXTRA_DIST): Add crc.h.
74924         * modules/des (EXTRA_DIST): Add des.h.
74925         * modules/gc (EXTRA_DIST): Add gc.h.
74926         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74927         * modules/getline (EXTRA_DIST): Add getline.h.
74928         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74929         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74930         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74931         * modules/md2 (EXTRA_DIST): Add md2.h.
74932         * modules/md4 (EXTRA_DIST): Add md4.h.
74933         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74934         * modules/read-file (EXTRA_DIST): Add read-file.h.
74935         * modules/readline (EXTRA_DIST): Add readline.h.
74936         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74937         rijndael-api-fst.h.
74938
74939 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74940
74941         * m4/rijndael.m4 (gl_ARCFOUR):
74942         * m4/arctwo.m4 (gl_ARCTWO):
74943         * m4/check-version.m4 (gl_CHECK_VERSION):
74944         * m4/crc.m4 (gl_CRC):
74945         * m4/des.m4 (gl_DES):
74946         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74947         * m4/gc.m4 (gl_GC):
74948         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74949         * m4/getline.m4 (gl_FUNC_GETLINE):
74950         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74951         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74952         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74953         * m4/md2.m4 (gl_MD2):
74954         * m4/md4.m4 (gl_MD4):
74955         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74956         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74957         * m4/readline.m4 (gl_FUNC_READLINE):
74958         * m4/rijndael.m4 (gl_RIJNDAEL):
74959         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74960         to get the necessary .h files and whatnot.
74961
74962 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74963
74964         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74965         gnulib rather than the other way around.
74966         * config/srclistvars.sh (COREUTILS): Remove.
74967
74968 2006-08-22  Jim Meyering  <jim@meyering.net>
74969
74970         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74971
74972         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74973
74974 2006-08-22  Eric Blake  <ebb9@byu.net>
74975
74976         * modules/regexprops-generic: New file.
74977         * MODULES.html.sh (Support for building documentation): List it.
74978
74979 2006-08-22  Eric Blake  <ebb9@byu.net>
74980
74981         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74982         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74983         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74984         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74985
74986 2006-08-22  Bruno Haible  <bruno@clisp.org>
74987
74988         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74989         and lib_LTLIBRARIES like the other lib_* variables.
74990
74991 2006-08-22  Bruno Haible  <bruno@clisp.org>
74992
74993         * build-aux/x-to-1.in: New file, from GNU gettext.
74994
74995 2006-08-22  Bruno Haible  <bruno@clisp.org>
74996
74997         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74998         <utmpx.h> exists.
74999
75000 2006-08-22  Bruno Haible  <bruno@clisp.org>
75001
75002         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
75003         <utmpx.h> exists.
75004
75005 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75006
75007         BeOS portability.
75008         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
75009         exist.
75010         Problem reported by Bruno Haible.
75011
75012 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         Avoid the need for AC_LIBSOURCES in m4 macros.
75015         * modules/acl (EXTRA_DIST): Add acl.h.
75016         * modules/argmatch (Files): Add m4/argmatch.m4.
75017         (configure.ac): Add gl_ARGMATCH.
75018         (EXTRA_DIST): Renamed from lib_SOURCES, for
75019         consistency with the other modules.  Remove argmatch.c.
75020         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
75021         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
75022         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
75023         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
75024         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
75025         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
75026         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
75027         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
75028         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
75029         * modules/closeout (EXTRA_DIST): Add closeout.h.
75030         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
75031         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
75032         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
75033         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
75034         dirname.h; remove basename.c and stripslash.c.
75035         * modules/exclude (EXTRA_DIST): Add exclude.h.
75036         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
75037         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
75038         * modules/file-type (EXTRA_DIST): Add file-type.h.
75039         * modules/filemode (EXTRA_DIST): Add filemode.h.
75040         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
75041         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75042         * modules/fpending (EXTRA_DIST): Add __fpending.h.
75043         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
75044         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
75045         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
75046         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
75047         * modules/getdate (EXTRA_DIST): Add getdate.c.
75048         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
75049         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
75050         * modules/getpass (EXTRA_DIST): Add getpass.h.
75051         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
75052         * modules/group-member (EXTRA_DIST): Add group-member.h.
75053         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
75054         * modules/hash (EXTRA_DIST): Add hash.h.
75055         * modules/human (EXTRA_DIST): Add human.h.
75056         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
75057         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
75058         * modules/lchown (EXTRA_DIST): Add lchown.h.
75059         * modules/long-options (EXTRA_DIST): Add long-options.h.
75060         * modules/lstat (EXTRA_DIST): Add lstat.h.
75061         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
75062         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
75063         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
75064         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
75065         * modules/memxor (EXTRA_DIST): Add memxor.h.
75066         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
75067         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
75068         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
75069         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
75070         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
75071         * modules/physmem (EXTRA_DIST): Add physmem.h.
75072         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
75073         * modules/posixver (EXTRA_DIST): Add posixver.h.
75074         * modules/quote (EXTRA_DIST): Add quote.h.
75075         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
75076         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
75077         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
75078         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
75079         regex_internal.h regexec.c.
75080         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
75081         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
75082         * modules/same (EXTRA_DIST): Add same.h.
75083         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
75084         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
75085         * modules/savedir (EXTRA_DIST): Add savedir.h.
75086         * modules/sha1 (EXTRA_DIST): Add sha1.h.
75087         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
75088         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
75089         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
75090         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
75091         * modules/strdup (EXTRA_DIST): Add strdup.h.
75092         * modules/strftime (EXTRA_DIST): Add strftime.h.
75093         * modules/strndup (EXTRA_DIST): Add strndup.h.
75094         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
75095         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
75096         * modules/time_r (EXTRA_DIST): Add time_r.h.
75097         * modules/timespec (EXTRA_DIST): Add timespec.h.
75098         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
75099         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
75100         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
75101         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
75102         * modules/userspec (EXTRA_DIST): Add userspec.h.
75103         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
75104         * modules/utimens (EXTRA_DIST): Add utimens.h.
75105         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
75106         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
75107         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
75108         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
75109         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
75110         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
75111         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
75112         * modules/yesno (EXTRA_DIST): Add yesno.h.
75113
75114 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
75115
75116         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
75117
75118         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
75119         * m4/dev-ino.m4, same-inode.m4: Remove.
75120
75121         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
75122         * m4/acl.m4 (AC_FUNC_ACL):
75123         * m4/backupfile.m4 (gl_BACKUPFILE):
75124         * m4/c-strtod.m4 (gl_C99_STRTOLD):
75125         * m4/canon-host.m4 (gl_CANON_HOST):
75126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75127         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
75128         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
75129         * m4/cloexec.m4 (gl_CLOEXEC):
75130         * m4/close-stream.m4 (gl_CLOSE_STREAM):
75131         * m4/closeout.m4 (gl_CLOSEOUT):
75132         * m4/dirfd.m4 (gl_FUNC_DIRFD):
75133         * m4/dirname.m4 (gl_DIRNAME):
75134         * m4/exclude.m4 (gl_EXCLUDE):
75135         * m4/exitfail.m4 (gl_EXITFAIL):
75136         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
75137         * m4/file-type.m4 (gl_FILE_TYPE):
75138         * m4/filemode.m4 (gl_FILEMODE):
75139         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
75140         * m4/fpending.m4 (gl_FUNC_FPENDING):
75141         * m4/fprintftime.m4 (gl_FPRINTFTIME):
75142         * m4/fts.m4 (gl_FUNC_FTS):
75143         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
75144         * m4/getdate.m4 (gl_GETDATE):
75145         * m4/gethrxtime.m4 (gl_GETHRXTIME):
75146         * m4/getpagesize.m4 (gl_GETPAGESIZE):
75147         * m4/getpass.m4 (gl_FUNC_GETPASS):
75148         * m4/gettime.m4 (gl_GETTIME):
75149         * m4/getugroups.m4 (gl_GETUGROUPS):
75150         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
75151         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
75152         * m4/hard-locale.m4 (gl_HARD_LOCALE):
75153         * m4/hash.m4 (gl_HASH):
75154         * m4/idcache.m4 (gl_IDCACHE):
75155         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
75156         * m4/lchown.m4 (gl_FUNC_LCHOWN):
75157         * m4/long-options.m4 (gl_LONG_OPTIONS):
75158         * m4/lstat.m4 (gl_FUNC_LSTAT):
75159         * m4/md5.m4 (gl_MD5):
75160         * m4/memcasecmp.m4 (gl_MEMCASECMP):
75161         * m4/memcoll.m4 (gl_MEMCOLL):
75162         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
75163         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
75164         * m4/memxor.m4 (gl_MEMXOR):
75165         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
75166         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
75167         * m4/modechange.m4 (gl_MODECHANGE):
75168         * m4/mountlist.m4 (gl_MOUNTLIST):
75169         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
75170         * m4/openat.m4 (gl_FUNC_OPENAT):
75171         * m4/pathmax.m4 (gl_PATHMAX):
75172         * m4/physmem.m4 (gl_PHYSMEM):
75173         * m4/posixtm.m4 (gl_POSIXTM):
75174         * m4/posixver.m4 (gl_POSIXVER):
75175         * m4/quote.m4 (gl_QUOTE):
75176         * m4/quotearg.m4 (gl_QUOTEARG):
75177         * m4/readtokens.m4 (gl_READTOKENS):
75178         * m4/readutmp.m4 (gl_READUTMP):
75179         * m4/regex.m4 (gl_REGEX):
75180         * m4/safe-read.m4 (gl_SAFE_READ):
75181         * m4/safe-write.m4 (gl_SAFE_WRITE):
75182         * m4/same.m4 (gl_SAME):
75183         * m4/save-cwd.m4 (gl_SAVE_CWD):
75184         * m4/savedir.m4 (gl_SAVEDIR):
75185         * m4/settime.m4 (gl_SETTIME):
75186         * m4/sha1.m4 (gl_SHA1):
75187         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
75188         * m4/stat-macros.m4 (gl_STAT_MACROS):
75189         * m4/stat-time.m4 (gl_STAT_TIME):
75190         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
75191         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
75192         * m4/strdup.m4 (gl_FUNC_STRDUP):
75193         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
75194         * m4/strndup.m4 (gl_FUNC_STRNDUP):
75195         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
75196         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
75197         * m4/time_r.m4 (gl_TIME_R):
75198         * m4/timespec.m4 (gl_TIMESPEC):
75199         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
75200         * m4/unlinkdir.m4 (gl_UNLINKDIR):
75201         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
75202         * m4/userspec.m4 (gl_USERSPEC):
75203         * m4/utimecmp.m4 (gl_UTIMECMP):
75204         * m4/utimens.m4 (gl_UTIMENS):
75205         * m4/xalloc.m4 (gl_XALLOC):
75206         * m4/xgetcwd.m4 (gl_XGETCWD):
75207         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
75208         * m4/xreadlink.m4 (gl_XREADLINK):
75209         * m4/xstrtod.m4 (gl_XSTRTOD):
75210         * m4/yesno.m4 (gl_YESNO):
75211         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
75212         to get the necessary .h files and whatnot.
75213
75214 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
75215             Bruno Haible  <bruno@clisp.org>
75216
75217         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
75218         /bin/sh understanding of '!' conditional negation.
75219
75220 2006-08-21  Jim Meyering  <jim@meyering.net>
75221
75222         * modules/openat (Depends-on): Really alphabetize.
75223
75224         * modules/acl (Depends-on): Add error and quote.
75225
75226         * check-module (find_included_lib_files): Add at-func.c to the
75227         ok-to-include-more-than-once white list.
75228
75229         * modules/openat (Depends-on): Add lstat.  Alphabetize.
75230
75231 2006-08-21  Bruno Haible  <bruno@clisp.org>
75232
75233         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75234         Emit a pkgdata_DATA variable only if some snippets add contents to it.
75235         Reported by Martin Lambers <marlam@marlam.de>.
75236
75237 2006-08-21  Bruno Haible  <bruno@clisp.org>
75238
75239         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
75240         specify an installation location, don't emit a noinst_LIBRARIES or
75241         noinst_LTLIBRARIES assignment.
75242
75243 2006-08-21  Bruno Haible  <bruno@clisp.org>
75244
75245         BeOS portability.
75246         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
75247         BeOS has mbrtowc() but no <wctype.h>.
75248
75249 2006-08-21  Bruno Haible  <bruno@clisp.org>
75250
75251         BeOS portability.
75252         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
75253         exist.
75254
75255 2006-08-21  Bruno Haible  <bruno@clisp.org>
75256
75257         BeOS portability.
75258         * lib/mbchar.h: Include <wctype.h> only if it exists.
75259
75260 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         Remove files that are no longer needed by their respective modules.
75263         * m4/obstack.m4: Remove.
75264         * m4/strerror_r.m4: Remove.
75265         * m4/uint32_t.m4: Remove.
75266         * m4/uintptr_t.m4: Remove.
75267         * m4/ullong_max.m4: Remove.
75268         * m4/xstrtoimax.m4: Remove.
75269         * m4/xstrtoumax.m4: Remove.
75270
75271         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
75272         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
75273         dependencies now capture this.
75274
75275         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
75276         Do not use AC_LIBSOURCES, since gnulib modules now do this.
75277         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
75278         * m4/human.m4 (gl_HUMAN): Likewise.
75279         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
75280         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
75281
75282         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
75283
75284         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
75285         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
75286         stdint.
75287         * m4/human.m4 (gl_HUMAN): Likewise.
75288         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
75289         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
75290         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75291         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75292         * m4/xstrtol (gl_XSTRTOL): Likewise.
75293
75294         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
75295         AC_TYPE_LONG_LONG_INT.
75296         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
75297         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
75298         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
75299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
75300
75301         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
75302         on stdbool.
75303
75304         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
75305         (gl_PREREQ_XSTRTOUL): Remove.
75306
75307         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
75308
75309         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
75310         mode.
75311
75312 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         Add and change modules to make it easier for coreutils to use
75315         gnulib-tool.
75316         * modules/backupfile (Files): Remove m4/d-ino.m4.
75317         (Depends-on): Add d-ino.
75318         * modules/cycle-check (Depends-on): Add stdint.
75319         (lib_SOURCES): Add cycle-check.h.
75320         * modules/d-ino: New module.
75321         * modules/d-type: New module.
75322         * modules/error (Files): Remove m4/strerror_r.m4.
75323         * modules/filemode (Files): Add m4/st_dm_mode.m4.
75324         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75325         m4/inttypes_h.m4, m4/uintmax_t.m4.
75326         (Depends-on): Add stdint.
75327         (lib_SOURCES): Add fsusage.h.
75328         * modules/getcwd (Files): Remove d-ino.m4.
75329         (Depends-on): Add d-ino.
75330         * modules/getndelim2 (Depends-on): Add stdint.
75331         * modules/glob (Files): Remove m4/d-type.m4.
75332         (Depends-on): Add d-type.
75333         * modules/host-os: New module.
75334         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
75335         m4/inttypes_h.m4, m4/uintmax_t.m4.
75336         * Depends-on: Add stdint.
75337         (lib_SOURCES): Add human.h.
75338         * modules/inttostr (Files): Remove m4/intmax_t.m4,
75339         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
75340         m4/uintmax_t.m4, m4/ulonglong.m4.
75341         (Depends-on): Add stdint.
75342         (EXTRA_DIST): Add inttostr.h.
75343         * modules/lchmod: New module.
75344         * modules/link-follow: New module.
75345         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
75346         (Depends-on): Add lchmod.
75347         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
75348         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
75349         (Depends-on): Add stdint.
75350         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
75351         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
75352         (Depends-on): Add stdint.
75353         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
75354         * modules/perl: New module.
75355         * modules/regex (Depends-on): Add stdint.
75356         * modules/rmdir-errno: New module.
75357         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75358         m4/intmax_t.m4.
75359         (Depends-on): Add stdint.
75360         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
75361         m4/uintmax_t.m4.
75362         (Depends-on): Add stdint.
75363         * modules/unlink-busy: New module.
75364         * modules/utimecmp (Depends-on): Add stdint.
75365         * modules/uptime: New module.
75366         * modules/winsz-ioctl: New module.
75367         * modules/winsz-termios: New module.
75368         * modules/xnanosleep (Depends-on): Add nanosleep.
75369         * modules/ullong_max: Remove.
75370         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
75371         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
75372         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
75373         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
75374         (Depends-on): Add inttypes.
75375         (lib_SOURCES): Add xstrtol.h.
75376         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
75377         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
75378         * MODULES.html.sh: Move 'assert' into the assert section.
75379         Move 'dummy' into the linking section.
75380         Remove ullong_max.
75381         Add section for compatibility checks for POSIX:2001 functions,
75382         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
75383         winsz-ioctl, and winsz-termios into it.
75384         Add lchmod.
75385         Add top-level Misc section and put host-os, perl, and uptime
75386         into it.
75387
75388 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
75391         now assume the stdint module.  Do not include inttypes.h.
75392         * lib/fsusage.h: Likewise.
75393         * lib/getndelim2.c: Likewise.
75394         * lib/human.h: Likewise.
75395         * lib/inttostr.h: Likewise.
75396         * lib/obstack.c: Likewise.
75397         * lib/regex_internal.h: Likewise.
75398         * lib/tempname.c: Likewise.
75399         * lib/utimecmp.c: Likewise.
75400         * lib/xstrtol.h: Likewise.
75401
75402         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
75403
75404         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
75405         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
75406         * lib/xtime.h: Likewise.
75407
75408 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * modules/openat (Files): Add lib/fchmodat.c.
75411         Fixes problem reported by Jay Youngman.
75412
75413 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
75416         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
75417
75418 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
75419             Bruno Haible  <bruno@clisp.org>
75420
75421         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
75422         and is a script that invokes bison. Tighten the code. Add comments.
75423
75424 2006-08-18  Jim Meyering  <jim@meyering.net>
75425
75426         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
75427         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
75428         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
75429         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
75430
75431 2006-08-18  Bruno Haible  <bruno@clisp.org>
75432
75433         * modules/bison-i18n: New file.
75434         * MODULES.html.sh (Internationalization functions): Add it.
75435
75436 2006-08-18  Bruno Haible  <bruno@clisp.org>
75437
75438         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
75439         sys/statvfs.h. When getmntinfo was found, check its declaration and
75440         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
75441
75442 2006-08-18  Bruno Haible  <bruno@clisp.org>
75443
75444         * m4/bison-i18n.m4: New file, from bison.
75445
75446 2006-08-18  Bruno Haible  <bruno@clisp.org>
75447
75448         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
75449         (ME_DUMMY): Treat "kernfs" as a dummy.
75450         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
75451
75452 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         Update from coreutils.
75455
75456         2006-08-15  Jim Meyering  <jim@meyering.net>
75457
75458         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
75459
75460         2006-01-17  Jim Meyering  <jim@meyering.net>
75461
75462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
75463
75464         2006-01-11  Jim Meyering  <jim@meyering.net>
75465
75466         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
75467         Check for the lchmod function.
75468
75469 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75470
75471         Update from coreutils.
75472
75473         * lib/__fpending.h: Add copyright notice.
75474         * lib/fprintftime.h: Likewise.
75475         * lib/savedir.c: Use (C) in copyright notice.
75476         * lib/savedir.h: Likewise.
75477
75478         2006-08-15  Jim Meyering  <jim@meyering.net>
75479
75480         * lib/at-func.c: New file, with the logic of all emulated at-functions.
75481         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
75482         in support of the EXPECTED_ERRNO macro.
75483         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
75484         definitions.  Instead, define the appropriate symbols and include
75485         "at-func.c".
75486         * lib/mkdirat.c (mkdirat): Likewise.
75487         * lib/fchmodat.c (fchmodat): Likewise.
75488         (ENOSYS): Remove definition.
75489         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
75490         it.  Don't include "unistd--.h" -- it wasn't ever used.
75491
75492         2006-01-17  Jim Meyering  <jim@meyering.net>
75493
75494         Rewrite fts.c not to change the current working directory,
75495         by using openat, fstatat, fdopendir, etc..
75496
75497         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
75498         (HAVE_OPENAT_SUPPORT): Define.
75499         [_LIBC] (fchdir): Don't undef or define; no longer used.
75500         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
75501         Now, this `function' always succeeds, and consumes its file descriptor
75502         parameter -- so callers must not close such FDs.  Update callers.
75503         (diropen_fd, opendirat, cwd_advance_fd): New functions.
75504         (diropen): Add parameter, SP.  Adjust all callers.
75505         Implement using diropen_fd, rather than open.
75506         (fts_open): Initialize new member, fts_cwd_fd.
75507         Remove fts_rft-setting code.
75508         (fts_close): Close fts_cwd_fd, if necessary.
75509         (__opendir2): Define in terms of opendir or opendirat,
75510         depending on whether the FST_NOCHDIR flag is set.
75511         (fts_build): Since fts_safe_changedir consumes its FD, and since
75512         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
75513         and close the dup'd file descriptor upon failure.
75514         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
75515         (fts_safe_changedir): Tweak semantics to reflect that this function
75516         now calls cwd_advance_fd and hence consumes its FD argument.
75517         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
75518         [struct FTS] (fts_rft): Remove now-unused member.
75519         [struct FTS] (fts_cycle.state): Improve comment.
75520
75521         * lib/openat.c (openat_needs_fchdir): New function.
75522         * lib/openat.h (openat_needs_fchdir): Declare it.
75523
75524 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
75525
75526         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
75527         Problem and fix reported by Pádraig Brady in
75528         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
75529
75530 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75531
75532         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
75533
75534 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75535
75536         * lib/memcoll.c (memcoll): Optimize for the common case where the
75537         arguments are bytewise equal.
75538
75539 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * doc/regexprops-generic.texi: Add a copyright notice.
75542
75543 2006-08-15  Bruno Haible  <bruno@clisp.org>
75544
75545         * modules/tmpdir (License): Change to LGPL.
75546
75547 2006-08-15  Bruno Haible  <bruno@clisp.org>
75548
75549         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
75550         module.
75551
75552 2006-08-14  Simon Josefsson  <jas@extundo.com>
75553
75554         * config/srclist.txt: Add gnupload.
75555
75556 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75557
75558         Change copyright notice from LGPL 2 to GPL 2, since that's the
75559         standard form used in the gnulib repository.
75560         * tests/test-lock.c: Likewise.
75561         * tests/test-stdint.c: Likewise.
75562         * tests/test-tls.c: Likewise.
75563
75564         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
75565         prelude-manager.  User shorter URLs for GNU projects, without '?'.
75566         Add copyright notice.
75567
75568         * check-module: Add copyright notice.  Output a copyright
75569         notice if "--version" is specified.
75570         * modules/COPYING: New file.
75571         * tests/test-getaddrinfo.c: Add copyright notice.
75572         * tests/test-verify.c: Likewise.
75573
75574 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75575
75576         Change copyright notice from LGPL 2 to GPL 2, since that's the
75577         standard form used in the gnulib repository.
75578         * lib/lock.c: LGPL -> GPL.
75579         * lib/lock.h: Likewise.
75580         * lib/strnlen1.c: Likewise.
75581         * lib/strnlen1.h: Likewise.
75582         * lib/tls.c: Likewise.
75583         * lib/tls.h: Likewise.
75584         * lib/tmpdir.c: Likewise.
75585
75586         * lib/TODO: Remove; this belongs only in coreutils.
75587
75588 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75589
75590         Add copyright notices to long-enough files that lack them, since
75591         otherwise the files aren't clearly free.  Use the same notice that
75592         getdate.texi already uses.
75593         * doc/alloca-opt.texi: Add copyright notice.
75594         * doc/alloca.texi: Likewise.
75595         * doc/ctime.texi: Likewise.
75596         * doc/functions.texi: Likewise.
75597         * doc/gcd.texi: Likewise.
75598         * doc/gnulib-tool.texi: Likewise.
75599         * doc/inet_ntoa.texi: Likewise.
75600         * doc/visibility.texi: Likewise.
75601
75602         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
75603         * doc/quote.texi: Add copyright notice.
75604
75605         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
75606         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
75607         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
75608         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
75609         is now obsolete, and give a pointer to the Sun list.
75610         Add copyright notice.
75611
75612 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
75613
75614         * config/srclistvars.sh: Add copyright notice.
75615
75616 2006-08-14  Eric Blake  <ebb9@byu.net>
75617
75618         Import the following change from libc:
75619
75620         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
75621
75622         Upstream bug 2997.
75623         * lib/misc/error.c: Add space between program name and message if file
75624         name is missing.
75625
75626 2006-08-12  Karl Berry  <karl@gnu.org>
75627
75628         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
75629         remove, these originate in gnulib now.
75630
75631 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75632
75633         * doc/Makefile (standards.info standards.html standards.dvi):
75634         Also depend on make-stds.texi.
75635
75636 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
75639         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
75640
75641         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
75642         in wchar_t.  Problem reported by Eric Blake.
75643
75644         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
75645         LEN is smaller than SIZE.  Suggested by Bruno Haible.
75646         Also, help the compiler to keep LEN in a register.
75647
75648 2006-08-11  Eric Blake  <ebb9@byu.net>
75649
75650         * users.txt: Sort.  Add tar.
75651
75652 2006-08-11  Bruno Haible  <bruno@clisp.org>
75653
75654         * users.txt: New file.
75655
75656 2006-08-11  Bruno Haible  <bruno@clisp.org>
75657
75658         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
75659         before <wchar.h>. Needed for OSF/1 and BSD/OS.
75660
75661 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75662
75663         * modules/snprintf (Depends-on): Remove minmax.
75664         (Maintainer): Add self and Bruno.
75665
75666 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
75667
75668         * lib/.cppi-disable: Add snprintf.h, socket_.h.
75669         * lib/snprintf.c: Include <errno.h> and <limits.h>.
75670         (EOVERFLOW): Define if the system does not.
75671         Do not include "minmax.h"; it wasn't used.
75672         (snprintf): Don't assume size_t promotes to an unsigned type.
75673         Fix bug when generated string was too long for the buffer: the
75674         buffer's contents are supposed to be the initial prefix of the
75675         output.  Don't assume vasnprintf returns EOVERFLOW if the size
75676         exceeds INT_MAX; do the check ourselves.
75677
75678         Import the following changes from libc:
75679
75680         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
75681
75682         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
75683         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
75684         set wc to the byte which couldn't be converted.
75685         (re_string_reconstruct): Don't clear valid_raw_len before calling
75686         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
75687         tip_context using re_string_context_at.
75688
75689         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
75690
75691         * lib/posix/regex.h: g++ still cannot handled [restrict].
75692
75693         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
75694
75695         * lib/posix/regex.h: Remove special handling for VMS.
75696
75697 2006-08-10  Jim Meyering  <jim@meyering.net>
75698
75699         * modules/same-inode: New module.
75700         * modules/dev-ino: New module.
75701         * modules/cycle-check: Depend on these modules, rather than simply
75702         including their .h files.
75703         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
75704         required via m4/cycle-check.m4.
75705         * modules/same: Depend on new same-inode module, rather than
75706         including same-inode.h.
75707         * modules/chdir-safer: New file.
75708
75709         * modules/chown (Depends-on): Add stat-macros.
75710
75711 2006-08-10  Jim Meyering  <jim@meyering.net>
75712
75713         * m4/cycle-check.m4: New file.
75714         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
75715         * m4/dev-ino.m4, m4/same-inode.m4: New files.
75716
75717 2006-08-10  Eric Blake  <ebb9@byu.net>
75718
75719         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
75720         in from original proposal.
75721
75722 2006-08-10  Eric Blake  <ebb9@byu.net>
75723         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75724
75725         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
75726         namespace.
75727
75728 2006-08-10  Bruno Haible  <bruno@clisp.org>
75729
75730         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
75731         as well.
75732
75733 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75734
75735         Sync from coreutils.
75736
75737         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
75738
75739         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
75740         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
75741
75742 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75743
75744         * modules/restrict: Remove; no longer needed now that we assume
75745         Autoconf 2.59 or later.
75746         * MODULES.html.sh: Remove 'restrict'.
75747         * modules/argp (Depends-on): Remove 'restrict'.
75748         * modules/base64 (Depends-on): Likewise.
75749         * modules/gc (Depends-on): Likewise.
75750         * modules/getaddrinfo (Depends-on): Likewise.
75751         * modules/glob (Depends-on): Likewise.
75752         * modules/inet_ntop (Depends-on): Likewise.
75753         * modules/inet_pton (Depends-on): Likewise.
75754         * modules/memxor (Depends-on): Likewise.
75755         * modules/regex (Depends-on): Likewise.
75756         * modules/strtok_r (Depends-on): Likewise.
75757         * modules/time_r (Depends-on): Likewise.
75758
75759 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
75762         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
75763         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75764         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
75765         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
75766         * m4/memxor.m4 (gl_MEMXOR): Likewise.
75767         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
75768         gl_C_RESTRICT replaced by AC_C_RESTRICT.
75769
75770         Merge from coreutils.
75771         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
75772         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
75773         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
75774         * m4/time_r.m4 (gl_TIME_R): Likewise.
75775
75776 2006-08-09  Karl Berry  <karl@gnu.org>
75777
75778         * config/srclist.txt: no more gettext-tools, per Bruno.
75779
75780 2006-08-08  Eric Blake  <ebb9@byu.net>
75781
75782         * modules/verror: New module.
75783         * MODULES.html.sh: Document it.
75784
75785 2006-08-08  Eric Blake  <ebb9@byu.net>
75786
75787         * lib/verror.h, lib/verror.c: New files.
75788
75789 2006-08-08  Eric Blake  <ebb9@byu.net>
75790
75791         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
75792         verror_at_line output complies with GNU Coding Standards even when
75793         file is NULL.
75794
75795 2006-08-07  Bruno Haible  <bruno@clisp.org>
75796
75797         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
75798         versions of AIX.
75799         Reported by Ralf Wildenhues.
75800
75801 2006-08-07  Bruno Haible  <bruno@clisp.org>
75802
75803         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
75804         in an AC_DEFUN. Needed so that the autoconf snippets can use
75805         AC_REQUIRE.
75806
75807 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75808
75809         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75810         Initialize pkgdata_DATA.
75811         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75812         overriding it.
75813
75814 2006-08-06  Eric Blake  <ebb9@byu.net>
75815
75816         * lib/error.h: Fold in some upstream changes from glibc.
75817         * lib/error.c: Likewise.
75818
75819 2006-08-04  Bruno Haible  <bruno@clisp.org>
75820
75821         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75822         Make the mostlyclean-local rule depend on mostlyclean-generic.
75823         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75824
75825 2006-07-31  Bruno Haible  <bruno@clisp.org>
75826
75827         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75828         <stdlib.h>, <string.h>.
75829
75830 2006-07-30  Bruno Haible  <bruno@clisp.org>
75831
75832         * modules/readlink (License): Change to LGPL.
75833
75834 2006-07-30  Bruno Haible  <bruno@clisp.org>
75835
75836         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75837         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75838         set PKGDATADIR to point to it.
75839
75840 2006-07-30  Bruno Haible  <bruno@clisp.org>
75841
75842         * modules/csharpexec (configure.ac): Comment out macro invocation.
75843         * modules/javaexec (configure.ac): Likewise.
75844         * modules/javacomp-script (configure.ac): Likewise.
75845
75846         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75847
75848 2006-07-30  Bruno Haible  <bruno@clisp.org>
75849
75850         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75851         linked-list.
75852
75853 2006-07-30  Bruno Haible  <bruno@clisp.org>
75854
75855         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75856
75857 2006-07-30  Bruno Haible  <bruno@clisp.org>
75858
75859         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75860         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75861         get removed.
75862
75863 2006-07-29  Bruno Haible  <bruno@clisp.org>
75864
75865         Make it possible for gnulib-tool to work with locally modified or
75866         augmented gnulib repositories.
75867         * gnulib-tool (func_usage): Document --local-dir option.
75868         (local_gnulib_dir): New variable.
75869         Handle --local-dir option.
75870         (func_lookup_file): New function.
75871         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75872         (func_get_description, func_get_filelist, func_get_description,
75873         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75874         func_get_automake_snippet, func_get_include_directive,
75875         func_get_license, func_get_maintainer): Use func_lookup_file.
75876         (func_import, func_create_testdir): Use func_lookup_file.
75877
75878 2006-07-29  Bruno Haible  <bruno@clisp.org>
75879
75880         * modules/setenv (Depends-on): Add unistd.
75881
75882 2006-07-29  Bruno Haible  <bruno@clisp.org>
75883
75884         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75885
75886 2006-07-29  Bruno Haible  <bruno@clisp.org>
75887
75888         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75889
75890 2006-07-29  Bruno Haible  <bruno@clisp.org>
75891
75892         * gnulib-tool (import, update): If there is no Makefile.am, look at
75893         aclocal.m4, instead of bailing out.
75894
75895 2006-07-29  Bruno Haible  <bruno@clisp.org>
75896
75897         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75898         Categorize the options by when they are useful.
75899
75900 2006-07-29  Bruno Haible  <bruno@clisp.org>
75901
75902         * gnulib-tool (func_usage): Document option --no-libtool.
75903         Handle option --no-libtool.
75904         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75905         for changed semantics of $libtool variable.
75906         (func_import): Likewise. If libtool is not used, show this through
75907         an option --no-libtool.
75908         (func_create_testdir): Update.
75909
75910 2006-07-29  Bruno Haible  <bruno@clisp.org>
75911
75912         * gnulib-tool (func_import): Extend error message about missing
75913         --doc-base.
75914
75915 2006-07-29  Bruno Haible  <bruno@clisp.org>
75916
75917         * gnulib-tool (func_import): Don't create the $docbase directory if
75918         there is no file to store there.
75919
75920 2006-07-29  Bruno Haible  <bruno@clisp.org>
75921
75922         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75923         relevant, look for configure.ac there, not in the current directory.
75924         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75925
75926 2006-07-29  Bruno Haible  <bruno@clisp.org>
75927
75928         * gnulib-tool (SORT): New variable.
75929         (func_usage): Undocument --assume-autoconf option.
75930         Remove --assume-autoconf option handling.
75931         (autoconf_minversion): Determine from the contents of configure.ac.
75932         (func_import): Remove autoconf_minversion handling.
75933         Suggested by Eric Blake.
75934
75935 2006-07-29  Bruno Haible  <bruno@clisp.org>
75936
75937         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75938
75939 2006-07-29  Bruno Haible  <bruno@clisp.org>
75940
75941         * config/srclist.txt (*setenv.[ch]): Remove rules.
75942
75943 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75944
75945         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75946
75947 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75948
75949         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75950         arpa/inet.h.
75951
75952 2006-07-28  Simon Josefsson  <jas@extundo.com>
75953
75954         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75955         * modules/inet_pton (Depends-on): Likewise.
75956
75957 2006-07-28  Simon Josefsson  <jas@extundo.com>
75958
75959         * m4/netinet_in_h.m4: New file.
75960
75961 2006-07-28  Simon Josefsson  <jas@extundo.com>
75962
75963         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75964         #include's.
75965
75966 2006-07-28  Simon Josefsson  <jas@extundo.com>
75967
75968         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75969         #include's.
75970
75971 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75974         setgid on directories only if they set these bits.
75975         * lib/modechange.h: Remove obsolete comment about masks.
75976
75977 2006-07-28  Eric Blake  <ebb9@byu.net>
75978
75979         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75980         macro expansion.
75981
75982 2006-07-28  Bruno Haible  <bruno@clisp.org>
75983
75984         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75985
75986 2006-07-28  Bruno Haible  <bruno@clisp.org>
75987
75988         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75989
75990 2006-07-28  Bruno Haible  <bruno@clisp.org>
75991
75992         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75993         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75994         Define fallbacks.
75995         Avoids link error on FreeBSD 4.x.
75996         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75997
75998         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75999         encoding.
76000         * lib/mbswidth.c (iswcntrl): Likewise.
76001
76002 2006-07-27  Bruno Haible  <bruno@clisp.org>
76003
76004         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
76005         test.
76006
76007 2006-07-27  Bruno Haible  <bruno@clisp.org>
76008
76009         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
76010         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
76011         defined.
76012
76013 2006-07-26  Eric Blake  <ebb9@byu.net>
76014
76015         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
76016
76017 2006-07-26  Eric Blake  <ebb9@byu.net>
76018
76019         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
76020         like mingw that lack mkstemp.
76021         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
76022         avoid compilation warning on mingw.
76023
76024 2006-07-26  Bruno Haible  <bruno@clisp.org>
76025
76026         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
76027         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
76028         INT_FAST*_MIN, INTPTR_MIN.
76029
76030 2006-07-25  Bruno Haible  <bruno@clisp.org>
76031
76032         * modules/version-etc (Depends-on): Add stdarg.
76033
76034 2006-07-25  Bruno Haible  <bruno@clisp.org>
76035
76036         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
76037         complex commands.
76038
76039 2006-07-25  Bruno Haible  <bruno@clisp.org>
76040
76041         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
76042         defined in <stdarg.h> or config.h.
76043
76044 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
76047         (gl_STDIO_SAFER): Remove.
76048
76049 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * MODULES.html.sh (File stream based Input/Output):
76052         Add fopen-safer, tmpfile-safer; remove stdio-safer.
76053         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
76054         * modules/fopen-safer, modules/tmpfile-safer: New files.
76055         * modules/stdio-safer: Remove.
76056
76057 2006-07-24  Bruno Haible  <bruno@clisp.org>
76058
76059         * modules/tmpdir: New file.
76060         * MODULES.html.sh (File system functions): Add it.
76061
76062 2006-07-24  Bruno Haible  <bruno@clisp.org>
76063
76064         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
76065         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
76066
76067 2006-07-24  Bruno Haible  <bruno@clisp.org>
76068
76069         * modules/clean-temp: New file.
76070
76071 2006-07-24  Bruno Haible  <bruno@clisp.org>
76072
76073         * m4/tmpdir.m4: New file, from GNU gettext.
76074
76075 2006-07-24  Bruno Haible  <bruno@clisp.org>
76076
76077         * lib/tmpdir.h: New file, from GNU gettext.
76078         * lib/tmpdir.c: New file, from GNU gettext.
76079
76080 2006-07-24  Bruno Haible  <bruno@clisp.org>
76081
76082         * lib/clean-temp.h: New file, from GNU gettext.
76083         * lib/clean-temp.c: New file, from GNU gettext.
76084
76085 2006-07-23  Eric Blake  <ebb9@byu.net>
76086
76087         * modules/stdio-safer (Files): Add tmpfile-safer.c.
76088         (Depends-on): Add binary-io.
76089
76090 2006-07-23  Eric Blake  <ebb9@byu.net>
76091
76092         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
76093
76094 2006-07-23  Eric Blake  <ebb9@byu.net>
76095
76096         * lib/tmpfile-safer.c: New file.
76097         * lib/stdio-safer.h (fopen_safer): Add prototype.
76098         * lib/stdio--.h (tmpfile): Make safer.
76099
76100 2006-07-23  Bruno Haible  <bruno@clisp.org>
76101
76102         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
76103         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
76104         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
76105         gl_linked_remove_at): Use it.
76106
76107 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76108         and Simon Josefsson <jas@extundo.com>
76109
76110         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
76111
76112         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
76113
76114 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * modules/close-stream: New file.
76117         * modules/closeout (Description): Make it clear that it exits
76118         with a diagnostic on error.
76119         (Depends-on): Add close-stream.  Remove fpending, stdbool.
76120         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
76121
76122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76123
76124         * m4/close-stream.m4: New file.
76125
76126 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
76127
76128         * lib/close-stream.c, lib/close-stream.h: New files.
76129
76130 2006-07-22  Bruno Haible  <bruno@clisp.org>
76131
76132         Merge from GNU gettext 0.15.
76133
76134         2006-05-01  Bruno Haible  <bruno@clisp.org>
76135
76136                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
76137
76138         2006-07-22  Bruno Haible  <bruno@clisp.org>
76139
76140                 * modules/javaversion: New file.
76141                 * MODULES.html.sh (Java): Add javaversion.
76142
76143         2006-03-12  Bruno Haible  <bruno@clisp.org>
76144
76145                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
76146
76147         2005-12-04  Bruno Haible  <bruno@clisp.org>
76148
76149                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
76150                 (untested).
76151
76152         2006-06-21  Bruno Haible  <bruno@clisp.org>
76153
76154                 Avoid warnings from recent versions of mcs.
76155                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
76156                 -o, -L, -r any more. Use options documented since mcs-1.0
76157                 instead. Similarly for -g.
76158
76159         2005-12-04  Bruno Haible  <bruno@clisp.org>
76160
76161                 * build-aux/csharpcomp.sh.in: Suffix for resources is
76162                 .resources, not .resource.
76163
76164         2005-07-09  Bruno Haible  <bruno@clisp.org>
76165
76166                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
76167                 add a .dll suffix.
76168                 Reported by Mark Junker <mjscod@gmx.de>.
76169
76170         2006-07-22  Bruno Haible  <bruno@clisp.org>
76171
76172                 * modules/gettext: Upgrade to gettext-0.15.
76173                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
76174                 m4/visibility.m4.
76175                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
76176
76177 2006-07-22  Bruno Haible  <bruno@clisp.org>
76178
76179         Merge from GNU gettext 0.15.
76180
76181         2006-03-25  Bruno Haible  <bruno@clisp.org>
76182
76183                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
76184
76185         2006-07-21  Bruno Haible  <bruno@clisp.org>
76186
76187                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
76188                 "1.1".
76189
76190         2006-05-09  Bruno Haible  <bruno@clisp.org>
76191
76192                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
76193                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
76194                 for the conftestver execution.
76195
76196         2006-05-01  Bruno Haible  <bruno@clisp.org>
76197
76198                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
76199                 optional target-version argument. Verify that the compiler
76200                 groks source of the specified source-version, or add -source
76201                 option as necessary. Verify that the compiler produces
76202                 bytecode in the specified target-version, or add -target and
76203                 -source options as necessary. Make the result of the test
76204                 available as variable CONF_JAVAC. Also log error output in
76205                 config.log.
76206
76207         2006-03-11  Bruno Haible  <bruno@clisp.org>
76208
76209                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
76210
76211         2006-05-09  Bruno Haible  <bruno@clisp.org>
76212
76213                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
76214                 CLASSPATH_SEPARATOR to a semicolon.
76215
76216         2006-03-12  Bruno Haible  <bruno@clisp.org>
76217
76218                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
76219                 available as variable CONF_JAVA, for subsequent autoconf
76220                 tests. Also log error output in config.log.
76221
76222         2006-07-19  Bruno Haible  <bruno@clisp.org>
76223
76224                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
76225                 that getline works on glibc2 systems. Needed to avoid trouble
76226                 in relocatable.c.
76227                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
76228
76229         2005-12-04  Bruno Haible  <bruno@clisp.org>
76230
76231                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
76232                 launcher (untested).
76233
76234         2005-12-04  Bruno Haible  <bruno@clisp.org>
76235
76236                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
76237
76238         2006-07-22  Bruno Haible  <bruno@clisp.org>
76239
76240                 * gettext.m4: Update from GNU gettext-0.15.
76241                 * nls.m4: Likewise.
76242                 * po.m4: Likewise.
76243                 * inttypes-pri.m4: Likewise.
76244                 * inttypes-h.m4: Renamed from inttypes.m4.
76245                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
76246
76247 2006-07-22  Bruno Haible  <bruno@clisp.org>
76248
76249         Merge from GNU gettext 0.15.
76250
76251         2005-07-05  Bruno Haible  <bruno@clisp.org>
76252
76253                 * printf-args.c (printf_fetchargs): Work around broken
76254                 definition of wint_t on mingw.
76255
76256         2005-02-12  Bruno Haible  <bruno@clisp.org>
76257
76258                 * xallocsa.h: Add extern "C" for C++.
76259
76260         2006-05-17  Bruno Haible  <bruno@clisp.org>
76261
76262                 Cygwin portability.
76263                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
76264
76265         2006-04-30  Bruno Haible  <bruno@clisp.org>
76266
76267                 * progreloc.c: Include <mach-o/dyld.h> if available.
76268                 (find_executable): Use _NSGetExecutablePath when possible.
76269
76270         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76271
76272                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
76273                 function.
76274
76275         2005-12-29  Bruno Haible  <bruno@clisp.org>
76276
76277                 * progreloc.c (set_program_name_and_installdir): Fix
76278                 compilation error.
76279
76280         2005-12-04  Bruno Haible  <bruno@clisp.org>
76281
76282                 Cygwin portability.
76283                 * progreloc.c: Include <windows.h> also on Cygwin.
76284                 (find_executable): Add support for Cygwin.
76285                 (set_program_name_and_installdir): Handle also platforms with
76286                 nonempty EXEEXT.
76287
76288         2006-07-11  Bruno Haible  <bruno@clisp.org>
76289
76290                 * javacomp.c: Fix a comment.
76291                 Reported by Jim Meyering.
76292
76293         2006-04-30  Bruno Haible  <bruno@clisp.org>
76294
76295                 * javacomp.h (compile_java_class): Add source_version,
76296                 target_version arguments.
76297                 * javacomp.c: Rewritten to choose only a compiler that
76298                 respects the specified source_version and target_version.
76299
76300         2006-06-27  Bruno Haible  <bruno@clisp.org>
76301
76302                 Assume correct S_ISDIR macro.
76303                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
76304
76305         2006-07-22  Bruno Haible  <bruno@clisp.org>
76306
76307                 * javaversion.h: New file, from GNU gettext.
76308                 * javaversion.c: New file, from GNU gettext.
76309                 * javaversion.java: New file, from GNU gettext.
76310                 * javaversion.class: New file, from GNU gettext.
76311
76312         2006-05-17  Bruno Haible  <bruno@clisp.org>
76313
76314                 Cygwin portability.
76315                 * javaexec.c (execute_java_class): Test for jview program
76316                 also on Cygwin.
76317
76318         2006-04-09  Bruno Haible  <bruno@clisp.org>
76319
76320                 * fatal-signal.c: Don't include string.h.
76321                 (at_fatal_signal): Use a copying loop instead of memcpy.
76322
76323         2005-12-04  Bruno Haible  <bruno@clisp.org>
76324
76325                 * csharpexec.c: Add support for 'clix' launcher (untested).
76326                 (execute_csharp_using_sscli): New function.
76327                 (execute_csharp_program): Call it.
76328
76329         2006-06-21  Bruno Haible  <bruno@clisp.org>
76330
76331                 Avoid warnings from recent versions of mcs.
76332                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
76333                 -o, -L, -r any more. Use options documented since mcs-1.0
76334                 instead. Similarly for -g.
76335
76336         2005-07-09  Bruno Haible  <bruno@clisp.org>
76337
76338                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
76339                 add a .dll suffix.
76340                 Reported by Mark Junker <mjscod@gmx.de>.
76341
76342         2006-06-17  Bruno Haible  <bruno@clisp.org>
76343
76344                 * config.charset: Update for NetBSD 3.0.
76345
76346         2006-05-17  Bruno Haible  <bruno@clisp.org>
76347
76348                 Cygwin portability.
76349                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
76350
76351         2006-05-16  Bruno Haible  <bruno@clisp.org>
76352
76353                 * localcharset.c [CYGWIN]: Include <windows.h>.
76354                 (get_charset_aliases): For Cygwin, return the same CPxxx
76355                 aliases list as under WIN32.
76356                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
76357                 the environment variables. Fall back to GetACP().
76358
76359         2006-04-05  Bruno Haible  <bruno@clisp.org>
76360
76361                 * config.charset: Update Juan Manuel Guerrero's address.
76362
76363         2005-02-12  Bruno Haible  <bruno@clisp.org>
76364
76365                 * allocsa.h: Add extern "C" for C++.
76366
76367         2005-02-10  Bruno Haible  <bruno@clisp.org>
76368
76369                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
76370                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
76371
76372         2006-07-22  Bruno Haible  <bruno@clisp.org>
76373
76374                 * gettext.h: Update to GNU gettext-0.15.
76375
76376 2006-07-22  Bruno Haible  <bruno@clisp.org>
76377
76378         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
76379         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
76380         lib-prefix.m4, longdouble.m4, ssize_t.m4.
76381
76382 2006-07-21  Eric Blake  <ebb9@byu.net>
76383
76384         * modules/stdlib-safer: New file.
76385         * MODULES.html.sh (File stream based Input/Output): Add
76386         stdlib-safer.
76387
76388 2006-07-21  Eric Blake  <ebb9@byu.net>
76389
76390         * lib/stdlib-safer.h: New file from coreutils, required by
76391         stdlib--.h.
76392
76393 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
76396
76397 2006-07-20  Bruno Haible  <bruno@clisp.org>
76398
76399         * gnulib-tool: Recognize new option --assume-autoconf.
76400         (autoconf_minversion): New variable.
76401         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
76402
76403 2006-07-20  Bruno Haible  <bruno@clisp.org>
76404
76405         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
76406
76407 2006-07-19  Derek R. Price  <derek@ximbiot.com>
76408
76409         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
76410         Reindent and repaginate.
76411
76412 2006-07-19  Derek Price  <derek@ximbiot.com>
76413
76414         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
76415         Correct grammar.
76416
76417 2006-07-17  Bruno Haible  <bruno@clisp.org>
76418
76419         * modules/list: New file.
76420         * modules/array-list: New file.
76421         * modules/carray-list, modules/carray-list-tests: New files.
76422         * modules/linked-list, modules/linked-list-tests: New files.
76423         * modules/avltree-list, modules/avltree-list-tests: New files.
76424         * modules/rbtree-list, modules/rbtree-list-tests: New files.
76425         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
76426         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
76427         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
76428         * modules/oset: New file.
76429         * modules/array-oset: New file.
76430         * modules/avltree-oset, modules/avltree-oset-tests: New files.
76431         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
76432         * tests/test-carray_list.c: New file.
76433         * tests/test-linked_list.c: New file.
76434         * tests/test-avltree_list.c: New file.
76435         * tests/test-rbtree_list.c: New file.
76436         * tests/test-linkedhash_list.c: New file.
76437         * tests/test-avltreehash_list.c: New file.
76438         * tests/test-rbtreehash_list.c: New file.
76439         * tests/test-avltree_oset.c: New file.
76440         * tests/test-rbtree_oset.c: New file.
76441         * MODULES.html.sh (Container data structures): New section.
76442
76443 2006-07-17  Bruno Haible  <bruno@clisp.org>
76444
76445         * m4/gl_list.m4: New file.
76446
76447 2006-07-17  Bruno Haible  <bruno@clisp.org>
76448
76449         * lib/gl_list.h: New file.
76450         * lib/gl_list.c: New file.
76451         * lib/gl_array_list.h: New file.
76452         * lib/gl_array_list.c: New file.
76453         * lib/gl_carray_list.h: New file.
76454         * lib/gl_carray_list.c: New file.
76455         * lib/gl_linked_list.h: New file.
76456         * lib/gl_linked_list.c: New file.
76457         * lib/gl_anylinked_list1.h: New file.
76458         * lib/gl_anylinked_list2.h: New file.
76459         * lib/gl_avltree_list.h: New file.
76460         * lib/gl_avltree_list.c: New file.
76461         * lib/gl_anyavltree_list1.h: New file.
76462         * lib/gl_anyavltree_list2.h: New file.
76463         * lib/gl_rbtree_list.h: New file.
76464         * lib/gl_rbtree_list.c: New file.
76465         * lib/gl_anyrbtree_list1.h: New file.
76466         * lib/gl_anyrbtree_list2.h: New file.
76467         * lib/gl_anytree_list1.h: New file.
76468         * lib/gl_anytree_list2.h: New file.
76469         * lib/gl_linkedhash_list.h: New file.
76470         * lib/gl_linkedhash_list.c: New file.
76471         * lib/gl_anyhash_list1.h: New file.
76472         * lib/gl_anyhash_list2.h: New file.
76473         * lib/gl_avltreehash_list.h: New file.
76474         * lib/gl_avltreehash_list.c: New file.
76475         * lib/gl_rbtreehash_list.h: New file.
76476         * lib/gl_rbtreehash_list.c: New file.
76477         * lib/gl_anytreehash_list1.h: New file.
76478         * lib/gl_anytreehash_list2.h: New file.
76479
76480         * lib/gl_oset.h: New file.
76481         * lib/gl_oset.c: New file.
76482         * lib/gl_array_oset.h: New file.
76483         * lib/gl_array_oset.c: New file.
76484         * lib/gl_avltree_oset.h: New file.
76485         * lib/gl_avltree_oset.c: New file.
76486         * lib/gl_rbtree_oset.h: New file.
76487         * lib/gl_rbtree_oset.c: New file.
76488         * lib/gl_anytree_oset.h: New file.
76489
76490 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76491
76492         * m4/mkancesdirs.m4: New file.
76493         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
76494         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
76495         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
76496         it.
76497
76498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76499
76500         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
76501         * lib/mkancesdirs.h: New files.
76502         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
76503         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
76504         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
76505         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
76506         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
76507         callers changed.  Revamp internals significantly, by not
76508         attempting to create directories that are temporarily more
76509         permissive than the final results.  Do not attempt to use
76510         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
76511         This removes some race conditions, fixes some bugs, and simplifies
76512         things.  Use new dirchownmod function to do owner and mode changes.
76513         * lib/mkdir-p.h: Likewise.
76514         * lib/modechange.c (octal_to_mode): New function.
76515         (struct mode_change): New member mentioned.
76516         (make_node_op_equals): New arg mentioned.  All callers changed.
76517         (mode_compile): Keep track of which mode bits the user has explicitly
76518         mentioned.
76519         (mode_adjust): New arg DIR, so that we implement the X op correctly.
76520         New arg PMODE_BITS, to keep track of which mode bits the user
76521         mentioned; it treats S_ISUID and S_ISGID speciall.
76522         All callers changed.
76523         * lib/modechange.h: Likewise.
76524
76525 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * MODULES.html.sh: Add mkancestors.
76528         * modules/mkancesdirs: New module.
76529         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
76530         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
76531         The chdir-safer and afs files are now orphans; I'll remove them
76532         unless someone speaks up.
76533         Add lib/dirchownmod.c, lib/dirchownmod.h.
76534         (Depends-on): Remove alloca, chown, save-cwd, dirname.
76535         Add lchown, mkancesdirs.
76536         (Maintainer): Add self.
76537
76538 2006-07-15  Karl Berry  <karl@gnu.org>
76539
76540         * gnulib-tool: help message wording/arrangement.
76541
76542 2006-07-14  Simon Josefsson  <jas@extundo.com>
76543
76544         * doc/gnulib.texi (Libtool and Windows): New section.
76545
76546 2006-07-12  Simon Josefsson  <jas@extundo.com>
76547
76548         * modules/gendocs (License): Fix license, approved by Karl.
76549
76550 2006-07-12  Eric Blake  <ebb9@byu.net>
76551
76552         * MODULES.html.sh: Add gendocs.
76553
76554 2006-07-11  Eric Blake  <ebb9@byu.net>
76555
76556         * modules/fdl: New module, to install doc/fdl.texi.
76557         * MODULES.html.sh: Add new section for documentation modules.
76558         * gnulib-tool: Avoid space-tab.
76559         (--doc-base): New option, to manage files from doc.
76560
76561 2006-07-11  Eric Blake  <ebb9@byu.net>
76562
76563         * m4/absolute-header.m4: Fix comments to match recent change.
76564
76565 2006-07-11  Eric Blake  <ebb9@byu.net>
76566
76567         * gnulib-tool: List --doc-base before --tests-base.
76568
76569 2006-07-11  Derek R. Price  <derek@ximbiot.com>
76570
76571         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
76572
76573 2006-07-11  Bruno Haible  <bruno@clisp.org>
76574
76575         * README: Mention where to put documentation.
76576
76577 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76578
76579         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
76580
76581 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
76584         to stdint.m4.
76585
76586 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
76589         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
76590         "no/such/file/stdint.h" when there is no such file, so that
76591         the resulting C code can be parsed by dodgy compilers.
76592         Problems reported by Bob Proulx.
76593
76594 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76595
76596         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
76597         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76598         macros into the GNU _D_EXACT_NAMLEN.
76599         * lib/savedir.c:  Likewise.
76600         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
76601
76602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
76603         and Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
76606         * m4/savedir.m4:
76607         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
76608         macros into the GNU _D_EXACT_NAMLEN.
76609
76610 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
76613         around the absolute name, to work around a problem with the HP-UX
76614         11.23 native C compiler, reported by Bob Proulx.
76615
76616 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         * doc/maintain.texi, make-stds.texi: Sync from
76619         <http://savannah.gnu.org/projects/gnustandards>.
76620
76621 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
76624
76625 2006-07-09  Jim Meyering  <jim@meyering.net>
76626
76627         * m4/glob.m4: Remove a doubled word in a comment.
76628
76629 2006-07-09  Jim Meyering  <jim@meyering.net>
76630
76631         * lib/argp-pv.c: Remove a doubled word in a comment.
76632         * lib/check-version.c (check_version): Likewise.
76633         * lib/javacomp.c (compile_java_class): Likewise.
76634
76635 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
76636
76637         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
76638         for the benefit of people using Autoconf 2.60.  If you want to
76639         support older Autoconf versions you can copy m4/onceonly_2_57.m4
76640         (or m4/onceonly.m4, if pre-2.57) manually.
76641
76642 2006-07-08  Jim Meyering  <jim@meyering.net>
76643
76644         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
76645         comment.
76646         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
76647         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
76648         comment.
76649
76650 2006-07-08  Jim Meyering  <jim@meyering.net>
76651
76652         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
76653
76654 2006-07-07  Simon Josefsson  <jas@extundo.com>
76655
76656         * tests/test-crc.c: Change expected crc value, the test vector
76657         were probably computed using the old broken crc.c?
76658
76659 2006-07-06  Simon Josefsson  <jas@extundo.com>
76660
76661         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
76662         now the canonical place for the M4 file).
76663
76664         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
76665         from the sys_socket dependency now.
76666
76667         * modules/inet_pton (Files): Ditto.
76668
76669         * modules/inet_ntop (Files): Ditto.
76670
76671 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76672
76673         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
76674         not gl_PREREQ_GETUSERSHELL.
76675
76676 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76677
76678         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
76679         with only one argument, for Autoconf 2.60.
76680         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
76681         expand to nothing, so add a shell command to avoid syntax error.
76682         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76683
76684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76685
76686         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
76687
76688 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76689
76690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
76691         no longer needed.  Check for isblank decl.
76692         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
76693         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
76694         of existence.
76695
76696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76697
76698         * lib/getloadavg.c: Use __VMS, not VMS.
76699         * lib/getopt.c: Likewise.
76700         * lib/getpagesize.h: Likewise.
76701         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
76702         and probably does not work.
76703
76704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * lib/.cppi-disable: Add wcwidth.
76707         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
76708         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
76709         (ISGRAPH): Remove.  All uses changed to isgraph.
76710         (FOLD) [!defined _LIBC]: Remove special case.
76711         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
76712         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
76713         HAVE_ISBLANK.
76714         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
76715         case.
76716
76717 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76718
76719         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
76720         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
76721         brackets.  Other minor changes to suppress some compiler
76722         warnings.
76723
76724 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76725         and Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
76728         of invoking obsolescent AC_HEADER_DIRENT macro.
76729         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
76730         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
76731         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
76732         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
76733         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
76734         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
76735         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
76736         * m4/readdir.m4: Remove; no longer needed.
76737
76738 2006-07-06  Derek R. Price  <derek@ximbiot.com>
76739         and Paul Eggert  <eggert@cs.ucla.edu>
76740
76741         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
76742         Don't worry about this obsolete case any more.
76743         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
76744         directories.
76745         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
76746         worry about this obsolete case any more.
76747         * lib/fts.c: Likewise.
76748         * lib/getcwd.c: Likewise.
76749         * lib/glob.h: Likewise.
76750         * lib/savedir.c: Likewise.
76751
76752 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
76755         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
76756         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
76757         needed.
76758         All uses removed.
76759         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76760         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76761         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
76762         needed.
76763         * m4/getdate.m4 (gl_GETDATE): Likewise.
76764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76765         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76766         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
76769         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76770         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
76771         needed.
76772
76773 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
76774
76775         * lib/memcasecmp.c: Include <limits.h>.
76776         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
76777         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
76778         Don't assume isdigit succeeds only on '0' through '9'.
76779
76780 2006-07-05  Eric Blake  <ebb9@byu.net>
76781
76782         * modules/getaddrinfo (Depends-on): Add snprintf.
76783
76784 2006-07-05  Eric Blake  <ebb9@byu.net>
76785
76786         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
76787         to avoid 'header present but could not be compiled' on cygwin.
76788
76789 2006-07-05  Eric Blake  <ebb9@byu.net>
76790
76791         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
76792         missing from netdb.h.
76793         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
76794
76795 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76796
76797         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
76798         no longer needed.
76799         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
76800         * m4/getdate.m4 (gl_GETDATE): Likewise.
76801         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
76802         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
76803         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
76804         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
76805         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
76806
76807 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76808
76809         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76810         All uses of is_space replaced by isspace.
76811         * lib/exit.h: Don't talk about STDC_HEADERS.
76812         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76813         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76814         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76815         replaced by isprint etc.
76816         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76817         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76818         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76819         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76820         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76821         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76822
76823 2006-07-05  Bruno Haible  <bruno@clisp.org>
76824
76825         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76826         the function exists, before testing against AIX.
76827         Reported by Martin Lambers <marlam@marlam.de>.
76828
76829 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76830
76831         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76832         From Mark D. Baushke.
76833
76834 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76835
76836         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76837         to the absolute name, not just one, to bypass Sun C 5.8's
76838         "warning: #include of /usr/include/... may be non-portable".
76839
76840 2006-07-04  Eric Blake  <ebb9@byu.net>
76841
76842         * modules/dirname-tests: New test module.
76843         * tests/test-dirname.c: New file, replacing dirname.c
76844         TEST_DIRNAME section that was recently deleted.
76845
76846 2006-07-04  Bruno Haible  <bruno@clisp.org>
76847
76848         Assume ANSI C header files and <ctype.h> functions.
76849         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76850         (mbsnwidth): Use isprint, iscntrl instead.
76851
76852 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         Merge from coreutils.
76855         * MODULES.html.sh: Add xstrtold.
76856         * modules/xstrtold: New file.
76857         * modules/cycle-check (Files): Add lib/same-inode.h.
76858         * modules/dirname (Files): Add m4/double-slash-root.m4.
76859         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76860         * modules/mkdir-p (Files): Add lib/same-inode.h.
76861         * modules/same (Files): Add lib/same-inode.h.
76862
76863 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76866         This is to keep the terminology clean; POSIX talks about
76867         "absolute pathnames", not "full pathnames", but the GNU
76868         Coding Standards say to use "path" for something else;
76869         so use "absolute" to keep both sides happy.
76870         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76871         Set gl_absolute_header, not gl_full_header_path.
76872         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76873         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76874         All uses changed.
76875
76876         Merge from coreutils.
76877
76878         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76881         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76882         want to require the building of c-strtod.o.
76883         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76884         needs -lm directly.
76885         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76886
76887         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76888
76889         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76890         --as-needed option if available.  Problem reported by Albert Chin in
76891         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76892         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76893         cc merely issues a bunch of annoying warnings for --as-needed
76894         (this problem was reported by Bob Proulx).  Also, try linking with
76895         -lm to detect a bug in binutils 2.16 (this problem was reported
76896         by Ralf Wildenhues).
76897
76898         2006-06-18  Jim Meyering  <jim@meyering.net>
76899
76900         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76901         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76902         macro.
76903         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76904         also check for glibc-2.4's abort-inducing bug.
76905
76906         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76907         Low-probability clean-up should be to use rmdir to get rid of
76908         the just-created directory, not unlink.
76909
76910         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76911         configure fail, and request a bug report to inform us about it.
76912         Add a comment that, barring reports to the contrary, in 2007 we'll
76913         assume ftruncate is universally available.
76914
76915         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76916
76917         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76918
76919         2006-03-12  Jim Meyering  <jim@meyering.net>
76920
76921         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76922         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76923         * m4/same.m4 (gl_SAME): Likewise.
76924         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76925
76926         2006-03-11  Eric Blake  <ebb9@byu.net>
76927
76928         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76929         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76930         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76931         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76932
76933 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76936         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76937         reported by Mark D. Baushke, one in
76938         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76939
76940         Merge from coreutils.
76941
76942         * lib/.cppi-disable: Add stdint_.h.
76943         * lib/.cvsignore: Add stdint.h.
76944
76945         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76948         both double and long double versions.
76949         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76950         * lib/xstrtold.c: New file.
76951         * lib/xstrtod.h (xstrtold): New decl.
76952
76953         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76954
76955         * lib/filemode.c (setst): Remove.
76956         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76957         (arguably) clearer, and the generated code is a bit smaller on my
76958         Debian GNU/Linux stable x86 host.
76959
76960         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76961
76962         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76963         Assume that filemode.h includes sys/types.h and sys/stat.h.
76964         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76965         (ftypelet): Reorder to put common cases first, for efficiency.
76966         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76967         to do 'M'.
76968         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76969         of 10, for compatibility with FreeBSD.  All callers changed.
76970         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76971         types that can't be deduced solely from st_mode.  First arg is now a
76972         const pointer.
76973         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76974         (strmode): Renamed from mode_string.
76975         (filemodestring): New decl.
76976         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76977         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76978         needed.
76979         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76980
76981         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76982
76983         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76984         fsusage.h now does that.  Include fsusage.h first, to test interface.
76985         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76986         at most one method (the old code could have generated decls that
76987         didn't conform to C89, not that this was ever exercised).
76988         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76989
76990         2006-03-19  Jim Meyering  <jim@meyering.net>
76991
76992         Work even in a chroot where d_ino values for entries in "/"
76993         don't match the stat.st_ino values for the same names.
76994         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76995         number, iterate through all entries again, using lstat instead.
76996         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76997         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76998
76999         * lib/getcwd.c (__getcwd): Clarify a comment.
77000         Use memcpy in place of a call to strcpy.
77001
77002         2006-03-12  Jim Meyering  <jim@meyering.net>
77003
77004         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
77005         matches that of the current directory (which we're about to chdir ".."
77006         out of), then save the dev-ino of the parent, instead.
77007
77008         * lib/same-inode.h (SAME_INODE): New file/macro.
77009         * lib/chdir-safer.c (SAME_INODE): Remove definition.
77010         Include "same-inode.h", instead.
77011         * lib/same.c: Likewise.
77012         * lib/cycle-check.h: Include "same-inode.h".
77013         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
77014         * lib/cycle-check.c (SAME_INODE): Remove definition.
77015         * lib/root-dev-ino.h: Include "same-inode.h".
77016
77017         2006-03-11  Eric Blake  <ebb9@byu.net>
77018
77019         * lib/same.c (same_name): s/base_name/last_component/
77020         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
77021         * lib/filenamecat.c (file_name_concat): Likewise.
77022
77023         2006-03-11  Eric Blake  <ebb9@byu.net>,
77024                     Paul Eggert  <eggert@cs.ucla.edu>
77025
77026         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
77027         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
77028         drive prefix.
77029         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
77030         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
77031         (last_component): New method.
77032         * lib/dirname.c (dir_len): Determine when drive letters need a
77033         subsequent slash.  Preserve // when it is special.
77034         (dir_name): Don't append dot when drive letter is absolute.
77035         [TEST_DIRNAME]: Move into a full-blown gnulib test.
77036         * lib/basename.c (base_name): New semantics - malloc the result.
77037         Preserve // when it is special.  Preserve relative files that look
77038         like drive letters.
77039         (base_len): Preserve // when it is special.
77040         (last_component): New method, similar to old base_name semantics.
77041         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
77042         base_name.  Strip redundant slashes from ///.
77043
77044 2006-07-03  Jim Meyering  <jim@meyering.net>
77045
77046         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
77047         macro is used before the first cycle_check call.
77048
77049 2006-07-03  Eric Blake  <ebb9@byu.net>
77050
77051         * modules/dirname (Depends-on): Add xstrndup.
77052
77053 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77054
77055         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
77056         test cases, so that config.log is a bit easier to follow.
77057
77058 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
77059
77060         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
77061         both are 64 bits, since this seems to be the tradition, and this
77062         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
77063         we ever run into a host that prefers long long to long in this
77064         case, we'll need another configure-time test.  Problem reported by
77065         Jim Meyering.
77066
77067 2006-07-02  Eric Blake  <ebb9@byu.net>
77068
77069         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
77070
77071 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77072
77073         * modules/inttypes (Depends-on): No longer depends on stdint.
77074         * modules/stdint (Description): Say more about assumptions.
77075         Say that the fast types might differ.  Say macros are used.
77076         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
77077         (Makefile.am): Revise list of substituted symbols to match
77078         new stdint.m4.
77079         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
77080         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
77081         * tests/test-stdint.c (verify_same_types)
77082         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
77083         the code conforms to C99/C89.
77084         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
77085         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
77086
77087 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77088
77089         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
77090         but fix a bug, by requiring at least 64 bits.
77091         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
77092         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
77093         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
77094         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77095
77096         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
77097         changes.  Make 2.59 a prerequisite.  Check and substitute for
77098         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
77099         inttypes.h.  Do not use special include files; just use the
77100         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
77101         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
77102         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
77103         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
77104         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
77105         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
77106         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
77107         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
77108         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
77109         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
77110         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
77111         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
77112         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
77113         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
77114         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
77115         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
77116         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
77117         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
77118         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
77119         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
77120         WINT_MAX.  Check for C99 conformance more strictly, by detecting
77121         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
77122         not check for things that C99 does not require, e.g., int8_t.  If
77123         a test isn't needed unless <stdint.h> isn't working, and is
77124         unlikely to be needed for any other reason, then don't do it
77125         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
77126         size_t, since we assume C89 freestanding at least.  Do not check
77127         for sig_atomic_t, wchar_t, or wint_t, since the code now does
77128         the right thing even if the types are not defined.  Instead use:
77129         (gl_STDINT_TYPE_PROPERTIES): New macro.
77130         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
77131         testing whether <sys/types.h> clashes, as Autoconf does this for
77132         us now.  All uses removed.
77133         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
77134         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
77135         (gl_CHECK_TYPE_SAME):
77136         Remove; no longer needed.
77137         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
77138         exists, since we'll return 0 anyway in that case.
77139         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
77140
77141 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
77144         possible collision with system files.
77145         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
77146         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
77147         WCHAR_MIN and WCHAR_MAX in this case.
77148         (<stddef.h>): Do not include; no longer needed.
77149         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
77150         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
77151         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
77152         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
77153         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
77154         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
77155         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
77156         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
77157         !defined(__c99))]: Include in this case too, since it's harmless
77158         now.
77159         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
77160         dangerous to do so.
77161         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
77162         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
77163         (_STDINT_MIN, _STDINT_MAX): New macros.
77164         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
77165         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
77166         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
77167         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
77168         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
77169         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
77170         macros, not typedefs; this simplifies things quite a bit.
77171         Use long int for all types narrower than int64_t.
77172         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
77173         Define in terms of long long int or int64_t or long int,
77174         not int64_t or int32_t.  This saves some compile-time testing.
77175         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
77176         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
77177         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
77178         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
77179         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
77180         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
77181         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
77182         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
77183         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
77184         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
77185         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77186         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77187         undef any previous version and define our own version, for
77188         simplicity and consistency with the new macros for types.
77189         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
77190         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
77191         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
77192         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
77193         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
77194         @WINT_T_SUFFIX@ to keep things simple here.
77195         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
77196         Simplify by assuming typical 8/16/32/64 host, since we're
77197         already doing that elsewhere anyway.
77198         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
77199         and assume long long int is 64 bits if available.  This
77200         speeds up 'configure'.
77201
77202 2006-07-01  Eric Blake  <ebb9@byu.net>
77203
77204         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
77205         Reported by Andreas Buening.
77206
77207 2006-07-01  Eric Blake  <ebb9@byu.net>
77208
77209         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
77210
77211 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
77212
77213         * lib/getaddrinfo.c: fixed typo
77214
77215 2006-06-29  Jim Meyering  <jim@meyering.net>
77216
77217         * modules/strftime (Maintainer): Add my name, since with the
77218         FPRINTFTIME changes strftime.c has forked from glibc.
77219
77220 2006-06-29  Eric Blake  <ebb9@byu.net>
77221
77222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
77223
77224 2006-06-29  Eric Blake  <ebb9@byu.net>
77225
77226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
77227
77228 2006-06-29  Eric Blake  <ebb9@byu.net>
77229
77230         * lib/stat_.h: New file.
77231
77232 2006-06-29  Eric Blake  <ebb9@byu.net>
77233
77234         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
77235         unused static function.
77236
77237 2006-06-29  Eric Blake  <ebb9@byu.net>
77238
77239         * doc/functions.texi (Function Portability): Document missing lstat
77240         on mingw.
77241
77242 2006-06-29  Eric Blake  <ebb9@byu.net>
77243
77244         * MODULES.html.sh: Add sys_stat.
77245         * modules/sys_stat: New module.
77246         * modules/mkstemp (Depends-on): Add sys_stat.
77247
77248 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77249
77250         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
77251
77252 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77253
77254         * m4/c-bs-a.m4: Removed.
77255
77256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
77257
77258         * lib/strftime.c: Assume strftime() exists.
77259
77260 2006-06-29  Derek Price  <derek@ximbiot.com>
77261
77262         * modules/c-bs-a: Removed - \a is C89.
77263         * MODULES.html.sh: Remove c-bs-a.
77264
77265 2006-06-29  Bruno Haible  <bruno@clisp.org>
77266
77267         * modules/wcwidth (License): Change to LGPL.
77268
77269 2006-06-28  Simon Josefsson  <jas@extundo.com>
77270
77271         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
77272         on _WIN32.
77273
77274         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
77275         getnameinfo.
77276
77277 2006-06-28  Simon Josefsson  <jas@extundo.com>
77278
77279         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
77280
77281 2006-06-28  Simon Josefsson  <jas@extundo.com>
77282
77283         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
77284         functions there.  It will succeed on Windows XP, but on Windows
77285         2000 and (presumably) earlier, it will fail, and use the internal
77286         re-implementation.
77287         (use_win32_p): New function.
77288         (getaddrinfo): Use strtoul on servname, to support numeric ports.
77289         Support AI_NUMERICSERV to disable getservbyname.
77290         (getnameinfo): New function, only supports
77291         NI_NUMERICHOST|NI_NUMERICSERV for now.
77292
77293         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
77294         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
77295         getnameinfo.
77296
77297 2006-06-28  Eric Blake  <ebb9@byu.net>
77298
77299         * modules/wcwidth: New file.
77300         * modules/mbchar (Depends-on): Add wcwidth.
77301         * modules/mbswidth (Depends-on): Add wcwidth.
77302         * MODULES.html.sh: Add wcwidth.
77303
77304 2006-06-28  Eric Blake  <ebb9@byu.net>
77305
77306         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
77307         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
77308
77309 2006-06-28  Eric Blake  <ebb9@byu.net>
77310
77311         * lib/xvasprintf.h: Fix comments.
77312
77313 2006-06-28  Eric Blake  <ebb9@byu.net>
77314
77315         * lib/mbchar.h (wcwidth): Include wcwidth.h.
77316         * lib/mbswidth.c (wcwidth): Move from here...
77317         * lib/wcwidth.h: ...to this new file.
77318
77319 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77320
77321         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
77322
77323         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
77324         it's obsolete.
77325         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
77326
77327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
77328
77329         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
77330         Autoconf 2.60 says this stuff was obsolete.
77331
77332 2006-06-28  Bruno Haible  <bruno@clisp.org>
77333
77334         * modules/wcwidth (Files): Add m4/wchar_t.m4.
77335
77336 2006-06-28  Bruno Haible  <bruno@clisp.org>
77337
77338         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
77339         gt_TYPE_WCHAR_T.
77340
77341 2006-06-28  Bruno Haible  <bruno@clisp.org>
77342
77343         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
77344         declaration for wcwidth.
77345         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
77346
77347 2006-06-28  Bruno Haible  <bruno@clisp.org>
77348
77349         * lib/mkdtemp.c [MINGW]: Include <io.h>.
77350         (mkdir): Define using _mkdir.
77351
77352 2006-06-28  Bruno Haible  <bruno@clisp.org>
77353
77354         * lib/getaddrinfo.h: Fix POSIX URL.
77355         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
77356         _WIN32.
77357         (use_win32_p): Make static.
77358         (getaddrinfo): Reject service name if it is empty or does not consist
77359         solely of decimal digits, or if its value is > 65535.
77360         (getnameinfo): Remove useless casts.
77361
77362 2006-06-27  Simon Josefsson  <jas@extundo.com>
77363
77364         * modules/sys_select: New file, suggested by Bruno Haible, Paul
77365         Eggert and Martin Lambers.
77366
77367 2006-06-27  Simon Josefsson  <jas@extundo.com>
77368
77369         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
77370         Eggert and Martin Lambers.
77371
77372 2006-06-27  Bruno Haible  <bruno@clisp.org>
77373
77374         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
77375         result to 0, not to empty.
77376         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
77377
77378 2006-06-27  Bruno Haible  <bruno@clisp.org>
77379
77380         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
77381
77382 2006-06-26  Simon Josefsson  <jas@extundo.com>
77383
77384         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
77385         present.
77386
77387 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
77388
77389         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
77390         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
77391         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
77392
77393 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
77394
77395         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
77396
77397 2006-06-26  Bruno Haible  <bruno@clisp.org>
77398
77399         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
77400
77401 2006-06-26  Bruno Haible  <bruno@clisp.org>
77402
77403         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
77404
77405 2006-06-26  Bruno Haible  <bruno@clisp.org>
77406
77407         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
77408         SGI C compiler in pre-C99 mode.
77409         Suggested by Mark D. Baushke and Larry Jones.
77410
77411 2006-06-26  Bruno Haible  <bruno@clisp.org>
77412
77413         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
77414         WCHAR_MAX.
77415         Reported by Mark D. Baushke and Larry Jones.
77416
77417 2006-06-26  Bruno Haible  <bruno@clisp.org>
77418
77419         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
77420         in pre-C99 mode.
77421         Suggested by Mark D. Baushke and Larry Jones.
77422
77423 2006-06-23  Simon Josefsson  <jas@extundo.com>
77424             Bruno Haible  <bruno@clisp.org>
77425
77426         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
77427         Emit mostlyclean-local rule.
77428         (func_emit_tests_Makefile_am): Likewise.
77429         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
77430
77431 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
77432
77433         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
77434
77435 2006-06-23  Bruno Haible  <bruno@clisp.org>
77436
77437         * tests/test-stdint.c: Update to match ISO C 99 Technical
77438         Corrigendum 1.
77439
77440 2006-06-23  Bruno Haible  <bruno@clisp.org>
77441
77442         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
77443
77444 2006-06-23  Bruno Haible  <bruno@clisp.org>
77445
77446         * lib/stdint_.h: Treat IRIX like OpenBSD.
77447
77448 2006-06-23  Bruno Haible  <bruno@clisp.org>
77449
77450         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
77451         ISO C 99 Technical Corrigendum 1.
77452
77453 2006-06-22  Simon Josefsson  <jas@extundo.com>
77454
77455         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
77456         MinGW.
77457
77458 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
77461         needed.  Some compiler complained about some of them.  Problem reported
77462         by Larry Jones in
77463         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
77464
77465 2006-06-21  Simon Josefsson  <jas@extundo.com>
77466
77467         * tests/test-getaddrinfo.c: New file.
77468
77469         * modules/getaddrinfo-tests: New file.
77470
77471         * MODULES.html.sh: Add inet_pton.
77472
77473         * modules/inet_pton: New file.
77474
77475 2006-06-21  Simon Josefsson  <jas@extundo.com>
77476
77477         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
77478         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
77479         of using the (limited) gnulib implementation on Windows XP.
77480
77481         * m4/inet_pton.m4: New file.
77482
77483 2006-06-21  Simon Josefsson  <jas@extundo.com>
77484
77485         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
77486         variable.
77487
77488         * lib/socket_.h: Don't define WINVER.
77489
77490         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
77491         slightly modified to work in gnulib.
77492
77493 2006-06-21  Simon Josefsson  <jas@extundo.com>
77494
77495         * doc/gnulib.texi (Windows sockets): Add.
77496
77497 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * lib/read-file.c (fread_file): Start with buffer allocation of
77500         0 bytes rather than 1 byte; this simplifies the code.
77501         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
77502         code to free buffer and save/restore errno.
77503         (internal_read_file): Remove unused local.
77504
77505 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
77506
77507         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
77508         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
77509         Problem reported by Denis Excoffier in
77510         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
77511
77512 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77513
77514         * modules/sys_socket, modules/socklen: Include sys/types since
77515         FreeBSD 4.x's sys/socket.h needs it.
77516
77517 2006-06-19  Simon Josefsson  <jas@extundo.com>
77518
77519         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
77520
77521 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
77522
77523         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
77524
77525 2006-06-19  Bruno Haible  <bruno@clisp.org>
77526
77527         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
77528         and FULL_PATH_INTTYPES_H in angle brackets.
77529         Reported by Mark D. Baushke <mdb@gnu.org>.
77530
77531 2006-06-17  Eric Blake  <ebb9@byu.net>
77532
77533         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
77534         errno.
77535
77536 2006-06-17  Bruno Haible  <bruno@clisp.org>
77537
77538         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
77539         <sys/inttypes.h>.
77540
77541 2006-06-17  Bruno Haible  <bruno@clisp.org>
77542
77543         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
77544         whether errno is declared. Assume <errno.h> declares errno.
77545
77546 2006-06-17  Bruno Haible  <bruno@clisp.org>
77547
77548         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
77549
77550 2006-06-17  Bruno Haible  <bruno@clisp.org>
77551
77552         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
77553         problem on Solaris 2.5.1.
77554
77555 2006-06-16  Eric Blake  <ebb9@byu.net>
77556
77557         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
77558         * lib/unicodeio.c [!defined errno]: Likewise.
77559         * lib/strtol.c [!defined errno]: Likewise.
77560         * lib/strtod.c [!defined errno]: Likewise.
77561
77562 2006-06-15  Eric Blake  <ebb9@byu.net>
77563
77564         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
77565
77566 2006-06-15  Eric Blake  <ebb9@byu.net>
77567
77568         * config/srclist.txt (ssize_t.m4): Lose sync.
77569
77570 2006-06-15  Bruno Haible  <bruno@clisp.org>
77571
77572         * modules/stdint (Files): Include m4/full-header-path.m4,
77573         m4/size_max.m4, m4/wchar_t.m4.
77574         (Makefile.am): Many more substitutions.
77575         * modules/stdint-tests: New file.
77576         * tests/test-stdint.c: New file.
77577
77578 2006-06-15  Bruno Haible  <bruno@clisp.org>
77579
77580         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
77581         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
77582         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
77583         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
77584         gl_CHECK_TYPE_SAME): New macros.
77585
77586 2006-06-15  Bruno Haible  <bruno@clisp.org>
77587
77588         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
77589
77590 2006-06-15  Bruno Haible  <bruno@clisp.org>
77591
77592         * lib/stdint_.h: Rewritten to be fully auto-configured.
77593         Fixes bug on HP-UX/IA64.
77594
77595 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
77596
77597         * lib/getdate.y (__attribute__): Don't define if already defined.
77598         Problem reported by Larry Jones.
77599         * lib/utimens.c (__attribute__): Likewise.
77600
77601 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
77602
77603         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
77604         reported by Andreas Schwab.
77605
77606 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77607             Bruno Haible  <bruno@clisp.org>
77608
77609         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
77610         check for the declaration of strnlen and a run test that exposes the
77611         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
77612         rpl_strndup.
77613
77614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77615             Bruno Haible  <bruno@clisp.org>
77616
77617         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
77618
77619 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77620
77621         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
77622         compile test, for Tru64 4.0D.
77623
77624 2006-05-28  Karl Berry  <karl@gnu.org>
77625
77626         * config/srclist.txt (printf-args.c): lose sync.
77627
77628 2006-05-26  Martin Lambers  <marlam@marlam.de>
77629
77630         * lib/getpass.c: Updates the test for the native W32 API, and adds
77631         missing includes, thus fixing compilation warnings.
77632
77633 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77634
77635         * lib/exclude.c (exclude_fnmatch): New function.
77636         (excluded_file_name): Call exclude_fnmatch.
77637         * lib/exclude.h (excluded_file_name): New prototype
77638
77639 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
77640
77641         * lib/tempname.c (small_open, large_open): New macros.
77642         (__open, __open64) [!_LIBC]: Remove.
77643         (__gen_tempname): Use small_open and large_open instead of __open
77644         and __open64.  This fixes a portability bug on HP-UX 11.11i
77645         reported by Simon Wing-Tang in
77646         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
77647
77648 2006-05-24  Bruno Haible  <bruno@clisp.org>
77649
77650         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
77651         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
77652         Reported by Thorsten Maerz <torte@netztorte.de> via
77653         Aaron Stone <aaron@serendipity.cx>.
77654
77655 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
77658         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
77659         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
77660         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
77661         not really conditional on the cache.
77662         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
77663
77664 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
77665
77666         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
77667         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
77668         (my_usleep): Don't mishandle maximum value.
77669
77670 2006-05-19  Jim Meyering  <jim@meyering.net>
77671
77672         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
77673
77674 2006-05-17  Bruno Haible  <bruno@clisp.org>
77675
77676         Cygwin portability.
77677         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
77678
77679 2006-05-17  Bruno Haible  <bruno@clisp.org>
77680
77681         * lib/stdint_.h: Fix recognition of Cygwin.
77682
77683 2006-05-15  Bruno Haible  <bruno@clisp.org>
77684
77685         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
77686         on libtool patch by Ralf Wildenhues.
77687
77688 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
77689
77690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
77691         test for C99 conformance; (bool) 0.5 is an integer constant
77692         expression, but (bool) -0.5 is not.  Problem reported by Fedor
77693         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
77694
77695 2006-05-11  Simon Josefsson  <jas@extundo.com>
77696
77697         * m4/xvasprintf.m4: Fix obvious typo.
77698
77699 2006-05-11  Jim Meyering  <jim@meyering.net>
77700
77701         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
77702         James Lemley.
77703
77704 2006-05-10  Simon Josefsson  <jas@extundo.com>
77705
77706         * lib/md4.c: Typo fix, update copyright years.
77707         (K1, K2): Don't use L because it turn computations into 64-bit on
77708         64-bit platforms.
77709
77710 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
77711
77712         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
77713         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
77714         unwanted sign propagation, e.g., on hosts with 64-bit int.
77715         There still are some problems with reeelly weird theoretical hosts
77716         (e.g., 33-bit int) but it's not worth worrying about now.
77717         * lib/sha1.c (rol): Likewise.
77718         (K1, K2, K3, K4): Remove unnecessary L suffix.
77719
77720 2006-05-10  Bruno Haible  <bruno@clisp.org>
77721
77722         * lib/des.c: Cast to avoid warnings.
77723
77724 2006-05-09  Bruno Haible  <bruno@clisp.org>
77725
77726         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
77727         (Depends-on): Depend also on xsize, stdarg.
77728         (configure.ac): Add gl_XVASPRINTF.
77729
77730 2006-05-09  Bruno Haible  <bruno@clisp.org>
77731
77732         * m4/xvasprintf.m4: New file.
77733
77734 2006-05-09  Bruno Haible  <bruno@clisp.org>
77735
77736         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
77737         (EOVERFLOW): Define fallback value.
77738         (xstrcat): New function.
77739         (xvasprintf): Recognize the special case of a string concatenation.
77740
77741 2006-05-08  Eric Blake  <ebb9@byu.net>
77742
77743         * gnulib-tool (func_version): Base copyright year on CVS date.
77744         (func_emit_copyright_notice): New function.
77745         (func_emit_lib_Makefile_am): Use it.
77746         (func_emit_tests_Makefile_am): Likewise.
77747         (func_import): Likewise.
77748
77749 2006-05-08  Bruno Haible  <bruno@clisp.org>
77750
77751         * modules/stdarg: New file.
77752         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
77753
77754 2006-05-08  Bruno Haible  <bruno@clisp.org>
77755
77756         * m4/stdarg.m4: New file, from GNU gettext.
77757
77758 2006-05-08  Bruno Haible  <bruno@clisp.org>
77759
77760         * config/srclist.txt (build-aux/config.rpath): different from latest
77761         release.
77762
77763 2006-05-08  Bruno Haible  <bruno@clisp.org>
77764
77765         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
77766
77767 2006-05-05  Jim Meyering  <jim@meyering.net>
77768
77769         * m4/warning.m4: New file, derived from bison's file by the same name.
77770
77771 2006-05-03  Bruno Haible  <bruno@clisp.org>
77772
77773         * lib/stdint_.h: Shorter URL.
77774         * lib/inttypes.h: Likewise.
77775
77776 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77777
77778         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
77779
77780 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77781
77782         * lib/verify.h: Document the internals better.  Most of this change
77783         was written by Bruno Haible.
77784
77785 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
77786
77787         * doc/verify.texi: New file, partly based on a proposal by
77788         Bruno Haible.
77789
77790 2006-05-02  Bruno Haible  <bruno@clisp.org>
77791
77792         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
77793         test from here...
77794         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
77795
77796 2006-04-29  Bruno Haible  <bruno@clisp.org>
77797
77798         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
77799         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
77800
77801 2006-04-29  Bruno Haible  <bruno@clisp.org>
77802
77803         * gnulib-tool: Make --update option actually work.
77804
77805 2006-04-29  Bruno Haible  <bruno@clisp.org>
77806
77807         * doc/gcd.texi: New file.
77808         * doc/gnulib.texi: Include it.
77809
77810 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77811
77812         * lib/getdate.y (get_date): When adding relative date, start with the
77813         initial time, not with the result of the first mktime call.
77814
77815 2006-04-25  Bruno Haible  <bruno@clisp.org>
77816
77817         * gnulib-tool (func_import): Output the include directives in three
77818         blocks, sorted separately.
77819         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77820
77821 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77824         to define main with arguments, for C++.  Reported by Eric Blake.
77825         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77826         Prefer 'int main ()' to 'int main (void)', for C++.
77827         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77828         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77829         for 'main', for C99 and C++.
77830
77831 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77834         Don't assume that exit status -1 is valid.
77835         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77836         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77837         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77838         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77839         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77840         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77841         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77842         functions can be used without declaring them, or that you can
77843         exit with status -1.
77844         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77845
77846 2006-04-24  Karl Berry  <karl@gnu.org>
77847
77848         * config/srclist.txt (longdouble.m4): sync lost.
77849
77850 2006-04-24  Eric Blake  <ebb9@byu.net>
77851
77852         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77853
77854 2006-04-24  Bruno Haible  <bruno@clisp.org>
77855
77856         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77857         poll() implementation in AIX.
77858         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77859
77860 2006-04-24  Bruno Haible  <bruno@clisp.org>
77861
77862         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77863         assigned exactly once.
77864
77865 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77866             Bruno Haible  <bruno@clisp.org>
77867
77868         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77869         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77870         for AM_CPPFLAGS.
77871
77872 2006-04-23  Bruno Haible  <bruno@clisp.org>
77873
77874         * modules/copy-file: Depend on unistd.
77875         * modules/execute: Likewise.
77876         * modules/fatal-signal: Likewise.
77877         * modules/findprog: Likewise.
77878         * modules/mkdtemp : Likewise.
77879         * modules/pipe: Likewise.
77880         * modules/wait-process: Likewise.
77881
77882 2006-04-23  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77885         condition was already detected.
77886         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77887
77888 2006-04-23  Bruno Haible  <bruno@clisp.org>
77889
77890         * lib/copy-file.c: Include <unistd.h> unconditionally.
77891         * lib/execute.c: Likewise.
77892         * lib/fatal-signal.c: Likewise.
77893         * lib/findprog.c: Likewise.
77894         * lib/mkdtemp.c: Likewise.
77895         * lib/pipe.h: Likewise.
77896         * lib/pipe.c: Likewise.
77897         * lib/wait-process.h: Likewise.
77898
77899 2006-04-23  Bruno Haible  <bruno@clisp.org>
77900
77901         * gnulib-tool (func_usage): Fix --import description. Document
77902         --update.
77903         (func_import): Create temporary file in a temporary directory, if
77904         --dry-run is specified. Silence errors from 'grep' when there are no
77905         m4 files in $m4dir.
77906         (func_create_testdir): Silence errors from 'grep' when there are no
77907         m4 files in $m4dir.
77908         Reported by Karl Berry <karl@freefriends.org>.
77909
77910 2006-04-20  Bruno Haible  <bruno@clisp.org>
77911
77912         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77913         one argument, so that the code will be portable to Autoconf 2.60.
77914         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77915         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77916         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77917
77918 2006-04-19  Derek Price  <derek@ximbiot.com>
77919             Eric Blake  <ebb9@byu.net>
77920
77921         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77922         rather than "/full/path.h".  Update comment to match.  Shorten &
77923         generalize m4_translit call via AS_TR_CPP.
77924
77925 2006-04-19  Derek Price  <derek@ximbiot.com>
77926             Eric Blake  <ebb9@byu.net>
77927
77928         * lib/inttypes.h: Correct grammar in comment.
77929
77930 2006-04-18  Derek Price  <derek@ximbiot.com>
77931             Paul Eggert  <eggert@cs.ucla.edu>
77932
77933         * modules/inttypes: New file.
77934         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77935
77936 2006-04-18  Derek Price  <derek@ximbiot.com>
77937             Paul Eggert  <eggert@cs.ucla.edu>
77938
77939         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77940         New files.
77941
77942 2006-04-18  Derek Price  <derek@ximbiot.com>
77943             Paul Eggert  <eggert@cs.ucla.edu>
77944
77945         * lib/inttypes.h: New file.
77946         * lib/strtoimax.c: Assume <inttypes.h>.
77947
77948 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77949
77950         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77951         isn't mounted.  Problem reported by Kir Kolyshkin.
77952
77953 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77954
77955         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77956         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77957         Derek R. Price.
77958         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77959         implementation.
77960
77961 2006-04-12  Eric Blake  <ebb9@byu.net>
77962
77963         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77964         is now done automatically by the corresponding Autoconf macro.
77965
77966 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77967
77968         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77969         time_r.h.
77970
77971 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77972
77973         Merge regex changes from libc, removing some of our
77974         POSIX-conformance changes that were rejected and redoing them in a
77975         less-intrusive way.
77976
77977         * lib/regcomp.c (re_compile_internal, init_dfa):
77978         Length arg is now size_t, not Idx.  All uses changed.
77979         (peek_token): Forward decl now says internal_function.
77980         (__re_error_msgid, __re_error_msgid_idx):
77981         Now static rather than extern with attribute_hidden.
77982         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77983         For some reason libc prefers K&R style defns for external functions.
77984         (regerror) [!defined _LIBC]: Likewise.
77985         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77986         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77987         (build_range_exp, build_collating_symbol):
77988         Use K&R-style defn.
77989         (re_compile_fastmap): Use '\0' to memset, not 0.
77990         (utf8_sb_map): Make the calculations more obvious.
77991         (init_dfa, parse_bracket_exp, build_charclass_op):
77992         Call calloc and cast result, as glibc does.
77993         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77994         (build_range_exp, build_collating_symbol):
77995         Now internal functions.
77996
77997         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77998
77999         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
78000         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
78001         Don't depend on VMS; depend on __VMS instead, for POSIX
78002         namespace cleanness.
78003         (regoff_t): Define to ssize_t, not long int.
78004
78005         Remove the REG_ macros named below.  Instead, make the old names
78006         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
78007         __USE_GNU_REGEX.
78008         (REG_BACKSLASH_ESCAPE_IN_LISTS):
78009         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
78010         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
78011         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
78012         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
78013         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
78014         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
78015         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
78016         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
78017         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
78018         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
78019         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
78020         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
78021         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
78022         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
78023         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
78024         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
78025         (REG_NREGS):
78026         Remove.  All uses replaced by the old RE_* names.
78027         (RE_BACKSLASH_ESCAPE_IN_LISTS):
78028         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
78029         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
78030         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
78031         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
78032         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
78033         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
78034         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
78035         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
78036         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
78037         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
78038         Don't bother having these macros be independent of each others'
78039         values, since they no longer exist in the POSIX name space.
78040
78041         Rename the following member names back to their old names,
78042         unless !__USE_GNU_REGEX.  All uses changed back.
78043         (buffer): Renamed from re_buffer.
78044         (allocated): Renamed from re_allocated.
78045         (used): Renamed from re_used.
78046         (syntax): Renamed from re_syntax.
78047         (fastmap): Renamed from re_fastmap.
78048         (translate): Renamed from re_translate.
78049         (can_be_null): Renamed from re_can_be_null.
78050         (regs_allocated): Renamed from re_regs_allocated.
78051         (fastmap_accurate): Renamed from re_fastmap_accurate.
78052         (no_sub): Renamed from re_no_sub.
78053         (not_bol): Renamed from re_not_bol.
78054         (not_eol): Renamed from re_not_eol.
78055         (newline_anchor): Renamed from re_newline_anchor.
78056         (num_regs): Renamed from rm_num_regs.
78057         (start): Renamed from rm_start.
78058         (end): Renamed from rm_end.
78059
78060         (free_state): Move up a bit.
78061
78062         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
78063         #define to be empty.
78064         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
78065         when that is what is intended.
78066         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
78067         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
78068         (MAX): New macro.
78069         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
78070         All uses changed back to re_malloc, etc.  It's now the caller's
78071         responsibility to check for overflow; all callers changed.
78072         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
78073         (re_x2nrealloc): Remove.
78074         (free_state): Remove decl.
78075
78076         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
78077         (re_set_registers, re_exec):
78078         Use K&R-style defn.
78079
78080         2006-01-31  Roland McGrath  <roland@redhat.com>
78081
78082         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
78083         Reported by Mike Frysinger <vapier@gentoo.org>.
78084
78085         2006-01-15  Andreas Jaeger  <aj@suse.de>
78086
78087         [BZ #1950]
78088         * lib/regex_internal.c (re_string_reconstruct): Adjust for
78089         build_wcs_upper_buffer change.
78090         (build_wcs_upper_buffer): Change return type.
78091
78092         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
78093
78094         * lib/regex_internal.h: Include <stdint.h> if available.
78095
78096         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
78097
78098         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
78099
78100         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
78101
78102         * lib/regcomp.c: Adjust for changed secondary hash function.
78103
78104         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
78105
78106         * lib/regex.h: Pretty printing.
78107         Clean up namespace a bit.
78108
78109         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
78110
78111         * lib/regexec.c (update_cur_sifted_state, check_arrival,
78112         check_arrival_add_next_nodes): Avoid using uninitialized variable.
78113
78114         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
78115                     Ulrich Drepper  <drepper@redhat.com>
78116
78117         [BZ #1302]
78118         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
78119         changed.
78120         (bitset_word_t): Renamed from bitset_word.  All uses changed.
78121
78122         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
78123
78124         [BZ #281]
78125         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
78126         * lib/regcomp.c: Remove unnecessary uses of
78127         unsigned RE_TRANSLATE_TYPE.
78128         * lib/regex_internal.h: Likewise.
78129         * lib/regex_internal.c: Likewise.
78130         * lib/regexec.c: Likewise.
78131         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
78132
78133         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
78134
78135         * lib/regexec.c (find_recover_state): Remove unnecessary
78136         initialization.
78137         (transit_state_bkref): Make DFA a const pointer.
78138         (get_subexp): Likewise.
78139         (check_arrival): Likewise.
78140         (update_cur_sifted_state): Likewise.
78141         (re_search_internal): Likewise.
78142         (prune_impossible_nodes): Likewise.
78143         (acquire_init_state_context): Likewise.
78144         (proceed_next_node): Likewise.
78145         (set_regs): Likewise.
78146         (free_fail_stack_return): Likewise.
78147         (check_arrival_expand_ecl): Mark DFA parameter as const.
78148         (check_arrival_expand_ecl_sub): Likewise.
78149         (check_subexp_limits): Likewise.
78150         (sub_epsilon_src_nodes):  Likewise.
78151         (add_epsilon_src_nodes):  Likewise.
78152         (merge_state_array): Likewise.
78153         (update_regs): Likewise.
78154         (build_trtable): Likewise.
78155         (sift_states_backward): Mark MCTX parameter as const.
78156         (build_sifted_states): Likewise.
78157         (update_cur_sifted_state): Likewise.
78158         (sift_states_mkref): Likewise.
78159         (check_arrival_expand_ecl): Mark eclosure as const.
78160         (check_dst_limits_calc_pos_1): Likewise.
78161         * lib/regex_internal.h (re_match_context_t): Make dfa a const
78162         pointer.
78163
78164         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
78165
78166         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
78167         (transit_state_sb): Likewise.
78168         (transit_state_mb): Likewise.
78169         (sift_states_iter_mb): Likewise.
78170         (check_arrival_add_next_nodes): Likewise.
78171         (check_node_accept_bytes): Change first parameter to pointer-to-const.
78172         [_LIBC] (re_search_2_stub): Use mempcpy.
78173
78174         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
78175         mbrtowc for very simple UTF-8 case.
78176
78177         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
78178         a pointer-to-const.
78179         (re_acquire_state_context): Likewise.
78180         * lib/regex_internal.h: Adjust prototypes.
78181
78182         * lib/regex.c: Prevent using C++ compilers.
78183
78184         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
78185         (re_acquire_state_context): Likewise.
78186
78187 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78188
78189         * modules/regex (Depends-on): Add ssize_t.
78190
78191 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78192
78193         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
78194         translation table.
78195
78196 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
78197
78198         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
78199
78200 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
78201             Bruno Haible  <bruno@clisp.org>
78202
78203         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
78204         <sys/types.h> and <inttypes.h>.
78205
78206 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78207
78208         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
78209         `__error_t_defined', so argp.h will not typedef the former.
78210
78211 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
78212
78213         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
78214         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
78215         glibc names.  Even if glibc is changed to conform to POSIX, the
78216         traditional names will be available anyway, since regex depends on
78217         the extensions module.  Also, fix a longstanding typo in the
78218         implementation of Spencer ERE test #75 from grep 2.3.  Problems
78219         reported by Emanuele Giaquinta.  Also, change sense of cached
78220         variable, so that the message makes sense.
78221
78222 2006-03-24  Simon Josefsson  <jas@extundo.com>
78223
78224         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
78225         including some doc fixes.
78226         (base64_encode_alloc): Fix +1 bug on allocation failures.
78227
78228 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78229
78230         * lib/base64.c (base64_encode): Do not read past end of array with
78231         unsanitized input on systems with CHAR_BIT > 8.
78232
78233 2006-03-24  Eric Blake  <ebb9@byu.net>
78234
78235         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
78236
78237 2006-03-22  Karl Berry  <karl@gnu.org>
78238
78239         * config/srclist.txt (*setenv.[ch]): get from coreutils.
78240         * config/srclistvars.sh (COREUTILS): new var.
78241
78242 2006-03-17  Jim Meyering  <jim@meyering.net>
78243
78244         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
78245         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
78246
78247 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
78250         no longer needs it.  Instead, check that regoff_t is as least
78251         as wide as ptrdiff_t.
78252
78253         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
78254         so that our regex.h stays compatible with the installed regex.
78255         This is helpful for installers who configure --without-included-regex.
78256         Problem reported by Emanuele Giaquinta.
78257
78258 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
78259
78260         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
78261         Typedef to long int, not to off_, as POSIX will likely change
78262         in that direction.
78263
78264 2006-03-15  Eric Blake  <ebb9@byu.net>
78265
78266         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
78267
78268 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78269
78270         * lib/argp-help.c (validate_uparams): Fix typo
78271         * lib/argp-parse.c (argp_default_options): Consistently begin help
78272         messages with a lowercase letter.
78273
78274 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
78275
78276         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
78277         overrun buffers and shouldn't be used (much as gets shouldn't be
78278         used).
78279         * lib/time_r.c (asctime_r, ctime_r): Likewise.
78280
78281 2006-03-08  Simon Josefsson  <jas@extundo.com>
78282
78283         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
78284         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78285
78286 2006-03-08  Simon Josefsson  <jas@extundo.com>
78287
78288         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
78289         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78290
78291 2006-03-08  Simon Josefsson  <jas@extundo.com>
78292
78293         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
78294         signal that configure disabled the device.
78295
78296 2006-03-08  Simon Josefsson  <jas@extundo.com>
78297
78298         * build-aux/maint.mk: Fix refresh-po, to handle no translated
78299         languages.
78300
78301 2006-03-07  Simon Josefsson  <jas@extundo.com>
78302
78303         * modules/getopt (Depends-on): Add unistd.
78304
78305         * modules/unistd: New file.
78306
78307 2006-03-07  Simon Josefsson  <jas@extundo.com>
78308
78309         * modules/gc-random: New file.
78310
78311 2006-03-07  Simon Josefsson  <jas@extundo.com>
78312
78313         * m4/unistd_h.m4: New file.
78314
78315 2006-03-07  Simon Josefsson  <jas@extundo.com>
78316
78317         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
78318         test to be side-effect free by storing the result in the cache
78319         variable gl_cv_lib_readline, and moving the assignment of
78320         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
78321         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78322
78323 2006-03-07  Simon Josefsson  <jas@extundo.com>
78324
78325         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
78326         error on missing devices (the functions will return an error).
78327
78328         * m4/gc.m4: Move random stuff to gc-random.m4
78329
78330 2006-03-07  Simon Josefsson  <jas@extundo.com>
78331
78332         * lib/unistd_.h: New file.
78333
78334 2006-03-07  Simon Josefsson  <jas@extundo.com>
78335
78336         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
78337
78338 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78339
78340         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
78341         Problem reported by Juan Manuel Guerrero.
78342
78343 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78344
78345         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
78346         the unistd module.
78347         * lib/getlogin_r.c: Likewise.
78348         * lib/getlogin_r.h: Likewise.
78349         * lib/glob.c: Likewise.
78350         * lib/pagealign_alloc.c: Likewise.
78351         * lib/unistd_.h: Remove; no longer needed.
78352
78353 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
78354
78355         * MODULES.html.sh (Support for systems lacking POSIX:2001):
78356         Add unistd.
78357         * modules/c-stack (Depends-on): Add unistd.
78358         * modules/getlogin_r: Likewise.
78359         * modules/glob: Likewise.
78360         * modules/pagealign_alloc: Likewise.
78361         * modules/unistd (Files): Remove lib/unistd_.h.
78362         (EXTRA_DIST): Remove.
78363         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
78364         need unistd_.h.
78365         (MOSTLYCLEANFILES): Remove unistd.h-t.
78366
78367 2006-03-03  Simon Josefsson  <jas@extundo.com>
78368
78369         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
78370
78371 2006-03-03  Simon Josefsson  <jas@extundo.com>
78372
78373         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
78374         libidn and bison.
78375
78376 2006-03-03  Simon Josefsson  <jas@extundo.com>
78377
78378         * build-aux/maint.mk: Add indent target.
78379
78380 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
78381
78382         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
78383         our replacement poll.h in any case, to avoid a differing
78384         declaration from a system header.  Seen on AIX.
78385
78386 2006-03-01  Simon Josefsson  <jas@extundo.com>
78387
78388         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
78389         <kasal@ucw.cz>.
78390
78391 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78392
78393         * modules/gettime (Depends-on): Add extensions module.
78394         * modules/nanosleep (Depends-on): Likewise.
78395         * modules/settime (Depends-on): Likewise.
78396
78397 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
78398
78399         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
78400         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
78401         pedantically.
78402         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
78403         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
78404
78405         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
78406         not "==".  Reported by Ralf Wildenhues.
78407
78408 2006-03-01  Karl Berry  <karl@gnu.org>
78409
78410         * doc/Copyright/request-*: new files, synced from gnuorg.
78411
78412 2006-03-01  Karl Berry  <karl@gnu.org>
78413
78414         * config/srclist.txt (Copyright/*): new entries.
78415
78416 2006-02-28  Simon Josefsson  <jas@extundo.com>
78417
78418         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
78419
78420 2006-02-27  Simon Josefsson  <jas@extundo.com>
78421
78422         * lib/base64.h: Indent #define's.  From Jim Meyering
78423         <jim@meyering.net>.
78424
78425 2006-02-27  Jim Meyering  <jim@meyering.net>
78426
78427         Revert the change of 2006-02-24, so these files can continue
78428         to be sync'd from gettext.
78429         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
78430         of `config.h'.
78431
78432 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
78433
78434         * modules/intprops: New file.
78435         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
78436         Add intprops.
78437         * modules/getloadavg (Files): Remove lib/intprops.h.
78438         (Depends-on): Add intprops.
78439         * modules/human: Likewise.
78440         * modules/inttostr: Likewise.
78441         * modules/openat: Likewise.
78442         * modules/sig2str: Likewise.
78443         * modules/userspec: Likewise.
78444         * modules/utimecmp: Likewise.
78445         * modules/xnanosleep: Likewise.
78446         * modules/xstrtol: Likewise.
78447
78448 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
78449
78450         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
78451         * modules/lock-tests (TESTS): Use $(EXEEXT).
78452         * modules/tls-tests: Likewise.
78453         * modules/argp-tests: Likewise.
78454         (check_PROGRAMS): New var, replacing...
78455         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
78456
78457 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78458
78459         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
78460         `config.h'.
78461
78462 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
78463
78464         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
78465
78466 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78467
78468         Sync from coreutils.
78469         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
78470         gl_CHDIR_SAFER.
78471
78472 2006-02-22  Jim Meyering  <jim@meyering.net>
78473
78474         Sync from coreutils.
78475         * m4/chdir-safer.m4: New file.
78476
78477 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
78478
78479         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
78480         AT_FDCWD exceeds INT_MAX.
78481         * lib/openat.h (AT_FDCWD): Likewise.
78482
78483 2006-02-17  Eric Blake  <address@hidden>
78484
78485         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
78486
78487 2006-02-16  Simon Josefsson  <jas@extundo.com>
78488
78489         * modules/getaddrinfo (Depends-on): Add sys_socket.
78490
78491 2006-02-15  Simon Josefsson  <jas@extundo.com>
78492
78493         * build-aux/maint.mk: Add dsyntax-check rule.
78494
78495 2006-02-15  Eric Blake  <ebb9@byu.net>
78496
78497         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
78498         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
78499         'present but cannot compile' warnings on cygwin.
78500         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
78501         use ws2tcpip.h if sys/socket.h works.
78502         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
78503         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
78504
78505 2006-02-14  Simon Josefsson  <jas@extundo.com>
78506
78507         * modules/maintainer-makefile (Files): Rename.
78508
78509         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
78510         and (the local) Makefile.cfg to maint-cfg.mk.
78511
78512         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
78513         to the latter.
78514
78515         * modules/maintainer-makefile: New module.
78516
78517         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
78518         severaly stripped to make it possible to build it up from scratch
78519         with reliable tests.
78520
78521         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
78522         fixes to permit overriding the default actions when configure and
78523         makefile are not available.
78524
78525 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         Sync from coreutils.
78528         * modules/lstat (Depends-on): Don't depend on xalloc.
78529         (License): Change from GPL to LGPL, since this is now simply a
78530         replacement for a libc function.
78531
78532 2006-02-14  Jim Meyering  <jim@meyering.net>
78533
78534         Sync from coreutils.
78535
78536         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
78537         failure on deficient systems, and simplify gnulib lgpl dependencies.
78538         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
78539         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
78540
78541         * lib/xalloc-die.c: Remove unused definition of N_.
78542
78543 2006-02-14  Jim Meyering  <jim@meyering.net>
78544
78545         Sync from coreutils.
78546         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
78547         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
78548         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
78549         double-quote uses of that variable, to accommodate the rare case in
78550         which getmntent is available in none of the libraries checked.  This
78551         happens at least on FreeBSD 5.0.
78552
78553 2006-02-13  Simon Josefsson  <jas@extundo.com>
78554
78555         * gnulib-tool (Usage): Fix --import, from
78556         karl@freefriends.org (Karl Berry).
78557
78558 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
78559
78560         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
78561
78562 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
78563
78564         * lib/argp-namefrob.h: Restore changes accidentally lost during the
78565         "autoupdate" on 2005-12-12.
78566
78567 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * modules/closeout (Depends-on): Remove atexit.
78570
78571 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
78572
78573         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
78574         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
78575
78576 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
78579         __EXTENSIONS__ if this causes compilation to fail.  Problem
78580         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
78581         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
78582
78583 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
78586         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
78587         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
78588         All uses changed.
78589
78590 2006-01-26  Simon Josefsson  <jas@extundo.com>
78591
78592         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
78593         prototype is visible on mingw32.
78594
78595         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
78596         for mingw32.
78597
78598         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
78599         mingw32).
78600
78601 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
78602
78603         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
78604         attempt to open for write; this always fails, at least on POSIX
78605         hosts.  This reinstates the 2006-01-09 change, which was
78606         inadvertently removed.
78607
78608 2006-01-26  Bruno Haible  <bruno@clisp.org>
78609
78610         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
78611         Reported by Paul Eggert.
78612
78613 2006-01-26  Bruno Haible  <bruno@clisp.org>
78614             Paul Eggert  <eggert@cs.ucla.edu>
78615
78616         * lib/stdbool_.h (_Bool)
78617         [(! (defined __cplusplus || defined __BEOS__)
78618           && !defined __GNUC__
78619           && !(defined __HP_cc || defined __xlc__
78620                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
78621                || defined __sgi))]:
78622         #define to signed char in these cases too; this simplifies
78623         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
78624         etc., separately) and makes it more conservative.
78625
78626 2006-01-25  Simon Josefsson  <jas@extundo.com>
78627
78628         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
78629         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
78630         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
78631
78632 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
78633
78634         * lib/argp-namefrob.h: Bugfix. Remove stray #
78635
78636 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
78637
78638         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
78639         so that we test the test.
78640         Check for yet another HP-UX cc bug involving *bool |= bool.
78641
78642 2006-01-25  Karl Berry  <karl@gnu.org>
78643
78644         * config/srclist.txt (vasnprintf.c): sync lost.
78645
78646 2006-01-25  Jim Meyering  <jim@meyering.net>
78647
78648         Sync from the stable (b5) branch of coreutils:
78649
78650         * lib/fts.c (fts_children): Don't let close() clobber errno from
78651         failed fchdir().
78652
78653         * lib/fts.c (fts_stat): When following a symlink-to-directory,
78654         don't necessarily interpret stat-fails+lstat-succeeds as indicating
78655         a dangling symlink.  That can also happen at least for ELOOP.
78656         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
78657         FYI, this bug predates the inclusion of fts.c in coreutils.
78658
78659         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
78660         in their own block, so pre-c99 compilers don't object.
78661
78662         Avoid the double-free (first in fts_read, second in fts_close) that
78663         would occur when an `active' directory is made inaccessible (e.g.,
78664         via chmod a-x) during a traversal.
78665         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78666         before returning.  Reproduce this failure by
78667         mkdir -p a/b; cd a; chmod a-x . b
78668         Reported by Stavros Passas.
78669
78670 2006-01-25  Jim Meyering  <jim@meyering.net>
78671
78672         * lib/fileblocks.c: Remove more useless parentheses.
78673         * lib/readutmp.h: Likewise.
78674
78675 2006-01-25  Bruno Haible  <bruno@clisp.org>
78676
78677         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
78678         warnings.
78679         Reported by Paul Eggert.
78680
78681 2006-01-25  Bruno Haible  <bruno@clisp.org>
78682
78683         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
78684         rid of a trap command. For Solaris sh.
78685         Reported by Mark D. Baushke <mdb@gnu.org>.
78686
78687 2006-01-24  Simon Josefsson  <jas@extundo.com>
78688
78689         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
78690         Bruno.
78691
78692 2006-01-24  Karl Berry  <karl@gnu.org>
78693
78694         * config/srclist.txt (argp-namefrob.h): sync lost.
78695
78696 2006-01-24  Jim Meyering  <jim@meyering.net>
78697
78698         * modules/openat (Files): Add lib/intprops.h.
78699         From Mark D. Baushke.
78700
78701 2006-01-24  Jim Meyering  <jim@meyering.net>
78702
78703         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
78704         Reported by Mark D. Baushke.
78705
78706 2006-01-24  Jim Meyering  <jim@meyering.net>
78707
78708         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
78709
78710 2006-01-24  Bruno Haible  <bruno@clisp.org>
78711
78712         * modules/strnlen (Maintainer): Change from glibc to all.
78713
78714 2006-01-24  Bruno Haible  <bruno@clisp.org>
78715
78716         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
78717         Patch by Paul Eggert.
78718
78719 2006-01-24  Bruno Haible  <bruno@clisp.org>
78720
78721         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
78722         already has it.
78723         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
78724         2005-11-26.
78725
78726         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
78727         'signed char' to avoid problems with the built-in _Bool type.
78728         Reported by Paul Eggert on 2005-11-26.
78729
78730 2006-01-24  Bruno Haible  <bruno@clisp.org>
78731
78732         * gnulib-tool (func_import): Avoid constructing complicated sed
78733         expressions inside backquote.
78734         Report and solution by Mark D. Baushke <mdb@gnu.org>.
78735
78736 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
78737
78738         These changes imported from libc.
78739         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
78740         test and two separate function calls.
78741         * lib/strndup.c (__strndup): Add libc_hidden_def.
78742
78743 2006-01-23  Simon Josefsson  <jas@extundo.com>
78744
78745         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
78746         Remove the test_*_SOURCES variable: automake infers it by default.
78747         * modules/tls-tests: Likewise.
78748
78749 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78750
78751         Work around porting bugs reported by Dieter in
78752         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
78753         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
78754         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
78755         Include "getopt.h" first, to check interface.
78756         (getenv): Declare only if defined HAVE_DECL_GETENV &&
78757         !HAVE_DECL_GETENV.
78758         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
78759         (__strndup): Revert to K&R-style function dfns, the glibc style.
78760         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
78761         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
78762         Include strnlen.h first, to get prototype properly.
78763         (strnlen): Renamed from __strnlen.
78764         Remove weak alias.
78765
78766 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78767
78768         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
78769
78770 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
78771
78772         * config/srclist.txt: Adjust to reflect glibc reorganization.
78773         This affects only comments.
78774
78775 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78776
78777          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
78778          Reported by Bruce Korb <bkorb@gnu.org>.
78779
78780 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
78781
78782         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
78783         to pacify gcc -Wswitch-default.
78784
78785 2006-01-22  Bruno Haible  <bruno@clisp.org>
78786
78787         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
78788         temporary buffer for sprintf, take into account the precision also
78789         for 'd', 'i', 'u', 'o', 'x', 'X'.
78790
78791 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78792
78793         * modules/argp-tests: New module
78794         * tests/test-argp.c: New file
78795         * tests/test-argp-2.sh: New file
78796
78797 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
78798
78799         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
78800         (__argp_base_name): Removed
78801         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
78802         typo.
78803         (__argp_base_name): Provide macro definition or extern declaration
78804         depending on the configuration
78805
78806 2006-01-20  Simon Josefsson  <jas@extundo.com>
78807
78808         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78809
78810 2006-01-20  Simon Josefsson  <jas@extundo.com>
78811
78812         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78813
78814 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78815
78816         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78817         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78818         Suggested by Bruno Haible.
78819
78820 2006-01-20  Karl Berry  <karl@gnu.org>
78821
78822         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78823         until changes propagate, I guess.
78824
78825 2006-01-19  Simon Josefsson  <jas@extundo.com>
78826
78827         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78828
78829 2006-01-19  Simon Josefsson  <jas@extundo.com>
78830
78831         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78832
78833 2006-01-19  Simon Josefsson  <jas@extundo.com>
78834
78835         * gnulib-tool: Set check_PROGRAMS.
78836
78837         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78838         modules/des-tests, modules/gc-arcfour-tests,
78839         modules/gc-arctwo-tests, modules/gc-des-tests,
78840         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78841         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78842         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78843         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78844         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78845         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78846         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78847         test_*_SOURCES.
78848
78849 2006-01-18  Simon Josefsson  <jas@extundo.com>
78850
78851         * modules/socklen (Depends-on): Depend on sys_socket.
78852
78853 2006-01-18  Simon Josefsson  <jas@extundo.com>
78854
78855         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78856         modules/des-tests, modules/gc-arcfour-tests,
78857         modules/gc-arctwo-tests, modules/gc-des-tests,
78858         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78859         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78860         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78861         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78862         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78863         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78864         $(EXEEXT) to automake TESTS variable, for mingw32.
78865
78866 2006-01-17  Simon Josefsson  <jas@extundo.com>
78867
78868         * modules/socklen (Include): Need sys/socket.h.
78869
78870 2006-01-17  Bruno Haible  <bruno@clisp.org>
78871
78872         * modules/ssize_t (Include): Add <sys/types.h>.
78873
78874 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78877         it's not portable and it doesn't work with cross-compiles.
78878         Problem reported by Bruno Haible.  Fix missing-$ typo in
78879         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78880         -zignore from being used with Sun's C compiler.
78881
78882 2006-01-12  Simon Josefsson  <jas@extundo.com>
78883
78884         * lib/base64.c: Fix warning, reported by Bruno Haible
78885         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78886
78887 2006-01-12  Bruno Haible  <bruno@clisp.org>
78888
78889         * modules/ldd: New file.
78890         * build-aux/ldd.sh.in: New file.
78891         * MODULES.html.sh (Support for building libraries and executables): Add
78892         ldd.
78893
78894 2006-01-12  Bruno Haible  <bruno@clisp.org>
78895
78896         * m4/ldd.m4: New file.
78897
78898 2006-01-12  Bruno Haible  <bruno@clisp.org>
78899
78900         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78901         endless loop while replacing $auxdir with build-aux.
78902
78903 2006-01-11  Simon Josefsson  <jas@extundo.com>
78904
78905         * lib/stdint_.h (SIZE_MAX): Add missing (.
78906
78907 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78908
78909         Sync from coreutils.
78910         * lib/md5.c: Fix commentary typos.
78911         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78912         * lib/md5.h (__attribute__): Remove; unused.
78913         * lib/sha1.c: Fix commentary to match md5 better.
78914         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78915         so that we don't need to worry about alignment.  All uses changed.
78916         This merges the 2005-10-28 md5 change into sha1.
78917
78918 2006-01-11  Jim Meyering  <jim@meyering.net>
78919
78920         Sync from coreutils.
78921         * lib/md5.c (OP): Fix spacing.
78922
78923 2006-01-11  Bruno Haible  <bruno@clisp.org>
78924
78925         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78926         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78927         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78928
78929 2006-01-11  Bruno Haible  <bruno@clisp.org>
78930
78931         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78932         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78933         the "early" section as well.
78934
78935 2006-01-11  Bruno Haible  <bruno@clisp.org>
78936
78937         Avoid "ar: no archive members specified" error on MacOS X.
78938         * gnulib-tool (func_modules_add_dummy): New function.
78939         (func_import, func_create_testdir): Invoke it.
78940
78941 2006-01-11  Bruno Haible  <bruno@clisp.org>
78942
78943         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78944         with $auxdir in AC_CONFIG_FILES statements.
78945
78946 2006-01-11  Bruno Haible  <bruno@clisp.org>
78947
78948         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78949         Initialize also noinst_HEADERS to empty.
78950
78951 2006-01-11  Bruno Haible  <bruno@clisp.org>
78952
78953         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78954         variables.
78955         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78956         autoreconf.
78957
78958 2006-01-11  Bruno Haible  <bruno@clisp.org>
78959
78960         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78961         overridable by the user.
78962         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78963
78964 2006-01-10  Simon Josefsson  <jas@extundo.com>
78965
78966         * modules/sys_socket: New file.
78967
78968 2006-01-10  Simon Josefsson  <jas@extundo.com>
78969
78970         * m4/sys_socket_h.m4: New file.
78971
78972 2006-01-10  Simon Josefsson  <jas@extundo.com>
78973
78974         * lib/socket_.h: New file.
78975
78976 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78977
78978         * modules/readutmp (Maintainer): Add myself.
78979
78980 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78981
78982         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78983         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78984         People who are still concerned with buggy memcmp implementations
78985         can invoke gl_FUNC_MEMCMP themselves.
78986
78987 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78988
78989         * lib/regex_internal.h (BITSET_WORD_BITS):
78990         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78991         preprocessor mishandles large unsigned values as if they were signed.
78992         Problem reported by Claudio Fontana in
78993         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78994
78995 2006-01-10  Jim Meyering  <jim@meyering.net>
78996
78997         Avoid the double-free (first in fts_read, second in fts_close) that
78998         would occur when an `active' directory is made inaccessible (e.g.,
78999         via chmod a-x) during a traversal.
79000         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
79001         before returning.  Reproduce this failure by
79002         mkdir -p a/b; cd a; chmod a-x . b
79003         Reported by Stavros Passas.
79004
79005         Sync from coreutils.
79006         * lib/sha1.c: Tweak grammar in a comment.
79007
79008 2006-01-10  Jim Meyering  <jim@meyering.net>
79009
79010         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
79011         Patch by Joerg Sonnenberger.
79012
79013 2006-01-10  Bruno Haible  <bruno@clisp.org>
79014
79015         * modules/readutmp: Depend on module free.
79016         * modules/strtok_r: Depend on module restrict.
79017
79018 2006-01-10  Bruno Haible  <bruno@clisp.org>
79019
79020         * modules/gettext (configure.ac): Add an invocation of
79021         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
79022
79023 2006-01-10  Bruno Haible  <bruno@clisp.org>
79024
79025         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
79026         Reported by Werner Lemberg <wl@gnu.org>.
79027
79028 2006-01-10  Bruno Haible  <bruno@clisp.org>
79029
79030         * lib/localcharset.c: Update from GNU gettext.
79031
79032 2006-01-10  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/argp.h (__const): Remove macro. Use const instead.
79035         * lib/argp-fmtstream.h (__const): Likewise.
79036         * lib/glob_.h (__const): Remove macro.
79037         * lib/glob-libc.h: Use const instead of __const.
79038
79039 2006-01-10  Bruno Haible  <bruno@clisp.org>
79040
79041         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
79042         variable.
79043         Needed to avoid an automake error regarding the 'gettext' module.
79044
79045 2006-01-09  Simon Josefsson  <jas@extundo.com>
79046
79047         * modules/inet_ntop (Depends-on): Add restrict.
79048
79049 2006-01-09  Simon Josefsson  <jas@extundo.com>
79050
79051         * modules/gc-rijndael-tests (License): Put under LGPL.
79052
79053         * modules/gc-des-tests (License): Likewise.
79054
79055         * modules/gc-arcfour-tests (License): Likewise.
79056
79057         * modules/gc-arctwo-tests (License): Likewise.
79058
79059         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
79060
79061         * modules/gc-hmac-sha1-tests (Files): Likewise.
79062
79063         * modules/gc-hmac-md5-tests (License): Likewise.
79064
79065         * modules/gc-sha1-tests (License): Likewise.
79066
79067         * modules/gc-md5-tests (License): Likewise.
79068
79069         * modules/gc-md4-tests (License): Likewise.
79070
79071         * modules/gc-md2-tests (License): Likewise.
79072
79073         * modules/gc-tests (License): Likewise.
79074
79075         * modules/des-tests (License): Likewise.
79076
79077         * modules/md4-tests (License): Likewise.
79078
79079         * modules/md2-tests (License): Likewise.
79080
79081 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         Sync from coreutils:
79084
79085         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
79086         * modules/lib-ignore: New file.
79087         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
79088         chdir-safer.m4, lchmod.m4.
79089         * modules/openat: Add mkdirat.c, openat-priv.h.
79090
79091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79092
79093         Sync from coreutils.
79094         * m4/lib-ignore.m4: New file.
79095         * m4/lchmod.m4: New file.
79096
79097 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79098
79099         Sync from coreutils.
79100         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
79101         for write access: POSIX says that must fail.
79102         * lib/fts.c (diropen): Likewise.
79103         * lib/save-cwd.c (save_cwd): Likewise.
79104         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
79105         well, for minor improvements on hosts that lack O_DIRECTORY.
79106         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
79107         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
79108         Fall back on chown if open failed with EACCES.
79109
79110         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
79111         Report an error at compile-time if only a 1-second nominal clock
79112         resolution is found.
79113
79114         * lib/lchmod.h: New file.
79115         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
79116         (make_dir_parents): Use lchown rather than chown, and
79117         lchmod rather than chmod.
79118
79119         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
79120         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
79121         "proc" reported by n0dalus.
79122
79123         * lib/mountlist.c: Include <limits.h>.
79124         (dev_from_mount_options)
79125         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
79126         New function.  It no longer assumes "dev=" has the System V meaning
79127         on Linux (since it doesn't).  It also parses "dev=" more carefully.
79128         (read_file_system_list)
79129         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
79130         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
79131         dev= in that case.
79132
79133         * lib/posixtm.h (PDS_PRE_2000): New macro.
79134         * lib/posixtm.c (year): Arg is now syntax_bits rather than
79135         allow_century.  All usages changed.  Reject dates outside the range
79136         1969-1999 if PDS_PRE_2000 is used.
79137
79138 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
79139
79140         Sync from coreutils.
79141         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
79142         (Time of day items): Mention the possibility of leap seconds.
79143         Problem reported by Dr. David Alan Gilbert.
79144
79145 2006-01-09  Jim Meyering  <jim@meyering.net>
79146
79147         Sync from coreutils.
79148
79149         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
79150
79151         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
79152
79153         * lib/modechange.c (mode_compile): Reject an invalid mode string
79154         that starts with an octal digit.  From Andreas Gruenbacher.
79155
79156         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
79157         and dup to open_safer and dup_safer, respectively.
79158         (openat_permissive): Fix typo in comment.
79159
79160         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
79161         "gettext.h"; either no longer needed or are guaranteed by openat.h.
79162         (_): Remove; no longer needed.
79163         (openat): Renamed from rpl_openat; no need for rpl_openat
79164         since openat.h renames openat for us.
79165         Replace most of the body with a call to openat_permissive,
79166         to avoid duplicate code.
79167         Port to (probably hypothetical) environments were mode_t is
79168         wider than int.
79169         (openat_permissive): Require mode arg, so that we can check
79170         types better.  Put it just after flags.  Change cwd failure
79171         indicator from pointer-to-bool to pointer-to-errno-value.
79172         All callers changed.
79173         Invoke openat_save_fail and/or openat_restore_fail if
79174         cwd_errno is null, so that openat can call us.
79175         (openat_permissive, fdopendir, fstatat, unlinkat):
79176         Simplify errno handling to avoid some duplicate code,
79177         as it's OK to set errno on success.
79178         * lib/openat.h: Revamp code so that function macros depend on
79179         __OPENAT_PREFIX only, not also on AT_FDCWD.
79180         (openat_ro): Remove.  Caller changed to use openat_permissive.
79181         (openat_permissive): Now a macro, if not a function.
79182         (openat_restore_fail, openat_save_fail): Now always functions,
79183         since mkdirat needs them even if __OPENAT_PREFIX is defined.
79184
79185         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
79186         and openat.c.
79187         * lib/mkdirat.c: Include openat-priv.h.
79188         Remove definitions of macros defined therein.
79189         * lib/openat.c: Likewise.
79190
79191         * lib/mkdirat.c (mkdirat): New file and function.
79192         * lib/openat.h (mkdirat): Declare.
79193
79194         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
79195
79196         * lib/openat.h (openat_permissive): Declare.
79197         (openat_ro): Define.
79198
79199         * lib/openat.c (EXPECTED_ERRNO): New macro.
79200         (openat_permissive): New function -- used in remove.c rewrite.
79201         (all functions): Set errno just before returning, only if there
79202         was an actual failure.
79203         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
79204
79205         Emulate openat-family functions using Linux's procfs, if possible.
79206         Idea and some code based on Ulrich Drepper's glibc changes.
79207
79208         * lib/openat.c: (BUILD_PROC_NAME): New macro.
79209         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
79210         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
79211         before falling back on save_cwd and restore_cwd.
79212         (fdopendir, fstatat, unlinkat): Likewise.
79213
79214         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
79215         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
79216
79217         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
79218         as second argument to va_arg.  Otherwise, some versions of gcc
79219         warn that `if this code is reached, the program will abort'.
79220
79221 2006-01-09  Jim Meyering  <jim@meyering.net>
79222
79223         Sync from coreutils.
79224         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
79225         Require openat-priv.h.
79226
79227 2006-01-09  Bruno Haible  <bruno@clisp.org>
79228
79229         * modules/strnlen (Include): Use strnlen.h.
79230
79231 2006-01-09  Bruno Haible  <bruno@clisp.org>
79232
79233         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
79234
79235 2006-01-09  Bruno Haible  <bruno@clisp.org>
79236
79237         * lib/sysexit_.h (EX_OK): New macro.
79238         Suggested by Martin Lambers <marlam@marlam.de>.
79239
79240 2006-01-09  Bruno Haible  <bruno@clisp.org>
79241
79242         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
79243         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
79244
79245 2006-01-09  Bruno Haible  <bruno@clisp.org>
79246
79247         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
79248         numbers.
79249
79250 2006-01-09  Bruno Haible  <bruno@clisp.org>
79251
79252         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
79253         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
79254         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
79255         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
79256
79257 2006-01-09  Bruno Haible  <bruno@clisp.org>
79258
79259         * build-aux/javacomp.sh.in: New file, moved from lib/.
79260         * modules/javacomp-script (Files): Update.
79261         (configure.ac): Add AC_CONFIG_FILES invocation.
79262         (EXTRA_DIST): Remove variable.
79263
79264         * build-aux/javaexec.sh.in: New file, moved from lib/.
79265         * modules/javaexec (Files): Update.
79266         (configure.ac): Add AC_CONFIG_FILES invocation.
79267         (EXTRA_DIST): Remove javaexec.sh.in.
79268
79269         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
79270         * modules/csharpcomp-script (Files): Update.
79271         (configure.ac): Add AC_CONFIG_FILES invocation.
79272         (EXTRA_DIST): Remove variable.
79273
79274         * build-aux/csharpexec.sh.in: New file, moved from lib/.
79275         * modules/csharpexec (Files): Update.
79276         (configure.ac): Add AC_CONFIG_FILES invocation.
79277         (EXTRA_DIST): Remove csharpexec.sh.in.
79278
79279 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79280
79281         Sync from coreutils.
79282
79283         Add POSIX ACL support
79284         * lib/acl.h (copy_acl, set_acl): Add declarations.
79285         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
79286         systems other than Linux.
79287         (chmod_or_fchmod): New function: use fchmod when possible,
79288         and chmod otherwise.
79289         (file_has_acl): Add a POSIX ACL implementation, with a
79290         Linux-specific subcase.
79291         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
79292         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
79293         acls are unsupported.
79294         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
79295         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
79296         are unsupported.
79297
79298 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
79299
79300         Sync from coreutils.
79301         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
79302
79303 2006-01-07  Bruno Haible  <bruno@clisp.org>
79304
79305         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
79306         gl_EARLY.
79307
79308 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79309
79310         * lib/strftime.c (tzname): Don't declare if it is already #defined.
79311         Problem reported for Mingw by Mark Junker.
79312
79313 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         * README: Gnulib normally doesn't generate a tarball.
79316
79317 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
79318
79319         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
79320         long int, not int, for nanosecond counts, so that people who are
79321         used to POSIX struct timespec won't be surprised.  Reported by Jim
79322         Meyering.
79323
79324 2005-12-28  Bruno Haible  <bruno@clisp.org>
79325
79326         * build-aux/config.rpath: Update from GNU gettext.
79327
79328 2005-12-16  Jim Meyering  <jim@meyering.net>
79329
79330         * modules/fprintftime: New module.
79331         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
79332
79333 2005-12-16  Jim Meyering  <jim@meyering.net>
79334
79335         * m4/fprintftime.m4: New file.
79336
79337 2005-12-16  Jim Meyering  <jim@meyering.net>
79338
79339         * lib/fprintftime.c, lib/fprintftime.h: New files.
79340
79341 2005-12-15  Simon Josefsson  <jas@extundo.com>
79342
79343         * modules/socklen (configure.ac): Fix M4 macro name, to align with
79344         new m4/socklen.m4.
79345
79346 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79347
79348         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
79349         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
79350
79351 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
79352
79353         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
79354         * lib/argp-help.c (fill_in_uparams): Check if the constructed
79355         struct uparams is valid. Fall back to the default values if it is
79356         not.
79357
79358 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79359
79360         * modules/argp (Files): Add argp-pin.c
79361         (Depends-on): dirname
79362         (lib_SOURCES): Add argp-pin.c
79363
79364 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79365
79366         * m4/argp.m4:  Check if program_invocation_name and
79367         program_invocation_short_name are declared and define appropriate
79368         macros if they are not.
79369
79370 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
79371
79372         * lib/argp-help.c (__argp_base_name): New function
79373         (__argp_short_program_name): Rewrite using __argp_base_name
79374         * lib/argp-namefrob.h: Define program_invocation_name and
79375         program_invocation_short_name if requested
79376         (__argp_base_name): Add prototype
79377         * lib/argp-parse.c (argp_def): Use gettext wrappers
79378         (argp_default_parser): Use __argp_base_name
79379         * lib/argp-pin.c: New file. Defines program_invocation_name and
79380         program_invocation_short_name on systems that lack them.
79381
79382 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79383
79384         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
79385         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79386         porting problem reported by Georg Schwarz in
79387         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79388
79389 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79390
79391         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
79392         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
79393         porting problem reported by Georg Schwarz in
79394         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
79395
79396 2005-12-05  Bruno Haible  <bruno@clisp.org>
79397
79398         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
79399         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
79400         Reported by Mark Junker <mjscod@gmx.de>.
79401
79402 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
79403
79404         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
79405         Use implementation from Albert Chin, with some
79406         comments/corrections by Stepan Kasal and myself.
79407
79408 2005-12-02  Bruno Haible  <bruno@clisp.org>
79409
79410         * gnulib-tool (func_import): Accept GPLed build tool modules when
79411         --lgpl is given.
79412         * modules/csharpcomp-script: New file.
79413         * modules/csharpcomp: Depend on it.
79414         * modules/javacomp-script: New file.
79415         * modules/javacomp: Depend on it.
79416         Suggested by Simon Josefsson.
79417
79418 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
79419
79420         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
79421         statement, to work around an HP-UX 10.20 compiler bug reported by
79422         Peter O'Gorman.
79423
79424 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79425
79426         * modules/savedir (Depends-on): Add openat.
79427
79428 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
79429
79430         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
79431         (uintmax_t) [defined uintmax_t]: Do not declare.
79432         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
79433         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
79434         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
79435         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
79436         sake of portability to weird hosts that C allows (though we don't
79437         know of any practical examples).
79438
79439         * lib/savedir.h (fdsavedir): New decl.
79440         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
79441         contains most of the former guts of savedir.
79442         (savedir): Use savedirstream.
79443         Include "openat.h".
79444
79445 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * modules/obstack (Files): Add m4/ulonglong.m4.
79448         Problem reported by Davide Angelocola.
79449
79450 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
79451
79452         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
79453         coreutils no longer futzes with rounding modes.
79454
79455 2005-11-14  Jim Meyering  <jim@meyering.net>
79456
79457         * lib/mkstemp-safer.c: Include <config.h>, required for possible
79458         replacement of mkstemp.
79459
79460 2005-11-10  Simon Josefsson  <jas@extundo.com>
79461
79462         * lib/readline.c: Remove EOL.
79463
79464 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * modules/gethrxtime (Depends-on): Add gettime.
79467
79468 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79469
79470         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
79471         or gettimeofday; no longer needed.
79472
79473 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
79474
79475         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
79476         time business.
79477         (gethrxtime) [! (HAVE_NANOUPTIME
79478         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
79479         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
79480         our own approximation.
79481
79482 2005-11-08  Eric Blake  <ebb9@byu.net>
79483
79484         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79485
79486 2005-11-08  Eric Blake  <ebb9@byu.net>
79487
79488         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
79489
79490 2005-11-04  Bruno Haible  <bruno@clisp.org>
79491
79492         * gnulib-tool: Implement --update mode.
79493
79494 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79495
79496         Fix porting problem reported by Theodoros V. Kalamatianos.
79497         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
79498         Don't assume that futimes failing means we must fail.
79499
79500 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
79501
79502         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
79503         variables to suggest the intended function of the PATH_MAX check.
79504
79505 2005-10-30  Kean Johnston  <jkj@sco.com>
79506
79507         Trivial changes to support SCO systems.
79508         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
79509         as PATH_MAX.
79510         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
79511         where __ptr is null when no I/O is pending.
79512
79513 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
79514
79515         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
79516         leave errno alone.  Problem reported by Dmitry V. Levin.
79517
79518 2005-10-28  Simon Josefsson  <jas@extundo.com>
79519
79520         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
79521         Test more.
79522
79523         * tests/test-gc-md2.c, tests/test-md2.c: New files.
79524
79525         * modules/md2, modules/md2-tests: New files.
79526
79527 2005-10-28  Simon Josefsson  <jas@extundo.com>
79528
79529         * m4/inet_ntop.m4: More tests.
79530
79531         * m4/gc-md2.m4, md2.m4: New file.
79532
79533 2005-10-28  Simon Josefsson  <jas@extundo.com>
79534
79535         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
79536         "restrict" keywords, as per POSIX.  Protect the function
79537         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
79538         Don't use K&R prototypes.  Check the sprintf return values.
79539         Re-define EAFNOSUPPORT if not present.  Indent.
79540
79541         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
79542         suggested by Bruno Haible <bruno@clisp.org>.
79543
79544         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
79545
79546         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
79547
79548         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
79549         libgcrypt).
79550
79551         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
79552
79553         * lib/md2.h, lib/md2.c: New files.
79554
79555 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
79556
79557         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
79558         errno alone.  Problem reported by Frederic Jolliton.
79559
79560 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
79561
79562         * modules/verify (License): Change from GPL to LGPL.  This is a
79563         tiny module and there are apparently near-equivalents that are
79564         under the BSD license.
79565
79566 2005-10-24  Simon Josefsson  <jas@extundo.com>
79567
79568         * modules/sha1: Relicense to LGPL.
79569
79570 2005-10-24  Simon Josefsson  <jas@extundo.com>
79571
79572         * lib/md4.h: Shrink buffer size, now that we changed the type.
79573
79574 2005-10-23  Simon Josefsson  <jas@extundo.com>
79575
79576         * gnulib-tool (func_import): Fix --tests-base.
79577
79578 2005-10-22  Simon Josefsson  <jas@extundo.com>
79579
79580         * modules/arcfour (Depends-on): Need stdint.
79581
79582 2005-10-22  Simon Josefsson  <jas@extundo.com>
79583
79584         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
79585         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
79586
79587 2005-10-22  Simon Josefsson  <jas@extundo.com>
79588
79589         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
79590         suggested by Bruno Haible <bruno@clisp.org>.
79591
79592 2005-10-22  Simon Josefsson  <jas@extundo.com>
79593
79594         * lib/crc.h: Include stddef.h, for size_t.
79595
79596 2005-10-22  Simon Josefsson  <jas@extundo.com>
79597
79598         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
79599         arcfour_context struct (simplify test vector testing in GNU
79600         Shishi).
79601
79602 2005-10-21  Simon Josefsson  <jas@extundo.com>
79603
79604         * modules/des, modules/des-tests: New files.
79605
79606         * modules/gc-des, modules/gc-des-tests: New files.
79607
79608         * tests/test-des.c, tests/test-gc-des.c: New file.
79609
79610 2005-10-21  Simon Josefsson  <jas@extundo.com>
79611
79612         * modules/arctwo, modules/arctwo-tests: New files.
79613
79614         * tests/test-arctwo.c: New file.
79615
79616         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
79617
79618         * tests/test-gc-arctwo.c: New file.
79619
79620 2005-10-21  Simon Josefsson  <jas@extundo.com>
79621
79622         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
79623         Bruno Haible <bruno@clisp.org>.
79624
79625         * m4/gc-des.m4: New file.
79626
79627 2005-10-21  Simon Josefsson  <jas@extundo.com>
79628
79629         * m4/arctwo.m4: New file.
79630
79631         * m4/gc-arctwo.m4: New file.
79632
79633 2005-10-21  Simon Josefsson  <jas@extundo.com>
79634
79635         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
79636         block.
79637
79638 2005-10-21  Simon Josefsson  <jas@extundo.com>
79639
79640         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
79641         <bruno@clisp.org>.
79642
79643         * lib/hmac-sha1.c (hmac_sha1): Likewise.
79644
79645         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
79646         Bruno Haible <bruno@clisp.org>.
79647
79648         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
79649         <bruno@clisp.org>.
79650
79651 2005-10-21  Simon Josefsson  <jas@extundo.com>
79652
79653         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
79654
79655 2005-10-21  Simon Josefsson  <jas@extundo.com>
79656
79657         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
79658
79659 2005-10-21  Simon Josefsson  <jas@extundo.com>
79660
79661         * lib/des.h, lib/des.c: New files.
79662
79663         * lib/gc-gnulib.c: Support DES.c
79664
79665 2005-10-21  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/arctwo.h, lib/arctwo.c: New files.
79668
79669         * lib/gc-gnulib.c: Support ARCTWO.
79670
79671 2005-10-21  Simon Josefsson  <jas@extundo.com>
79672
79673         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
79674         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79675
79676 2005-10-21  Simon Josefsson  <jas@extundo.com>
79677
79678         * gnulib-tool (func_import, func_create_testdir): Define automake
79679         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
79680         Makefile.am snippet),
79681         suggested by Bruno Haible <bruno@clisp.org>.
79682
79683         * modules/gc (Makefile.am): Use it.
79684
79685 2005-10-21  Bruno Haible  <bruno@clisp.org>
79686
79687         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
79688         patch.
79689
79690 2005-10-19  Simon Josefsson  <jas@extundo.com>
79691
79692         * tests/test-gc-rijndael.c: New file.
79693
79694         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
79695
79696 2005-10-19  Simon Josefsson  <jas@extundo.com>
79697
79698         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
79699         interface too.
79700
79701 2005-10-19  Simon Josefsson  <jas@extundo.com>
79702
79703         * tests/test-gc-arcfour.c: New file.
79704
79705         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
79706
79707 2005-10-19  Simon Josefsson  <jas@extundo.com>
79708
79709         * modules/gc-md4, modules/gc-md4-tests: New file.
79710
79711         * tests/test-gc-md4.c: New file.
79712
79713 2005-10-19  Simon Josefsson  <jas@extundo.com>
79714
79715         * m4/gc-md4.m4: New file.
79716
79717 2005-10-19  Simon Josefsson  <jas@extundo.com>
79718
79719         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
79720         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
79721         <kasal@ucw.cz>.
79722
79723 2005-10-19  Simon Josefsson  <jas@extundo.com>
79724
79725         * m4/gc-arcfour.m4: New file.
79726
79727         * m4/gc-rijndael.m4: New file.
79728
79729 2005-10-19  Simon Josefsson  <jas@extundo.com>
79730
79731         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
79732
79733 2005-10-19  Simon Josefsson  <jas@extundo.com>
79734
79735         * lib/gc-gnulib.c: Support ARCFOUR.
79736
79737 2005-10-19  Simon Josefsson  <jas@extundo.com>
79738
79739         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
79740         support.
79741
79742         * lib/gc.h: Add ECB enum type.
79743
79744         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
79745
79746 2005-10-18  Simon Josefsson  <jas@extundo.com>
79747
79748         * tests/test-md5.c: New file.
79749
79750         * modules/md5-tests: New file.
79751
79752 2005-10-18  Simon Josefsson  <jas@extundo.com>
79753
79754         * tests/test-md4.c: New file.
79755
79756         * modules/md4, modules/md4-tests: New files.
79757
79758 2005-10-18  Simon Josefsson  <jas@extundo.com>
79759
79760         * m4/md4.m4: New file.
79761
79762 2005-10-18  Simon Josefsson  <jas@extundo.com>
79763
79764         * lib/md4.h, lib/md4.c: New files, based on md5.?.
79765
79766 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
79767
79768         * gnulib-tool (func_create_testdir): Omit the second check whether
79769         BUILT_SOURCES in nonempty.
79770
79771 2005-10-17  Simon Josefsson  <jas@extundo.com>
79772
79773         * tests/test-rijndael.c: New file.
79774
79775 2005-10-17  Simon Josefsson  <jas@extundo.com>
79776
79777         * modules/sha1: Depend on stdint instead of md5.
79778
79779         * modules/md5: Depend on stdint, remove uint32_t.
79780
79781 2005-10-17  Simon Josefsson  <jas@extundo.com>
79782
79783         * modules/gc-sha1-tests: New file.
79784
79785         * tests/test-gc-sha1.c: New file.
79786
79787 2005-10-17  Simon Josefsson  <jas@extundo.com>
79788
79789         * m4/md5.m4: Remove call to uint32_t.m4.
79790
79791 2005-10-17  Simon Josefsson  <jas@extundo.com>
79792
79793         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
79794
79795         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
79796         md5.h.
79797
79798         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
79799
79800         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
79801
79802 2005-10-17  Simon Josefsson  <jas@extundo.com>
79803
79804         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
79805
79806 2005-10-17  Simon Josefsson  <jas@extundo.com>
79807
79808         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79809
79810 2005-10-17  Simon Josefsson  <jas@extundo.com>
79811
79812         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79813
79814         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79815
79816 2005-10-17  Bruno Haible  <bruno@clisp.org>
79817
79818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79819         that it can also be used in a test.
79820
79821 2005-10-16  Bruno Haible  <bruno@clisp.org>
79822
79823         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79824         TESTS_ENVIRONMENT, so that individual tests can augment it.
79825
79826         * gnulib-tool (func_create_testdir): Use an intermediate target for
79827         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79828         macros, like $(ALLOCA_H), which cannot be passed through the command
79829         line.
79830
79831 2005-10-15  Simon Josefsson  <jas@extundo.com>
79832
79833         * modules/rijndael-tests: New file.
79834
79835         * modules/rijndael: New file.
79836
79837 2005-10-15  Simon Josefsson  <jas@extundo.com>
79838
79839         * m4/rijndael.m4: New file.
79840
79841 2005-10-15  Simon Josefsson  <jas@extundo.com>
79842
79843         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79844
79845         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79846
79847 2005-10-14  Simon Josefsson  <jas@extundo.com>
79848
79849         * tests/test-arcfour.c: New file.
79850
79851         * modules/arcfour, modules/arcfour-tests: New files.
79852
79853 2005-10-14  Simon Josefsson  <jas@extundo.com>
79854
79855         * m4/arcfour.m4: New file.
79856
79857 2005-10-14  Simon Josefsson  <jas@extundo.com>
79858
79859         * lib/arcfour.h, lib/arcfour.c: New files.
79860
79861 2005-10-14  Roland McGrath  <roland@redhat.com>
79862
79863         Import from libc.  [BZ #1331]
79864         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79865         macro argument.
79866         Reported by Matej Vela <vela@debian.org>.
79867
79868 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79871         include <wchar.h>; no longer needed.
79872
79873 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79874
79875         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79876
79877 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79878         and  Ulrich Drepper  <drepper@redhat.com>
79879
79880         Import from libc.
79881         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79882         instead of inline stream orientation test and two separate
79883         function calls.  Pay no attention to USE_IN_LIBIO.
79884
79885 2005-10-13  Simon Josefsson  <jas@extundo.com>
79886
79887         * modules/gc-hmac-md5-tests: New file.
79888
79889         * tests/test-gc-hmac-sha1.c: New file.
79890
79891         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79892
79893         * modules/gc-hmac-md5-tests: New file.
79894
79895         * tests/test-gc-md5.c: New file.
79896
79897         * modules/gc-md5-tests: New file.
79898
79899 2005-10-13  Simon Josefsson  <jas@extundo.com>
79900
79901         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79902         Move memory allocation outside of loop.
79903
79904 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79907         intermediate directory is in a read-only file system.  Problem
79908         reported by Eric Blake.
79909
79910 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79911
79912         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79913
79914 2005-10-12  Simon Josefsson  <jas@extundo.com>
79915
79916         * tests/test-hmac-sha1.c: New file.
79917
79918         * modules/hmac-sha1-tests: New file.
79919
79920         * modules/hmac-sha1: New file.
79921
79922 2005-10-12  Simon Josefsson  <jas@extundo.com>
79923
79924         * modules/gc-sha1: New file.
79925
79926 2005-10-12  Simon Josefsson  <jas@extundo.com>
79927
79928         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79929
79930         * tests/test-gc-pbkdf2-sha1.c: New file.
79931
79932 2005-10-12  Simon Josefsson  <jas@extundo.com>
79933
79934         * modules/gc-md5, modules/gc-hmac-md5: New files.
79935
79936         * modules/gc (Files): Remove md5, memxor and hmac files.
79937
79938 2005-10-12  Simon Josefsson  <jas@extundo.com>
79939
79940         * m4/gc-pbkdf2-sha1.m4: New file.
79941
79942         * m4/gc-hmac-sha1.m4: New file.
79943
79944         * m4/gc-sha1: New file.
79945
79946         * m4/hmac-sha1.m4: New file.
79947
79948 2005-10-12  Simon Josefsson  <jas@extundo.com>
79949
79950         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79951
79952         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79953
79954 2005-10-12  Simon Josefsson  <jas@extundo.com>
79955
79956         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79957         suggested by Bruno Haible <bruno@clisp.org>.
79958
79959 2005-10-12  Simon Josefsson  <jas@extundo.com>
79960
79961         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79962
79963 2005-10-12  Simon Josefsson  <jas@extundo.com>
79964
79965         * lib/gc-pbkdf2-sha1.c: New file.
79966
79967         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79968
79969 2005-10-12  Simon Josefsson  <jas@extundo.com>
79970
79971         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79972
79973         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79974
79975 2005-10-12  Simon Josefsson  <jas@extundo.com>
79976
79977         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79978         GC_USE_HMAC_MD5, respectively.
79979
79980         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79981         (gc_md5): Fix typo.
79982
79983         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79984
79985         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79986
79987         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79988
79989 2005-10-12  Bruno Haible  <bruno@clisp.org>
79990
79991         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79992         Reported by Stepan Kasal <kasal@ucw.cz>.
79993
79994 2005-10-11  Simon Josefsson  <jas@extundo.com>
79995
79996         * tests/test-crc.c: New file.
79997
79998         * modules/crc, modules/crc-tests: New files.
79999
80000 2005-10-11  Simon Josefsson  <jas@extundo.com>
80001
80002         * m4/crc.m4: New file.
80003
80004 2005-10-11  Simon Josefsson  <jas@extundo.com>
80005
80006         * lib/gc.h: Add gc_hash and gc_hash_buffer.
80007
80008         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
80009
80010         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
80011
80012 2005-10-11  Simon Josefsson  <jas@extundo.com>
80013
80014         * lib/crc.h, lib/crc.c: New files.
80015
80016         * lib/gc.h (gc_hash_buffer): Add doc.
80017
80018 2005-10-11  Bruno Haible  <bruno@clisp.org>
80019
80020         * modules/c-strcasestr: New file.
80021         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
80022
80023 2005-10-11  Bruno Haible  <bruno@clisp.org>
80024
80025         * modules/c-strcase: New file.
80026         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
80027
80028 2005-10-11  Bruno Haible  <bruno@clisp.org>
80029
80030         * lib/strcasecmp.c: Include limits.h.
80031         (strcasecmp): Avoid integer overflow on exotic platforms.
80032         * lib/strncasecmp.c: Include limits.h.
80033         (strncasecmp): Avoid integer overflow on exotic platforms.
80034         Reported by Paul Eggert.
80035
80036 2005-10-11  Bruno Haible  <bruno@clisp.org>
80037
80038         * lib/c-strcasestr.h: New file, from GNU gettext.
80039         * lib/c-strcasestr.c: New file, from GNU gettext.
80040
80041 2005-10-11  Bruno Haible  <bruno@clisp.org>
80042
80043         * lib/c-strcase.h: New file, from GNU gettext.
80044         * lib/c-strcasecmp.c: New file, from GNU gettext.
80045         * lib/c-strncasecmp.c: New file, from GNU gettext.
80046
80047 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * modules/mempcpy (License): GPL -> LGPL.
80050         * modules/strchrnul (License): Likewise.
80051         * modules/sysexits (License): Likewise.
80052
80053 2005-10-08  Simon Josefsson  <jas@extundo.com>
80054
80055         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
80056
80057 2005-10-07  Simon Josefsson  <jas@extundo.com>
80058
80059         * m4/memxor.m4: Remove gl_C_RESTRICT call.
80060
80061 2005-10-06  Simon Josefsson  <jas@extundo.com>
80062
80063         * tests/test-hmac-md5.c: New file.
80064
80065         * modules/hmac-md5-tests: New file.
80066
80067         * modules/hmac-md5: New file.
80068
80069 2005-10-06  Simon Josefsson  <jas@extundo.com>
80070
80071         * m4/hmac-md5.m4: New file.
80072
80073         * m4/memxor.m4: Require gl_C_RESTRICT.
80074
80075 2005-10-06  Simon Josefsson  <jas@extundo.com>
80076
80077         * lib/memxor.c (memxor): Avoid casts and warnings.
80078
80079 2005-10-06  Simon Josefsson  <jas@extundo.com>
80080
80081         * lib/hmac-md5.c: New file.
80082
80083         * lib/hmac.h: New file.
80084
80085 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
80088         promotes to int, not unsigned int, to catch the AIX 5.3
80089         compiler bug.
80090
80091 2005-10-05  Simon Josefsson  <jas@extundo.com>
80092
80093         * modules/memxor: New file.
80094
80095         * modules/iconv (Files): Move config.rpath to havelib, it is used
80096         there.
80097
80098         * modules/havelib (Files): Add config.rpath.
80099
80100 2005-10-05  Simon Josefsson  <jas@extundo.com>
80101
80102         * m4/memxor.m4: New file.
80103
80104 2005-10-05  Simon Josefsson  <jas@extundo.com>
80105
80106         * lib/memxor.c (memxor): Fix compiler error.
80107
80108         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
80109         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
80110
80111         * lib/memxor.h, lib/memxor.c: New files.
80112
80113         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
80114         we assume all systems have it, suggested by Jim Meyering
80115         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
80116         any systems lack sys/socket.h; mingw32 is known to lack it, but we
80117         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
80118         same reasons.
80119
80120 2005-10-05  Simon Josefsson  <jas@extundo.com>
80121
80122         * config/srclist.txt: Add glibc bug 1423 for md5.h.
80123
80124 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
80125
80126         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
80127         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
80128         needed, since the source code now assumes these .h files.
80129
80130 2005-10-05  Derek Price  <derek@ximbiot.com>
80131
80132         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
80133
80134 2005-10-05  Bruno Haible  <bruno@clisp.org>
80135
80136         * modules/stdint (License): Change to LGPL.
80137
80138 2005-10-04  Simon Josefsson  <jas@extundo.com>
80139
80140         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
80141         D. Baushke" <mdb@gnu.org>.
80142
80143 2005-10-04  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/verify.h (verify_true): Provide alternative definition for C++.
80146
80147 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
80150         (SSIZE_MAX): New macro, if not already defined.
80151         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
80152         than 2 GiB.
80153
80154 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80155
80156         Sync from coreutils.
80157         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
80158         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
80159         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
80160         ULLONG_MAX doesn't work with 2.7.2.1.
80161
80162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80163
80164         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
80165         From Ben Pfaff.
80166
80167         * modules/exclude (Depends-on): Depend on verify.
80168         * modules/strtoimax (Depends-on): Likewise.
80169         * modules/utimecmp (Depends-on): Likewise.
80170
80171 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
80172
80173         * lib/exclude.c: Include verify.h.
80174         (verify): Remove.  All callers changed to use verify.h's version.
80175         * lib/strtoimax.c: Likewise.
80176         * lib/utimecmp.c: Likewis.e
80177
80178         Sync from coreutils.
80179         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
80180         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
80181         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
80182         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
80183         bother returning ENOSYS if settimeofday or stime fails; just let
80184         them return whatever errno they want to return.
80185         * lib/utimens.c: Include unistd.h, for dup2.
80186         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
80187         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
80188
80189 2005-10-02  Jim Meyering  <jim@meyering.net>
80190
80191         Sync from coreutils.
80192         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
80193         from glibc-2.2.5 that fails for read-only files.
80194
80195 2005-10-02  Jim Meyering  <jim@meyering.net>
80196
80197         Sync from coreutils.
80198         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
80199         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
80200         `#if HAVE_CONFIG_H'.
80201         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
80202         Remove AT_FDCWD test.
80203         Do not consume the fd unless successful.
80204         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
80205         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
80206         block, so that we don't even try to compile it if settimeofday is
80207         available.  This works around a compilation failure on OSF1 V5.1,
80208         due to stime requiring a `long int*' while tv_sec is `int'.
80209
80210 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
80211
80212         Sync from coreutils.
80213         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
80214         against `yes', rather than just testing for nonempty.
80215
80216 2005-10-01  Simon Josefsson  <jas@extundo.com>
80217
80218         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
80219         and Darwin.
80220
80221         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
80222         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
80223         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
80224         freeaddrinfo and gai_strerror are declared by the POSIX headers.
80225         Check if struct addrinfo is declared.
80226
80227 2005-10-01  Simon Josefsson  <jas@extundo.com>
80228
80229         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
80230         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
80231         AI_* and EAI_* definitions.  Protect function declarations.
80232
80233 2005-10-01  Jim Meyering  <jim@meyering.net>
80234
80235         Sync from coreutils.
80236
80237         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
80238         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
80239         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
80240         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80241         in the inet and nsl libraries.  Required on Solaris 5.7.
80242
80243 2005-10-01  Jim Meyering  <jim@meyering.net>
80244
80245         Sync from coreutils.
80246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
80247         in the inet and nsl libraries.  Required on Solaris 5.7.
80248
80249 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
80250
80251         * lib/getdelim.c (getdelim): Remove unused variables.
80252
80253 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
80254
80255         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
80256         so that the code works even with ancient cpp.  Portability problem
80257         with GCC 2.7.2.1 reported by Thomas M.Ott.
80258
80259 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * modules/regex (Depends-on): Add strcase.
80262
80263         * modules/gethostname (Licence): Change from GPL to LGPL, since
80264         gethostname.c is a trivial implementation of a standard library
80265         function.
80266         * modules/poll (License): Change from GPL to LGPL, since it's
80267         derived from LGPL code.
80268
80269 2005-09-27  Jim Meyering  <jim@meyering.net>
80270
80271         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
80272         HAVE_CONFIG_H.
80273
80274         * lib/intprops.h (signed_type_or_expr__): Define.
80275         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
80276         for unsigned types.
80277
80278 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
80279
80280         * lib/verify.h (verify_expr): Remove, replacing with:
80281         (verify_true): New macro that returns true instead of void.
80282         (verify_type__): Remove.
80283         (verify): Use verify_true rather than verify_type__.
80284
80285 2005-09-26  Bruno Haible  <bruno@clisp.org>
80286
80287         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
80288         is necessary.
80289         (lib_SOURCES): Remove mbchar.c.
80290         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
80291         (Files): Add m4/mbrtowc.m4.
80292         * modules/mbiter: Likewise.
80293         * modules/mbuiter: Likewise.
80294
80295 2005-09-26  Bruno Haible  <bruno@clisp.org>
80296
80297         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
80298         compile mbchar.c if they are not both present.
80299         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
80300         * m4/mbiter.m4 (gl_MBITER): Likewise.
80301         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
80302         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
80303         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
80304
80305 2005-09-25  Jim Meyering  <jim@meyering.net>
80306
80307         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
80308         also uses socklen_t.
80309
80310 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/utimens.c (ENOSYS): Define if not already defined.
80313         (futimens): Support having a null PATH if the file descriptor
80314         is nonnegative.
80315
80316         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
80317         Remove.
80318         (__attribute): Define to empty unless GCC 3.1 or later.
80319         This works around a core dump on OpenBSD 3.4, which has GCC
80320         2.95.3, which dumps core when given __attribute__(()).  It also
80321         simplifies other tests, since we really don't want to bother with
80322         worrying about which ancient version of GCC supported what.
80323         Original problem reported by Yoann Vandoorselaere, with part of
80324         the fix suggested by Derek Price.
80325
80326 2005-09-24  Jim Meyering  <jim@meyering.net>
80327
80328         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
80329         so we can once again use a positive bitfield width of 1 -- now we
80330         don't have to explain why we were using a bitfield width of 2.
80331
80332 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80333
80334         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
80335         and similarly for the other external symbols.  Problem reported
80336         by James Gallager.
80337
80338         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
80339         bug reported by Jim Meyering.
80340
80341         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
80342         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
80343         not needed, since socklen is a prerequisite module.
80344
80345 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
80348         Problem reported by Eric Blake.
80349         (getaddrinfo): Initialize se so that it's not garbage.
80350         Redo internal storage allocation so that it doesn't make unportable
80351         assumptions about alignment.
80352         Fix a memory leak.
80353
80354         * lib/utimens.c (futimens): Use futimesat if available.
80355         Prefer it to futimes since it doesn't have the futimes bug.
80356
80357         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
80358         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
80359         Instead, declare a function that returns a pointer to an array,
80360         and use verify_type__ to declare the size of the array.
80361         Problem and germ of a solution reported by Bruno Haible.
80362         (verify_type__): Use 2, not 1, for bitfield size, to avoid
80363         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
80364
80365 2005-09-23  Jim Meyering  <jim@meyering.net>
80366
80367         Sync from coreutils.
80368         Correct build failure (socklen_t not defined) on at least
80369         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
80370         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
80371
80372 2005-09-23  Jim Meyering  <jim@meyering.net>
80373
80374         * modules/getaddrinfo (Depends-on): Add socklen.
80375
80376 2005-09-23  Bruno Haible  <bruno@clisp.org>
80377
80378         * tests/test-verify.c: New file.
80379
80380 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80381
80382         Sync from coreutils.
80383
80384         * modules/argmatch (Depends-on): Add verify.
80385         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
80386         unistd-safer.
80387         * modules/save-cwd (Depends-on): Likewise.
80388
80389         * modules/openat (Files): Add lib/openat-die.c.
80390         (Depends-on): Remove error, exitfail.
80391         Add dirname.
80392
80393         * modules/verify: New file.
80394         * MODULES.html.sh (Diagnostics <assert.h>): New section,
80395         with "verify" module.
80396
80397 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         Sync from coreutils.
80400
80401         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
80402         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
80403         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
80404         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
80405         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
80406         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
80407         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
80408         Don't bother checking for string.h, stdlib.h, unistd.h.
80409         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
80410         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
80411         module's job.
80412         * m4/jm-macros.m4 (gl_MACROS): Likewise.
80413         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
80414
80415         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
80416         (gl_GETDATE): Use it.
80417
80418         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
80419
80420 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80421
80422         Sync from coreutils.
80423
80424         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
80425         stat-time.h.
80426         * lib/argmatch.h: Include verify.h
80427         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
80428         (ARGMATCH_ASSERT): Remove; unused.
80429         * lib/canonicalize.c: Assume STDC_HEADERS.
80430         * lib/exclude.c: Include "strcase.h".
80431         * lib/regex_internal.h [!defined _LIBC]: Likewise.
80432         * lib/getusershell.c: Include stdio--.h rather than stdio.h
80433         and stdio-safer.h.
80434         (getusershell): Call fopen, not fopen_safer.
80435         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
80436         Do not include unistd-safer.h.
80437         (save_cwd): Don't call fd_safer; no longer needed
80438         now that we include fcntl--.h.
80439
80440         * lib/getdate.y (relative_time): New type.
80441         (RELATIVE_TIME_0): New constant.
80442         (parser_control): Use relative_time instead of doing it ourselves.
80443         (%union): Add new relative_time rel member.
80444         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
80445         Now typeless.
80446         (relunit, relunit_snumber): Now of type rel.
80447         (zone, rel, relunit, get_date): Adjust to above changes.
80448
80449         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
80450         Do not include unistd-safer.h.
80451         (getloadavg): Don't call fd_safer; no longer needed
80452         now that we include fcntl--.h.
80453
80454         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
80455         (make_dir_parents): Treat ENOSYS like EEXIST.
80456
80457         Improve quality of diagnostics on restore_cwd failure.
80458         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
80459         (make_dir_parents): Last arg is now int * (for errno), not bool *.
80460         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
80461         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
80462         each time through the loop.  Do not diagnose restore_cwd failure;
80463         that is the caller's job (and perhaps the caller does not care).
80464
80465         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
80466         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
80467         If the file already exists but is not a directory, don't bother
80468         to try to make its parents.
80469         Close potential file descriptor leak if we can't chdir("/") (!).
80470         Don't always return true if chdir($PWD) fails; return true only
80471         if the requested action was done successfully (except for the
80472         chdir($PWD)).
80473         Don't log final directory unless we actually made it.
80474         Refactor to avoid duplicate code to fix up permissions.
80475         Don't attempt to fix up parent permissions if chdir($PWD) fails.
80476
80477         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
80478         to make it a bit faster and (I hope) clearer.
80479         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
80480         Fix bug in formats like %2N.
80481
80482         * lib/verify.h: New file.
80483
80484 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
80485
80486         Sync from coreutils.
80487         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
80488
80489 2005-09-22  Jim Meyering  <jim@meyering.net>
80490
80491         Sync from coreutils.
80492
80493         * m4/lstat.m4 (gl_FUNC_LSTAT):
80494         Use AC_LIBSOURCES to require lstat.c and lstat.h.
80495         Remove obsolete comment.
80496         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
80497         * m4/xstrtod.m4: Likewise.
80498
80499         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
80500
80501 2005-09-22  Jim Meyering  <jim@meyering.net>
80502
80503         Sync from coreutils.
80504
80505         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
80506
80507         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
80508         the .tm_year member, since otherwise gcc-4.0 would now warn about
80509         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
80510
80511         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
80512         order to avoid an unsuppressible warning from gcc on 64-bit systems.
80513
80514         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
80515         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
80516         when run in a time zone for which daylight savings time is in effect
80517         for the starting date.
80518
80519         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
80520         stop us from restricting permissions of just-created absolute-named
80521         directories.
80522         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
80523         to restore initial working directory.
80524         * lib/mkdir-p.c (make_dir_parents): New parameter:
80525         different_working_dir, to tell caller if/when we change the working
80526         directory and are unable to return to the initial one.
80527         * lib/mkdir-p.h (make_dir_parents): Update prototype.
80528         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
80529         `return false'.  This fixes a bug introduced on 2004-07-30.
80530
80531         * lib/openat.c (fdopendir): Be sure to close the supplied
80532         file descriptor before returning.  This makes our replacement
80533         implementation a little closer to Solaris's, where fdopendir
80534         ties the file descriptor to the returned DIR* pointer.
80535         * lib/openat.c (unlinkat): New function.
80536         * lib/openat.h (unlinkat): Add prototype.
80537         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
80538         (openat_restore_fail): Rename from openat_restore_die.
80539         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
80540
80541         Provide an alternative to exiting immediately upon save_cwd or
80542         restore_cwd failure.  Now, an application can arrange e.g.,
80543         to perform a longjump in that case.
80544         * lib/openat.c: Include dirname.h.
80545         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
80546         (rpl_openat, fdopendir, fstatat): Call openat_save_die
80547         and openat_restore_die rather than calling error directly.
80548         Don't include "error.h" or "exitfail.h"; they're no longer needed.
80549
80550         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
80551         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
80552         define.
80553
80554         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
80555         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
80556                             int utc, int nanoseconds);
80557         Background:
80558         date should not have to allocate a megabyte of virtual memory to
80559         handle a format argument like +%1048575T.  When implemented with
80560         strftime, it must allocate such a buffer, use strftime to fill it
80561         in, print it, then free it.
80562         With fprintftime, it simply prints everything and exits.
80563         With no need for memory allocation, that's one fewer way to fail.
80564         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
80565         optional field width, not before, so we accept %9:z, not %:9z.
80566         (my_strftime): Be sure to use L_('x') for literals.
80567
80568         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
80569         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
80570         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
80571         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
80572         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
80573         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
80574         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
80575         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
80576         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
80577         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
80578         * lib/xgethostname.c, lib/xreadlink.c:
80579         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
80580
80581         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
80582         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
80583         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
80584         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80585         and don't include <sys/file.h>).
80586
80587 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
80588
80589         Sync from coreutils.
80590
80591         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
80592         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
80593         [!LDAV_DONE]: Avoid unused variable warning.
80594
80595 2005-09-21  Bruno Haible  <bruno@clisp.org>
80596
80597         * lib/unicodeio.h (unicode_to_mb): New declaration.
80598
80599 2005-09-20  Derek Price  <derek@ximbiot.com>
80600
80601         * lib/getaddrinfo.c: Don't include <netdb.h> included from
80602         getaddrinfo.h.
80603
80604 2005-09-20  Bruno Haible  <bruno@clisp.org>
80605
80606         * gnulib-tool: Remove trailing slashes from the values specified for
80607         --source-base, --m4-base, --tests-base, --aux-dir.
80608         Suggested by Simon Josefsson <jas@extundo.com>.
80609
80610 2005-09-20  Bruno Haible  <bruno@clisp.org>
80611
80612         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
80613         func_modules_to_filelist, func_import, func_create_testdir): Make all
80614         sorting results locale-independent, so that gnulib-cache.m4 doesn't
80615         change when gnulib-tool is invoked in a different locale.
80616
80617 2005-09-19  Simon Josefsson  <jas@extundo.com>
80618
80619         * m4/socklen.m4: Fix typo.
80620
80621 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80622
80623         Use a consistent style for including <config.h>.
80624         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
80625         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
80626         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
80627         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
80628         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
80629         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
80630         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
80631         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
80632         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
80633         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
80634         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
80635         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
80636         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
80637         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
80638         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
80639         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
80640         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
80641         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
80642         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
80643         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
80644         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
80645         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
80646         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
80647         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
80648         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
80649         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
80650         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
80651         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
80652         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
80653         lib/xstrtoumax.c, lib/yesno.c:
80654         Standardize inclusion of config.h.
80655         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
80656         lib/inttostr.h:  Removed inclusion of config.h from header files.
80657         * lib/inttostr.c:  Adjusted in-tree users.
80658         * lib/timespec.h: Remove superfluous warning to include config.h.
80659         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
80660         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
80661         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
80662         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
80663         config.h with HAVE_CONFIG_H.
80664
80665 2005-09-19  Jim Meyering  <jim@meyering.net>
80666
80667         * modules/pathmax (License): Change to LGPL.
80668
80669 2005-09-19  Derek Price  <derek@ximbiot.com>
80670
80671         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
80672
80673 2005-09-19  Bruno Haible  <bruno@clisp.org>
80674
80675         * gnulib-tool (import): Provide default for --tests-base.
80676
80677 2005-09-19  Bruno Haible  <bruno@clisp.org>
80678
80679         * doc/quote.texi: New file, extracted from gnulib.texi.
80680         * doc/ctime.texi: New file, extracted from gnulib.texi.
80681         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
80682         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
80683         * doc/gnulib.texi: Include them.
80684
80685 2005-09-18  Bruno Haible  <bruno@clisp.org>
80686
80687         Portability fix.
80688         * gnulib-tool (func_readlink): New function.
80689         (func_ln_if_changed): Use it.
80690
80691 2005-09-18  Bruno Haible  <bruno@clisp.org>
80692
80693         * gnulib-tool: Support --with-tests also with --import.
80694         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
80695         (func_import): Use variables $testsbase and $inctests. Emit a
80696         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
80697         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
80698         SUBDIRS += $testsdir.
80699         (func_create_testdir): Update.
80700
80701 2005-09-18  Bruno Haible  <bruno@clisp.org>
80702
80703         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
80704         instead of $dry_run.
80705         (func_cp_if_changed, func_mv_if_changed): Remove functions.
80706         (func_ln_if_changed): Don't handle dry-run here.
80707         (func_import): In dry-run mode, detect more precisely which actions
80708         would be performed, and don't use "...ing" verbs.
80709
80710 2005-09-18  Bruno Haible  <bruno@clisp.org>
80711
80712         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
80713         (func_import): Use join on two temporary files instead of three nested
80714         loops, in order to determine which files are new or old.
80715
80716 2005-09-18  Bruno Haible  <bruno@clisp.org>
80717
80718         * gnulib-tool (func_import): Comment out code that spits out the
80719         new files with --dry-run.
80720
80721 2005-09-18  Bruno Haible  <bruno@clisp.org>
80722
80723         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
80724
80725 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80726
80727         * lib/stat-time.h: New file.
80728         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
80729         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
80730         in a different way.
80731         (timespec_cmp): New function.
80732         * lib/utimecmp.c: Include stat-time.h.
80733         (SYSCALL_RESOLUTION): Depend on whether various struct stat
80734         members exist, not on the obsolescent ST_MTIM_NSEC.
80735         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
80736
80737 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
80740
80741 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
80742
80743         * MODULES.html.sh (File system functions): Add stat-time.
80744         * modules/stat-time: New file.
80745         * modules/timespec (Files): Remove m4/st_mtim.m4; this
80746         is now done in a different way, by the stat-time module.
80747         * modules/utimecmp (Depends-on): Add stat-time.
80748
80749 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
80750
80751         * m4/st_mtim.m4: Remove.  Superseded by...
80752         * m4/stat-time.m4: New file.
80753         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
80754         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
80755
80756 2005-09-15  Derek Price  <derek@ximbiot.com>
80757
80758         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
80759
80760 2005-09-15  Derek Price  <derek@ximbiot.com>
80761
80762         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
80763         * lib/regex_internal.c: Ditto, using this...
80764         (__GNUC_PREREQ): ...new macro.
80765         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
80766         using...
80767         (__GNUC_PREREQ): ...this new macro.
80768
80769         * lib/strstr.h: Include string.h. Define strstr as a macro here.
80770
80771 2005-09-15  Derek Price  <derek@ximbiot.com>
80772             Paul Eggert  <eggert@cs.ucla.edu>
80773
80774         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
80775         changes, consolidating in...
80776         * lib/regex_internal.h: ...this file.
80777
80778 2005-09-13  Jim Meyering  <jim@meyering.net>
80779
80780         * lib/canon-host.c: Filter through gnu indent and reword comments
80781         slightly.
80782         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
80783
80784 2005-09-13  Derek Price  <derek@ximbiot.com>
80785
80786         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
80787         failure.
80788         Reported by Jim Meyering  <jim@meyering.net>.
80789
80790 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80791
80792         * lib/base64.c: Typo.
80793         (base64_encode): Put b64str in initialized data section.
80794
80795 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
80796
80797         Merge glibc and coreutils changes into gnulib, plus a few
80798         extra fixes.
80799         * lib/md5.c: Use #error rather than a string.
80800         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
80801         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
80802         (__attribute__): Define to empty for non recent-GCC.
80803         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
80804         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
80805         Renamed from their non-__ counterparts, with new macros replacing
80806         them if not _LIBC.  Add __THROW attribute.
80807         (rol): Remove.
80808         (struct md5_ctx): Align buffer if using GCC.
80809         * lib/sha1.h (struct sha1_ctx): Likewise.
80810         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80811         The old name was backwards.
80812         (NOTSWAP): Remove; not used.
80813         (rol): New macro, moved here from md5.h.
80814         (sha1_process_block): Remove a FIXME that doesn't make sense.
80815
80816 2005-09-12  Derek Price  <derek@ximbiot.com>
80817
80818         Return usable errors from canon-host.
80819         * lib/canon-host.h: New file.
80820         * lib/canon-host.c (canon_host): Wrap...
80821         (canon_host_r): ...this new function, which now relies exclusively on
80822         getaddrinfo.
80823         (ch_strerror): New function.
80824         (last_cherror): New global.
80825         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80826         interface.
80827         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80828         void *.
80829         (freeaddrinfo): Free ai->ai_canonname when set.
80830
80831 2005-09-12  Derek Price  <derek@ximbiot.com>
80832
80833         Make canon-host require getaddrinfo.
80834         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80835         AC_LIBSOURCE canon-host.h.  Call...
80836         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80837         gl_GETADDRINFO.
80838         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80839
80840 2005-09-12  Derek Price  <derek@ximbiot.com>
80841
80842         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80843         LGPL.
80844         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80845
80846 2005-09-12  Derek Price  <derek@ximbiot.com>
80847
80848         * lib/gai_strerror.c: Include config.h when available.  Include
80849         getaddrinfo.h before other headers to test interface.
80850         Reported by Larry Jones <lawrence.jones@ugs.com>.
80851
80852 2005-09-12  Derek Price  <derek@ximbiot.com>
80853             Paul Eggert  <eggert@cs.ucla.edu>
80854
80855         * modules/glob (Files): Add glob-libc.h.
80856
80857 2005-09-12  Derek Price  <derek@ximbiot.com>
80858             Paul Eggert  <eggert@cs.ucla.edu>
80859
80860         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80861         glob_.h, glob-libc.h.
80862         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80863
80864 2005-09-12  Derek Price  <derek@ximbiot.com>
80865             Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80868         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80869         protecting things that should be done only in gnulib contexts.
80870         * lib/glob_.h: New file, containing only the glob things needed for
80871         gnulib.
80872         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80873         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80874         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80875         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80876         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80877         and to respect the namespace rules better.
80878
80879 2005-09-08  Simon Josefsson  <jas@extundo.com>
80880
80881         * modules/socklen: New file.
80882
80883 2005-09-08  Simon Josefsson  <jas@extundo.com>
80884
80885         * m4/socklen.m4: New file.
80886
80887 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80888
80889         * modules/utimens (Files): Add m4/utimbuf.m4, since
80890         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80891         Reported by Sergey Poznyakoff.
80892
80893 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80896         definitions, since that's the preferred style in glibc.
80897         Fix a minor spacing issue, and update copyright notice to match
80898         glibc's.
80899
80900 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80901
80902         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80903
80904 2005-09-06  Simon Josefsson  <jas@extundo.com>
80905
80906         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80907         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80908
80909 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80910
80911         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80912         warning.
80913
80914 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80915
80916         * config/srclist.txt: Add glibc bug 1302.
80917
80918 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80919
80920         Change bitset word type from unsigned int to unsigned long int,
80921         as this has better performance on typical 64-bit hosts.
80922         Port bitset code to hosts with unusual word sizes.
80923         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80924         (build_collating_symbol):
80925         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80926         argument is a bitset.  This is merely a style issue, but it makes
80927         it clearer that an entire array is expected.
80928         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80929         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80930         Port to the case where bitset_word is not the same as unsigned int.
80931         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80932         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80933         Likewise.
80934         * lib/regexec.c (check_dst_limits_calc_pos_1,
80935         check_subexp_matching_top):
80936         (build_trtable, group_nodes_into_DFAstates):
80937         Likewise.
80938         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80939         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80940         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80941         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80942         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80943         * lib/regcomp.c (optimize_subexps, lower_subexp):
80944         Work even if bitset_word has holes in its bitwise representation.
80945         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80946         * lib/regexec.c (check_dst_limits_calc_pos_1,
80947         check_subexp_matching_top):
80948         Likewise.
80949         * lib/regex_internal.c (re_string_reconstruct):
80950         Don't assume UCHAR_MAX == 255.
80951         * lib/regex_internal.h (bitset_set_all): Likewise.
80952         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80953         All uses changed.
80954         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80955         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80956         All uses changed.
80957         (BITSET_WORD_MAX): New macro.
80958         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80959         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80960         (bitset_empty, bitset_copy):
80961         Prefer sizeof (bitset) to multiplying it out ourselves.
80962         (bitset_not_merge): Remove; unused.
80963         (bitset_contain): Return bool, not unsigned int with one bit on.
80964         All callers changed.
80965         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80966         alignment than re_node_set; do this by defining a new internal
80967         type struct dests_alloc and using it to allocate memory.
80968
80969 2005-09-05  Bruno Haible  <bruno@clisp.org>
80970
80971         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80972         links.
80973
80974 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80975
80976         * modules/size_max (Makefile.am): Add size_max.h
80977
80978 2005-09-04  Derek Price  <derek@ximbiot.com>
80979
80980         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80981
80982 2005-09-03  Simon Josefsson  <jas@extundo.com>
80983
80984         * gnulib-tool: Fix typo.
80985
80986 2005-09-03  Simon Josefsson  <jas@extundo.com>
80987
80988         * config/srclist.txt: Add glibc bug 1293.
80989
80990 2005-09-03  Derek Price  <derek@ximbiot.com>
80991
80992         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80993         From Larry Jones <lawrence.jones@ugs.com>.
80994
80995 2005-09-02  Simon Josefsson  <jas@extundo.com>
80996
80997         * modules/socklen: New file.
80998
80999 2005-09-02  Simon Josefsson  <jas@extundo.com>
81000
81001         * modules/havelib: New module.
81002
81003         * modules/gettext, modules/iconv, modules/lock, modules/readline:
81004         Use havelib.
81005
81006 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81007
81008         Check for arithmetic overflow when calculating sizes, to prevent
81009         some buffer-overflow issues.  These patches are conservative, in the
81010         sense that when I couldn't determine whether an overflow was possible,
81011         I inserted a run-time check.
81012         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
81013         macros.
81014         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
81015         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
81016         (re_xnrealloc, re_x2nrealloc): New inline functions.
81017         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
81018         parse_bracket_exp):
81019         (build_equiv_class, build_charclass): Check for arithmetic overflow
81020         in size expression calculations.
81021         * lib/regex_internal.c (re_string_realloc_buffers):
81022         (build_wcs_upper_buffer, re_node_set_add_intersect):
81023         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
81024         (re_dfa_add_node, register_state): Likewise.
81025         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
81026         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
81027         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
81028         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
81029
81030 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
81031
81032         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81033         m4/ulonglong.m4.  Problem reported by Martin Lambers.
81034
81035 2005-09-02  Bruno Haible  <bruno@clisp.org>
81036
81037         Support for lib vs. lib64 distinction on biarch platforms.
81038         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
81039         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
81040         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
81041
81042 2005-09-02  Bruno Haible  <bruno@clisp.org>
81043
81044         * gnulib-tool (import): In the other first-use case, provide defaults
81045         as well.
81046
81047 2005-09-02  Bruno Haible  <bruno@clisp.org>
81048
81049         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
81050         patches not yet found in the latest gettext release.
81051
81052 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81053
81054         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
81055         to avoid a collision with bits/local_lim.h in glibc.
81056         All uses changed.  Problem reported by Dmitry V. Levin in
81057         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
81058
81059         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
81060         bugs in int versus size_t comparisons.
81061         (re_string_context_at): Fix bug where the code assumed that
81062         Idx is signed.
81063
81064         Use bool where appropriate.
81065         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
81066         All callers changed.
81067         (calc_eclosure_iter): Likewise, for ROOT arg.
81068         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
81069         (build_charclass_op): Likewise, for NON_MATCH arg.
81070         * lib/regex_internal.c (re_string_allocate, re_string_construct):
81071         (re_string_construct_common): Likewise, for ICASE arg.
81072         * lib/regexec.c (re_search_2_stub, re_search_stub):
81073         Likewise, for RET_LEN arg.
81074         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
81075         (set_regs): Likewise, for FL_BACKTRACK arg.
81076         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
81077         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
81078         (calc_eclosure_iter, parse_bracket_exp):
81079         Use bool for internal variables that are booleans.
81080         * lib/regexec.c (re_search_internal, check_matching,
81081         proceed_next_node):
81082         (set_regs, build_sifted_states, sift_states_bkref):
81083         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
81084         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81085         (find_collation_sequence_value):
81086         Likewise.
81087         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
81088         (re_node_set_compare):
81089         Return bool, not int. All callers changed.
81090         * lib/regexec.c (check_halt_node_context, check_dst_limits):
81091         (build_trtable, check_node_accept): Likewise.
81092         * lib/regex_internal.h: Include stdbool.h.
81093
81094         Fix bugs uncovered when converting to bool.
81095         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
81096         failure instead of charging ahead blindly.
81097         * lib/regex_internal.c (register_state): Likewise.
81098         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
81099         for freeing internal storage.
81100         (group_nodes_into_DFA_states): Use unsigned int, not int, for
81101         bitset pieces used as boolean, to avoid undefined behavior
81102         on hosts that do int overflow checking.
81103
81104 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
81105
81106         * config/srclist.txt: Add glibc bugs 1285-1287.
81107
81108 2005-09-01  Jim Meyering  <jim@meyering.net>
81109
81110         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
81111         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
81112         Require gl_STAT_MACROS, too.
81113
81114 2005-09-01  Bruno Haible  <bruno@clisp.org>
81115
81116         * gnulib-tool (import): In the first-use case, provide defaults.
81117
81118 2005-09-01  Bruno Haible  <bruno@clisp.org>
81119
81120         * gnulib-tool (func_import): Remove the .tmp files.
81121
81122 2005-09-01  Bruno Haible  <bruno@clisp.org>
81123
81124         * gnulib-tool (func_import): Fix handling of symbolic links.
81125
81126 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
81129         old glibc regex code mishandles strings longer than 2**31 bytes.
81130         This patch fixes this when the regex code is used in gnulib
81131         (i.e., outside glibc).
81132
81133         This patch should not affect the use of the regex code inside
81134         glibc.  No doubt this problem also needs to be handled for glibc
81135         as well, but the result will be an incompatible change to the
81136         glibc ABI, and the old ABI will have to be supported too.  That
81137         can be the the subject for another patch.
81138
81139         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
81140         governing whether the rest of this patch is active.  By default,
81141         the macro is disabled and the patch has no effect.
81142         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
81143         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
81144         (struct re_pattern_buffer, re_search, re_search_2, re_match):
81145         (re_match_2, re_set_registers): Use the new types.
81146         * lib/regex_internal.h (Idx, re_hashval_t): New types.
81147         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
81148         New macros.
81149         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
81150         (re_string_context_at, bin_tree_t, re_dfastate_t):
81151         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
81152         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
81153         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
81154         (re_string_char_size_at, re_string_wchar_at):
81155         (re_string_elem_size_at):
81156         Use the new types and macros to port to 64-bit hosts.
81157         Use unsigned types for internal values, so that the code
81158         mostly works even for arrays larger than SSIZE_MAX.
81159         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
81160         (search_duplicated_node, calc_eclosure_iter, fetch_number):
81161         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
81162         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
81163         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
81164         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
81165         (calc_inveclosure, parse_dup_op, build_range_exp):
81166         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
81167         (fetch_number, create_token_tree, mark_opt_subexp):
81168         Likewise.
81169         * lib/regex_internal.c (re_string_construct_common,
81170         create_ci_newstate):
81171         (create_cd_newstate, re_string_allocate, re_string_construct):
81172         (re_string_realloc_buffers, build_wcs_upper_buffer):
81173         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81174         (re_string_reconstruct, re_string_peek_byte_case):
81175         (re_string_fetch_byte_case, re_string_context_at):
81176         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81177         (re_node_set_init_copy, re_node_set_add_intersect):
81178         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81179         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81180         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81181         (re_acquire_state, re_acquire_state_context, register_state):
81182         Likewise.
81183         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
81184         search_cur_bkref_entry):
81185         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
81186         (re_search_internal, re_search_2_stub, re_search_stub)
81187         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
81188         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
81189         (update_cur_sifted_state, check_dst_limits):
81190         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81191         (check_subexp_limits, sift_states_bkref, merge_state_array):
81192         (check_subexp_matching_top, get_subexp, get_subexp_sub):
81193         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
81194         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81195         (expand_bkref_cache, check_node_accept_bytes):
81196         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
81197         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
81198         (acquire_init_state_context, check_halt_node_context):
81199         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
81200         (sift_states_backward, clean_state_log_if_needed):
81201         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
81202         (find_recover_state, transit_state_sb, transit_state_mb):
81203         (transit_state_bkref, build_trtable, match_ctx_clean):
81204         Likewise.
81205         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
81206         to work around an assumption that REG_MISSING is negative.
81207
81208         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
81209         (seek_collating_symbol_entry) [defined _LIBC]:
81210         (lookup_collation_sequence_value) [defined _LIBC]:
81211         (build_range_exp, build_collating_symbol) [defined _LIBC]:
81212         Use prototypes rather than old-style function definitions.
81213         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
81214         (transit_state_sb) [0]:
81215         (find_collation_sequence_value) [defined _LIBC]: Likewise.
81216
81217         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
81218         rm_eo.
81219
81220         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
81221         (optimize_subexps, lower_subexp):
81222         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
81223         since the signed shift might overflow.  Use 1u<<31 instead.
81224         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
81225         Likewise.
81226         * lib/regexec.c (check_dst_limits_calc_pos_1,
81227         check_subexp_matching_top): Likewise.
81228
81229         * lib/regcomp.c (optimize_subexps, lower_subexp):
81230         Use CHAR_BIT rather than 8, for clarity.
81231         * lib/regexec.c (check_dst_limits_calc_pos_1):
81232         (check_subexp_matching_top): Likewise.
81233         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
81234         have to worry about portability issues when shifting it left.
81235         Remove no-longer-needed test for table_size > 0.
81236         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
81237         in a word, as the resulting behavior is undefined.
81238         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
81239         in one case, a <= should have been an <, and in another case the
81240         whole test was missing.
81241         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
81242         the standard name CHAR_BIT.
81243         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
81244         this is not true on one's complement and signed-magnitude hosts.
81245
81246         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
81247         next_last_offset.
81248         (struct re_dfa_t): Remove unused member states_alloc.
81249         * lib/regcomp.c (init_dfa): Don't initialize unused members.
81250
81251 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81252
81253         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
81254         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
81255         and large-file glibc and in 32-bit large-file Solaris.
81256
81257 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81258
81259         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
81260         lengths fit in regoff_t; this isn't true if regoff_t is the same
81261         width as size_t.
81262         * lib/regex.c (re_search_internal): 5th arg is LAST_START
81263         (= START + RANGE) instead of RANGE.  This avoids overflow
81264         problems when regoff_t is the same width as size_t.
81265         All callers changed.
81266         (re_search_2_stub): Check for overflow when adding the
81267         sizes of the two strings.
81268         (re_search_stub): Check for overflow when adding START
81269         to RANGE; if it occurs, substitute the extreme value.
81270
81271 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
81272
81273         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
81274
81275 2005-08-31  Jim Meyering  <jim@meyering.net>
81276
81277         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
81278         a pointer-to-const.
81279         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
81280         (register_state): Likewise.
81281         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
81282         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
81283         (group_nodes_into_DFAstates): Likewise.
81284
81285 2005-08-31  Jim Meyering  <jim@meyering.net>
81286
81287         * check-module: Add a FIXME comment.
81288
81289 2005-08-31  Eric Blake  <ebb9@byu.net>
81290
81291         * modules/unistd-safer (Files): Add unistd--.h.
81292         * modules/stdio-safer (Files): Add stdio--.h.
81293
81294 2005-08-31  Derek Price  <derek@ximbiot.com>
81295
81296         * lib/getdelim.c (getdelim): Return EOF on EOF.
81297         Reported by Larry Jones <lawrence.jones@ugs.com>.
81298
81299 2005-08-31  Bruno Haible  <bruno@clisp.org>
81300
81301         Avoid unnecessary diffs in the generated lib/Makefile.am.
81302         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
81303         the generated files.
81304         (func_import): Don't set cmd.
81305
81306 2005-08-31  Bruno Haible  <bruno@clisp.org>
81307
81308         * lib/strstr.c: Include <stddef.h>, for NULL.
81309         * lib/strcasestr.c: Likewise.
81310         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81311
81312 2005-08-31  Bruno Haible  <bruno@clisp.org>
81313
81314         * gnulib-tool: New option --macro-prefix.
81315         (func_import): Use macro_prefix.
81316         (import): Handle option --macro-prefix.
81317
81318 2005-08-31  Bruno Haible  <bruno@clisp.org>
81319
81320         * gnulib-tool (import): Rename most ac_* variables to cached_*.
81321         Also use new variables cached_lgpl, cached_libtool.
81322
81323 2005-08-31  Bruno Haible  <bruno@clisp.org>
81324
81325         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
81326         always instantiating them.
81327
81328 2005-08-31  Bruno Haible  <bruno@clisp.org>
81329
81330         * gnulib-tool (func_import): Read the previous cached settings
81331         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
81332         earlier added by gnulib but are now dropped. Warn when a gnulib file
81333         overwrites a non-gnulib file.
81334
81335 2005-08-31  Bruno Haible  <bruno@clisp.org>
81336
81337         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
81338         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
81339         projects that don't keep autogenerated files in CVS. Put into
81340         actioncmd only the specified modules, not the transitive closure.
81341
81342 2005-08-31  Bruno Haible  <bruno@clisp.org>
81343
81344         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
81345         Create directories that shall be filled.
81346         (import): Don't look for gl_* macros in configure.ac. Recurse across
81347         all directories containing a gnulib-cache.m4 files, if meaningful.
81348
81349 2005-08-31  Bruno Haible  <bruno@clisp.org>
81350
81351         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
81352         (import): Set seen_libtool when we see gl_LIBTOOL.
81353
81354 2005-08-31  Bruno Haible  <bruno@clisp.org>
81355
81356         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
81357         declaration macro definitions from generated gnulib.m4.
81358
81359 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
81360
81361         * lib/iconvme.h: Add prototype for iconv_alloc.
81362
81363 2005-08-29  Simon Josefsson  <jas@extundo.com>
81364
81365         * lib/iconvme.c: Fix errno.
81366
81367 2005-08-29  Bruno Haible  <bruno@clisp.org>
81368
81369         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
81370         that it works when the directory contains spaces.
81371
81372 2005-08-29  Bruno Haible  <bruno@clisp.org>
81373
81374         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
81375
81376 2005-08-29  Bruno Haible  <bruno@clisp.org>
81377
81378         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
81379         Emit more advice.
81380
81381 2005-08-29  Bruno Haible  <bruno@clisp.org>
81382         and Stepan Kasal  <kasal@ucw.cz>
81383
81384         * check-module: If more parameters are given, check each of them
81385         separately; add more exceptions, as noted by Jim Meyering.
81386         (check_module): New procedure.
81387         (%exempt_header): Now contains all exceptions.
81388
81389 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
81390
81391         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
81392
81393 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81394
81395         * lib/iconvme.c: Split iconv_string into iconv_alloc.
81396
81397 2005-08-28  Bruno Haible  <bruno@clisp.org>
81398
81399         * m4/gnulib-tool.m4: New file.
81400
81401 2005-08-27  Jim Meyering  <jim@meyering.net>
81402
81403         * modules/unistd-safer (Files): Add pipe-safer.c.
81404         * modules/fcntl-safer (Files): Add creat-safer.c.
81405
81406 2005-08-27  Jim Meyering  <jim@meyering.net>
81407
81408         * m4/stdlib-safer.m4: New file.  From coreutils.
81409         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
81410         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
81411         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
81412         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
81413         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
81414
81415 2005-08-27  Jim Meyering  <jim@meyering.net>
81416
81417         * lib/fopen-safer.c: Merge minor changes from coreutils.
81418         * lib/dup-safer.c: Likewise.
81419         * lib/fd-safer.c: Likewise.
81420
81421         Merge from coreutils.
81422         * lib/stdio--.h: New file.
81423         * lib/stdlib--.h: New file.
81424         * lib/mkstemp-safer.c: New file.
81425
81426         GNU tar needs these.
81427         * lib/pipe-safer.c: New file.
81428         * lib/creat-safer.c: New file.
81429         * lib/fcntl--.h (creat): Define to creat_safer.
81430         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
81431         * lib/unistd--.h (pipe): Define to pipe_safer.
81432         * lib/unistd-safer.h: Declare pipe_safer.
81433
81434 2005-08-26  Simon Josefsson  <jas@extundo.com>
81435
81436         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
81437         Haible <bruno@clisp.org>.
81438
81439 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * lib/regex_internal.h: Remove all references to
81442         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
81443         or better.
81444         (bitset_not, bitset_merge, bitset_not_merge):
81445         (bitset_mask, re_string_allocate, re_string_construct):
81446         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
81447         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
81448         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
81449         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
81450         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81451         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81452         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
81453         (re_acquire_state_context):
81454         Remove unnecessary forward decls.
81455         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
81456         Put __attribute at function definition,
81457         now that the function decl has been removed.
81458         * lib/regex_internal.c (re_string_peek_byte_case):
81459         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
81460         Likewise.
81461
81462 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
81463
81464         * m4/regex.m4: Add AC_PREREQ(2.50).
81465         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
81466
81467 2005-08-25  Simon Josefsson  <jas@extundo.com>
81468
81469         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
81470         __fsetlocking.
81471
81472 2005-08-25  Simon Josefsson  <jas@extundo.com>
81473
81474         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
81475         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
81476         GLIBC specific code.
81477
81478 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81479
81480         Make regex safe for g++.  This fixes one real bug (an "err"
81481         that should have been "*err").  g++ problem reported by
81482         Sam Steingold.
81483         * lib/regex_internal.h (re_calloc): New macro, consistent with
81484         re_malloc etc.  All callers of calloc changed to use re_calloc.
81485         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
81486         not int.  All callers changed.
81487         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
81488         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
81489         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
81490         (find_recover_state): Change "err" to "*err"; this fixes what
81491         appears to be a real bug.
81492         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
81493         versus int.
81494
81495 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81496
81497         * modules/regex (Depends-on): Add malloc, since the code
81498         assumes that !malloc(0) means failure.
81499
81500 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81501
81502         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
81503
81504         alloca modernization/simplification for regex.
81505         * lib/regex.c: Remove portability cruft for alloca.  This no longer
81506         needs to be at the start of the file, and can be moved into
81507         regex_internal.h and simplified.
81508         * lib/regex_internal.h: Include <alloca.h>.
81509         (__libc_use_alloca) [!defined _LIBC]: New macro.
81510         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
81511         now works outside glibc.
81512
81513 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
81514
81515         * config/srclist.txt: Add glibc bugs 1241, 1245.
81516
81517 2005-08-25  Jim Meyering  <jim@meyering.net>
81518
81519         * lib/open-safer.c: Include <config.h>.
81520         Otherwise, we'd lose LARGEFILE support in any file using
81521         e.g. "fcntl--.h"
81522
81523 2005-08-25  Bruno Haible  <bruno@clisp.org>
81524
81525         * m4/minmax.m4: Require autoconf 2.52.
81526         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
81527         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
81528         alternatives of translit over the alphabet.
81529         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
81530
81531 2005-08-24  Simon Josefsson  <jas@extundo.com>
81532
81533         * tests/test-getpass.c: New file.
81534
81535 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81536
81537         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
81538         for GNU regex features.
81539
81540 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
81543         * lib/regex.h (regerror): Likewise.
81544
81545         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
81546         requires this.  (The code never needed it.)
81547
81548         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
81549         All uses of recently-renamed identifiers changed to use the new,
81550         POSIX-compliant names.  The code will build and run just fine
81551         without these changes, but it's better to eat our own dog food
81552         and use the standard-conforming names.
81553
81554         * lib/regex.h: Fix a multitude of POSIX name space violations.
81555         These changes have an effect only for programs that define
81556         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
81557         do not change anything for programs compiled in the normal way.
81558         Also, there is no effect on the ABI.
81559
81560         (_REGEX_SOURCE): New macro.
81561         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
81562         defined and _GNU_SOURCE is not; this fixes a name space violation.
81563
81564         Rename the following macros to obey POSIX requirements.
81565         The old names are still visible as macros if _REGEX_SOURCE is defined.
81566         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
81567         RE_BACKSLASH_ESCAPE_IN_LISTS.
81568         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
81569         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
81570         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
81571         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
81572         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
81573         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
81574         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
81575         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
81576         (REG_INTERVALS): renamed from RE_INTERVALS.
81577         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
81578         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
81579         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
81580         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
81581         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
81582         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
81583         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
81584         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
81585         RE_UNMATCHED_RIGHT_PAREN_ORD.
81586         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
81587         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
81588         (REG_DEBUG): renamed from RE_DEBUG.
81589         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
81590         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
81591         unusual, since we can't clash with the POSIX REG_ICASE.
81592         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
81593         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
81594         (REG_NO_SUB): renamed from RE_NO_SUB.
81595         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
81596         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
81597         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
81598         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
81599         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
81600         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
81601         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
81602         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
81603         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
81604         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
81605         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
81606         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
81607         RE_SYNTAX_POSIX_MINIMAL_BASIC.
81608         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
81609         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
81610         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
81611         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
81612         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
81613         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
81614         (REG_FIXED): Renamed from REGS_FIXED.
81615         (REG_NREGS): Renamed from RE_NREGS.
81616
81617         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
81618         of other REG_* macros, since POSIX says the user is allowed to
81619         #undef these macros selectively.
81620
81621         (reg_errcode_t): Update comment stating what other tables need
81622         to be consistent.
81623
81624         Rename the following enum values to obey POSIX requirements.
81625         The old names are still visible as macros.
81626         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
81627         is not defined, since GNU is supposed to be a superset of POSIX as
81628         much as possible, and since we want reg_errcode_t to be a signed
81629         type for implementation consistency.
81630         (_REG_NOERROR): Renamed from REG_NOERROR.
81631         (_REG_NOMATCH): Renamed from REG_NOMATCH.
81632         (_REG_BADPAT): Renamed from REG_BADPAT.
81633         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
81634         (_REG_ECTYPE): Renamed from REG_ECTYPE.
81635         (_REG_EESCAPE): Renamed from REG_EESCAPE.
81636         (_REG_ESUBREG): Renamed from REG_ESUBREG.
81637         (_REG_EBRACK): Renamed from REG_EBRACK.
81638         (_REG_EPAREN): Renamed from REG_EPAREN.
81639         (_REG_EBRACE): Renamed from REG_EBRACE.
81640         (_REG_BADBR): Renamed from REG_BADBR.
81641         (_REG_ERANGE): Renamed from REG_ERANGE.
81642         (_REG_ESPACE): Renamed from REG_ESPACE.
81643         (_REG_BADRPT): Renamed from REG_BADRPT.
81644         (_REG_EEND): Renamed from REG_EEND.
81645         (_REG_ESIZE): Renamed from REG_ESIZE.
81646         (_REG_ERPAREN): Renamed from REG_ERPAREN.
81647         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
81648         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
81649         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
81650         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
81651
81652         (_REG_RE_NAME, _REG_RM_NAME): New macros.
81653         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
81654         changed.  But support the old name if the new one is not defined
81655         and if _REGEX_SOURCE.
81656
81657         Change the following member names in struct re_pattern_buffer.
81658         The old names are still supported if !_REGEX_SOURCE.
81659         The new names are always supported, regardless of _REGEX_SOURCE.
81660         (re_buffer): Renamed from buffer.
81661         (re_allocated): Renamed from allocated.
81662         (re_used): Renamed from used.
81663         (re_syntax): Renamed from syntax.
81664         (re_fastmap): Renamed from fastmap.
81665         (re_translate): Renamed from translate.
81666         (re_can_be_null): Renamed from can_be_null.
81667         (re_regs_allocated): Renamed from regs_allocated.
81668         (re_fastmap_accurate): Renamed from fastmap_accurate.
81669         (re_no_sub): Renamed from no_sub.
81670         (re_not_bol): Renamed from not_bol.
81671         (re_not_eol): Renamed from not_eol.
81672         (re_newline_anchor): Renamed from newline_anchor.
81673
81674         Change the following member names in struct re_registers.
81675         The old names are still supported if !_REGEX_SOURCE.
81676         The new names are always supported, regardless of _REGEX_SOURCE.
81677         (rm_num_regs): Renamed from num_regs.
81678         (rm_start): Renamed from start.
81679         (rm_end): Renamed from end.
81680
81681         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
81682         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
81683         Prepend __ to parameter names.
81684
81685         Undo yesterday's changes.
81686
81687 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
81688
81689         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
81690         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
81691         lib/regex.c.
81692
81693 2005-08-24  Jim Meyering  <jim@meyering.net>
81694
81695         Sync from coreutils.
81696         * m4/fcntl-safer.m4: New file.
81697
81698         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
81699         and object files for this module.
81700
81701 2005-08-24  Jim Meyering  <jim@meyering.net>
81702
81703         Sync from coreutils.
81704         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
81705
81706 2005-08-24  Jim Meyering  <jim@meyering.net>
81707
81708         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
81709         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
81710
81711 2005-08-24  Jim Meyering  <jim@meyering.net>
81712
81713         * modules/fcntl-safer: New module.
81714         * modules/fts (Depends-on): Add fcntl-safer.
81715         * MODULES.html.sh (File descriptor based Input/Output):
81716         Add fcntl-safer.
81717
81718 2005-08-24  Bruno Haible  <bruno@clisp.org>
81719
81720         Support for unit test modules.
81721         * modules/README: Mention tests modules.
81722         * modules/TEMPLATE-TESTS: New file.
81723         * gnulib-tool: New options --extract-tests-module, --with-tests and
81724         --tests-base (unused for the moment).
81725         (testsbase, inctests): New variables.
81726         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
81727         (func_verify_module): Exclude TEMPLATE-TESTS.
81728         (func_verify_nontests_module, func_verify_tests_module): New functions.
81729         (func_get_dependencies): Add implicit dependency for tests modules.
81730         (func_get_tests_module): New function.
81731         (func_modules_transitive_closure): When --with-tests was specified,
81732         include the unit tests as well, unless explicitly avoided.
81733         (func_emit_lib_Makefile_am): Ignore the tests modules here.
81734         (func_emit_tests_Makefile_am): New function.
81735         (func_create_testdir): When --with-tests was specified, emit a
81736         tests/ directory.
81737         * MODULES.html.sh (Future developments): Update.
81738
81739 2005-08-24  Bruno Haible  <bruno@clisp.org>
81740
81741         * modules/tls-tests: New file.
81742         * tests/test-tls.c: New file, from GNU gettext.
81743
81744 2005-08-24  Bruno Haible  <bruno@clisp.org>
81745
81746         * modules/lock-tests: New file.
81747         * tests/test-lock.c: New file, from GNU gettext.
81748
81749 2005-08-24  Bruno Haible  <bruno@clisp.org>
81750
81751         * lib/lock.h: Add multiple inclusion guard.
81752         * lib/tls.h: Add multiple inclusion guard.
81753
81754 2005-08-24  Bruno Haible  <bruno@clisp.org>
81755
81756         * gnulib-tool: Add support for the --aux-dir option to
81757         --create-testdir, --create-megatestdir, --test, --megatest.
81758         (func_create_testdir, func_create_megatestdir): Optionally emit a
81759         AC_CONFIG_AUX_DIR directive.
81760         (create-testdir, create-megatestdir, test, megatest): Provide a
81761         default value for $auxdir.
81762
81763 2005-08-24  Bruno Haible  <bruno@clisp.org>
81764
81765         * gnulib-tool (import): Use compound statement instead of subshell
81766         where possible.
81767
81768 2005-08-24  Bruno Haible  <bruno@clisp.org>
81769
81770         * gnulib-tool (import): Change --aux-dir default to "build-aux".
81771
81772 2005-08-24  Bruno Haible  <bruno@clisp.org>
81773
81774         * gnulib-tool (func_version): Update.
81775
81776 2005-08-24  Bruno Haible  <bruno@clisp.org>
81777
81778         * gnulib-tool (func_import, func_create_testdir,
81779         func_create_megatestdir): Quote all autoconf macro arguments.
81780
81781 2005-08-24  Bruno Haible  <bruno@clisp.org>
81782
81783         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
81784         option --force, because --force causes the aclocal.m4 of each
81785         subdirectory to be newer than the corresponding config.h.in.
81786
81787 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
81790         All contents moved to gl_REGEX.
81791         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
81792         assume that it does.
81793
81794 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * lib/regex.h (REG_NOSYS)
81797         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
81798         Define, since POSIX requires it as of 2001.
81799         (_REG_ENOSYS)
81800         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
81801         New private symbol, used to keep the enum signed in all cases.
81802         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
81803         Youngman in
81804         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
81805
81806         * lib/regex_internal.c (re_string_skip_chars, register_state):
81807         (calc_state_hash):
81808         Remove forward decls; no longer needed now that we use prototypes.
81809         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81810         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81811         (clean_state_log_if_needed): Likewise.
81812
81813 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81814
81815         * config/srclist.txt: Add glibc bugs 1231-1233.
81816
81817 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81818
81819         Fix problems reported by Sam Steingold in
81820         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81821         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81822         assumed that reg_errcode_t is a signed type, which is not
81823         necessarily true if _XOPEN_SOURCE is not defined.
81824         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81825         since some compilers warn about it otherwise.
81826
81827 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81830         (init_word_char, create_initial_state, duplicate_node_closure):
81831         (fetch_token, peek_token_bracket, build_range_exp):
81832         (build_collating_symbol): Remove forward decls; no longer needed
81833         now that we use prototypes.
81834
81835         * lib/regcomp.c:
81836         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81837         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81838         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81839         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81840         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81841         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81842         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81843         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81844         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81845         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81846         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81847         (build_charclass, build_charclass_op, fetch_number, create_tree):
81848         (create_token_tree, mark_opt_subexp, duplicate_tree):
81849         Use prototypes rather than old-style definitions.
81850
81851         * lib/regex_internal.c:
81852         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81853         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81854         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81855         (re_string_reconstruct, re_string_peek_byte_case):
81856         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81857         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81858         (re_node_set_init_copy, re_node_set_add_intersect):
81859         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81860         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81861         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81862         (re_acquire_state, re_acquire_state_context, register_state):
81863         (create_ci_newstate, create_cd_newstate, free_state):
81864         Likewise.
81865         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81866         re_search_2):
81867         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81868         (re_search_internal, prune_impossible_nodes):
81869         (acquire_init_state_context, check_matching, static):
81870         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81871         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81872         (update_regs, sift_states_backward, build_sifted_states):
81873         (clean_state_log_if_needed, merge_state_array):
81874         (update_cur_sifted_state, add_epsilon_src_nodes):
81875         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81876         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81877         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81878         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81879         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81880         (check_arrival, check_arrival_add_next_nodes):
81881         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81882         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81883         (check_node_accept_bytes, check_node_accept, extend_buffers):
81884         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81885         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81886         (sift_ctx_init):
81887         Likewise.
81888
81889         * lib/regex_internal.h:
81890         (re_string_allocate, re_string_construct, re_string_reconstruct):
81891         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81892         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81893         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81894         (re_string_context_at, re_string_peek_byte_case):
81895         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81896         is defined, since we now use prototypes always.
81897
81898         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81899         C89 or better.  All uses removed.
81900
81901 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81902
81903         * config/srclist.txt: Add glibc bugs 1220-1227.
81904
81905 2005-08-20  Jim Meyering  <jim@meyering.net>
81906
81907         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81908         of unused local, dfa.
81909
81910 2005-08-20  Bruno Haible  <bruno@clisp.org>
81911
81912         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81913
81914 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81917         (re_node_set_insert_last, re_dfa_add_node):
81918         Rename local variables to avoid GCC shadowing warnings.
81919
81920 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81921
81922         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81923         [defined lint]: Suppress bogus uninitialized-variable warnings.
81924
81925         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81926         and let the caller return REG_ESPACE if out of space.  This
81927         removes an uninitialied-variable warning with GCC 4.0.1, and also
81928         avoids taking the address of a local variable.  All callers
81929         changed.
81930
81931 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81932
81933         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81934         $LIBCSRC/posix/regexec.c.
81935         Add glibc bug 1217 for regcomp.c.
81936
81937 2005-08-19  Jim Meyering  <jim@meyering.net>
81938
81939         * lib/regexec.c (proceed_next_node): Redo local variables to
81940         avoid GCC shadowing warnings.
81941
81942 2005-08-18  Bruno Haible  <bruno@clisp.org>
81943
81944         * lib/strstr.c (strstr): Fix return value in multibyte case.
81945         * lib/strcasestr.c (strcasestr): Likewise.
81946
81947 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81948
81949         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81950
81951 2005-08-17  Jim Meyering  <jim@meyering.net>
81952
81953         Make the %s format (seconds since the epoch) work for a negative
81954         number and when used with a zero-padded field width, e.g. %015s.
81955
81956         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81957         label so that it precedes the code to set `digits'.  Otherwise,
81958         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81959         print `00-22'.  Now, it prints `-0022', as it should.
81960
81961 2005-08-17  Bruno Haible  <bruno@clisp.org>
81962
81963         * modules/strstr (Files): Add m4/mbrtowc.m4.
81964         (Depends-on): Add mbuiter.
81965
81966 2005-08-17  Bruno Haible  <bruno@clisp.org>
81967
81968         * modules/strcasestr: New file.
81969         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81970         strcasestr.
81971
81972 2005-08-17  Bruno Haible  <bruno@clisp.org>
81973
81974         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81975
81976 2005-08-17  Bruno Haible  <bruno@clisp.org>
81977
81978         * modules/mbuiter: New file.
81979         * MODULES.html.sh (Extended multibyte and wide character utilities):
81980         Add mbuiter.
81981
81982 2005-08-17  Bruno Haible  <bruno@clisp.org>
81983
81984         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81985         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81986
81987 2005-08-17  Bruno Haible  <bruno@clisp.org>
81988
81989         * m4/strcasestr.m4: New file.
81990
81991 2005-08-17  Bruno Haible  <bruno@clisp.org>
81992
81993         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81994         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81995
81996 2005-08-17  Bruno Haible  <bruno@clisp.org>
81997
81998         * lib/strcasestr.h: New file.
81999         * lib/strcasestr.c: New file.
82000
82001 2005-08-17  Bruno Haible  <bruno@clisp.org>
82002
82003         * lib/strcasecmp.c: Use mbuiter.h.
82004
82005 2005-08-17  Bruno Haible  <bruno@clisp.org>
82006
82007         * lib/mbuiter.h: New file.
82008
82009 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
82012         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
82013         and gl_GETOPT are both invoked via different paths (as happens
82014         with GNU tar CVS because it uses both argp and getopt), the former
82015         wins.
82016
82017 2005-08-16  Bruno Haible  <bruno@clisp.org>
82018
82019         * modules/tls: New file.
82020         * MODULES.html.sh (Multithreading): Add tls.
82021
82022 2005-08-16  Bruno Haible  <bruno@clisp.org>
82023
82024         * modules/strnlen1: New file.
82025         * MODULES.html.sh (String handling): Add strnlen1.
82026
82027 2005-08-16  Bruno Haible  <bruno@clisp.org>
82028
82029         * modules/strcase (Files): Add m4/mbrtowc.m4.
82030         (Depends-on): Add strnlen1, mbchar.
82031
82032 2005-08-16  Bruno Haible  <bruno@clisp.org>
82033
82034         * modules/mbiter: New file.
82035         * MODULES.html.sh (Extended multibyte and wide character utilities):
82036         Add mbiter.
82037
82038 2005-08-16  Bruno Haible  <bruno@clisp.org>
82039
82040         * modules/mbfile: New file.
82041         * MODULES.html.sh (Extended multibyte and wide character utilities):
82042         Add mbfile.
82043
82044 2005-08-16  Bruno Haible  <bruno@clisp.org>
82045
82046         * modules/mbchar: New file.
82047         * MODULES.html.sh (Extended multibyte and wide character utilities):
82048         New section.
82049
82050 2005-08-16  Bruno Haible  <bruno@clisp.org>
82051
82052         * m4/tls.m4: New file, from GNU gettext.
82053
82054 2005-08-16  Bruno Haible  <bruno@clisp.org>
82055
82056         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
82057         always.
82058         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
82059
82060 2005-08-16  Bruno Haible  <bruno@clisp.org>
82061
82062         * m4/mbiter.m4: New file.
82063
82064 2005-08-16  Bruno Haible  <bruno@clisp.org>
82065
82066         * m4/mbfile.m4: New file.
82067
82068 2005-08-16  Bruno Haible  <bruno@clisp.org>
82069
82070         * m4/mbchar.m4: New file.
82071
82072 2005-08-16  Bruno Haible  <bruno@clisp.org>
82073
82074         * lib/tls.h: New file, from GNU gettext.
82075         * lib/tls.c: New file, from GNU gettext.
82076
82077 2005-08-16  Bruno Haible  <bruno@clisp.org>
82078
82079         * lib/strnlen1.h: New file.
82080         * lib/strnlen1.c: New file.
82081
82082 2005-08-16  Bruno Haible  <bruno@clisp.org>
82083
82084         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
82085         (mbi_init): Update.
82086         (mbi_avail, mbi_advance): Let the iteration end before the terminating
82087         NUL byte, not after it.
82088
82089 2005-08-16  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/strcase.h (strcasecmp): Add note in comments.
82092         * lib/strncasecmp.c: Use code from strcasecmp.c.
82093         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
82094         (strcasecmp): Work correctly in multibyte locales.
82095
82096 2005-08-16  Bruno Haible  <bruno@clisp.org>
82097
82098         * lib/mbiter.h: New file.
82099
82100 2005-08-16  Bruno Haible  <bruno@clisp.org>
82101
82102         * lib/mbfile.h: New file.
82103
82104 2005-08-16  Bruno Haible  <bruno@clisp.org>
82105
82106         * lib/mbchar.h: New file.
82107         * lib/mbchar.c: New file.
82108
82109 2005-08-16  Bruno Haible  <bruno@clisp.org>
82110
82111         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
82112         the valid ones. Makes the comparison operations transitive:
82113         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
82114         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
82115
82116 2005-08-15  Simon Josefsson  <jas@extundo.com>
82117
82118         * modules/ssize_t (License): Change to 'unlimited'.
82119
82120         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
82121
82122 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
82123
82124         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
82125         Add comments for each pending glibc patch.
82126
82127 2005-08-15  Bruno Haible  <bruno@clisp.org>
82128
82129         * lib/regex.h (__restrict_arr): Don't define to __restrict if
82130         __cplusplus is defined.
82131
82132 2005-08-14  Jim Meyering  <jim@meyering.net>
82133
82134         Sync from coreutils.
82135
82136         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
82137         Use the hash-table-based cycle-detection code not just when
82138         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
82139         Reported by James Youngman in
82140         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
82141         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
82142         FTS_TIGHT_CYCLE_CHECK.
82143         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
82144         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
82145         once again.
82146         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
82147         * lib/fts.c (fd_safer): Remove decl.
82148         Include fcntl--.h rather than unistd-safer.h
82149         (fts_safe_changedir): Don't call fd_safer; no longer needed
82150         now that we include fcntl--.h.
82151
82152 2005-08-12  Simon Josefsson  <jas@extundo.com>
82153
82154         * modules/getndelim2: Use ssize_t module.
82155         * modules/getnline: Likewise.
82156         * modules/safe-read: Likewise.
82157         * modules/xreadlink: Likewise.
82158
82159         * modules/ssize_t: New file.
82160
82161 2005-08-12  Simon Josefsson  <jas@extundo.com>
82162
82163         * m4/readline.m4: Look for termcap, curses or ncurses if required.
82164
82165 2005-08-12  Simon Josefsson  <jas@extundo.com>
82166
82167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82168         ssize_t.
82169
82170 2005-08-12  Simon Josefsson  <jas@extundo.com>
82171
82172         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
82173         readline, getdelim and check_version.
82174         (Support for systems lacking ISO C 99: Sizes of integer types):
82175         Add size_max.
82176
82177 2005-08-12  Bruno Haible  <bruno@clisp.org>
82178
82179         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
82180
82181 2005-08-11  Simon Josefsson  <jas@extundo.com>
82182
82183         * modules/readline: New file.
82184
82185         * modules/strnlen (Files): Add strnlen.h.
82186
82187 2005-08-11  Simon Josefsson  <jas@extundo.com>
82188
82189         * m4/readline.m4: New file.
82190
82191 2005-08-11  Simon Josefsson  <jas@extundo.com>
82192
82193         * lib/readline.h, readline.c: New file.
82194
82195 2005-08-11  Simon Josefsson  <jas@extundo.com>
82196
82197         * doc/gnulib.texi (Initial import, Finishing touches): Mention
82198         gl_AVOID.
82199
82200 2005-08-11  Bruno Haible  <bruno@clisp.org>
82201
82202         * lib/strnlen.h (strnlen): Change parameter name to match comment.
82203
82204 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
82205
82206         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
82207
82208 2005-08-10  Simon Josefsson  <jas@extundo.com>
82209
82210         * tests/test-iconvme.c: New file.
82211
82212 2005-08-10  Simon Josefsson  <jas@extundo.com>
82213
82214         * m4/strnlen.m4: New file.
82215
82216         * m4/strndup.m4: Don't check for strnlen declaration, done in
82217         strnlen.m4.
82218
82219 2005-08-10  Simon Josefsson  <jas@extundo.com>
82220
82221         * lib/strndup.c: Use strnlen.h.
82222
82223         * lib/strnlen.h: New file.
82224
82225 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82226
82227         * README: Typos.
82228
82229 2005-08-02  Simon Josefsson  <jas@extundo.com>
82230
82231         * modules/readline: New file.
82232
82233 2005-08-02  Simon Josefsson  <jas@extundo.com>
82234
82235         * modules/getdelim: New file.
82236
82237         * modules/getline: Rewrite, don't use getndelim2.
82238
82239 2005-08-02  Simon Josefsson  <jas@extundo.com>
82240
82241         * m4/getline.m4: Separate out getdelim stuff into separate module.
82242
82243         * m4/getdelim.m4: New file.
82244
82245 2005-08-02  Simon Josefsson  <jas@extundo.com>
82246
82247         * lib/getline.h, getline.c: Rewrite.
82248
82249         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
82250
82251 2005-07-31  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/lock.h (gl_lock_initializer): New macro.
82254         (gl_lock_define_initialized): Use it.
82255         (gl_rwlock_initializer): New macro.
82256         (gl_rwlock_define_initialized): Use it.
82257         (gl_recursive_lock_initializer): New macro.
82258         (gl_recursive_lock_define_initialized): Use it.
82259
82260 2005-07-30  Karl Berry  <karl@gnu.org>
82261
82262         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
82263         Report from Ben Pfaff, regarding getopt.
82264
82265 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
82266
82267         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
82268         normal way.
82269         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
82270         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
82271         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
82272         (gl_GETOPT): Use the new macros.  Most of the implementation
82273         is moved to the new macros.  This is for programs like Emacs
82274         that don't want all the functionality of gl_GETOPT.
82275
82276 2005-07-26  Bruno Haible  <bruno@clisp.org>
82277
82278         * m4/lock.m4: Update from GNU gettext.
82279
82280 2005-07-26  Bruno Haible  <bruno@clisp.org>
82281
82282         * lib/lock.h: Update from GNU gettext.
82283         * lib/lock.c: Update from GNU gettext.
82284
82285 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
82286
82287         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
82288         obsolescent AC_TRY_RUN.  Include the default includes files, for
82289         'exit'.
82290
82291 2005-07-24  Bruno Haible  <bruno@clisp.org>
82292
82293         * modules/visibility: New file.
82294         * MODULES.html.sh (Misc): Add visibility.
82295
82296 2005-07-24  Bruno Haible  <bruno@clisp.org>
82297
82298         * m4/visibility.m4: New file.
82299
82300 2005-07-24  Bruno Haible  <bruno@clisp.org>
82301
82302         * doc/visibility.texi: New file.
82303
82304 2005-07-22  Bruno Haible  <bruno@clisp.org>
82305
82306         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
82307         $(ALLOCA_H), redundant through BUILT_SOURCES.
82308         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
82309         redundant through BUILT_SOURCES.
82310         * modules/byteswap (Makefile.am): Remove explicit dependency on
82311         $(BYTESWAP_H), redundant through BUILT_SOURCES.
82312         * modules/fnmatch (Makefile.am): Remove explicit dependency on
82313         $(FNMATCH_H), redundant through BUILT_SOURCES.
82314         * modules/getopt (Makefile.am): Remove explicit dependency on
82315         $(GETOPT_H), redundant through BUILT_SOURCES.
82316         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
82317         redundant through BUILT_SOURCES.
82318         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
82319         redundant through BUILT_SOURCES.
82320         * modules/stdbool (Makefile.am): Remove explicit dependency on
82321         $(STDBOOL_H), redundant through BUILT_SOURCES.
82322         * modules/stdint (Makefile.am): Remove explicit dependency on
82323         $(STDINT_H), redundant through BUILT_SOURCES.
82324         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
82325         Remove explicit dependency on $(SYSEXITS_H).
82326         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
82327
82328 2005-07-18  Simon Josefsson  <jas@extundo.com>
82329
82330         * lib/check-version.c (check_version): Accept identical versions too.
82331
82332 2005-07-18  Bruno Haible  <bruno@clisp.org>
82333
82334         * modules/lock: New file.
82335         * MODULES.html.sh (Multithreading): New section.
82336
82337 2005-07-18  Bruno Haible  <bruno@clisp.org>
82338
82339         * m4/lock.m4: New file, from GNU gettext.
82340
82341 2005-07-18  Bruno Haible  <bruno@clisp.org>
82342
82343         * lib/lock.h: New file, from GNU gettext.
82344         * lib/lock.c: New file, from GNU gettext.
82345
82346 2005-07-18  Bruno Haible  <bruno@clisp.org>
82347
82348         * lib/lock.h (gl_once_t): New type.
82349         (gl_once_define, gl_once): New macros.
82350         * lib/lock.c (fresh_once): New variable.
82351         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
82352         functions.
82353
82354 2005-07-16  Simon Josefsson  <jas@extundo.com>
82355
82356         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
82357         workaround, suggested by Bruno.
82358
82359 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82360
82361         * modules/xalloc (Depends-on): Add xalloc-die.
82362         * modules/xvasprintf (Depends-on): Add xalloc-die.
82363
82364 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
82365
82366         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
82367         with a minor change.
82368
82369 2005-07-15  Bruno Haible  <bruno@clisp.org>
82370
82371         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
82372         When using lib/poll.c, define poll as rpl_poll.
82373
82374 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * modules/argp (Depends-on): Remove unlocked-io.
82377
82378 2005-07-14  Derek Price  <derek@ximbiot.com>
82379
82380         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
82381         for glob symlink bug.
82382
82383 2005-07-14  Bruno Haible  <bruno@clisp.org>
82384
82385         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
82386         Instead, test for *_unlocked function declarations directly.
82387
82388 2005-07-11  Simon Josefsson  <jas@extundo.com>
82389
82390         * modules/size_max: New file.
82391
82392         * modules/xsize: Depend on size_max module for size_max.m4.
82393
82394 2005-07-11  Simon Josefsson  <jas@extundo.com>
82395
82396         * lib/size_max.h: New file.
82397
82398 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
82399
82400         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
82401         copyright symbol and the year.
82402         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
82403         (version_etc_va): Use parameterized copyright notice.
82404         Reword to conform to the current GNU coding standards.
82405
82406 2005-07-11  Karl Berry  <karl@gnu.org>
82407
82408         * doc/gnulib.texi (Quoting): new node.
82409         (Initial import): more info, from Patrice.
82410
82411 2005-07-11  Bruno Haible  <bruno@clisp.org>
82412
82413         * gnulib-tool (func_usage): Document option --avoid.
82414         (Command line options): Handle --avoid.
82415         (func_acceptable): New function.
82416         (func_modules_transitive_closure): Use it.
82417
82418 2005-07-11  Bruno Haible  <bruno@clisp.org>
82419
82420         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
82421         Reported by Jim Meyering.
82422
82423 2005-07-10  Bruno Haible  <bruno@clisp.org>
82424
82425         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
82426         Needed when size_t is smaller than 'unsigned int'.
82427         Reported by Paul Eggert.
82428
82429 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82430
82431         * modules/argp (Depends-on): Add unlocked-io
82432
82433 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82434
82435         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
82436         block of defines.
82437
82438 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
82439
82440         * config/srclist.txt: Comment out regcomp.c, since we have a porting
82441         fix now.
82442
82443 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
82444         and Paul Eggert  <eggert@cs.ucla.edu>
82445
82446         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
82447         in wint_t, not wchar_t.  Remove now-unnecessary cast.
82448
82449 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * modules/regex (Files): Add lib/regex_internal.c,
82452         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
82453         (Depends-on): Add extensions.
82454         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
82455
82456 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82457
82458         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
82459         pathconf.
82460         * m4/same.m4 (gl_SAME): Likewise.
82461         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
82462
82463         * m4/regex.m4: Adjust to new libc regex implementation.
82464         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
82465         all the .c and .h parts of (the new) regex.
82466         Quote the m4 stuff better.
82467         Check for RE_ICASE bug of old gnulib.
82468         Check for REG_STARTEND of recent libc.
82469         Rename local variables from jm_* to gl_*.
82470         Quote operand of "test -f".
82471         Say "recent enough" version of libc, not "version 2".
82472         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
82473         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
82474         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
82475         Remove check for btowc, isascii.
82476         Require AM_LANGINFO_CODESET.
82477
82478 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         * lib/regex.c, regex.h: Sync from libc.
82481         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
82482         * lib/regexec.c:
82483         New files, synced from libc, except that regex_internal.h
82484         currently has a small porting fix.
82485
82486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
82487
82488         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
82489         regex_internal.c, regexec.c.
82490         Add regex_internal.h too, but as a comment, since the libc version
82491         is currently broken in gnulib mode.
82492
82493 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
82494
82495         Support programs like Emacs that use gnulib but not gettext.
82496         * MODULES.html.sh (Internationalization functions): Add gettext-h.
82497         * modules/gettext-h: New file.
82498         * modules/gettext (Files): Remove lib/gettext.h.
82499         (Depends-on): Add gettext-h.
82500         (Makefile.am): Remove lib_SOURCES.
82501         * modules/argmatch, modules/c-stack, modules/closeout:
82502         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
82503         * modules/execute, modules/file-type, modules/getaddrinfo:
82504         * modules/getopt, modules/human, modules/javacomp:
82505         * modules/javaexec, modules/mkdir-p, modules/obstack:
82506         * modules/openat, modules/pagealign_alloc, modules/pipe:
82507         * modules/quotearg, modules/regex, modules/rpmatch:
82508         * modules/unicodeio, modules/userspec, modules/version-etc:
82509         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
82510         * modules/xsetenv:
82511         Depend on gettext-h, not gettext.
82512
82513 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
82514
82515         * gnulib-tool (func_import): Add support for 'public domain' license.
82516         * modules/alloca, modules/atexit, modules/memmove:
82517         Now public domain, not GPL.
82518         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
82519         * modules/realloc, modules/strerror, modules/strtod:
82520         Now LGPL, not GPL.
82521
82522 2005-07-05  Bruno Haible  <bruno@clisp.org>
82523
82524         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
82525         autoconf CVS. Needed for mingw.
82526
82527 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         Remove the dependency of the strftime module on the tzset module.
82530         * modules/strftime (Depends-on): Remove dependency on tzset.
82531
82532 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82533
82534         Remove the dependency of the strftime module on the tzset module.
82535         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
82536         gl_FUNC_TZSET_CLOBBER.
82537
82538 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
82539
82540         Remove the dependency of the strftime module on the tzset module.
82541         * lib/strftime.c (my_strftime)
82542         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
82543         Copy the input structure, to work around some of the bug with
82544         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
82545         Solaris releases, you should also use the tzset module, but we won't
82546         require it as a dependency any more since we don't want LGPLed code
82547         to depend on GPLed code.
82548
82549 2005-07-02  Jim Meyering  <jim@meyering.net>
82550
82551         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
82552         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
82553         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
82554         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
82555
82556 2005-07-02  Jim Meyering  <jim@meyering.net>
82557
82558         * lib/backupfile.c (backup_args): Change a `0' to NULL.
82559
82560 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
82561
82562         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
82563         declares only 'struct timespec;' (!).
82564
82565 2005-07-01  Jim Meyering  <jim@meyering.net>
82566
82567         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
82568         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
82569         * lib/save-cwd.c, tempname.c:
82570         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82571         and don't include <sys/file.h>).
82572
82573 2005-06-29  Jim Meyering  <jim@meyering.net>
82574
82575         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
82576         type name.  Use the variable name instead.
82577         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
82578         Likewise.
82579
82580 2005-06-28  Simon Josefsson  <jas@extundo.com>
82581
82582         * modules/check-version (Files): Add check-version.m4.
82583
82584 2005-06-28  Simon Josefsson  <jas@extundo.com>
82585
82586         * m4/check-version.m4: New file, suggested by Jim Meyering
82587         <jim@meyering.net>.
82588
82589 2005-06-28  Simon Josefsson  <jas@extundo.com>
82590
82591         * lib/check-version.h, lib/check-version.c: New files.
82592
82593 2005-06-28  Simon Josefsson  <jas@extundo.com>
82594
82595         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
82596         collision with global variable.  Better indentation.  Don't
82597         increment buffer pointer beyond buffer end.  Based on comments
82598         from Paul Eggert <eggert@cs.ucla.edu>.
82599
82600         * lib/base64.h: Indent.
82601
82602 2005-06-28  Simon Josefsson  <jas@extundo.com>
82603
82604         * doc/gnulib.texi (Library version handling): New section.
82605
82606 2005-06-28  Jim Meyering  <jim@meyering.net>
82607
82608         * check-module (find_included_lib_files): Hard-code another
82609         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
82610         but modules/fts-lgpl (correctly) does not list those files.
82611
82612         * modules/canonicalize (Files): Add lib/pathmax.h.
82613
82614 2005-06-25  Simon Josefsson  <jas@extundo.com>
82615
82616         * modules/check-version: New file.
82617
82618 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
82619
82620         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
82621         initializer of struct addrinfo, as an indication that we don't
82622         care how many members the structure has.
82623
82624 2005-06-24  Derek Price  <derek@ximbiot.com>
82625         and Bruno Haible  <bruno@clisp.org>
82626
82627         Remove stat module & update lstat.
82628         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
82629         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
82630         * m4/stat.m4: Remove this file.
82631
82632 2005-06-24  Derek Price  <derek@ximbiot.com>
82633         and Bruno Haible  <bruno@clisp.org>
82634
82635         Remove stat module & update lstat.
82636         * lib/stat.c: Remove this file...
82637         (slash_aware_lstat): ...moving this content and its support...
82638         * lib/lstat.c (rpl_lstat): ...into here.
82639         * lib/lstat.h: New file.
82640
82641 2005-06-24  Derek Price  <derek@ximbiot.com>
82642         and Bruno Haible  <bruno@clisp.org>
82643
82644         Remove stat module & update lstat.
82645         * config/srclist.txt (libc sources): Remove stat.
82646
82647 2005-06-24  Derek Price  <derek@ximbiot.com>
82648         and Bruno Haible  <bruno@clisp.org>
82649
82650         Remove stat module & update lstat.
82651         * MODULES.html.sh (stat): Remove.
82652         * MODULES.html: Regenerated.
82653         * modules/lstat (Description): Correct function name.
82654         (Files): Add "lstat.h".
82655         (Depends-on): Remove stat, add xalloc, stat-macros.
82656         * modules/stat: Remove this file.
82657         (Include): Add "lstat.h", remove <sys/stat.h>.
82658
82659 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
82660
82661         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
82662         (ranged_convert): Don't save conversion in a temporary struct.
82663         This causes a warning with GCC 4.0.0, and anyway in the typical
82664         case it's not worth the extra 100 bytes or so of code.
82665         (ranged_convert, __mktime_internal): When calling a function via a
82666         pointer P, use P () rather than (*P) (), as we now assume C89 or
82667         better.
82668
82669 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82670
82671         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
82672         "who -r" failed to give output.  Problem reported by Tim Waugh.
82673
82674         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
82675         (xcalloc): Use it to avoid needless tests.
82676         Problem reported by Jim Meyering.
82677
82678 2005-06-20  Derek Price  <derek@ximbiot.com>
82679
82680         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
82681         unnecessary for Autoconfs > 2.59c.
82682
82683 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82684
82685         * lib/argp.h (__option_is_short): Check upper limit of
82686         __key. Isprint() requires its argument to have the value
82687         of an unsigned char or EOF.
82688
82689 2005-06-16  Jim Meyering  <jim@meyering.net>
82690
82691         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
82692         when either N or S is zero.
82693
82694 2005-06-16  Derek Price  <derek@ximbiot.com>
82695
82696         * m4/bison.m4: Declare YACC & YFLAGS precious.
82697
82698 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
82699
82700         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
82701         multibyte string or pattern, fall back on unibyte matching.
82702         Problem reported by James Youngman.
82703
82704 2005-06-08  Bruno Haible  <bruno@clisp.org>
82705
82706         * modules/csharpcomp: New file.
82707         * MODULES.html.sh (C#): Add csharpcomp.
82708
82709 2005-06-08  Bruno Haible  <bruno@clisp.org>
82710
82711         * m4/csharpcomp.m4: New file, from GNU gettext.
82712
82713 2005-06-08  Bruno Haible  <bruno@clisp.org>
82714
82715         * lib/csharpcomp.h: New file, from GNU gettext.
82716         * lib/csharpcomp.c: New file, from GNU gettext.
82717         * lib/csharpcomp.sh.in: New file, from GNU gettext.
82718
82719 2005-06-08  Bruno Haible  <bruno@clisp.org>
82720
82721         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
82722         warning on mingw.
82723
82724 2005-06-07  Derek Price  <derek@ximbiot.com>
82725
82726         Sync from CVS.
82727         * lib/glob_.h: Indent nested #ifdef.
82728
82729 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82730
82731         Sync from coreutils.
82732         Use "file name" when talking about file names, instead of "filename"
82733         or "path", as per the GNU coding standards.
82734         * lib/mkdir-p.c: Renamed from makepath.c.
82735         (make_dir_parents): Renamed from make_path.  All callers changed.
82736         * lib/mkdir-p.h: Likewise.  All includers changed.
82737         * lib/filenamecat.c: Renamed from path-concat.c.
82738         (file_name_concat): Renamed from path_concat.  All callers changed.
82739         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
82740         * lib/filenamecat.h: Likewise.  All includers changed.
82741         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
82742         in comments or local variable names.
82743         * lib/basename.c: Likewise.
82744         * lib/canonicalize.c, canonicalize.h: Likewise.
82745         * lib/dirname.c, dirname.h: Likewise.
82746         * lib/euidaccess.c: Likewise.
82747         * lib/exclude.c: Likewise
82748         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
82749         * lib/fsusage.c, fsuage.h: Likewise.
82750         * lib/fts.c, fts_.h: Likewise.
82751         * lib/getcwd.c: Likewise.
82752         * lib/getloadavg.c: Likewise.
82753         * lib/mkstemp.c: Likewise.
82754         * lib/mountlist.c, mountlist.h: Likewise.
82755         * lib/openat.c, openat.h: Likewise.
82756         * lib/readlink-stub.c: Likewise.
82757         * lib/readutmp.c, readutmp.h: Likewise.
82758         * lib/rename.c: Likewise.
82759         * lib/rmdir.c: Likewise.
82760         * lib/same.c: Likewise.
82761         * lib/savedir.c: Likewise.
82762         * lib/stripslash.c: Likewise.
82763         * lib/tempname.c: Likewise.
82764         * lib/xreadlink.c: Likewise.
82765         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
82766         All uses changed.
82767         * lib/exclude.h: Likewise.
82768
82769         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
82770         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82771         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
82772         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82773         * lib/pathmax.h: Include <limits.h> unconditionally, since other
82774         files have been getting away with it for years (MORE/BSD 4.3
82775         is extinct now).
82776         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
82777         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
82778
82779         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
82780         Define to 256, not 255, as per modern POSIX.
82781
82782 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82783
82784         Sync from coreutils.
82785         Use "file name" when talking about file names, instead of "filename"
82786         or "path", as per the GNU coding standards.
82787         * MODULES.html.sh: mkdir-p renamed from makepath.
82788         filenamecat renamed from path-concat.
82789         * modules/filenamecat: Renamed from modules/path-concat.
82790         (Files): filenamecat.h and filenamecat.c renamed from
82791         path-concat.h and path-concat.c.
82792         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
82793         (Include): filenamecat.h, not path-concat.h.
82794         * modules/mkdir-p: Renamed from modules/makepath.
82795         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
82796         makepath.c.
82797         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
82798         (Include): mkdir-p.h, not makepath.h.
82799
82800 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
82801
82802         Sync from coreutils.
82803         * m4/mkdir-p.m4: Renamed from makepath.m4.
82804         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
82805         Rename files from makepath.c to mkdir-p.c, and from
82806         makepath.h to mkdir-p.h.
82807         * m4/filenamecat.m4: Renamed from path-concat.m4.
82808         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82809         Rename files from path-concat.c to filenamecat.c,
82810         and from path-concat.h to filenamecat.h.
82811         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82812         "file name" in local variables or comments.
82813         * m4/rename.m4: Likewise.
82814
82815 2005-06-01  Bruno Haible  <bruno@clisp.org>
82816
82817         * modules/csharpexec: New file.
82818         * MODULES.html.sh (C#): New section.
82819
82820 2005-06-01  Bruno Haible  <bruno@clisp.org>
82821
82822         * m4/csharp.m4: New file, from GNU gettext.
82823         * m4/csharpexec.m4: New file, from GNU gettext.
82824
82825 2005-06-01  Bruno Haible  <bruno@clisp.org>
82826
82827         * lib/csharpexec.h: New file, from GNU gettext.
82828         * lib/csharpexec.c: New file, from GNU gettext.
82829         * lib/csharpexec.sh.in: New file, from GNU gettext.
82830
82831 2005-05-31  Derek Price  <derek@ximbiot.com>
82832             Paul Eggert  <eggert@cs.ucla.edu>
82833
82834         Sync from cvs.
82835         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82836
82837 2005-05-31  Derek Price  <derek@ximbiot.com>
82838             Paul Eggert  <eggert@cs.ucla.edu>
82839
82840         Sync from cvs.
82841         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82842
82843 2005-05-29  Derek Price  <derek@ximbiot.com>
82844
82845         * config/srclist.txt (glob_.h, glob.c): Add these files.
82846
82847 2005-05-29  Derek Price  <derek@ximbiot.com>
82848
82849         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82850         * modules/glob: New file.
82851         * modules/getlogin_r: Add link to POSIX spec in description.
82852
82853 2005-05-29  Derek Price  <derek@ximbiot.com>
82854             Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * m4/glob.m4: New file.
82857
82858 2005-05-29  Derek Price  <derek@ximbiot.com>
82859             Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * lib/glob_.h, lib/glob.c: New files.
82862
82863 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82866         * modules/fts-lgpl (Depends-on): Remove gettext.
82867
82868 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82871         and don't require gt_INTTYPES_PRI.
82872
82873 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82876
82877         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82878         the configuration hassle isn't worth it.
82879         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82880         (LONGEST_MODIFIER, PRIuMAX): Remove.
82881
82882 2005-05-27  Bruno Haible  <bruno@clisp.org>
82883
82884         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82885
82886 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82887
82888         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82889         _POSIX_PTHREAD_SEMANTICS for Solaris.
82890
82891 2005-05-25  Derek Price  <derek@ximbiot.com>
82892
82893         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82894
82895 2005-05-25  Derek Price  <derek@ximbiot.com>
82896             Paul Eggert  <eggert@cs.ucla.edu>
82897
82898         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82899         * lib/getlogin_r.c, getlogin_r.h: New files.
82900
82901 2005-05-25  Bruno Haible  <bruno@clisp.org>
82902             Derek Price  <derek@ximbiot.com>
82903
82904         * lib/getlogin_r.h: Simplify API documentation.
82905
82906 2005-05-23  Derek Price  <derek@ximbiot.com>
82907
82908         * modules/minmax (Files): Add m4/minmax.m4.
82909         (configure.ac): Add gl_MINMAX.
82910
82911 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82912
82913         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82914         so that unistd-safer.h (GPL'ed code) need not be included.
82915
82916 2005-05-22  Bruno Haible  <bruno@clisp.org>
82917
82918         * m4/minmax.m4: New file.
82919         Based on a patch by Derek Price <derek@ximbiot.com>.
82920
82921 2005-05-22  Bruno Haible  <bruno@clisp.org>
82922
82923         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82924         (INT64_MIN): Fix definition.
82925         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82926
82927         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82928         NEED_SIGNED_INT_TYPES.
82929
82930         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82931         HAVE_SYSTEM_INTTYPES.
82932
82933 2005-05-22  Bruno Haible  <bruno@clisp.org>
82934
82935         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82936         Also include <sys/param.h> if it defines MIN, MAX.
82937         Based on a patch by Derek Price <derek@ximbiot.com>.
82938
82939 2005-05-21  Jim Meyering  <jim@meyering.net>
82940
82941         * modules/fts (Files): Add m4/inttypes-pri.m4.
82942         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82943
82944 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82945
82946         New fts module.
82947         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82948         (setup_dir, free_dir): New functions.
82949         (enter_dir, leave_dir): Define trivial
82950         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82951         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82952         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82953         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82954         Move to fts-cycle.c.
82955         (fts_open): Use setup_dir.
82956         (fts_close): Use free_dir.
82957         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82958         This adds a label and some gotos, but the alternatives were messier.
82959         Check for memory allocation failure when entering a dir.
82960         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82961         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82962         (FTS): New member fts_cycle, that is a union that contains the
82963         old active_dir_ht and cycle_state.  All uses changed to mention
82964         fts_cycle.ht and fts_cycle.state.
82965         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82966         fts.c, with the following changes:
82967         (setup_dir, free_dir): New functions.
82968         (enter_dir): Now returns bool.  Return true if successful, false
82969         if memory exhausted.  All callers changed.
82970         Do not bother partly cleaning up on
82971         memory allocation failure; that is free_dir's job.
82972         However, free ad if hash_insert fails, to avoid memory leak.
82973         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82974         fts->fts_options to see which union member to use.
82975
82976 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82979         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82980
82981 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82982
82983         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82984
82985 2005-05-20  Jim Meyering  <jim@meyering.net>
82986
82987         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82988         Now a macro, to pacify GCC.
82989
82990 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82991
82992         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82993         of -1.
82994
82995 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82996
82997         * lib/chown.c (rpl_chown): Return -1 on failure.
82998
82999 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
83002         Don't check for stddef.h.
83003         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
83004         don't use its results.
83005         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
83006         since we include them unconditionally.  Don't require
83007         AM_STDBOOL_H, since stdbool is a prerequisite.
83008         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
83009         since we assume C89 or better.
83010         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
83011         as we don't use their results.
83012         Don't check for fchdir, memmove, memset, strrchr, as we use
83013         them unconditionally.
83014         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
83015         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
83016
83017 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
83018
83019         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
83020         Include <stddef.h> unconditionally, since we assume C89 now.
83021         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
83022         * lib/fts.c: Include fts_.h first, to check interface.
83023         Do not include intprops.h; no longer needed.
83024         Include cycle-check.h and hash.h, since fts_.h no longer does.
83025         Remove unnecessary casts of closedir to void.
83026         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
83027         decide whether to decrement nlinks.
83028         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
83029         (FTS): Use struct hash_table * instead of Hash_table, so that
83030         we no longer need to include hash.h here.
83031
83032 2005-05-18  Jim Meyering  <jim@meyering.net>
83033
83034         * modules/dirfd (License): Change to LGPL.  Most of the code
83035         is already in the public domain.
83036
83037 2005-05-18  Jim Meyering  <jim@meyering.net>
83038
83039         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
83040         Reported by Yoann Vandoorselaere.
83041
83042 2005-05-17  Jim Meyering  <jim@meyering.net>
83043
83044         * m4/fts.m4: New file, from coreutils.
83045
83046 2005-05-17  Jim Meyering  <jim@meyering.net>
83047
83048         * lib/fts.c, lib/fts_.h: New files, from coreutils.
83049
83050 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83051
83052         Sync from coreutils.
83053         * m4/unlinkdir.m4: New file.
83054
83055 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         Sync from coreutils.
83058         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
83059         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
83060         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
83061         White space changes only.
83062         * lib/makepath.c (make_path): Port to hosts where leading "//" is
83063         special.
83064         * lib/yesno.c: Include getline.h, not ctype.h.
83065         (yesno): Don't remove leading white space; POSIX doesn't allow it.
83066         Use getline to remove arbitrary restriction on response length.
83067
83068 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
83069
83070         * config/srclist-update: Spell out "Street" in FSF postal
83071         mail address; this is the style the FSF seems to prefer.
83072
83073         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
83074         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
83075         this updates FSF postal mail address.
83076
83077         Sync from coreutils.
83078         * modules/unlinkdir: New file.
83079         * modules/yesno (Depends-on): Add getline.
83080         * MODULES.html.sh (File system functions): Add unlinkdir.
83081
83082 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83083
83084         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
83085         lib/strsep.h:
83086         Change the initial comment to refer to GPL, not LGPL.
83087         gnulib-tool will change it to LGPL as needed.
83088
83089         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
83090         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
83091         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
83092         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
83093         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
83094         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
83095         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
83096         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
83097         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
83098         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
83099         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
83100         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
83101         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
83102         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
83103         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
83104         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
83105         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
83106         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
83107         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
83108         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
83109         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
83110         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
83111         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
83112         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
83113         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
83114         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
83115         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
83116         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
83117         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
83118         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
83119         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
83120         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
83121         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
83122         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
83123         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
83124         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
83125         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
83126         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
83127         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
83128         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
83129         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
83130         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
83131         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
83132         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
83133         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
83134         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
83135         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
83136         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
83137         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
83138         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
83139         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
83140         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
83141         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
83142         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
83143         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
83144         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
83145         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
83146         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
83147         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
83148         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
83149         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
83150         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
83151         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
83152         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
83153         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
83154         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
83155         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
83156         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
83157         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
83158         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
83159         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
83160         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
83161         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
83162         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
83163         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
83164         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
83165         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
83166         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
83167         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
83168         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
83169         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
83170         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
83171         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
83172         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
83173         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
83174         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
83175         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
83176         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
83177         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
83178         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
83179         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
83180         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
83181         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
83182         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
83183         lib/yesno.c, lib/yesno.h:
83184         Update FSF postal mail address.
83185
83186 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
83187
83188         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
83189         tests/test-memmem.c, tests/test-stpncpy.c:
83190         Update FSF postal mail address.
83191
83192 2005-05-13  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
83195         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
83196         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
83197         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
83198         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
83199         Add support for 64-bit integers in the MSVC compiler.
83200
83201 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83202
83203         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
83204
83205 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
83206
83207         * gnulib-tool (func_import): Sort and uniquify recommended includes.
83208
83209 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * doc/getdate.texi (General date syntax): Don't say that date
83212         date --iso-8601=ns generates acceptable dates; it doesn't yet.
83213         Problem reported by Nic Ferrier.
83214
83215 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83216
83217         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
83218         specified in ai_socktype. Fix invalid ai_protocol
83219         check. ai_protocol is usually set to 0 or depending on
83220         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
83221         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
83222         ai_socktype / ai_protocol in the returned addrinfo structure.
83223
83224 2005-05-10  Simon Josefsson  <jas@extundo.com>
83225
83226         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
83227         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83228
83229 2005-05-10  Karl Berry  <karl@gnu.org>
83230
83231         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
83232         (from http://www.gnu.org/licenses).
83233         * doc/COPYING.LIB: also rename to COPYING.LESSER.
83234         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
83235         fdl.texi suffices.
83236
83237 2005-05-10  Karl Berry  <karl@gnu.org>
83238
83239         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
83240         (COPYING.DOC): remove.
83241
83242         * config/srclist-update: new FSF address.
83243
83244 2005-05-10  Derek Price  <derek@ximbiot.com>
83245
83246         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
83247         possible.
83248
83249 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83250             Bruno Haible  <bruno@clisp.org>
83251
83252         * modules/inet_ntop: New file.
83253         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83254         inet_ntop.
83255
83256 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83257             Bruno Haible  <bruno@clisp.org>
83258
83259         * m4/inet_ntop.m4: New file.
83260
83261 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
83262             Bruno Haible  <bruno@clisp.org>
83263
83264         * lib/inet_ntop.h: New file.
83265         * lib/inet_ntop.c: New file, from glibc with modifications.
83266
83267 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
83268
83269         * modules/time_r (License): Change to LGPL.
83270         * modules/extensions (License): Change to LGPL.  Actually,
83271         the license is more permissive than that, but currently gnulib-tool
83272         doesn't know how to handle more-permissive licenses.
83273
83274         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
83275         Problem reported by Dave Love.
83276
83277 2005-05-08  Jim Meyering  <jim@meyering.net>
83278
83279         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
83280         blank.
83281
83282 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
83283
83284         * modules/argmatch (Depends-on): Add stdbool.
83285         * modules/backupfile (Depends-on): Likewise.
83286         * modules/chdir-long (Depends-on): Likewise.
83287         * modules/closeout (Depends-on): Likewise.
83288         * modules/cycle-check (Depends-on): Likewise.
83289         * modules/dirname (Depends-on): Likewise.
83290         * modules/fnmatch (Depends-on): Likewise.
83291         * modules/fsusage (Depends-on): Likewise.
83292         * modules/fwriteerror (Depends-on): Likewise.
83293         * modules/getcwd (Depends-on): Likewise.
83294         * modules/getloadavg (Depends-on): Likewise.
83295         * modules/hard-locale (Depends-on): Likewise.
83296         * modules/makepath (Depends-on): Likewise.
83297         * modules/mountlist (Depends-on): Likewise.
83298         * modules/nanosleep (Depends-on): Likewise.
83299         * modules/posixtm (Depends-on): Likewise.
83300         * modules/quotearg (Depends-on): Likewise.
83301         * modules/readtokens (Depends-on): Likewise.
83302         * modules/readtokens0 (Depends-on): Likewise.
83303         * modules/readutmp (Depends-on): Likewise.
83304         * modules/save-cwd (Depends-on): Likewise.
83305         * modules/strftime (Depends-on): Likewise.
83306         * modules/userspec (Depends-on): Likewise.
83307         * modules/utimecmp (Depends-on): Likewise.
83308         * modules/xgetcwd (Depends-on): Likewise.
83309         * modules/xnanosleep (Depends-on): Likewise.
83310         * modules/xstrtod (Depends-on): Likewise.
83311         * modules/yesno (Depends-on): Likewise.
83312
83313 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
83314
83315         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
83316         needless checks.
83317
83318 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83319
83320         Merge from coreutils.  Among other things,
83321         add bulletproofing for cases where stdin, stdout, or stderr are closed.
83322         * lib/fd-safer.c: New file.
83323         * lib/fcntl-safer.h, open-safer.c: Remove.
83324         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
83325         * lib/dup-safer.c: Include unistd-safer.h first.
83326         Don't include errno.h.
83327         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
83328         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
83329         * lib/file-type.c: Rely on file-type.h change.
83330         * lib/getloadavg.c: Include unistd-safer.h.
83331         (getloadavg): Use safer open.
83332         * lib/getusershell.c: Include "stdio-safer.h".
83333         (getusershell): Use safer fopen.
83334         * lib/long-options.c (long_options): Use NULL rather than 0.
83335         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
83336         'free'.
83337         * lib/modechange.c: Likewise.
83338         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
83339         (MODE_DONE): New constant.
83340         (struct mode_change): Remove 'next' member.
83341         (make_node_op_equals): New function; like the old one of the
83342         same name, except it allocates an array.
83343         (mode_compile, mode_create_from_ref): Use it.
83344         (mode_compile): Allocate result as an array, not a linked list.
83345         Parse octal string ourself, so that we catch mistakes like "+0".
83346         (mode_adjust): Arg is an array, not a linked list.
83347         * lib/modechange.c: Include stat-macros.h, xalloc.h.
83348         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
83349         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
83350         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
83351         Remove.  This is now stat-macros.h's job.
83352         (talloc): Remove.  All callers replaced by xalloc, so that
83353         our invokers don't have to worry about reporting memory failures.
83354         (make_node_op_equals): Remove.
83355         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83356         New constants.
83357         (struct mode_change): Moved here from modechange.h.
83358         (mode_append_entry): Remove.
83359         (mode_compile): Remove MASKED_OPS arg, since it encouraged
83360         apps to have incorrect behavior.  Use simpler algorithm for head
83361         and tail.  Don't futz with umask; that's now the job of mode_adjust.
83362         Detect more invalid usages rather than having somewhat-random behavior.
83363         Don't insert an "a=" action, as that leads to incorrect behavior.
83364         (mode_compile, mode_create_from_ref): Return NULL on error instead
83365         of an enum, since now there's only one way to have an error.  All
83366         callers changed.
83367         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
83368         at the correct time.  Simplify calculation of "+u" and its ilk.
83369         Don't mishandle "+X".
83370         (mode_free): Remove "register" and localize decls.
83371         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
83372         (struct mode_change): Move to modechange.c; callers don't
83373         need to see this stuff.
83374         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
83375         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
83376         (mode_change, mode_adjust): Reflect the new signatures noted above.
83377         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
83378         that might redefine system include files.
83379         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
83380         (my_usleep): Use NULL rather than (void *) 0.
83381         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
83382         Use siginterrupt to specify that system calls should be interrupted.
83383         (rpl_nanosleep): Move initialization of suspended closer to call of
83384         my_usleep.
83385         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
83386         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
83387         (desirable_utmp_entry): New function.
83388         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
83389         using x2nrealloc, to simplify logic.
83390         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
83391         size calculation.  Do not assume utmp file is a regular file.
83392         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
83393         (READ_UTMP_CHECK_PIDS): New constant.
83394         * lib/save-cwd.c: Include unistd-safer.h.
83395         (save_cwd): Use fd_safer.
83396         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
83397         [!_LIBC] Include "stat-macros.h" instead.
83398         * lib/unistd-safer.h (fd_safer): New decl.
83399
83400 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83401
83402         * modules/getloadavg (Depends-on): Add unistd-safer.
83403         * modules/getusershell (Depends-on): Add stdio-safer.
83404         * modules/lstat (Depends-on): Remove xalloc.
83405         * modules/mkstemp (Depends-on): Add stat-macros.
83406         * modules/modechange (Depends-on): Remove xstrtol.
83407         Add stat-macros, xalloc.
83408         * modules/save-cwd (Depends-on): Add unistd-safer.
83409         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
83410         * modules/unistd-safer (Files): Add lib/fd-safer.c
83411         (Makefile.am): Remove lib_SOURCES.
83412
83413         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
83414         Remove fcntl-safer; unistd-safer supersedes it.
83415
83416 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83417
83418         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
83419         AC_HEADER_STAT.
83420         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
83421         (gl_PREREQ_CHOWN): Remove.
83422         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
83423         it.  Don't require AC_HEADER_STAT.
83424         (gl_PREREQ_LSTAT): Remove.
83425         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
83426         Don't require AC_HEADER_STAT.
83427         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
83428         (gl_PREREQ_RMDIR): Remove.
83429         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
83430         mention stat-macros.h or AC_HEADER_STAT, since we'll make
83431         the stat-macros module a prerequisite.
83432         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
83433         * m4/filemode.m4 (gl_FILEMODE): Likewise.
83434         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
83435         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
83436         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
83437         variable names.
83438         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
83439         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
83440         variable prefixes.
83441         * m4/fcntl-safer.m4: Remove.
83442         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
83443         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
83444         Invoke gl_PREREQ_FD_SAFER.
83445         (gl_PREREQ_FD_SAFER): New macro.
83446         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
83447         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
83448         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
83449         Remove duplicate call to AC_LIBOBJ(readutmp).
83450         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
83451
83452         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
83453         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
83454
83455 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
83456
83457         * MODULES.html.sh (Misc): Add byteswap.
83458
83459 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83460
83461         * modules/getcwd (Depends-on): Add extensions.
83462         * modules/openat (Depends-on): Likewise.
83463
83464 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83465
83466         * modules/byteswap: New file.
83467
83468 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83469
83470         * m4/byteswap.m4: New file.
83471
83472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
83473
83474         * lib/byteswap_.h: New file.
83475
83476 2005-04-25  Karl Berry  <karl@gnu.org>
83477
83478         * m4/gettext.m4: Update from GNU gettext 0.14.4.
83479
83480 2005-04-25  Albert Chin  <china@thewrittenword.com>
83481
83482         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
83483         Toolkit C bug.
83484
83485 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
83486
83487         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
83488         (func_ln_if_changed): Remove forcibly for no error message
83489         in case file does not exist.
83490
83491 2005-04-19  Simon Josefsson  <jas@extundo.com>
83492
83493         * gnulib-tool (Options): Make --symlink mean --symbolic.
83494
83495 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
83496
83497         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
83498
83499 2005-04-16  Simon Josefsson  <jas@extundo.com>
83500
83501         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
83502
83503 2005-04-15  Simon Josefsson  <jas@extundo.com>
83504
83505         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
83506
83507 2005-04-15  Simon Josefsson  <jas@extundo.com>
83508
83509         * gnulib-tool: Rename --symlink to --symbolic.
83510
83511 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
83512
83513         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
83514         symbolic links to files instead of copying/moving.  Add --aux-dir,
83515         specifying directory relative --dir where auxiliary build tools
83516         are placed.
83517
83518 2005-04-14  Bruno Haible  <bruno@clisp.org>
83519
83520         * modules/allocsa (License): Change to LGPL.
83521         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
83522
83523 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
83524
83525         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
83526         that "UTC +1 second" continues to work.  Problem reported
83527         by Dmitry V. Levin.
83528         (relunit_snumber): New rule.
83529         (relunit): Use it.
83530
83531 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
83532
83533         * lib/getdate.y (universal_time_zone_table): New constant.
83534         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
83535         universal_time_zone_table.
83536         (lookup_zone): Prefer universal_time_zone_table to
83537         local_time_zone_table, so that "GMT" time stamps are allowed in
83538         London during the summer.  Problem reported by Ian Abbott.
83539
83540 2005-04-12  Jim Meyering  <jim@meyering.net>
83541
83542         * lib/human.c (humblock): Set *options even when returning due to
83543         xstrtoumax conversion failure.  Thanks to a used-uninitialized
83544         warning from gcc-4.
83545
83546 2005-04-09  Jim Meyering  <jim@meyering.net>
83547
83548         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
83549         -Wuninitialized: initialize tm0.tm_year.
83550
83551 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
83552
83553         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
83554         count, since there's no maximum.  All uses changed.
83555         Add member dsts_seen.
83556         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
83557         not being INT_MAX.
83558         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
83559         Use pc_rels_seen to decide whther a date is absolute.
83560
83561         * lib/getdate.y (number): Don't overwrite year.
83562         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
83563         check.
83564
83565 2005-04-02  Simon Josefsson  <jas@extundo.com>
83566
83567         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
83568         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
83569
83570 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
83571
83572         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
83573         where no absolute path name can be longer than PATH_MAX.
83574
83575 2005-03-27  Jim Meyering  <jim@meyering.net>
83576
83577         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
83578
83579 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
83580
83581         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
83582         "one's complement" -> "ones' complement" in comment, as per Knuth.
83583         "value of type" -> "type or expression" in comment.
83584         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
83585
83586 2005-03-26  Jim Meyering  <jim@meyering.net>
83587
83588         Comment nits.
83589         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
83590         Correct typos: s/or/of/.
83591
83592 2005-03-26  Jim Meyering  <jim@meyering.net>
83593
83594         * modules/check-include-files: Move to ../ and rename to...
83595         * check-module: ...this.
83596
83597 2005-03-25  Jim Meyering  <jim@meyering.net>
83598
83599         * modules/xvasprintf (Files): Add xalloc.h.
83600
83601 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * modules/gettext (Files): config/config.rpath ->
83604         build-aux/config.rpath
83605         * modules/iconv (Files): Likewise.
83606         Problem reported by Oskar Liljeblad.
83607
83608 2005-03-23  Jim Meyering  <jim@meyering.net>
83609
83610         * modules/check-include-files: New script to check for
83611         missing dependencies, multiple includes, etc.
83612
83613         * modules/c-strtold (Depends-on): Add xalloc.
83614         * modules/c-strtod (Depends-on): Add xalloc.
83615         * modules/hash (Depends-on): Add xalloc.
83616         (Files): Remove lib/xalloc.h.
83617
83618         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
83619         * modules/userspec (Files): Add lib/inttostr.h.
83620
83621 2005-03-23  Jim Meyering  <jim@meyering.net>
83622
83623         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
83624
83625 2005-03-22  Jim Meyering  <jim@meyering.net>
83626
83627         * modules/stat-macros: New module.
83628         * modules/canonicalize, modules/euidaccess, modules/file-type,
83629         * modules/filemode, modules/lchown, modules/makepath,
83630         * modules/rmdir, modules/stat: Depend on new stat-macros module
83631         rather than listing lib/stat-macros.h manually.
83632         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
83633
83634 2005-03-22  Jim Meyering  <jim@meyering.net>
83635
83636         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
83637
83638 2005-03-22  Bruno Haible  <bruno@clisp.org>
83639
83640         * config/srclist.txt: Replace target directory 'config' with
83641         'build-aux'.
83642         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
83643         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
83644         ../build-aux/.
83645
83646 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
83647
83648         * modules/chdir-long (Depends-on): Add mempcpy.
83649
83650         * modules/acl, modules/backupfile, modules/c-strtod,
83651         modules/c-strtold, modules/canon-host, modules/canonicalize,
83652         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
83653         modules/exclude, modules/exitfail, modules/file-type,
83654         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
83655         modules/getdate, modules/getline, modules/getpagesize,
83656         modules/getpass, modules/getugroups, modules/group-member,
83657         modules/hard-locale, modules/hash, modules/human, modules/idcache,
83658         modules/inttostr, modules/long-options, modules/makepath,
83659         modules/md5, modules/memcasecmp, modules/memcoll,
83660         modules/modechange, modules/mountlist, modules/path-concat,
83661         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
83662         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
83663         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
83664         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
83665         modules/strftime, modules/strndup, modules/strverscmp,
83666         modules/timespec, modules/unlocked-io, modules/userspec,
83667         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
83668         modules/yesno:
83669         Remove lib_SOURCES line from Makefile.am section, as this is now
83670         done automatically by the corresponding Autoconf macro.
83671
83672 2005-03-21  Jim Meyering  <jim@meyering.net>
83673
83674         Changes imported from coreutils.
83675
83676         * lib/cycle-check.c: Don't include xalloc.h.
83677
83678         * lib/path-concat.c: Don't include assert.h.
83679         (path_concat): Remove assertion that would have triggered
83680         for ABASE starting with more than one slash.
83681         Reported by Andreas Schwab.
83682
83683         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
83684         properly when ABASE is an absolute file name.
83685         Correct the description of this function.
83686         Include <assert.h>.
83687         Add an assertion and a test driver.
83688         This fixes a bug introduced on 2004-07-02.
83689         Andreas Schwab reported the resulting failure of cp --parents:
83690         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
83691
83692 2005-03-21  Jim Meyering  <jim@meyering.net>
83693
83694         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
83695         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
83696
83697 2005-03-21  Jim Meyering  <jim@meyering.net>
83698         and  Paul Eggert  <eggert@cs.ucla.edu>
83699
83700         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
83701         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
83702         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
83703         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
83704         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
83705         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
83706         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
83707         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
83708         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
83709         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
83710         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
83711         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
83712         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
83713         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
83714         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
83715         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
83716         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
83717         for these modules.
83718
83719 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
83720
83721         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
83722         (which shouldn't happen), generate nothing instead of returning 0
83723         immediately, so that nstrftime (NULL, ...) doesn't return 0.
83724
83725 2005-03-16  Bruno Haible  <bruno@clisp.org>
83726
83727         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
83728         HAVE_LONGLONG_64BIT.
83729
83730 2005-03-16  Bruno Haible  <bruno@clisp.org>
83731
83732         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
83733         HAVE_LONGLONG_64BIT.
83734
83735 2005-03-16  Bruno Haible  <bruno@clisp.org>
83736
83737         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
83738         HAVE_LONGLONG_64BIT.
83739
83740 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83741
83742         * lib/strftime.c (my_strftime): Prepend space to format so that we can
83743         reliably distinguish strftime failure from empty output on POSIX
83744         hosts.
83745
83746 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
83747
83748         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
83749         (iconv_string): Don't guess a size-zero buffer, as that might cause
83750         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
83751         result would be 'too large', where 'too large' is (heuristically)
83752         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
83753         overflow concerns.  This will prevent some unwanted malloc failures
83754         when the inputs are very large.
83755
83756 2005-03-15  Karl Berry  <karl@gnu.org>
83757
83758         * config/srclist.txt (config.rpath): from gettext.
83759         * config/config.rpath: update.
83760
83761 2005-03-15  Bruno Haible  <bruno@clisp.org>
83762
83763         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
83764         to 'negate'.
83765
83766         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
83767         variable.
83768
83769         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
83770         results.
83771
83772 2005-03-14  Simon Josefsson  <jas@extundo.com>
83773
83774         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
83775         <fx@gnu.org>.
83776
83777 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
83778
83779         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
83780         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
83781         intprops.h.
83782         * lib/strtol.c: Likewise.
83783
83784 2005-03-14  Jim Meyering  <jim@meyering.net>
83785
83786         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
83787         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
83788         to be nonzero so that we (and caller) can detect the difference
83789         between a valid zero-length expansion and an error return, even
83790         when the underlying strftime fails before writing anything into
83791         that location.
83792
83793 2005-03-14  Bruno Haible  <bruno@clisp.org>
83794
83795         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
83796         Update from GNU gettext 0.14.3.
83797
83798 2005-03-10  Jim Meyering  <jim@meyering.net>
83799
83800         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
83801
83802 2005-03-10  Jim Meyering  <jim@meyering.net>
83803
83804         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
83805         so that this module works on systems without fchdir.
83806
83807 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         Factor int-properties macros into a single file, except for
83810         glibc-related files.
83811         * lib/intprops.h: New file.
83812         * lib/getloadavg.c: Include it instead of limits.h.
83813         (INT_STRLEN_BOUND): Remove.
83814         * lib/human.c: Include intprops.h.
83815         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83816         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83817         302/1000.
83818         * lib/inttostr.h: Include intprops.h instead of limits.h.
83819         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83820         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83821         for consistency with intprops.h.
83822         (time_t_is_integer, twos_complement_arithmetic): Use them.
83823         * lib/sig2str.h: Include <signal.h>, intprops.h.
83824         (INT_STRLEN_BOUND): Remove.
83825         * lib/strftime.c (TYPE_SIGNED): Remove.
83826         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83827         * lib/strtol.c: Adjust comments to match intprops.h.
83828         * lib/userspec.c: Include intprops.h.
83829         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83830         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83831         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83832         instead of rolling our own expressions.
83833         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83834
83835         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83836         instead of int.
83837         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83838         the right thing even if adding 1900 would overflow.  Similarly
83839         for tm_mon + 1 and tm_yday + 1.
83840         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83841         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83842         (DO_SIGNED_NUMBER): New macro.
83843         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83844
83845 2005-03-07  Bruno Haible  <bruno@clisp.org>
83846
83847         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83848
83849 2005-03-07  Bruno Haible  <bruno@clisp.org>
83850
83851         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83852
83853 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83854
83855         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83856         (func_import): Only replace files via --import when they have actually
83857         changed.
83858
83859 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83860
83861         * m4/mmap-anon.m4: New file.
83862         * m4/pagealign_alloc.m4: New file.
83863
83864 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83865             Bruno Haible  <bruno@clisp.org>
83866
83867         * modules/pagealign_alloc: New file.
83868         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83869
83870 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83871             Bruno Haible  <bruno@clisp.org>
83872
83873         * lib/pagealign_alloc.h: New file.
83874         * lib/pagealign_alloc.c: New file.
83875
83876 2005-03-03  Bruno Haible  <bruno@clisp.org>
83877
83878         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83879         Use an all-permissive copyright notice, recommended by RMS.
83880
83881 2005-03-02  Bruno Haible  <bruno@clisp.org>
83882
83883         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83884         of AIX, the replacement has to be done only after <string.h> is
83885         included, therefore not in config.h. stpncpy.h does the replacement,
83886         and stpncpy.c uses it.
83887
83888 2005-03-02  Bruno Haible  <bruno@clisp.org>
83889
83890         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83891         stpncpy.c uses it.
83892
83893 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83894
83895         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83896         The workaround isn't strictly needed for POSIX conformance, and
83897         it's too much of a pain to configure and maintain.  We'll ask
83898         people to fix their kernels instead.
83899         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83900         (NANOSLEEP_BUG_WORKAROUND): Remove.
83901         (xnanosleep): Remove the workaround.
83902
83903 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83904
83905         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83906         Reported by Derek Price.
83907         (Include): Add "timespec.h".
83908
83909         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83910
83911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83912
83913         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83914         to detect nanosleep bug.
83915
83916 2005-03-01  Bruno Haible  <bruno@clisp.org>
83917
83918         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83919
83920 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83921
83922         * modules/gethrxtime: New file.
83923         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83924         (Depends-on): Add gethrxtime.
83925         (configure.ac): Add gl_XNANOSLEEP.
83926         (Makefile.am): Remove lib_SOURCES line.
83927
83928 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83929
83930         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83931         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83932
83933 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83934
83935         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83936         * lib/timespec.h (gettime): Return void, since it always
83937         succeeds now.  All uses changed.
83938         * lib/gettime.c (gettime): Likewise.
83939         [HAVE_NANOTIME]: Prefer nanotime.
83940         Assume gettimeofday succeeds, as POSIX requires.
83941         Assime time () succeeds, since other code already does.
83942         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83943         (timespec_subtract): Remove.
83944         (NANOSLEEP_BUG_WORKAROUND): New constant.
83945         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83946         things considerably.  Use it only on GNU/Linux hosts, since the
83947         workaround shouldn't be needed elsewhere.
83948
83949 2005-02-24  Bruno Haible  <bruno@clisp.org>
83950
83951         * modules/gettext (Files): Add m4/glibc2.m4.
83952
83953 2005-02-24  Bruno Haible  <bruno@clisp.org>
83954
83955         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83956         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83957         * m4/progtest.m4:
83958         Update from GNU gettext 0.14.2.
83959         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83960
83961 2005-02-24  Bruno Haible  <bruno@clisp.org>
83962
83963         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83964         * lib/config.charset: Update from GNU gettext 0.14.2.
83965
83966 2005-02-24  Bruno Haible  <bruno@clisp.org>
83967
83968         * lib/gettext.h: Update from GNU gettext 0.14.2.
83969
83970 2005-02-23  Simon Josefsson  <jas@extundo.com>
83971
83972         * m4/iconvme.m4: New file.
83973
83974 2005-02-23  Jim Meyering  <jim@meyering.net>
83975
83976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83977         change.
83978         Thanks to Bruno Haible for catching it.
83979
83980 2005-02-22  Simon Josefsson  <jas@extundo.com>
83981
83982         * modules/iconvme: New file.
83983
83984         * MODULES.html.sh: Add iconvme.
83985
83986 2005-02-22  Simon Josefsson  <jas@extundo.com>
83987
83988         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83989
83990 2005-02-22  Simon Josefsson  <jas@extundo.com>
83991
83992         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83993
83994 2005-02-22  Jim Meyering  <jim@meyering.net>
83995
83996         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83997         s/ifndef/ifdef/.
83998
83999 2005-02-20  Neil Conway  <neilc@samurai.com>
84000
84001         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
84002         returned by OSX/Darwin if the specified buffer is not large
84003         enough for the hostname.
84004
84005 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84006
84007         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
84008         pass it to _help, otherwise the latter coredumps trying to
84009         dereference state.root_argp.
84010
84011 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * modules/chdir-long (Depends-on): Add memrchr.
84014         * modules/memrchr (Files): Add lib/memrchr.h.
84015         (Include): "memrchr.h".
84016
84017 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
84020
84021 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * lib/memrchr.h: New file.
84024         * lib/chdir-long.c: Include it.
84025         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
84026         Don't bother including stddef.h.
84027
84028 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
84029
84030         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
84031         inclusion.
84032         Include <sys/types.h>, for dev_t.
84033         (ME_DUMMY, ME_REMOTE): Move from here....
84034         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
84035         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
84036         Dmitry V. Levin.
84037         Include mountlist.h first, to test the interface.
84038
84039 2005-01-29  Bruno Haible  <bruno@clisp.org>
84040
84041         * lib/progname.c (program_name): Initialize.
84042         Needed when linking statically on MacOS X.
84043
84044 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84045
84046         Sync from coreutils.
84047         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
84048         (Depends-on): Add c-strtod.
84049         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
84050
84051 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
84052
84053         Sync from coreutils.
84054         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
84055
84056         Remove files that are specific to coreutils.
84057         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
84058
84059 2005-01-28  Bruno Haible  <bruno@clisp.org>
84060
84061         * modules/javacomp: New file.
84062         * MODULES.html.sh (Java): Add javacomp.
84063
84064 2005-01-28  Bruno Haible  <bruno@clisp.org>
84065
84066         * m4/javacomp.m4: New file, from GNU gettext.
84067
84068 2005-01-28  Bruno Haible  <bruno@clisp.org>
84069
84070         * lib/javacomp.sh.in: New file, from GNU gettext.
84071         * lib/javacomp.h: New file, from GNU gettext.
84072         * lib/javacomp.c: New file, from GNU gettext.
84073
84074 2005-01-26  Simon Josefsson  <jas@extundo.com>
84075
84076         * lib/gai_strerror.c: Use GPL in header.
84077
84078 2005-01-26  Bruno Haible  <bruno@clisp.org>
84079
84080         * modules/javaexec: New file.
84081         * MODULES.html.sh (Java): Add javaexec.
84082
84083 2005-01-26  Bruno Haible  <bruno@clisp.org>
84084
84085         * m4/javaexec.m4: New file, from GNU gettext.
84086
84087 2005-01-26  Bruno Haible  <bruno@clisp.org>
84088
84089         * lib/javaexec.sh.in: New file, from GNU gettext.
84090         * lib/javaexec.h: New file, from GNU gettext.
84091         * lib/javaexec.c: New file, from GNU gettext.
84092
84093 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84094
84095         * modules/lchown (Depends-on): Remove lchown.h
84096
84097 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84098
84099         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
84100         must be defined if the header file was not found, in order
84101         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
84102
84103 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84104
84105         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
84106         initializers for struct pentry_state.
84107         (__argp_error): Check return value of __asprintf
84108         (__argp_failure): Translate error message
84109
84110         * lib/argp-parse.c: Removed braces around the expansion of N_()
84111
84112 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
84115         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
84116         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
84117         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
84118         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
84119         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
84120         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
84121         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
84122         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
84123         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
84124         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
84125         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
84126         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
84127         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
84128         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
84129         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
84130         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
84131         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
84132         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
84133         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
84134         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
84135         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
84136         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
84137         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
84138         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
84139         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
84140         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
84141         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
84142         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
84143         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
84144         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
84145         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
84146         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
84147         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
84148         xstrtol.m4, xstrtoumax.m4, yesno.m4:
84149         Use an all-permissive copyright notice, recommended by RMS.
84150
84151 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
84152
84153         * modules/chdir-long (Depends-on): Remove mempcpy.
84154
84155 2005-01-21  Jim Meyering  <jim@meyering.net>
84156
84157         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
84158         same value as for Solaris 9.
84159
84160         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
84161         component length.  This included changing the parameter to be
84162         of type `char *' rather than `char const *'.
84163         * lib/chdir-long.h (chdir_long): Update prototype.
84164
84165         * lib/openat.c (fdopendir, fstatat): New functions.
84166         * lib/openat.h: Include headers required for use of DIR and struct
84167         stat.
84168         [AT_SYMLINK_NOFOLLOW]: Define.
84169         (fdopendir, fstatat): Add prototypes.
84170
84171 2005-01-21  Bruno Haible  <bruno@clisp.org>
84172
84173         * modules/classpath: New file.
84174         * MODULES.html.sh (Java): Add classpath.
84175
84176 2005-01-21  Bruno Haible  <bruno@clisp.org>
84177
84178         * lib/classpath.h: New file, from GNU gettext.
84179         * lib/classpath.c: New file, from GNU gettext.
84180
84181 2005-01-20  Simon Josefsson  <jas@extundo.com>
84182
84183         * modules/version-etc-fsf: New file.
84184
84185 2005-01-20  Simon Josefsson  <jas@extundo.com>
84186
84187         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
84188         * lib/version-etc.c: Remove version_etc_copyright.
84189         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
84190         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
84191
84192 2005-01-20  Simon Josefsson  <jas@extundo.com>
84193
84194         * lib/base64.h (isbase64): Add.
84195
84196         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
84197         using a unsigned prototype, don't inline.
84198         (base64_decode): Use it.
84199
84200 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
84203         it.
84204
84205 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84206
84207         * lib/save-cwd.c (save_cwd): Remove code to support the case
84208         where fchdir is missing or flaky.
84209
84210 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
84211
84212         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
84213
84214 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
84217         AC_LIBSOURCES now does this.
84218         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
84219         with new ullong_max module.
84220
84221 2005-01-19  Bruno Haible  <bruno@clisp.org>
84222
84223         * modules/sh-quote: New file.
84224         * MODULES.html.sh (Executing programs): Add sh-quote.
84225
84226 2005-01-19  Bruno Haible  <bruno@clisp.org>
84227
84228         * lib/sh-quote.h: New file, from GNU gettext.
84229         * lib/sh-quote.c: New file, from GNU gettext.
84230
84231 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84232
84233         Merge from coreutils.
84234         * m4/ullong_max.m4: New file.
84235         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
84236         (gl_MACROS): Assume localeconv exists.
84237
84238 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         Merge changes from coreutils, as described below in several
84241         changelogs dated today.
84242
84243         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
84244         (O_DIRECTORY): Remove; not needed here, since "." must be
84245         a directory.  All uses removed.
84246         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
84247         universal on Suns, and we also need to test for IRIX.
84248         Revamp code to use 'if' rather than '#if'.
84249         Avoid unnecessary comparison of cwd->desc to 0.
84250
84251         * lib/utimens.c (futimens): Robustify the previous patch, by checking
84252         for known valid error numbers rather than observed invalid ones.
84253
84254 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * modules/ullong_max: New file.
84257
84258         * modules/chdir-long, modules/openat: New files.
84259         * modules/save-cwd (Depends-on): Depend on chdir-long.
84260         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
84261
84262 2005-01-18  Jim Meyering  <jim@meyering.net>
84263
84264         Merge from coreutils.
84265         * m4/chdir-long.m4, m4/openat.m4: New files.
84266         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
84267         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
84268         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
84269         is sane and DOES follow symlinks.  Besides, testing 20 different
84270         systems found no broken chown implementations.
84271         Prompted by a change in rsync's copy of this macro.
84272         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
84273
84274         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
84275
84276         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
84277         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
84278         NULL-means-set-to-current-time semantics.
84279         Remove temporary file immediately, rather than waiting
84280         for configure's at-exit trap code to do it.
84281
84282 2005-01-18  Jim Meyering  <jim@meyering.net>
84283
84284         * lib/version-etc.c (version_etc_copyright): Update copyright date.
84285
84286         * lib/utimens.c (futimens): Account for the fact that futimes
84287         can also fail with errno == ENOSYS or errno == ENOENT.
84288         Patch from Dmitry V. Levin.
84289
84290         Change the name of the robust chdir function from chdir to chdir_long.
84291         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
84292         (restore_cwd): Use chdir_long, not chdir.
84293         * lib/chdir-long.c: Renamed from chdir.c.
84294         * lib/chdir-long.h: Renamed from chdir.h.
84295         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
84296         Hurd.
84297
84298 2005-01-18  Bruno Haible  <bruno@clisp.org>
84299
84300         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
84301         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
84302         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
84303         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
84304         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
84305         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
84306         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
84307         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
84308         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
84309         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
84310         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
84311         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
84312         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
84313         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
84314         Use an all-permissive copyright notice, recommended by RMS.
84315
84316 2005-01-18  Bob Proulx  <bob@proulx.com>
84317
84318         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
84319         simplify offsetof() macro construct to avoid compile failure with
84320         native HP-UX 11.0 ANSI C compiler.
84321
84322 2005-01-17  Bruno Haible  <bruno@clisp.org>
84323
84324         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
84325         redundant because stpncpy.m4 takes care of it.
84326
84327 2005-01-17  Bruno Haible  <bruno@clisp.org>
84328
84329         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
84330
84331 2005-01-17  Bruno Haible  <bruno@clisp.org>
84332
84333         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
84334         used.
84335
84336 2005-01-17  Bruno Haible  <bruno@clisp.org>
84337
84338         * lib/fwriteerror.h (fwriteerror): Change specification to include
84339         fclose.
84340         * lib/fwriteerror.c: Include <stdbool.h>.
84341         (fwriteerror): At the end, close the file stream. Record whether
84342         stdout was already closed.
84343
84344 2005-01-17  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/execute.c (environ): Declare if needed.
84347         * lib/pipe.c (environ): Likewise.
84348         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
84349
84350 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84351
84352         * modules/argp: Depend on vsnprintf
84353
84354 2005-01-10  Jim Meyering  <jim@meyering.net>
84355
84356         * modules/closeout (Depends-on): Add atexit.
84357
84358 2005-01-06  Bruno Haible  <bruno@clisp.org>
84359
84360         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
84361
84362 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
84363
84364         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
84365         definitions to be after all include files, to avoid collisions.
84366         Problem reported by Bob Proulx.
84367
84368 2005-01-04  Jim Meyering  <jim@meyering.net>
84369
84370         Changes imported from coreutils.
84371         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
84372         as the mkstemp template, use a temporary directory and an
84373         8.3-friendly template to avoid trouble on systems like DJGPP.
84374         Reported by Juan M. Guerrero via Stepan Kasal.
84375         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
84376         close. Remove the temporary directory right away, rather than waiting
84377         for configure's at-exit trap code to do it.
84378         Suggestion from Stepan Kasal.
84379
84380 2005-01-01  Simon Josefsson  <jas@extundo.com>
84381
84382         * gnulib-tool: Print #include directives when --import'ing.
84383
84384 2004-12-28  Simon Josefsson  <jas@extundo.com>
84385
84386         * tests/test-base64.c: Include required header files.  Remove
84387         unused variables.
84388
84389 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         * modules/error (Depends-on): Remove gettext.
84392
84393 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
84394
84395         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
84396         not needed.  This removes a dependency on the gettext module.
84397         [defined _LIBC]: Do not include <libintl.h>; not needed.
84398
84399 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84400
84401         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
84402         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
84403
84404 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
84405
84406         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
84407         HAVE_DECL_STRTOLD.
84408
84409 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84410
84411         * modules/getdate (Depends-on): Remove alloca-opt.
84412
84413 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84414
84415         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
84416
84417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
84418
84419         * lib/argp-parse.c: Include <stddef.h>.
84420         (alignof, alignto): New macros.
84421         (parser_init): Don't assume that void * is aligned sufficiently
84422         for struct option.
84423
84424         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
84425         need to extend the stack.
84426         (YYINITDEPTH): New macro, so that the initial stack isn't overly
84427         large.
84428
84429 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84430
84431         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
84432
84433 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84434
84435         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
84436         (2004-10-24) change.  Apparently this was a false alarm.
84437
84438         * modules/getdate: Depend on alloca-opt, not alloca.
84439
84440 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
84441
84442         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
84443         Remove now-obsolete comment about AIX.
84444         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
84445         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
84446         (YYMAXDEPTH): New macro.
84447
84448 2004-12-18  Simon Josefsson  <jas@extundo.com>
84449
84450         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
84451
84452 2004-12-18  Bruno Haible  <bruno@clisp.org>
84453
84454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
84455
84456 2004-12-18  Bruno Haible  <bruno@clisp.org>
84457
84458         * lib/fatal-signal.c (fatal_signals): Make non-const.
84459         (init_fatal_signals): New function.
84460         (uninstall_handlers, install_handlers): Ignore signals that were set to
84461         SIG_IGN.
84462         (at_fatal_signal): Call init_fatal_signals.
84463         (init_fatal_signal_set): Likewise. Ignore signals that were set to
84464         SIG_IGN.
84465         Reported by Paul Eggert.
84466
84467 2004-12-18  Bruno Haible  <bruno@clisp.org>
84468
84469         * doc/alloca.texi: New file.
84470         * doc/alloca-opt.texi: New file.
84471
84472 2004-12-17  Jim Meyering  <jim@meyering.net>
84473
84474         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
84475         Otherwise, install-sh could exit with improper exit status when
84476         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
84477
84478 2004-12-16  Simon Josefsson  <jas@extundo.com>
84479
84480         * tests/test-base64.c: Add license.
84481
84482 2004-12-15  Stepan Kasal  <address@hidden>
84483
84484         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
84485
84486 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
84487
84488         * modules/getcwd (Files): Add m4/d-ino.m4.
84489         Suggested by Mark D. Baushke.
84490
84491 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84492
84493         * lib/getdate.y (textint): New member "negative".
84494         (time_zone_hhmm): New function.
84495         Expect 14 shift-reduce conflicts, not 13.
84496         (o_colon_minutes): New rule.
84497         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
84498         (yylex): Set the "negative" member of signed numbers.
84499
84500 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * doc/getdate.texi (Time of day items, Time zone items):
84503         Describe new formats +00:00, UTC+00:00.
84504
84505 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
84508         spurious "-l"s.  Problem reported by Stepan Kasal.
84509
84510 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
84511
84512         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
84513         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
84514
84515 2004-12-04  Simon Josefsson  <jas@extundo.com>
84516
84517         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
84518         Vandoorselaere <yoann@prelude-ids.org>.
84519
84520 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         Changes imported from coreutils.
84523         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
84524         exist.
84525         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
84526
84527 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84528
84529         Changes imported from coreutils.
84530         * lib/hard-locale.c: Assume <locale.h> exists.
84531         Include "strdup.h".
84532         (GLIBC_VERSION): New macro.
84533         (hard_locale): Assume setlocale exists.
84534         Rewrite to avoid #ifdef.
84535         Use strdup rather than malloc + strcpy.
84536         * lib/human.c: Assume <locale.h> exists.
84537         (human_readable): Assume localeconv exists.
84538
84539 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
84540
84541         * modules/hard-locale (Depends-on): Add strdup.
84542
84543 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
84544
84545         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
84546         convert T2, not T.  (Imported from libc.)
84547
84548 2004-11-30  Simon Josefsson  <jas@extundo.com>
84549
84550         * modules/restrict (License): Change to LGPL.
84551
84552 2004-11-30  Simon Josefsson  <jas@extundo.com>
84553
84554         * m4/restrict.m4: Add copyright and copying conditions.
84555
84556 2004-11-30  Simon Josefsson  <jas@extundo.com>
84557
84558         * m4/base64.m4: New file.
84559
84560 2004-11-30  Simon Josefsson  <jas@extundo.com>
84561
84562         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
84563         base64.
84564
84565         * tests/test-base64.c: New file.
84566
84567         * modules/base64: New file.
84568
84569 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84570
84571         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
84572         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
84573
84574         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
84575
84576 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
84577
84578         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
84579         (__getcwd.c): Don't restore errno; glibc doesn't.
84580         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
84581         first, falling back to our code only if its results look suspicious.
84582         Ensure that the resulting buffer is only as large as necessary.
84583
84584         * lib/readutmp.c: Include readutmp.h first.
84585         Include <errno.h>, since readutmp.h no longer does that.
84586         * lib/readutmp.h: Don't include <errno.h>,
84587         <sys/param.h>, <time.h>; not needed to establish interface.
84588         (errno): Remove decl.
84589         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
84590         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
84591         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
84592
84593 2004-11-28  Simon Josefsson  <jas@extundo.com>
84594
84595         * lib/base64.h, base64.c: New file.
84596
84597 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
84598
84599         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
84600
84601 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
84604         (Depends-on): Remove pathmax, same.  Add mempcpy.
84605         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
84606         (Makefile.am): Append getcwd.h to lib_SOURCES.
84607         (Include): Add getcwd.h.
84608         (Maintainer): Change from Jim Meyering to "all, glibc",
84609         since getdate now uses intended-for-glibc code.
84610         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
84611         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
84612
84613 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
84616         HP's ANSI C compiler.
84617         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
84618         Declaring int functions causes warnings on some modern systems and
84619         shouldn't be needed to compile on ancient ones.
84620         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
84621         defined.
84622
84623         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
84624         with the following changes.
84625         (__set_errno): Parenthesize properly.
84626         Include <stdbool.h>.
84627         (MIN, MAX, MATCHING_INO): New macros.
84628         (__getcwd): Define with prototype, not K&R form.
84629         Use heuristics to allocate default buffer on stack if possible.
84630         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
84631         behavior, and to avoid the PATH_MAX limit when computing
84632         ../../../../...
84633         Use MATCHING_INO to compare inode number to file.
84634         Check for arithmetic overflow in size calculations.
84635         Fix bug in reallocation of dot array that caused getcwd to fail
84636         on directories nested deeper than 75.
84637         Be more careful about saving errno on error.
84638         Do not use realloc; use only free+malloc, as this is a bit
84639         more flexible and avoids a needless copy operation.
84640         Do not inspect st_dev and st_ino for symbolic links; POSIX
84641         doesn't specify the latter.
84642         Check for closedir errors.
84643         Avoid needless casts.
84644         Use "#ifdef weak_alias" around weak_alias, to be like other
84645         glibc code.
84646         The following changes to getcwd.c have effect only when used in
84647         gnulib; they have no effect inside glibc proper.
84648         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
84649         as alloca isn't used.
84650         (alloca, __alloca): Likewise.
84651         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
84652         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84653         unconditionally, as gnulib assumes C89 or better.
84654         Do not include <sys/param.h>.
84655         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
84656         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
84657         better.
84658         (NULL) [!defined NULL]: Remove; we assume C89 or better.
84659         Include <dirent.h> in a way that is compatible with modern Autoconf.
84660         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
84661         New macros, if not already defined.
84662         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
84663         Use "_LIBC", not "defined _LIBC", for consistency.
84664         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
84665         a mempcpy module.
84666         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
84667         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
84668         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
84669         credit only to Jim Meyering and adjust the copyright dates.
84670         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
84671         <stdlib.h>, <unistd.h>, "pathmax.h".
84672         Instead, include "xgetcwd.h" (first) and "getcwd.h".
84673         (INITIAL_BUFFER_SIZE): Remove.
84674         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
84675
84676 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
84677
84678         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
84679         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
84680         Use the _ONCE methods, for efficiency.
84681         Check for fcntl.h.  In test program, include <errno.h>
84682         and <fcntl.h> if available.  Remove old K&R cruft from
84683         test program.  Check for common errors in GNU/Linux,
84684         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
84685         don't do AC_LIBOBJ, as that's getcwd.m4's job.
84686         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
84687         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
84688         name accordingly.
84689         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
84690         accommodate new getcwd.c.
84691         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
84692         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
84693         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
84694         that's all we need now.
84695
84696 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84697
84698         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
84699         argp-parse.c depends on getopt internals, that means we should
84700         always use our getopt, to be on the safe side.
84701         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
84702         order not to spoil the result of an eventual previous invocation
84703         of gl_GETOPT_SUBSTITUTE.
84704
84705 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84706
84707         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
84708         redefinition warnings. To avoid them, include the defines
84709         in `#if !defined __need_getopt ... #endif'. The only place
84710         where __getopt_argv_const is used is in definitions
84711         of getopt_long and getopt_long_only below, which are as well
84712         protected by `#ifndef __need_getopt'.
84713         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
84714         __need_getopt after including <stdio.h> and <unistd.h> These
84715         headers might have defined it.
84716
84717 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84718
84719         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
84720
84721 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
84722
84723         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
84724         (futimens): New function, which uses futimes if available.
84725         (futimens, utimens): Support timespec==NULL, with same semantics
84726         as utime and utimens.
84727         * lib/utimens.h (futimens): New decl.
84728
84729 2004-11-23  Jim Meyering  <jim@meyering.net>
84730
84731         * lib/getopt_.h: Remove trailing blanks.
84732
84733 2004-11-23  Jim Meyering  <jim@meyering.net>
84734
84735         * lib/__fpending.c: Add comment.
84736
84737 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
84738
84739         * modules/canonicalize (Depends-on): Add xreadlink.
84740         Problem reported by James Youngman.
84741
84742 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
84743
84744         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
84745         New macros.
84746         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
84747         optopt): Use them instead of invoking ## directly; otherwise, the
84748         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
84749
84750 2004-11-19  Bruno Haible  <bruno@clisp.org>
84751
84752         * lib/strtok_r.c: Move comments from here...
84753         * lib/strtok_r.h: ... to here.
84754
84755 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84756
84757         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
84758         implementations that mishandle size_t overflow.
84759
84760 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
84761
84762         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
84763         might fail.  Problem reported by Yoann Vandoorselaere.
84764         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
84765         implementations that mishandle size_t overflow.
84766
84767 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84768
84769         * modules/canon-host (Depends-on): Add strdup.
84770
84771 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
84774
84775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84776
84777         * lib/canon-host.c: Include "strdup.h".
84778         (canon_host): Use getaddrinfo if available, so that IPv6 works.
84779         Use strdup instead of malloc/strcpy to duplicate strings.
84780
84781         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
84782         (human_space_before_unit): New constant.
84783         * lib/human.c (human_readable): Support it.
84784
84785         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
84786         (xgetcwd): Set errno correctly when failing.
84787         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
84788         the failure is actually due to a PATH_MAX problem.
84789
84790         Further getopt changes to make it more likely that glibc will
84791         buy the changes back.
84792         * lib/getopt.c (POSIXLY_CORRECT): New constant.
84793         (getopt): Use it, so to preserve glibc semantic
84794         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
84795         when compiling for libc.
84796         * lib/getopt_.h (__getopt_argv_const): Bring it back.
84797         (getopt_long, getopt_long_only): Use it.
84798
84799         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84800         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
84801         (getopt): Argv is now char * const *, as per standard.
84802         (_getopt_internal_r, _getopt_internal): Argv is now char **,
84803         not char *__getopt_argv_const *.
84804         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84805         _getopt_long_only_r): Likewise.
84806         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
84807         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84808         _getopt_long_r, _getopt_long_only_r): Likewise.
84809         * lib/getopt_.h (__getopt_argv_const): Remove.
84810         (getopt): Argv is now char * const *, as per standard.
84811
84812         * lib/getdate.y (tORDINAL): New token.
84813         (day, relunit): Allow it for relative times.
84814         (relative_time_table): Use tORDINAL for ordinals.
84815
84816 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84817
84818         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84819         Document that "second" isn't allowed as an ordinal number.
84820
84821 2004-11-16  Jim Meyering  <jim@meyering.net>
84822
84823         * modules/closeout (Depends-on): Add fpending.
84824
84825 2004-11-15  Jim Meyering  <jim@meyering.net>
84826
84827         * lib/closeout.c: Include "__fpending.h" once again.
84828         Include <stdbool.h>.
84829         (close_stdout): Don't fail just because stdout was closed initially,
84830         since some programs don't write to stdout in the normal course of
84831         operation (other than --version and --help), and we don't want this
84832         function to make e.g. `touch file >&-' fail.
84833         But do fail if it was closed and someone has tried to write to it.
84834         E.g., `printf foo >&-' must fail.
84835
84836 2004-11-13  Jim Meyering  <jim@meyering.net>
84837
84838         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84839
84840 2004-11-12  Simon Josefsson  <jas@extundo.com>
84841
84842         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84843         small doc fix is still pending.
84844
84845 2004-11-11  Simon Josefsson  <jas@extundo.com>
84846
84847         * modules/strtok_r: New file.
84848
84849         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84850         strtok_r.
84851
84852 2004-11-11  Simon Josefsson  <jas@extundo.com>
84853
84854         * m4/strtok_r.m4: New file.
84855
84856         * m4/getopt.m4: Replace opterr.
84857
84858 2004-11-11  Simon Josefsson  <jas@extundo.com>
84859
84860         * lib/strtok_r.h, strtok_r.c: New file.
84861
84862 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84863
84864         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84865         of replacing opterr, getopt, etc.  This should handle the
84866         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84867
84868 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84869
84870         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84871         we can stop lying to compilers about the constness of argv when we
84872         are compiled outside glibc.
84873         (getopt, getopt_long, getopt_long_only): Use it.
84874         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84875         _getopt_internal, getopt): Likewise.
84876         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84877         _getopt_long_only_r): Likewise.
84878         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84879         _getopt_long_r, _getopt_long_only_r): Likewise.
84880
84881         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84882         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84883         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84884         the other external symbols.
84885         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84886         declaration, since the above renaming now works around collisions.
84887
84888 2004-11-11  Jim Meyering  <jim@meyering.net>
84889
84890         * lib/linebreak.c: Remove trailing blanks.
84891         * lib/alloca_.h: Likewise.
84892         * lib/acosl.c: Likewise.
84893         * lib/euidaccess.c: Likewise.
84894         * lib/allocsa.h: Likewise.
84895
84896 2004-11-10  Simon Josefsson  <jas@extundo.com>
84897
84898         * m4/getaddrinfo.m4: New file.
84899
84900 2004-11-10  Simon Josefsson  <jas@extundo.com>
84901
84902         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84903
84904 2004-11-10  Simon Josefsson  <jas@extundo.com>
84905
84906         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84907         getaddrinfo.
84908
84909         * modules/getaddrinfo: New file.
84910
84911 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84912
84913         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84914
84915 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84916
84917         * lib/mktime.c (SHR): New macro, which is a portable
84918         substitute for >> that should work even on Crays.
84919         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84920         Problem reported by Mark D. Baushke in
84921         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84922         * lib/getdate.y (SHR): Likewise.
84923         (tm_diff): Use it.
84924         * lib/strftime.c (SHR): Likewise.
84925         (tm_diff): Use it.
84926         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84927         quote_these_too, so that right shifts are well defined.  All uses
84928         changed.
84929
84930 2004-11-10  Jim Meyering  <jim@meyering.net>
84931
84932         Ensure that no close failure goes unreported.
84933         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84934         return early when it seems there's nothing to flush.
84935         Don't include __fpending.h.
84936
84937 2004-11-10  Jim Meyering  <jim@meyering.net>
84938
84939         * modules/closeout (Depends-on): Remove fpending.
84940
84941 2004-11-10  Jim Meyering  <jim@meyering.net>
84942
84943         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84944
84945 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84946
84947         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84948         gl_FUNC_STRFTIME.
84949         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84950         and AC_REQUIRE when possible, to avoid duplicate checks.
84951         Check for <wchar.h>.
84952
84953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84956
84957 2004-11-09  Bruno Haible  <bruno@clisp.org>
84958
84959         * m4/sockpfaf.m4: New file.
84960
84961 2004-11-05  Bruno Haible  <bruno@clisp.org>
84962
84963         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84964         Reported by Mark D. Baushke <mdb@cvshome.org>.
84965
84966 2004-11-04  Bruno Haible  <bruno@clisp.org>
84967
84968         2004-09-11  Bruno Haible  <bruno@clisp.org>
84969                 * allocsa.valgrind: New file.
84970         2004-02-06  Bruno Haible  <bruno@clisp.org>
84971                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84972                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84973                 Reported by Christopher Seip <chris.seip@hp.com>.
84974
84975 2004-11-04  Bruno Haible  <bruno@clisp.org>
84976
84977         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84978         (Makefile.am): Distribute it.
84979
84980 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84981
84982         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84983         with errno == ERANGE if the buffer is too small.
84984         Problem reported by Mark D. Baushke.
84985
84986 2004-11-03  Albert Chin  <china@thewrittenword.com>
84987             Paul Eggert  <eggert@cs.ucla.edu>
84988
84989         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84990         equivalent, substitute $ac_type for equivalent type rather than
84991         blindly using uint32_t *always* which won't work if uint32_t is not
84992         available.  Define _UINT32_T to work around typedef of uint32_t if
84993         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84994         2.5.1.
84995
84996 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84997
84998         * m4/jm-macros.m4: Sync from coreutils.
84999         (gl_MACROS): Check for mbrlen, for pathchk.
85000         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
85001
85002 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85003
85004         * lib/xreadlink.c (MAXSIZE): New macro.
85005         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
85006         size does not exceed MAXSIZE.  Avoid cast.
85007         As suggested by Mark D. Baushke in
85008         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
85009         if readlink fails with buffer size just under MAXSIZE, try again
85010         with MAXSIZE.
85011
85012 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
85013
85014         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
85015
85016 2004-11-02  Derek R. Price  <derek@ximbiot.com>
85017         and  Paul Eggert  <eggert@cs.ucla.edu>
85018
85019         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
85020         (get_date): Overparenthesize to avoid GCC warning.
85021
85022 2004-11-02  Bruno Haible  <bruno@clisp.org>
85023
85024         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
85025         returns void.
85026
85027 2004-11-02  Bruno Haible  <bruno@clisp.org>
85028
85029         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
85030         function returns void.
85031
85032 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85033
85034         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
85035         fflush_unlocked, flockfile, funlockfile, funlockfile,
85036         fputs_unlocked, putc_unlocked.
85037
85038 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
85039
85040         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85041         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
85042         already declared.
85043
85044 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * modules/getdate (Files): Add doc/getdate.texi.
85047         (Depends-on): Add setenv, xalloc.
85048
85049 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         * lib/getdate.y: Add support for TZ="foo" within a date string.
85052         Fix some bugs near time_t boundaries.  Reject dates with
85053         out-of-range components, e.g., "Sept 31".
85054         Include <stdlib.h>, "setenv.h", "xalloc.h".
85055         (ISDIGIT_LOCALE): Remove; unused.
85056         Note that the TZ and time functions used here are not reentrant.
85057         (mktime_ok, get_tz): New functions.
85058         (TZBUFSIZE): New constant.
85059         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
85060         This requires that we sometimes generate our own TZ="XXX..." setting.
85061
85062 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
85063
85064         * doc/getdate.texi: New file, from coreutils with modifications for
85065         the new TZ parsing.
85066
85067 2004-10-27  Derek R. Price  <derek@ximbiot.com>
85068
85069         * lib/mktime.c (not_equal_tm): Remove redundant check.
85070
85071 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         * modules/regex (lib_SOURCES): Add regex.c.
85074         Reported by James Youngman in
85075         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
85076
85077 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
85078
85079         * lib/getdate.y: Use Bison 1.875 features, and some minor
85080         code cleanups.  This change does not affect semantics.
85081         Don't include <stdlib.h>; no longer needed.
85082         Don't include unlocked-io.h; only the "#if TEST" code uses
85083         stdio, and performance isn't crucial there.
85084         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
85085         Bison 1.875 features as described below.
85086         All uses of "PC." replaced by "pc->".
85087         (YYSTYPE): Add a forward declaration.
85088         (yylex, yyerror): Use full prototypes in forward decls.
85089         Use "%pure-parser" rather than obsolescent "%pure_parser".
85090         Use %parse-param and %lex-param instead of obsolescent
85091         YYPARSE_PARAM and YYLEX_PARAM.
85092         (meridian_table, month_and_day_table, time_units_table,
85093         relative_time_table, time_zone_table, military_table,
85094         lookup_zone, lookup_word, get_date):
85095         Use NULL instead of 0 where appropriate.
85096         (to_hour): Avoid abort (), to avoid a dependency on
85097         stdlib.h.
85098         (yyerror, yylex): Now accepts parser_control * arg.
85099         (main) [TEST]: Use '\0' rather than 0 for char.
85100
85101 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85102
85103         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
85104
85105 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
85108         It's now the caller's responsibility to handle the case where
85109         !HAVE_GETPAGESIZE && !defined getpagesize.
85110
85111         * lib/mktime.c (leapyear): Arg is long int, not int.
85112
85113 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
85114
85115         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
85116
85117 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
85118
85119         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
85120         missing.  Problem reported by James Youngman.
85121
85122 2004-10-16  Simon Josefsson  <jas@extundo.com>
85123
85124         * gnulib-tool: Fix comments.  Fix parse problem.
85125         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
85126
85127 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
85128
85129         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
85130         implementation of getopt_long.  Problem reported by Alexander Taler in:
85131         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
85132
85133 2004-10-15  Bruno Haible  <bruno@clisp.org>
85134
85135         * gnulib-tool: Untabify. Initialize supplied_libname.
85136         (func_usage): More homogenous output.
85137         (func_modules_transitive_closure, func_modules_to_filelist,
85138         func_emit_lib_Makefile_am): New functions.
85139         (func_import): New function, extracted from big case statement. Use
85140         func_get_license, func_modules_transitive_closure,
85141         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
85142         opt_lgpl. Don't use test -a, as it's not portable.
85143         (func_create_testdir): Use func_modules_transitive_closure,
85144         func_modules_to_filelist, func_emit_lib_Makefile_am.
85145
85146 2004-10-15  Bruno Haible  <bruno@clisp.org>
85147
85148         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
85149
85150 2004-10-15  Bruno Haible  <bruno@clisp.org>
85151
85152         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
85153         the portions belonging to each module.
85154         Suggested by Derek Robert Price <derek@ximbiot.com>.
85155
85156 2004-10-12  Simon Josefsson  <jas@extundo.com>
85157
85158         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
85159         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
85160         to real functions.
85161
85162 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85163
85164         * modules/vsnprintf: New file.
85165
85166 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85167
85168         * m4/vsnprintf.m4: New file.
85169
85170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85171
85172         * lib/vsnprintf.h: New file.
85173         * lib/vsnprintf.c: New file.
85174
85175 2004-10-11  Bruno Haible  <bruno@clisp.org>
85176
85177         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
85178         vsnprintf.
85179
85180 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
85181
85182         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
85183
85184 2004-10-07  Bruno Haible  <bruno@clisp.org>
85185
85186         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
85187         fits into the provided buffer.
85188
85189 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * lib/diacrit.c, diacrit.h: Add GPL notice.
85192
85193         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
85194         notice.
85195         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
85196         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
85197         This avoids a potential constant-folding bug.
85198
85199 2004-10-05  Bruno Haible  <bruno@clisp.org>
85200
85201         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
85202         for the declaration of strsep.
85203
85204 2004-10-05  Bruno Haible  <bruno@clisp.org>
85205
85206         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
85207
85208 2004-10-04  Simon Josefsson  <jas@extundo.com>
85209
85210         * modules/memmem: New file.
85211         * tests/test-memmem.c: New file.
85212         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
85213
85214 2004-10-04  Simon Josefsson  <jas@extundo.com>
85215
85216         * m4/memmem.m4: New file.
85217
85218 2004-10-04  Simon Josefsson  <jas@extundo.com>
85219
85220         * lib/memmem.h: New file.
85221         * lib/memmem.c: New file, taken from glibc.
85222
85223 2004-10-04  Simon Josefsson  <jas@extundo.com>
85224
85225         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
85226         '#ifdef USE_UNLOCKED_IO'.
85227
85228 2004-10-04  Simon Josefsson  <jas@extundo.com>
85229
85230         * config/srclist.txt: Add memmem from glibc.
85231
85232 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85233
85234         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
85235
85236         * modules/argmatch, modules/argp, modules/closeout, modules/error,
85237         modules/exclude, modules/getdate, modules/getline,
85238         modules/getndelim2, modules/getpass, modules/getpass-gnu,
85239         modules/getusershell, modules/linebuffer, modules/md5,
85240         modules/mountlist, modules/posixtm, modules/readtokens,
85241         modules/readutmp, modules/regex, modules/sha1,
85242         modules/version-etc, modules/yesno:
85243         Remove dependency on unlocked-io.
85244
85245 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85246
85247         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
85248
85249         * m4/unlocked-io.m4: Add copyright notice.
85250         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
85251
85252 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85253
85254         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
85255         * lib/xmalloc.c (xmemdup): Likewise.
85256         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
85257         XFREE): Remove these long-obsolescent macros.
85258         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
85259         * lib/xstrdup.c: Remove.
85260
85261         * lib/regex.c (re_comp): Cast gettext return value to char *,
85262         Problem reported by Martin Neitzel via Mark D. Baushke.
85263
85264 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
85265
85266         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
85267         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
85268         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
85269         regex.c, sha1.c, version-etc.c, yesno.c:
85270         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
85271         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
85272         the includer's responsibility.
85273
85274         Sync from coreutils.
85275
85276         * lib/modechange.c (mode_compile): Don't decrement a pointer that
85277         points to the start of a string, as the C Standard says the
85278         resulting behavior is undefined.
85279
85280         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
85281         simple -> simple_backups, numbered_existing ->
85282         numbered_existing_backups, numbered -> numbered_backups
85283         to avoid shadowing problems.  All uses changed.
85284         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
85285         * lib/backupfile.c (check_extension, numbered_backup):
85286         Rename locals to avoid shadowing 'basename'.
85287         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
85288         once.
85289
85290         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
85291         * lib/.cvsignore: Add getopt.h.
85292
85293 2004-10-04  Bruno Haible  <bruno@clisp.org>
85294
85295         * modules/README: New file.
85296         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
85297         not a module.
85298
85299 2004-10-02  Jim Meyering  <jim@meyering.net>
85300
85301         * lib/dirfd.h, getpagesize.h: Add copyright notice.
85302
85303 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85304
85305         * modules/strsep: New file.
85306
85307 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85308
85309         * m4/strsep.m4: New file.
85310
85311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
85312
85313         * lib/strsep.h: New file.
85314         * lib/strsep.c: New file.
85315
85316 2004-10-01  Simon Josefsson  <jas@extundo.com>
85317
85318         * lib/snprintf.c (snprintf): Handle size==0.
85319
85320 2004-10-01  Simon Josefsson  <jas@extundo.com>
85321             Bruno Haible  <bruno@clisp.org>
85322
85323         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
85324         (snprintf): Declare 'args'.
85325
85326 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
85327
85328         * lib/snprintf.c: Remove comments as to why each header is needed.
85329
85330 2004-10-01  Bruno Haible  <bruno@clisp.org>
85331
85332         * MODULES.html.sh: Add strsep.
85333
85334 2004-09-30  Simon Josefsson  <jas@extundo.com>
85335
85336         * modules/snprintf: New file.
85337
85338 2004-09-30  Simon Josefsson  <jas@extundo.com>
85339
85340         * m4/snprintf.m4: New file.
85341
85342 2004-09-30  Simon Josefsson  <jas@extundo.com>
85343
85344         * lib/snprintf.h, lib/snprintf.c: New files.
85345
85346 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85347
85348         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
85349         (hol_entry_help): Never translate an empty string.
85350         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
85351         * lib/argp.h (OPTION_NO_TRANS): New option.
85352
85353 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85354
85355         * modules/argp (Maintainer): Replace Simon Josefsson
85356         by Sergey Poznyakoff.
85357
85358 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
85361         changes merged back into glibc.
85362
85363 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
85366
85367 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
85368
85369         * lib/xvasprintf.c: Include xalloc.h.
85370         (xvasprintf): Use xalloc_die, not xmalloc_die.
85371
85372 2004-09-29  Bruno Haible  <bruno@clisp.org>
85373
85374         * modules/alloca-opt: New file, derived from modules/alloca.
85375         * modules/allocsa: Depend on alloca-opt instead of alloca.
85376         * modules/setenv: Likewise.
85377         * modules/vasnprintf: Likewise.
85378         * MODULES.html.sh: Add alloca-opt.
85379
85380 2004-09-28  Simon Josefsson  <jas@extundo.com>
85381
85382         * gnulib-tool: New parameter --lgpl, to asseert that modules are
85383         LGPL, and to replace license template from GPL to LGPL.
85384
85385 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85386
85387         * modules/dummy: Change license to LGPL.
85388
85389 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
85390
85391         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
85392
85393 2004-09-24  Simon Josefsson  <jas@extundo.com>
85394
85395         * modules/minmax (License): Change from GPL to LGPL.
85396
85397 2004-09-23  Simon Josefsson  <jas@extundo.com>
85398
85399         * gnulib-tool (--import): Typo.
85400
85401 2004-09-23  Simon Josefsson  <jas@extundo.com>
85402
85403         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
85404
85405 2004-09-22  Bruno Haible  <bruno@clisp.org>
85406
85407         * modules/*: Add 'License' field.
85408         * gnulib-tool: Accept --extract-license option.
85409         (func_get_license): New function.
85410
85411 2004-09-21  Bruno Haible  <bruno@clisp.org>
85412
85413         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
85414         Reported by Simon Josefsson.
85415
85416 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85417
85418         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
85419         gl_AC_TYPE_LONG_LONG.
85420
85421 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
85422
85423         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
85424
85425 2004-09-18  Simon Josefsson  <jas@extundo.com>
85426         and  Paul Eggert  <eggert@cs.ucla.edu>
85427
85428         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
85429         calls with autoreconf.  Define GL_LIB.
85430
85431 2004-09-14  Karl Berry  <karl@gnu.org>
85432
85433         * config/srclist.txt: unsync setenv.c, sigh.
85434
85435 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85436
85437         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
85438         Problem reported by Bruno Haible in:
85439         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
85440
85441 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
85442
85443         * config/srclist.txt: Comment out argp-pvh.c.
85444
85445 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
85446
85447         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
85448         in case some system header has #define'd it.  Problem reported by
85449         Soeren D. Schulze in
85450         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
85451
85452 2004-09-09  Karl Berry  <karl@gnu.org>
85453
85454         * regex.[ch]: delete from the root.  These were supposed to be
85455                 synced with emacs cvs, but this has not happened for about
85456                 a year, and anyway nothing else uses emacs regex.[ch].
85457                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
85458                 lib/regex[.ch] is untouched.
85459
85460 2004-09-09  Bruno Haible  <bruno@clisp.org>
85461
85462         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
85463
85464 2004-09-09  Bruno Haible  <bruno@clisp.org>
85465
85466         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
85467         modifications.
85468         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
85469
85470 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85471
85472         * modules/xvasprintf: New file.
85473         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
85474
85475 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
85476
85477         * lib/xvasprintf.h: New file.
85478         * lib/xvasprintf.c: New file.
85479         * lib/xasprintf.c: New file.
85480
85481 2004-09-08  Bruno Haible  <bruno@clisp.org>
85482
85483         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
85484
85485 2004-09-08  Bruno Haible  <bruno@clisp.org>
85486
85487         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
85488         length is > INT_MAX.
85489         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
85490         more.
85491
85492 2004-09-08  Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/stdint_.h: New file, taken from GNU clisp.
85495
85496 2004-09-08  Bruno Haible  <bruno@clisp.org>
85497             Oskar Liljeblad  <oskar@osk.mine.nu>
85498
85499         * modules/stdint: New file.
85500         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
85501
85502 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         Import from coreutils.
85505         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
85506         strings on unbounded length.  alloca's performance benefits aren't
85507         that important here.
85508         (V_STRDUP): Remove.
85509         (parse_with_separator): New function, with most of the internals
85510         of the old parse_user_spec.  Allow user to omit both user and group,
85511         for compatibility with FreeBSD.
85512         Clone only the user name, not the entire spec.
85513         Do not set *uid, *gid unless entirely successful.
85514         Avoid memory leak in some failing cases.
85515         Fix regression for USER.GROUP reported by Dmitry V. Levin in
85516         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
85517         (parse_user_spec): Rewrite to use parse_with_separator.
85518
85519 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85520
85521         * modules/userspec: Don't depend on alloca.
85522
85523 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85524
85525         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
85526
85527 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85528
85529         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
85530         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
85531         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
85532
85533 2004-08-16  Simon Josefsson  <jas@extundo.com>
85534
85535         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
85536         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
85537         Add --dry-run for --import.
85538         Let user provided command line parameters override configure.ac
85539         settings.
85540
85541 2004-08-12  Simon Josefsson  <jas@extundo.com>
85542
85543         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
85544         as discussed with Paul Eggert in threads rooted at
85545         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
85546         and
85547         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
85548         Before, the test was empty, and relied on ELIDE_CODE in source
85549         code.)
85550         (gl_PREREQ_GETOPT): New macro.
85551         (gl_GETOPT): Use them.
85552
85553 2004-08-12  Simon Josefsson  <jas@extundo.com>
85554
85555         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
85556         * lib/getopt_.h: Renamed from getopt.h.
85557
85558 2004-08-12  Simon Josefsson  <jas@extundo.com>
85559
85560         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
85561         Change default library name from libfoo to libgnu.
85562         Now, if you have a configure.ac that says:
85563                 gl_SOURCE_BASE(gl)
85564                 gl_M4_BASE(gl/m4)
85565                 gl_MODULES(error getopt etcetera)
85566                 gl_INIT
85567         you can import all you need by running:
85568                 ../gnulib/gnulib-tool --import
85569
85570         * modules/getopt (Files): Rename getopt.h to getopt_.h.
85571         (Makefile.am): Rewrite, use logic from argz.
85572         (Include): Use <getopt.h> instead of "getopt.h".
85573
85574 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85575
85576         * modules/argp (Files): Add m4/unlocked-io.m4.
85577         (Depends-on): Add extensions.
85578
85579 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85580
85581         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
85582         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
85583         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
85584         Check for program_invocation_name, program_invocation_short_name,
85585         flockfile, funlockfile, features.h, _getopt_long_only_r.
85586
85587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85588
85589         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
85590         its complicated substitute.
85591         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
85592         and program_invocation_name.
85593         (__argp_basename) [!_LIBC]: Remove; the only use was
85594         replaced by its body.
85595         (__argp_short_program_name): Change condition from
85596         !defined __argp_short_program_name to
85597         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
85598         to match argp-namefrob.h.
85599         (__argp_failure): Don't assume strerror_r returns char *.
85600         * lib/argp-parse.c (N_): Define unconditionally.
85601         (argp_default_options): Fill out initializers with 0 to avoid
85602         gcc warnings.
85603
85604 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
85605
85606         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
85607         getopt1.c.
85608
85609 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85610
85611         Merge from coreutils.
85612
85613         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
85614
85615         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
85616         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
85617
85618 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85619
85620         Merge from coreutils.
85621
85622         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
85623         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
85624         for Reliant Unix 5.43.
85625
85626         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
85627         (union fooround): Use uintmax_t, not long int.
85628         The rest is a merge from libc:
85629         [defined _LIBC]: Include <shlib-compat.h>.
85630         (_obstack) [defined _LIBC]: Remove after 2.3.4.
85631
85632         * lib/settime.c (settime): Recode to avoid warning with
85633         Sun Forte C 6U2.
85634
85635         * lib/strverscmp.c: Convert to UTF-8.
85636
85637 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
85638
85639         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
85640         m4/uintmax_t.m4.
85641
85642 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85643
85644         * modules/xalloc-die: New file.
85645         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
85646
85647         * modules/md5 (Files): Add m4/uint32_t.m4.
85648         * modules/sha1: Renamed from modules/sha.
85649         (Files):
85650         Rename lib/sha.h to lib/sha1.h.
85651         Rename lib/sha.c to lib/sha1.c.
85652         Rename m4/sha.m4 to m4/sha1.m4.
85653         (lib_SOURCES): Likewise.
85654         (configure.ac): Rename gl_SHA to gl_SHA1.
85655         (Include): sha.h -> sha1.h.
85656
85657 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
85660         * m4/sha1.m4: Renamed from sha.m4.
85661         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
85662
85663 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
85664
85665         * lib/obstack.h (obstack_empty_p):
85666         Don't assume that chunk->contents is suitably aligned.
85667         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
85668         Likewise. Problem reported by Benno in
85669         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
85670
85671         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
85672         readable.  This could be improved further but it'd take some work.
85673
85674 2004-08-08  Simon Josefsson  <jas@extundo.com>
85675
85676         * modules/xgethostname (Depends-on): Remove exit and error (not
85677         used).
85678
85679         * modules/getpass-gnu: Add getpass.h.
85680         (Depends-on): Add stdbool.
85681         * modules/getpass: Add getpass.h.
85682
85683 2004-08-08  Simon Josefsson  <jas@extundo.com>
85684
85685         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
85686         Check getpass declaration.
85687
85688 2004-08-08  Simon Josefsson  <jas@extundo.com>
85689
85690         * lib/xgethostname.c: Don't include error.h (not used).
85691
85692         * lib/getpass.h: Add.
85693         * lib/getpass.c: Include getpass.h first.
85694
85695 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
85696
85697         * lib/xalloc-die.c: New file.
85698         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
85699         All uses removed.
85700         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
85701         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
85702         xalloc-die.c.
85703         (_, N_, xalloc_die): Move to xalloc-die.c.
85704         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
85705         so that we needn't mess with xalloc_msg_memory_exhausted.
85706
85707         * lib/sha1.h: Renamed from sha.h.
85708         (SHA1_H): Renamed from _SHA_H.
85709         (sha1_ctx): Renamed from sha_ctx.
85710         (sha1_init_ctx): Renamed from sha_init_ctx.
85711         (sha1_process_block): Renamed from sha_process_block.
85712         (sha1_process_bytes): Renamed from sha_process_bytes.
85713         (sha1_finish_ctx): Renamed from sha_finish_ctx.
85714         (sha1_read_ctx): Renamed from sha_read_ctx.
85715         (sha1_stream): Renamed from sha_stream.
85716         (sha1_buffer): Renamed from sha_buffer.
85717         * lib/sha1.c: Likewise; renamed from sha.c.
85718         Do not include <sys/types.h>.
85719         Include <stddef.h> rather than <stdlib.h>.
85720
85721 2004-08-08  Bruno Haible  <bruno@clisp.org>
85722
85723         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
85724         FILESYSTEM_PREFIX_LEN.
85725         * lib/progreloc.c: Likewise.
85726         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
85727
85728 2004-08-06  Simon Josefsson  <jas@extundo.com>
85729
85730         * modules/progname (Depends-on): Don't depend on stdbool.
85731
85732 2004-08-06  Simon Josefsson  <jas@extundo.com>
85733
85734         * modules/getsubopt: New file.
85735         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85736         getsubopt.
85737
85738 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85739
85740         More merge from coreutils.
85741
85742         * m4/utimens.m4, m4/utimecmp.m4: New files.
85743         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
85744         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
85745         prereq.m4, sha.m4: Import changes from coreutils.
85746
85747 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85748
85749         More merge from coreutils.
85750         * modules/raise, modules/readtokens0, modules/utimens:
85751         * modules/utimecmp, module/xnanosleep: New files.
85752         * modules/strftime: Add lib/strftime.h.
85753         Change include from <time.h> to "strftime.h".
85754         * modules/yesno: Add lib/yesno.h.
85755         * modules/backupfile: Remove lib/addext.c.
85756         * modules/euidaccess: Add stat-macros.h.
85757         * modules/canonicalize, modules/euidaccess,
85758         modules/filemode, modules/lchown, modules/makepath,
85759         modules/rmdir, modules/stat: Likewise.
85760
85761 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
85762
85763         Merge from tar.
85764         * lib/argp-help.c (make_hol, hol_append): Don't assume that
85765         SIZE_MAX is a valid preprocessor constant.
85766         (__argp_basename): Change from "#ifndef _LIBC"
85767         to "#ifndef __argp_short_program_name", so that
85768         we don't compile these functions for tar.
85769
85770         More merges from coreutils.
85771         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
85772         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
85773         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
85774         * lib/addext.c: Remove; no longer needed.
85775         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
85776         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
85777         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
85778         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
85779         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
85780         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
85781         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
85782         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
85783         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
85784         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85785         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
85786         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
85787         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
85788         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
85789         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
85790         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
85791         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
85792         Import changes from coreutils.
85793
85794 2004-08-05  Simon Josefsson  <jas@extundo.com>
85795
85796         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
85797
85798 2004-08-05  Simon Josefsson  <jas@extundo.com>
85799
85800         * m4/getsubopt.m4: New file.
85801
85802 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85803
85804         Merge from coreutils.
85805
85806         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
85807         * m4/getcwd-path-max.m4: New files.
85808
85809         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85810         FILESYSTEM_PREFIX_LEN ->
85811         FILE_SYSTEM_PREFIX_LEN.
85812         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85813         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85814         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85815         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85816
85817         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85818         prerequisite modules now handle the DOS stuff.
85819         Don't check for unistd.h.
85820
85821 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85822
85823         Merge from coreutils.
85824
85825         * lib/.gdb-history: Remove; this doesn't belong here.
85826
85827         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85828         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85829         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85830         * lib/getcwd.c: New files.
85831
85832         * lib/dirname.h: Include <stdbool.h>.
85833         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85834         for consistency with POSIX terminology.  All uses changed.
85835         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85836         (strip_trailing_slashes): Use bool for booleans.
85837         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85838
85839         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85840         sometimes returns a positive errno value even when it succeeds.
85841         (print_errno_message) [!LIBC]: Fall back on strerror if
85842         __strerror_r fails.
85843
85844         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85845         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85846         (longest_relative_suffix): New function.
85847         (path_concat): Use it.  Assume first argument is not NULL.
85848         Port to DOS.  Omit redundant separators.
85849         Report an error instead of returning NULL.
85850         Use mempcpy instead of memcpy.
85851         (xpath_concat): Remove: not declared or used.
85852
85853         * lib/same.h: Include <stdbool.h>
85854         (same_name): Return bool, not int.
85855         * lib/same.c (same_name): Likewise.
85856         (errno): Don't declare; we assume C89 or better now.
85857
85858         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85859         if not already defined.
85860
85861         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85862         * lib/dup-safer.c (errno): Likewise.
85863
85864 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85865
85866         Merge from coreutils.
85867         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85868         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85869         * modules/path-concat: Don't depend on strdup.
85870
85871 2004-08-03  Simon Josefsson  <jas@extundo.com>
85872
85873         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85874         * lib/progname.h: Don't include stdbool.h.
85875
85876 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85879         * MODULES.html.sh (func_all_modules): Remove fatal.
85880
85881 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85882
85883         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85884
85885 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85886
85887         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85888         working.
85889
85890 2004-08-02  Simon Josefsson  <jas@extundo.com>
85891
85892         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85893         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85894         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85895
85896 2004-08-01  Simon Josefsson  <jas@extundo.com>
85897
85898         * lib/xgetdomainname.c: Include stdlib.h, for free().
85899
85900 2004-07-19  Bruno Haible  <bruno@clisp.org>
85901
85902         * MODULES.html.sh (func_all_modules): Add dummy.
85903
85904 2004-07-16  Simon Josefsson  <jas@extundo.com>
85905
85906         * modules/dummy: New file.
85907
85908 2004-07-16  Simon Josefsson  <jas@extundo.com>
85909
85910         * lib/dummy.c: New file.
85911
85912 2004-07-16  Bruno Haible  <bruno@clisp.org>
85913
85914         * lib/backupfile.h: Add extern "C" for C++.
85915         * lib/closeout.h: Likewise.
85916         * lib/copy-file.h: Likewise.
85917         * lib/findprog.h: Likewise.
85918         * lib/full-write.h: Likewise.
85919         * lib/pathname.h: Likewise.
85920         * lib/progname.h: Likewise.
85921         * lib/stpcpy.h: Likewise.
85922         * lib/stpncpy.h: Likewise.
85923         * lib/strcase.h: Likewise.
85924         * lib/strstr.h: Likewise.
85925         * lib/xalloc.h: Likewise.
85926
85927         * lib/mbswidth.h: Add extern "C" for C++.
85928         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85929
85930 2004-07-13  Robert Millan  <robertmh@gnu.org>
85931
85932         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85933
85934 2004-07-09  Simon Josefsson  <jas@extundo.com>
85935
85936         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85937         failed without this.)
85938
85939 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85940
85941         * modules/chown (Files): Add lib/fchown-stub.c, since
85942         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85943
85944 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85945
85946         * lib/fchown-stub.c: New file.
85947
85948 2004-06-24  Jim Meyering  <jim@meyering.net>
85949
85950         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85951
85952 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85953
85954         * modules/argz: Omit "#include".
85955
85956         * MODULES.html.sh (func_all_modules): Add calloc, to match
85957         2004-06-01 addition of calloc module.
85958
85959 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85960
85961         * m4/argz.m4: New file, which is autoupdated from libtool.
85962
85963 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85966         libtool.
85967
85968 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85969
85970         * config/srclist-update: Don't insist on "USA." before the
85971         close-comment, as libtool omits the period and puts the */ on a
85972         separate line.
85973         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85974         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85975
85976 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85977
85978         * modules/argz: New file.
85979         * MODULES.html.sh (func_all_modules): Add argz.
85980
85981 2004-06-12  Jim Meyering  <jim@meyering.net>
85982         and  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * modules/hash (Files): Add lib/xalloc.h.
85985         * modules/pipe (Depends-on): Add wait-process.
85986         * modules/stat (Depends-on): Add xalloc.
85987         * modules/userspec (Files): Add lib/userspec.h.
85988         * modules/xstrto
85989
85990         Upgrade from gettext-0.13.
85991         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85992         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85993         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85994
85995 2004-06-10  Jim Meyering  <jim@meyering.net>
85996
85997         * lib/calloc.c: New file.
85998
85999 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
86000
86001         * lib/getdate.y (yylex): Allow space between sign and number.
86002         Problem reported by Dan Jacobson.
86003
86004 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86005
86006         Merge from coreutils CVS.
86007
86008         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
86009         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
86010         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
86011         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
86012         xstrtol.m4: Fix copyright date and/or serial number.
86013
86014         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
86015         See if we need an fchown replacement.
86016         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
86017         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
86018         and use the replacement function if we detect either defect.
86019
86020         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
86021         gl_UTIMECMP.
86022
86023 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
86024         and  Jim Meyering  <jim@meyering.net>
86025
86026         Merge from coreutils CVS.
86027
86028         * lib/stat-macros.h: New file, with contents from file-type.h
86029         and coreutils' system.h.
86030         * lib/file-type.c: Include "stat-macros.h".
86031         * lib/file-type.h (file_type): Move all macro definitions to new file,
86032         stat-macros.h.
86033
86034         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
86035         Wrap old code with this conditional.
86036         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
86037         function that does not dereference symlinks.
86038         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
86039
86040         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
86041         dependency problems.
86042         (xreadlink): Accept new arg SIZE, for efficiency.
86043         All decls and uses changed.
86044         * lib/xreadlink.h: Include <stddef.h>, for size_t.
86045
86046         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
86047         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
86048
86049         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
86050         sysexits.h.
86051
86052 2004-06-01  Jim Meyering  <jim@meyering.net>
86053
86054         * m4/calloc.m4: New file.
86055
86056 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
86059         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
86060         Also, fix a typo in a diagnostic.
86061
86062 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86063
86064         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
86065         or AC_FUNC_REALLOC.
86066
86067 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
86068
86069         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
86070         macros to be defined.
86071         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
86072         the allocator returns NULL because the requested size is zero.
86073
86074 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86075
86076         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
86077         var.  Add comment explaining why libc still defines it.  This
86078         merges the following patch from glibc:
86079         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
86080
86081 2004-05-20  Andreas Schwab  <schwab@suse.de>
86082
86083         * m4/free.m4: Replace free if it not known to work, not the other
86084         way round.
86085
86086 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
86087
86088         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
86089         present in glibc since revision 1.1 of this file.
86090         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
86091         obstack_alignment_mask, obstack_alloc, obstack_base,
86092         obstack_blank, obstack_blank_fast, obstack_chunk_size,
86093         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
86094         obstack_grow0, obstack_init, obstack_int_grow,
86095         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
86096         obstack_next_free, obstack_object_size, obstack_ptr_grow,
86097         obstack_ptr_grow_fast, obstack_room): Remove declarations of
86098         nonexistent functions.
86099
86100 2004-05-18  Karl Berry  <karl@gnu.org>
86101
86102         * config/srclist.txt: break link for vasnprintf.c.
86103
86104 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86105
86106         Port obstack to the AS/400, where pointers are 16 bytes wide and
86107         you cannot cast an integer to a valid pointer.  This patch is
86108         currently waiting to be integrated into glibc; see
86109         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
86110
86111         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
86112         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
86113         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
86114         (struct obstack): temp member is now a union of a pointer and
86115         an integer, instead of an integer.  All integer uses changed.
86116         This does not affect the physical layout of struct obstack,
86117         except on hosts (like the AS/400) where the size or alignment of
86118         void * is greater than that of ptrdiff_t.
86119         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
86120         __STDC__)]: Store temporary in pointer member of union, not
86121         integer member.
86122         * lib/obstack.c: Include <stddef.h>, for offsetof.
86123         (struct fooalign): Remove; it doesn't need a name.
86124         (union fooround): Change double to long double, and add void *.
86125         (DEFAULT_ALIGNMENT): Use offsetof to compute.
86126         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
86127         not a macro.  Hence the values are always int; so remove all
86128         casts-to-int in uses.
86129
86130 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
86131
86132         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
86133         we can get this patch merged into glibc.
86134
86135 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86136             Paul Eggert  <eggert@cs.ucla.edu>
86137
86138         * m4/argp: Depend on alloca.
86139
86140 2004-05-17  Derek R. Price  <derek@ximbiot.com>
86141             Paul Eggert  <eggert@cs.ucla.edu>
86142
86143         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
86144         freecoding.
86145
86146 2004-05-17  Bruno Haible  <bruno@clisp.org>
86147
86148         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
86149         precision that consists of a '.' followed by an empty digit string.
86150         Patch by Tor Lillqvist <tml@iki.fi>.
86151
86152 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86153
86154         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
86155         for backward compatibility with older code.  We need our own
86156         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
86157         it under some other name, and our alloca.h will define it.
86158
86159 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
86160             Derek Price  <derek@ximbiot.com>
86161
86162         * lib/alloca.c: Include <alloca.h>, to get our interface.
86163         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
86164         include <alloca.h> first.  Use C89 prototype for alloca; this
86165         requires including <stddef.h> for size_t.  Use extern "C" if C++.
86166         Use #elif for simplicity, since we can assume C89 now.
86167         Don't try to source the system alloca.h since it will not be found
86168         and to prevent recursively including its replacement.
86169         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
86170         * lib/regex.c: Likewise.
86171
86172 2004-05-16  Derek Price  <derek@ximbiot.com>
86173             Paul Eggert  <eggert@cs.ucla.edu>
86174
86175         getline cleanup.  This changes the getndelim2 API: both order of
86176         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
86177         no delimiter).
86178
86179         * lib/getline.c: Don't include stddef.h or stdio.h, since our
86180         interface does that.
86181         (getline): Always use getdelim, so that we don't have two
86182         copies of this code.
86183         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
86184         if available.
86185         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
86186         (GETNDELIM2_MAXIMUM): New macro.
86187         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
86188         instead of the old practice of delim2==0.  All callers changed.
86189         Return -1 on overflow, instead of returning junk.
86190         Do not set *linesize unless allocation succeeds.
86191         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
86192         that we include sys/types.h.
86193         * lib/getnline.h: Likewise.
86194         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
86195         (getndelim2): Reorder arguments.
86196         * lib/getnline.c (getnline, getndelim):
86197         Don't discard the NMAX argument.
86198         (getnline): Invoke getndelim, to avoid code duplication.
86199         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
86200         of (size_t) -1 by callers of the getnline family.
86201
86202 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86203
86204         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
86205         Check for gettimeofday.
86206         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
86207         Check for settimeofday, stime.
86208
86209 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86210
86211         * lib/nanosleep.c (suspended): Change its type from int to
86212         sig_atomic_t volatile.
86213         (first_call): Make it private to rpl_nanosleep, and have it
86214         be zero initially as that's a bit faster.
86215         (my_usleep): Round up fractional times instead of truncating them,
86216         as this is the usual meaning for 'sleep'.
86217
86218         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
86219         doesn't work.
86220         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
86221         (ENOSYS): Define if not defined.
86222         (settime): Fall back on stime if it exists and settimeofday fails.
86223         But don't bother with fallbacks if a method fails with errno == EPERM.
86224
86225 2004-05-11  Jim Meyering  <jim@meyering.net>
86226
86227         Prior to this change, the save_cwd caller required read access to the
86228         current directory on most systems (ones with the fchdir function).
86229
86230         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
86231         fails, try write-only, and finally, resort to using xgetcwd.
86232
86233 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86234
86235         * lib/obstack.c, obstack.h: Import changes from libc.
86236
86237 2004-04-28  Bruno Haible  <bruno@clisp.org>
86238
86239         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
86240         also implicitly appends .exe to executables.
86241         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
86242         accepts Windows pathnames.
86243         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86244         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86245         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
86246         Treat Cygwin like Windows, since it now accepts Windows pathnames.
86247         Reported by Derek Robert Price <derek@ximbiot.com>.
86248
86249 2004-04-21  Karl Berry  <karl@gnu.org>
86250
86251         * config/srclist.txt (localcharset.c): break sync.
86252
86253 2004-04-20  Paul Eggert  <eggert@twinsun.com>
86254
86255         * m4/host-os.m4: Add a copyright notice.
86256
86257 2004-04-20  Jim Meyering  <jim@meyering.net>
86258
86259         Change UTILS_ to gl_ in AC_DEFINE'd names.
86260         Change utils_- and jm_-prefixed variables, too.
86261         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
86262         UTILS_FUNC_MKDIR_TRAILING_SLASH.
86263         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
86264
86265         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
86266         Don't emit trailing blanks.
86267         Also rename jm_-prefixed variables to have gl_ prefix.
86268
86269         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
86270         Also rename jm_-prefixed variables to have gl_ prefix.
86271
86272         * m4/jm-macros.m4: Reflect the renamings.
86273         * m4/prereq.m4: Likewise.
86274
86275 2004-04-20  Jim Meyering  <jim@meyering.net>
86276
86277         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
86278         memory.
86279
86280 2004-04-20  Jim Meyering  <jim@meyering.net>
86281             Bruno Haible  <bruno@clisp.org>
86282
86283         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
86284         memory when realloc fails.
86285
86286 2004-04-19  Jim Meyering  <jim@meyering.net>
86287
86288         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
86289         now that readutmp.c may call `free (0)'.
86290
86291 2004-04-19  Bruno Haible  <bruno@clisp.org>
86292
86293         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
86294         * m4/inttypes_h.m4: Likewise.
86295         * m4/stdint_h.m4: Likewise.
86296         * m4/intmax_t.m4: Likewise.
86297         * m4/uintmax_t.m4: Likewise.
86298
86299 2004-04-18  Jim Meyering  <jim@meyering.net>
86300
86301         * m4/prereq.m4: Don't forbid jm_ prefix.
86302
86303         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
86304         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
86305         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
86306         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
86307         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
86308         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
86309         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
86310         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
86311         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
86312         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
86313         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
86314         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
86315         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
86316         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
86317         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
86318         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
86319         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
86320         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
86321         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
86322
86323 2004-04-18  Jim Meyering  <jim@meyering.net>
86324
86325         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
86326         failure, don't leak memory and do call END_UTMP_ENT.
86327
86328 2004-04-16  Jim Meyering  <jim@meyering.net>
86329
86330         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
86331         coreutils' stat program.
86332         (gl_PREREQ): Don't require jm_PREREQ_STAT.
86333
86334 2004-04-11  Paul Eggert  <eggert@twinsun.com>
86335
86336         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
86337         C89.
86338         (CHAR_BIT): Remove, since we assume C89.
86339         Include <stdint.h> if available, as per current Autoconf CVS advice.
86340
86341 2004-03-31  Jim Meyering  <jim@meyering.net>
86342
86343         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
86344         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
86345         * m4/xalloc.m4: Likewise.
86346
86347 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86348
86349         Merge from coreutils.
86350
86351         * m4/inttostr.m4: New file.
86352         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
86353         Require AM_STDBOOL_H and gl_TIMESPEC instead.
86354         Require gl_CLOCK_TIME.
86355         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
86356
86357 2004-03-30  Paul Eggert  <eggert@twinsun.com>
86358
86359         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
86360         not bool, to be more consistent with Unix conventions.
86361         Suggested by Bruno Haible.
86362
86363         Merge from coreutils.
86364
86365         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
86366         * lib/umaxtostr.c: New files.
86367
86368         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
86369         the usual <time.h> dance.
86370         (get_date): Change signature to support fractional time stamps.
86371         All callers changed.
86372         * lib/getdate.y: Include "getdate.h" first, as we can now
86373         assume C89 and don't need to worry about 'const'.
86374         Similarly, include "unlocked-io.h" near start, not in middle.
86375         Include <limits.h>.
86376         (textint.value): Use long int rather than int.
86377         (textint.digits): Use size_t rather than int.
86378         (BILLION, LOG10_BILLION): New constants.
86379         (parser_control): New member rel_ns.  Members day_ordinal,
86380         time_zone, month, day, hour, minutes, rel_year, rel_month,
86381         rel_day, rel_hour, rel_minutes, rel_seconds
86382         are now long int, not int.  Member seconds is now struct timespec,
86383         not int.  New member timespec_seen.  Members dates_seen, days_seen,
86384         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
86385         not int.
86386         (%union.intval): Now long int, not int.
86387         New member timespec.
86388         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
86389         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
86390         (spec): Now is a timespec or an item list.
86391         (timespec, items): New nonterminals.
86392         (time, rel, relunit, number, get_date):
86393         Add support for fractional seconds.
86394         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
86395         (gmtime, localtime, mktime): Remove decls; not needed with C89.
86396         (to_hour): First arg is now long int, not int.
86397         (to_year): Returns long int, not int.
86398         Don't treat year -70 like 70.
86399         (tm_diff): Returns long int, not int.
86400         (lookup_word): Use bool instead of int when appropriate.
86401         (yylex): Use size_t for count, not int.
86402         Detect overflow when parsing large integer constants.
86403         Add support for fractions.
86404         (get_date): Make pointers 'const' if possible.
86405         Use more-portable code to detect integer overflow.
86406         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
86407         Don't use ctime; it's not reliable if the year has >4 digits.
86408
86409         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
86410         This is for compatibility with BSD.
86411
86412         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
86413         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
86414         From coreutils' system.h.
86415
86416         * lib/userspec.c: Don't include "posixver.h".
86417         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
86418         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
86419         compatible extension.  Simplify code by removing a boolean int
86420         that was always nonzero if a string was nonnull.
86421
86422 2004-03-30  Jim Meyering  <jim@meyering.net>
86423
86424         Merge from coreutils.
86425
86426         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
86427         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
86428         on some systems one must include <grp.h> before it.
86429         Reported by Christian Krackowizer.
86430
86431 2004-03-30  Jim Meyering  <jim@meyering.net>
86432
86433         Merge from coreutils.
86434
86435         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
86436
86437         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
86438         an empty input stream.
86439
86440         * lib/readtokens.c: Include <stdbool.h>.
86441         (readtoken): Use `size_t' rather than int/long.
86442         All callers adjusted.
86443         Use `bool' rather than `int' where appropriate.
86444         Use memset rather than an explicit loop.
86445         Use x2nrealloc rather than xrealloc.
86446         Allow the use of `\0' as a delimiter.
86447         (readtokens): Likewise.
86448         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
86449
86450 2004-03-30  Jim Meyering  <jim@meyering.net>
86451
86452         * m4/realloc.m4: Remove file, since now it does no more than
86453         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
86454         the `configure.ac' section of module/realloc.
86455         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
86456
86457 2004-03-30  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
86460         nonnull.
86461
86462 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86463
86464         Merge changes to getloadavg.c from coreutils and Emacs.
86465
86466         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
86467         Define to an expression, not to the empty string.
86468         Include cloexec.h and xalloc.h.
86469         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
86470         Use set_cloexec_flag rather than rolling our own.
86471         * lib/cloexec.c, lib/cloexec.h: New files.
86472
86473 2004-03-29  Paul Eggert  <eggert@twinsun.com>
86474
86475         * m4/cloexec.m4: New file.
86476
86477 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86478
86479         * lib/getopt.h: Sync with libc CVS.
86480
86481 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86482             Bruno Haible  <bruno@clisp.org>
86483
86484         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
86485         mbswidth.
86486
86487 2004-03-18  Paul Eggert  <eggert@twinsun.com>
86488             Bruno Haible  <bruno@clisp.org>
86489
86490         * lib/mbswidth.h: Include <wchar.h> only if
86491         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
86492         <wchar.h>.
86493         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
86494
86495 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86496
86497         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
86498         Sync with libc CVS.
86499         * lib/getopt_int.h: New file, also synced from libc.
86500
86501 2004-03-09  Paul Eggert  <eggert@twinsun.com>
86502
86503         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
86504         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
86505         Bring back getopt.c, getopt.h, getopt1.c.
86506
86507 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86508
86509         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
86510         All uses changed.  Check for sa_sigaction member; this fixes
86511         a bug first reported by Jason Andrade in
86512         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86513
86514 2004-03-07  Paul Eggert  <eggert@twinsun.com>
86515
86516         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
86517         '#if' expressions.  Unlike the code it replaces, it does not
86518         depend on (defined _SC_PAGESIZE).  However, it does depend on
86519         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
86520         first reported by Jason Andrade in
86521         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
86522
86523 2004-02-25  Simon Josefsson  <jas@extundo.com>
86524
86525         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
86526
86527 2004-02-25  Simon Josefsson  <jas@extundo.com>
86528
86529         * lib/strdup.h: New file.
86530         * lib/strdup.c: Include it.
86531         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
86532         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
86533
86534 2004-02-23  Karl Berry  <karl@gnu.org>
86535
86536         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
86537         (from fencepost.gnu.org:/gd/gnuorg).
86538
86539 2004-02-23  Karl Berry  <karl@gnu.org>
86540
86541         * config/srclistvars.sh (GNUORG) [karl]: redefine.
86542         * config/srclist.txt: add maintain/standards documents.
86543
86544 2004-02-18  Bruno Haible  <bruno@clisp.org>
86545
86546         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
86547         Reported by Derek Robert Price <derek@ximbiot.com>.
86548
86549 2004-02-16  Karl Berry  <karl@gnu.org>
86550
86551         * config/mkinstalldirs, install-sh: update from automake.
86552
86553 2004-02-06  Karl Berry  <karl@gnu.org>
86554
86555         * m4/po.m4: update from gettext 0.14.1.
86556
86557 2004-02-06  Karl Berry  <karl@gnu.org>
86558
86559         * lib/config.charset: update from gettext 0.14.1.
86560
86561 2004-02-05  Paul Eggert  <eggert@twinsun.com>
86562
86563         Add comments and code, prompted by suggestions from Bruno Haible
86564         for sh-quote.
86565         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
86566         describing the enum quoting_style values.
86567         * lib/quotearg.c (quotearg_alloc): New function.
86568         (quotearg_buffer_restyled): Treat lone { and } as special.
86569         Treat = as special.  Work around bug with older shells
86570         that "see" a '\' that is really the 2nd byte of a multibyte char.
86571         Quote empty string with shell_quoting_style.
86572
86573 2004-02-03  Bruno Haible  <bruno@clisp.org>
86574
86575         * m4/pipe.m4: New file, from GNU gettext.
86576
86577 2004-02-03  Bruno Haible  <bruno@clisp.org>
86578
86579         * lib/pipe.h: New file, from GNU gettext.
86580         * lib/pipe.c: New file, from GNU gettext.
86581
86582 2004-01-27  Bruno Haible  <bruno@clisp.org>
86583
86584         * m4/execute.m4: New file, from GNU gettext.
86585
86586 2004-01-27  Bruno Haible  <bruno@clisp.org>
86587
86588         * lib/execute.h: New file, from GNU gettext.
86589         * lib/execute.c: New file, from GNU gettext.
86590         * lib/w32spawn.h: New file, from GNU gettext.
86591
86592 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86593
86594         Merge from diffutils.
86595
86596         * lib/file-type.c (file_type): Add typed memory objects.
86597         * lib/file-type.h (S_TYPEISTMO): New macro.
86598
86599         * lib/c-stack.h (c_stack_action): Remove argv argument.
86600         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
86601         (die): Don't calculate message unless segv_action returns.
86602         (get_stack_location, min_address_from_argv, max_address_from_argv,
86603         volatile stack_base, volatile_stack_size): Remove.
86604         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
86605         that every segmentation violation is a stack overflow.  (Ouch!)
86606         See Debian bug 136249 (still outstanding) for more info about why
86607         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
86608
86609 2004-01-24  Paul Eggert  <eggert@twinsun.com>
86610
86611         Exit-status fix from coreutils.
86612
86613         Use exit_failure consistently in place of EXIT_FAILURE,
86614         so that program exit statuses are consistent on failure.
86615
86616         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
86617         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
86618         * lib/argmatch.h: Comment fix to match the above.
86619         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
86620         Now a macro referring to exit_failure, instead of a separate
86621         variable.  Include "exitfail.h" to get it.
86622         * lib/xstrtol.h: Include "exitfail.h".
86623         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
86624
86625         * lib/long-options.c (parse_long_options): Use prototype
86626         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
86627         for clarity.
86628
86629 2004-01-21  Jim Meyering  <jim@meyering.net>
86630
86631         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
86632         so as not to conflict with a different-sized __mktime_internal
86633         function in GNU libc.
86634         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
86635         Problem building statically-linked `ls' reported by Michael Brunnbauer.
86636
86637 2004-01-20  Karl Berry  <karl@gnu.org>
86638
86639         * config/config.guess: update from config.
86640
86641         * config/srclistvars.sh: GNUWWWLICENSES for karl.
86642
86643 2004-01-20  Bruno Haible  <bruno@clisp.org>
86644
86645         Safer stack allocation.
86646         * lib/setenv.c: Include allocsa.h.
86647         (alloca): Remove fallback definition.
86648         (freea): Remove macro.
86649         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
86650         instead of freea.
86651
86652 2004-01-20  Bruno Haible  <bruno@clisp.org>
86653
86654         * m4/eealloc.m4: New file, from GNU gettext.
86655
86656 2004-01-20  Bruno Haible  <bruno@clisp.org>
86657
86658         * m4/allocsa.m4: New file, from GNU gettext.
86659
86660 2004-01-20  Bruno Haible  <bruno@clisp.org>
86661
86662         * lib/xallocsa.h: New file, from GNU gettext.
86663         * lib/xallocsa.c: New file, from GNU gettext.
86664
86665 2004-01-20  Bruno Haible  <bruno@clisp.org>
86666
86667         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
86668
86669 2004-01-20  Bruno Haible  <bruno@clisp.org>
86670
86671         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
86672         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
86673         specially.
86674
86675 2004-01-20  Bruno Haible  <bruno@clisp.org>
86676
86677         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
86678         patch.
86679
86680 2004-01-20  Bruno Haible  <bruno@clisp.org>
86681
86682         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
86683
86684 2004-01-20  Bruno Haible  <bruno@clisp.org>
86685
86686         * lib/eealloc.h: New file.
86687
86688 2004-01-20  Bruno Haible  <bruno@clisp.org>
86689
86690         * lib/binary-io.h: Avoid warnings on Cygwin.
86691
86692 2004-01-20  Bruno Haible  <bruno@clisp.org>
86693
86694         * lib/allocsa.h: New file, from GNU gettext.
86695         * lib/allocsa.c: New file, from GNU gettext.
86696
86697 2004-01-18  Karl Berry  <karl@gnu.org>
86698
86699         * doc/gpl.texi, doc/lgpl.texi: new files.
86700
86701 2004-01-18  Karl Berry  <karl@gnu.org>
86702
86703         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
86704         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
86705
86706 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86707
86708         Merge from coreutils.
86709
86710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
86711         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
86712         (gl_DEFAULT_POSIX2_VERSION): Move
86713         the documentation from 'configure' into 'config.hin',
86714         so that 'configure --help' isn't burdened by it and
86715         we don't have to worry about its formatting there.
86716         Reword the documentation so that it's more succinct
86717         and can be run together into a single paragraph.
86718         * m4/same.m4 (gl_SAME): Check for pathconf.
86719
86720 2004-01-15  Paul Eggert  <eggert@twinsun.com>
86721
86722         Merge from coreutils.
86723
86724         * lib/posixver.c: Include posixver.h.
86725
86726         * lib/same.c: Include <stdbool.h>, <limits.h>.
86727         (_POSIX_NAME_MAX): Define if not defined.
86728         (MIN): New macro.
86729         (same_name): If file names are silently truncated, report
86730         that the file names are the same if they are the same after
86731         the silent truncation.
86732
86733         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
86734         conversion function.
86735         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
86736         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
86737         longer needed.
86738
86739 2004-01-15  Jim Meyering  <jim@meyering.net>
86740
86741         Merge from coreutils.
86742
86743         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
86744         if no library is required.
86745         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
86746         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
86747         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
86748         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
86749         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
86750         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
86751         value, $ac_cv_search_crypt, if it's "none required".
86752         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
86753         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
86754         not gl_FUNC_GETLOADAVG.
86755         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
86756         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
86757
86758 2004-01-15  Jim Meyering  <jim@meyering.net>
86759
86760         Merge from coreutils.
86761
86762         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
86763         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
86764         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
86765
86766         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
86767         optional configure-time default.
86768
86769         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86770
86771         * lib/xreadlink.c (xreadlink): Correct outdated comment.
86772
86773 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
86774
86775         Merge from coreutils.
86776
86777         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
86778         value, $ac_cv_search_nanosleep, if it's "none required".
86779
86780 2004-01-14  Paul Eggert  <eggert@twinsun.com>
86781
86782         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
86783         with like-named macro in fnmatch.c.
86784         (EXT): Use an internal constant instead.
86785
86786         Merge fnmatch patches from glibc.
86787         * lib/fnmatch.c (mbsinit): Remove define.
86788         Add libc_hidden_ver (__fnmatch, fnmatch).
86789         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
86790         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
86791
86792 2004-01-14  Karl Berry  <karl@gnu.org>
86793
86794         * config/install-sh: update from automake.
86795
86796 2004-01-13  Karl Berry  <karl@gnu.org>
86797
86798         * config/install-sh: update from automake.
86799
86800 2004-01-09  Karl Berry  <karl@gnu.org>
86801
86802         * config/install-sh: update from automake.
86803
86804 2004-01-05  Karl Berry  <karl@gnu.org>
86805
86806         * config/config.{sub,guess}: update from config.
86807
86808 2003-12-31  Karl Berry  <karl@gnu.org>
86809
86810         * config/depcomp: update from automake.
86811
86812 2003-12-14  Karl Berry  <karl@gnu.org>
86813
86814         * lib/config.charset: update from gettext-runtime.
86815
86816 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86817
86818         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86819         Bug reported by Alfred M. Szmidt.
86820
86821 2003-12-03  Bruno Haible  <bruno@clisp.org>
86822
86823         * m4/gettext.m4: Upgrade from gettext-0.13.
86824         * m4/po.m4: Upgrade from gettext-0.13.
86825         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86826         * m4/intmax.m4: New file, from gettext-0.13.
86827         * m4/printf-posix.m4: New file, from gettext-0.13.
86828
86829 2003-11-29  Karl Berry  <karl@gnu.org>
86830
86831         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86832
86833 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86834             Bruno Haible  <bruno@clisp.org>
86835
86836         * lib/printf-parse.h: Don't include sys/types.h.
86837         (ARG_NONE): New macro.
86838         (char_directive): Change type of *arg_index fields to size_t.
86839         * lib/printf-parse.c: Don't include sys/types.h.
86840         (SSIZE_MAX): Remove macro.
86841         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86842         Remove unnecessary overflow check.
86843         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86844         fields.
86845
86846 2003-11-25  Bruno Haible  <bruno@clisp.org>
86847
86848         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86849
86850 2003-11-25  Bruno Haible  <bruno@clisp.org>
86851
86852         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86853         gt_TYPE_SSIZE_T.
86854
86855 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86856
86857         * modules/alloca: Remove dependency on xalloc.
86858
86859 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86860
86861         * lib/alloca.c: Remove dependency on xalloc module.
86862         (xalloc_die): Remove.
86863         (memory_full) [!defined emacs]: New macro.
86864         [!defined emacs]: Don't include xalloc.h.
86865         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86866         address arithmetic overflows.  Change datatypes a bit to avoid
86867         unnecessary casts.
86868
86869 2003-11-22  Jim Meyering  <jim@meyering.net>
86870
86871         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86872         s/size/size_t/.
86873
86874 2003-11-21  Karl Berry  <karl@gnu.org>
86875
86876         * config/config.{sub,guess}: update from config.
86877
86878 2003-11-18  Karl Berry  <karl@gnu.org>
86879
86880         * config/config.{sub,guess}: update from config.
86881
86882         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86883
86884 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86885
86886         * README: Mention that S+T cannot overflow if S is the size of
86887         an existing object and T is sufficiently small.
86888
86889 2003-11-17  Jim Meyering  <jim@meyering.net>
86890
86891         On systems without utime and without a utimes function capable of
86892         dealing with a NULL struct utimbuf* argument, this utime replacement
86893         could -- in unusual circumstances -- leak a file descriptor.
86894         * lib/utime.c: Include <unistd.h> and <errno.h>.
86895         (utime_null): Be sure to close `fd' and to preserve errno.
86896         Reported by Geoff Collyer via Arnold Robbins.
86897
86898 2003-11-17  Bruno Haible  <bruno@clisp.org>
86899
86900         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86901         (Depends-on): Add xsize.
86902
86903 2003-11-17  Bruno Haible  <bruno@clisp.org>
86904
86905         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86906
86907 2003-11-17  Bruno Haible  <bruno@clisp.org>
86908
86909         * lib/vasnprintf.c (alloca): Remove fallback definition.
86910         (freea): Remove definition.
86911         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86912         Reported by Paul Eggert.
86913
86914 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86915             Bruno Haible  <bruno@clisp.org>
86916
86917         Protect against address arithmetic overflow.
86918         * lib/printf-args.h: Include stddef.h.
86919         (arguments): Change type of field 'count' to size_t.
86920         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86921         'unsigned int' where appropriate.
86922         * lib/printf-parse.h: Include sys/types.h.
86923         (char_directive): Change type of *arg_index fields to ssize_t.
86924         (char_directives): Change type of fields 'count', max_*_length to
86925         size_t.
86926         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86927         (SSIZE_MAX): Define fallback value.
86928         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86929         instead of 'int' where appropriate. Check a_allocated, d_allocated
86930         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86931         * lib/vasnprintf.c: Include xsize.h.
86932         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86933         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86934         overflow. Avoid wraparound when converting a width or precision from
86935         decimal to binary.
86936
86937 2003-11-16  Bruno Haible  <bruno@clisp.org>
86938
86939         Update from GNU gettext.
86940         * lib/printf-parse.c: Generalize to it can be compiled for wide
86941         strings.
86942         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86943         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86944         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86945         SNPRINTF): New macros.
86946         Don't include <alloca.h> if the file is used inside libintl.
86947         (local_wcslen): New function, for Solaris 2.5.1.
86948         (VASNPRINTF): Use it instead of wcslen.
86949
86950 2003-11-16  Bruno Haible  <bruno@clisp.org>
86951
86952         * lib/xsize.h (xmax): New function.
86953         (xsum, xsum3, xsum4): Declare as "pure" functions.
86954
86955 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86956
86957         * modules/xalloc (Files): Undo latest change, since xalloc.h
86958         no longer needs SIZE_MAX or PTRDIFF_MAX.
86959
86960 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86961
86962         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86963         gl_PTRDIFF_MAX.
86964
86965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86966
86967         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86968         "return", to pacify some unknown compiler.  Problem reported
86969         by Joerg Schilling.
86970
86971 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86972
86973         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86974         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86975         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86976         heuristic is just as accurate as far as we know, and it removes a
86977         dependency on size_max.m4 and ptrdiff_max.m4.
86978
86979 2003-11-11  Bruno Haible  <bruno@clisp.org>
86980
86981         * modules/xsize (Files): Add m4/size_max.m4.
86982         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86983
86984 2003-11-11  Bruno Haible  <bruno@clisp.org>
86985
86986         * m4/size_max.m4: New file.
86987         * m4/ptrdiff_max.m4: New file.
86988         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86989         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86990         (gl_XALLOC): Invoke it.
86991
86992 2003-11-11  Bruno Haible  <bruno@clisp.org>
86993
86994         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86995         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86996         defined.
86997
86998 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86999
87000         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
87001         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
87002         rejected some allocations of exactly SIZE_MAX - 2 bytes.
87003         From Bruno Haible.
87004         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
87005         not (size_t) -1, since it's defined here.
87006
87007 2003-11-09  Karl Berry  <karl@gnu.org>
87008
87009         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
87010
87011 2003-11-06  Paul Eggert  <eggert@twinsun.com>
87012
87013         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
87014         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
87015         Reject sizes of exactly SIZE_MAX bytes.
87016         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
87017         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
87018
87019 2003-11-05  Bruno Haible  <bruno@clisp.org>
87020
87021         * lib/xsize.h: Include limits.h, to avoid a possible collision with
87022         SIZE_MAX defined in <limits.h> on Solaris.
87023
87024 2003-11-04  Jim Meyering  <jim@meyering.net>
87025
87026         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
87027         variable names, rather than @VAR@.
87028         * modules/poll: Likewise.
87029
87030 2003-11-04  Bruno Haible  <bruno@clisp.org>
87031
87032         * modules/xsize: New file.
87033         * modules/linebreak: Depend on xsize.
87034         * MODULES.html.sh (func_all_modules): Add xsize.
87035
87036 2003-11-04  Bruno Haible  <bruno@clisp.org>
87037
87038         * m4/xsize.m4: New file.
87039
87040 2003-11-04  Bruno Haible  <bruno@clisp.org>
87041
87042         * lib/xsize.h: New file.
87043         * lib/linebreak.c: Include xsize.h.
87044         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
87045         argument for overflow.
87046         Suggested by Paul Eggert.
87047
87048 2003-11-03  Karl Berry  <karl@gnu.org>
87049
87050         * config/config.{guess,sub}: update from config.
87051
87052 2003-11-03  Jim Meyering  <jim@meyering.net>
87053
87054         * modules/userspec (lib_SOURCES): Add userspec.h.
87055         (Include): Add "userspec.h".
87056         Improve description.
87057
87058 2003-11-03  Jim Meyering  <jim@meyering.net>
87059
87060         * lib/userspec.c: Include "userspec.h".
87061         * lib/userspec.h: New file.
87062
87063 2003-11-03  Bruno Haible  <bruno@clisp.org>
87064
87065         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
87066
87067 2003-11-03  Bruno Haible  <bruno@clisp.org>
87068
87069         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
87070         available, to avoid (extremely rare) race condition.
87071         Suggested by Paul Eggert.
87072
87073 2003-11-02  Karl Berry  <karl@gnu.org>
87074
87075         * config/srclist.txt (vasprintf.c): sync broken, sigh.
87076
87077 2003-10-31  Paul Eggert  <eggert@twinsun.com>
87078
87079         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
87080         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
87081         (read_filesystem_list): Set and use me_type_malloced.
87082         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
87083         whatever the type happens to be), for brevity and consistency.
87084         Check for size calculation overflow on Alphas running OSF/1.
87085
87086 2003-10-31  Jim Meyering  <jim@meyering.net>
87087
87088         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
87089
87090         * lib/linebuffer.c: Include <string.h> for declaration of memset.
87091
87092 2003-10-30  Paul Eggert  <eggert@twinsun.com>
87093             Bruno Haible  <bruno@clisp.org>
87094
87095         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
87096         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
87097
87098 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
87099
87100         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
87101         netbsd*-gnu*.  Suggested by Robert Millan.
87102
87103 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87104
87105         * modules/group-member: Depend on stdbool.
87106
87107 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87108
87109         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
87110
87111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87112
87113         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
87114         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
87115         after the 'gnu' in these cases.  This fixes some bugs in the
87116         previous change, and is based on suggestions by Robert Millan.
87117
87118 2003-10-29  Paul Eggert  <eggert@twinsun.com>
87119
87120         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
87121         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
87122         no longer needed.
87123         * lib/quotearg.c (quotearg_n_options): Use it.
87124         * lib/group-member.c: Include <stdbool.h>.
87125         (free_group_info): Arg is now const *; don't free arg.
87126         (get_group_info): Now returns bool and accepts struct group_info *,
87127         rather than returning a malloc'ed struct group_info *.
87128         All uses changed.  Check for overflow in internal size calculation.
87129
87130         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
87131         rather than xmalloc/xrealloc.
87132         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
87133         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
87134         conformance bug: the old code used a pointer after freeing the
87135         storage that it addressed.
87136         * lib/hash.c (hash_initialize): Simplify the code by using
87137         xalloc_oversized rather than doing it by hand.
87138         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
87139         the buffer preserved.  Use free and xmalloc instead.
87140         * lib/quotearg.c (quotearg_n_options): Likewise.
87141         Use a simpler test for size overflow.  Don't use xalloc_oversized
87142         because unsigned int might be wider than size_t (!); this suggests
87143         that we should switch from unsigned int to size_t for slot numbers.
87144
87145 2003-10-28  Paul Eggert  <eggert@twinsun.com>
87146
87147         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
87148         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
87149         NetBSD kernels.  Requested by Richard Stallman.
87150
87151 2003-10-27  Paul Eggert  <eggert@twinsun.com>
87152
87153         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
87154         to allocate the returned structure.  Do not allocate a subarray,
87155         as x2nrealloc will do that.
87156         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
87157         instead of xnrealloc.
87158         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
87159
87160 2003-10-27  Bruno Haible  <bruno@clisp.org>
87161
87162         * lib/stdbool_.h: Better support for BeOS.
87163
87164 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87165
87166         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
87167         now uses inline.
87168
87169 2003-10-26  Paul Eggert  <eggert@twinsun.com>
87170
87171         * lib/xalloc.h (xalloc_oversized): New static inline function, for
87172         callers that want to do their own size-overflow checking.  Include
87173         <stdbool.h>, since xalloc_oversized returns bool.
87174         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
87175         to use xalloc_oversized.
87176
87177         Add two functions x2realloc, x2nrealloc, for programs that grow
87178         arrays dynamically by doubling their sizes.
87179         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
87180         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
87181         New functions.
87182
87183         Port to C99 semantics for 'inline' of external functions.
87184         Bug reported by Bruno Haible.
87185         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
87186         with the old contents of xnmalloc.
87187         (xnmalloc, xmalloc): Use it.
87188         (xnrealloc_inline): New static inline function,
87189         with the old contents of xnrealloc.
87190         (xnrealloc, xrealloc): Use it.
87191
87192         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
87193         that.
87194
87195 2003-10-26  Karl Berry  <karl@gnu.org>
87196
87197         * config/srclist.txt (COPYING.DOC): no longer available from
87198         /gd/gnuorg; don't know where the ultimate source is.
87199
87200 2003-10-25  Paul Eggert  <eggert@twinsun.com>
87201
87202         Fix several address-calculation bugs in the hash modules,
87203         plus some minor code cleanup.
87204
87205         * lib/hash.h: Include <stdbool.h>, for bool.
87206         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
87207         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
87208         hash_get_n_entries, hash_get_max_bucket_length,
87209         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
87210         hash_rehash): Use size_t rather than unsigned.
87211         * lib/hash.c (struct hash_table, hash_get_n_buckets,
87212         hash_get_n_buckets_used, hash_get_n_entries,
87213         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
87214         hash_get_entries, hash_do_for_each, hash_string, is_prime,
87215         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
87216         Likewise.
87217         (SIZE_MAX): Define if not defined.
87218         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
87219         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
87220         hash_print):
87221         Use const * when possible.
87222         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
87223         (check_tuning): Fix bug: if tuning parameters were very close to
87224         0 or 1, rounding errors could have caused subscript violations.
87225         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
87226         (hash_initialize): Add 'fail:' label
87227         to free table and return NULL, and use it to simplify code.
87228         Use calloc rather than clearing the storage ourself.
87229         (hash_initialize, hash_rehash): Check for arithmetic overflow in
87230         buffer size calculations.
87231         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
87232         Include <stddef.h>, for size_t.
87233         * lib/hash-pjw.c (hash_pjw): Likewise.
87234         Switch to method described by Bruno Haible.
87235         Include <limits.h>, for CHAR_BIT.
87236         (SIZE_BITS): New macro.
87237
87238 2003-10-23  Paul Eggert  <eggert@twinsun.com>
87239
87240         * m4/getline.m4 (AM_FUNC_GETLINE):
87241         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
87242         hosts.  Problem reported by Derek Robert Price in
87243         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
87244         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
87245         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
87246
87247 2003-10-21  Paul Eggert  <eggert@twinsun.com>
87248
87249         * lib/getndelim2.c (getndelim2): When size calculation overflows,
87250         ceiling the allocation at NMAX bytes rather than silently
87251         discarding input bytes before NMAX is reached.  This makes
87252         a difference only if NMAX exceeds SIZE_MAX / 2.
87253
87254         * lib/obstack.c: Merge from glibc.
87255         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
87256         Add libc_hidden_def (_obstack_newchunk).
87257         (_obstack_free) [! defined _LIBC]: Remove.
87258         [defined _LIBC]: Make a strong alias from obstack_free, rather than
87259         a clone of the function body.
87260         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
87261         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
87262
87263         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
87264         glibc.
87265         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
87266         arg to memcpy.
87267
87268         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
87269         (obstack_ptr_grow_fast, obstack_int_grow_fast):
87270         Don't use lvalue casts, as GCC plans to remove support for them
87271         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
87272         was also present in the non-GCC version, indicating that this
87273         code had always been buggy and had never been widely used.
87274         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
87275         Use the fast variant of each macro, rather than copying the
87276         definiens of the fast variant; that way, we'll be more likely to
87277         catch future bugs in the fast variants.
87278
87279 2003-10-20  Bruno Haible  <bruno@clisp.org>
87280
87281         * modules/wait-process: New file.
87282         * MODULES.html.sh (func_all_modules): Add wait-process.
87283
87284 2003-10-20  Bruno Haible  <bruno@clisp.org>
87285
87286         * m4/wait-process.m4: New file.
87287
87288 2003-10-20  Bruno Haible  <bruno@clisp.org>
87289
87290         * lib/wait-process.h: New file, from GNU gettext.
87291         * lib/wait-process.c: New file, from GNU gettext.
87292
87293 2003-10-19  Jim Meyering  <jim@meyering.net>
87294
87295         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
87296         HPUX 10.20.
87297
87298 2003-10-18  Karl Berry  <karl@gnu.org>
87299
87300         * config/config.guess: update from config.
87301
87302 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87303
87304         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
87305         (getgroups): First arg is int, not size_t.
87306         Don't let 'free' mangle errno.
87307
87308 2003-10-16  Paul Eggert  <eggert@twinsun.com>
87309
87310         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
87311
87312 2003-10-16  Karl Berry  <karl@gnu.org>
87313
87314         * config/config.{guess,sub}: update from config.
87315
87316 2003-10-16  Jim Meyering  <jim@meyering.net>
87317
87318         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
87319         memcpy.
87320
87321 2003-10-15  Paul Eggert  <eggert@twinsun.com>
87322
87323         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
87324         (SIZE_MAX): Remove.
87325         (new_exclude, add_exclude_file): Initial size no longer needs to
87326         be a power of 2.
87327         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
87328         our own address arithmetic overflow checking.
87329
87330         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
87331         (fnmatch): Do not alloca more than 2000 wide characters;
87332         instead, use malloc for large buffers.
87333         Check for address arithmetic overflow, and return -1
87334         with errno set to ENOMEM in that case.
87335         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
87336         (NEW_PATTERN): Do not alloca more than 8000 bytes;
87337         instead, return -1.  Check for address arithmetic overflow.
87338
87339 2003-10-14  Paul Eggert  <eggert@twinsun.com>
87340
87341         Handle invalid suffixes and overflow independently, so that
87342         callers can treat them independently as needed.  Fix some bugs in
87343         suffix handling, e.g., "100k@" was not diagnosed as an invalid
87344         suffix for a human-readable blocksize.  The major caller-visible
87345         change is the addition of a new
87346         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
87347         that both overflow and suffix chars were found.
87348
87349         * lib/human.c (humblock): Don't check separately for invalid suffix
87350         char; that is xstrtoumax's job (now that its bug is fixed).
87351         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
87352         INTMAX_MAX]: New macros.
87353         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
87354         TYPE_MAXIMUM): New macros.
87355         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
87356         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
87357         if overflow occurs, as it's what __strtol does and it's more useful
87358         in practice.
87359         (__xstrtol): If __strtol reports some error other than ERANGE,
87360         reflect it to the caller as LONGINT_INVALID.  If it reports
87361         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
87362         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
87363         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
87364         value.
87365         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
87366         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
87367         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
87368         [defined UINTMAX_MAX]: New macros.
87369
87370 2003-10-14  Bruno Haible  <bruno@clisp.org>
87371
87372         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
87373
87374 2003-10-14  Bruno Haible  <bruno@clisp.org>
87375
87376         * m4/sig_atomic_t: New file, from GNU gettext.
87377         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
87378
87379 2003-10-14  Bruno Haible  <bruno@clisp.org>
87380
87381         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
87382         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
87383         Also use volatile where needed.
87384
87385 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87386
87387         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
87388         Change maintainer from Bruno Haible to 'all'.
87389
87390 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87391
87392         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
87393
87394 2003-10-12  Paul Eggert  <eggert@twinsun.com>
87395
87396         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
87397         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
87398         and define in terms of the other primitives.
87399         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
87400         (SIZE_MAX): Define if not already defined.
87401         (array_size_overflow): New function.
87402         (xalloc_die): Abort instead of exiting if 'error' returns.
87403         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
87404         (xmalloc, xrealloc): Use them.
87405         (xcalloc): Check for address arithmetic overflow.
87406         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
87407         a bit faster than strcpy.
87408
87409 2003-10-10  Simon Josefsson  <jas@extundo.com>
87410
87411         * modules/argp (Depends-on): Add restrict and strcase.
87412
87413 2003-10-10  Simon Josefsson  <jas@extundo.com>
87414
87415         * m4/argp.m4: Add AC_C_INLINE.
87416
87417 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87418
87419         Merge getpass from libc, plus a few fixes.
87420
87421         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
87422         Include <stdbool.h>.
87423         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
87424         __fsetlocking to empty.
87425         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
87426         do include <bits/libc-lock.h>.
87427         Do not include <fcntl.h>; not needed.
87428         [_LIBC]: Include <wchar.h>.
87429         (NOTCANCEL_MODE): New macro.
87430         (flockfile, funlockfile) [_LIBC]: New macros.
87431         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
87432         [!_LIBC]: New macros.
87433         (call_fclose): New function.
87434         (getpass): Use it.  Save tty stream separately; this simplifies the
87435         code and makes it more reliable if stdin happens to equal stdout.
87436         Invoke __fsetlocking on tty.
87437         Handle thread cancellation if needed.
87438         Namespace cleanup (use __tcgetattr, __getline).
87439         Use bool for Booleans.
87440         [USE_IN_LIBIO]: Handle wide streams.
87441         [!_LIBC]: Unconditionally do the fseek, since we don't know what
87442         stream might go where.
87443
87444         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
87445         doesn't have to include <stdio.h> before us.
87446         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
87447         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
87448         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
87449         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
87450         if not declared, so that we can use getpass.c code from libc without
87451         rewriting it.
87452         (flockfile, ftrylockfile, funlockfile): New macros.
87453
87454 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87455
87456         * modules/getpass: Depend on stdbool.
87457
87458 2003-10-08  Paul Eggert  <eggert@twinsun.com>
87459
87460         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
87461
87462 2003-10-07  Karl Berry  <karl@gnu.org>
87463
87464         * config/config.{guess,sub}: update from config.
87465
87466 2003-10-06  Jim Meyering  <jim@meyering.net>
87467             Bruno Haible  <bruno@clisp.org>
87468
87469         This lets translators provide better translations for the
87470         "Written by ..." part of --version output.
87471         * lib/version-etc.h: Include stdarg.h.
87472         (version_etc_copyright): Declare as readonly.
87473         (version_etc): Make this function variadic with a NULL-terminated list
87474         of author name strings.
87475         (version_etc_va): New declaration.
87476         * lib/version-etc.c: Include stdarg.h, stdlib.h.
87477         (version_etc_copyright): Declare as readonly.
87478         (version_etc_va): New function. Provide a different translatable string
87479         for each possible number of authors < 10. Abbreviate when there are 10
87480         authors or more.
87481         (version_etc): Make this function variadic. Call version_etc_va.
87482         Suggestion from Gary V. Vaughan.
87483
87484         * lib/long-options.h (parse_long_options): Change prototype: the
87485         authors string is moved to the end and becomes variadic.
87486         * lib/long-options.c: Include stdarg.h.
87487         (parse_long_options): Make this function variadic, too.
87488         Call version_etc_va, not version_etc.
87489
87490 2003-10-06  Bruno Haible  <bruno@clisp.org>
87491
87492         * modules/version-etc-2: Remove file.
87493         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
87494
87495 2003-10-06  Bruno Haible  <bruno@clisp.org>
87496
87497         * modules/fatal-signal: New file.
87498         * MODULES.html.sh (func_all_modules): Add fatal-signal.
87499
87500 2003-10-06  Bruno Haible  <bruno@clisp.org>
87501
87502         * m4/fatal-signal.m4: New file.
87503         * m4/signalblocking.m4: New file, from GNU gettext.
87504
87505 2003-10-06  Bruno Haible  <bruno@clisp.org>
87506
87507         * lib/version-etc-2.h: Remove file.
87508         * lib/version-etc-2.c: Remove file.
87509
87510 2003-10-06  Bruno Haible  <bruno@clisp.org>
87511
87512         * lib/fatal-signal.h: New file, from GNU gettext.
87513         * lib/fatal-signal.c: New file, from GNU gettext.
87514
87515 2003-10-05  Paul Eggert  <eggert@twinsun.com>
87516
87517         * README: Rework advice for preventing empty .o files.
87518         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
87519         not <sys/types.h>.
87520
87521 2003-10-04  Karl Berry  <karl@gnu.org>
87522
87523         * lib/argp*: update from libc.
87524
87525 2003-10-04  Karl Berry  <karl@gnu.org>
87526
87527         * config/config.{guess,sub}: update from config.
87528
87529 2003-10-02  Bruno Haible  <bruno@clisp.org>
87530
87531         * modules/lchown (Include): Add lchown.h.
87532         * modules/time_r (Include): Use "..." syntax.
87533         * modules/xgetdomainname (Include): Add xgetdomainname.h.
87534
87535 2003-10-01  Simon Josefsson  <jas@extundo.com>
87536
87537         * MODULES.html.sh (func_all_modules): Move gethostname from section
87538         'based on' to section 'lacking' POSIX:2001.
87539
87540 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
87541
87542         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
87543         to output mode on the same stream.
87544
87545 2003-09-29  Paul Eggert  <eggert@twinsun.com>
87546
87547         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
87548         Fix arg typo in previous patch.
87549
87550 2003-09-28  Jim Meyering  <jim@meyering.net>
87551
87552         * lib/error.c: Correct cpp indentation.
87553
87554 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87555
87556         * modules/free: New file.
87557
87558 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87559
87560         * m4/free.m4: New file.
87561
87562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
87563
87564         * lib/minmax.h (MIN, MAX)
87565         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
87566         Omit the special code that used __typeof__, since we worry that
87567         it could be more trouble than it's worth.  See:
87568         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
87569         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
87570
87571         * lib/free.c: New file.
87572
87573 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
87574
87575         Trivial fixes to Makefile.am parts of module listings.
87576         * modules/strstr: Append strstr.h to lib_SOURCES.
87577         * modules/strcase: Likewise, for strcase.h.
87578
87579 2003-09-27  Karl Berry  <karl@gnu.org>
87580
87581         * config/mkinstalldirs: update from automake.
87582
87583 2003-09-26  Paul Eggert  <eggert@twinsun.com>
87584
87585         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
87586         (error_tail): Do not loop, reallocating temporary buffer, since
87587         the output cannot contain more wide characters than the input
87588         contains bytes, the size must be big enough already.  This avoids
87589         one potential size overflow calculation.  Check for size overflow
87590         when calculating temporary buffer size.  Free temporary buffer
87591         when done, if it was allocated with malloc; this plugs a memory
87592         leak.  Remove casts from void * to pointers, that are no longer
87593         needed now that we're assuming C89 or better.
87594
87595         Merge error changes from glibc.
87596
87597         * lib/error.c, error.h: Update copyright notice header to match glibc.
87598         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
87599         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
87600         Disable cancellation while printing error.
87601         * lib/error.h: Prepend __ to parameter names.
87602
87603 2003-09-26  Jim Meyering  <jim@meyering.net>
87604
87605         * lib/error.c (error_tail): Move some declarations
87606         into inner scope where the local variables are used.
87607
87608 2003-09-26  Bruno Haible  <bruno@clisp.org>
87609
87610         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
87611         stpncpy().
87612         Don't define stpncpy through config.h; it's now done through stpncpy.h.
87613
87614 2003-09-26  Bruno Haible  <bruno@clisp.org>
87615
87616         * lib/stpncpy.h (gnu_stpncpy): New declaration.
87617         (stpncpy): Define as alias for gnu_stpncpy.
87618         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
87619
87620 2003-09-25  Simon Josefsson  <jas@extundo.com>
87621
87622         * lib/xgetdomainname.h: New file.
87623         * lib/xgetdomainname.c: New file.
87624
87625 2003-09-25  Simon Josefsson  <jas@extundo.com>
87626             Bruno Haible  <bruno@clisp.org>
87627
87628         * modules/getdomainname: New file.
87629         * modules/xgetdomainname: New file.
87630         * MODULES.html.sh (func_all_modules): Add getdomainname,
87631         xgetdomainname.
87632
87633 2003-09-25  Simon Josefsson  <jas@extundo.com>
87634             Bruno Haible  <bruno@clisp.org>
87635
87636         * m4/getdomainname.m4: New file.
87637
87638 2003-09-25  Simon Josefsson  <jas@extundo.com>
87639             Bruno Haible  <bruno@clisp.org>
87640
87641         * lib/getdomainname.h: New file.
87642         * lib/getdomainname.c: New file.
87643
87644 2003-09-25  Karl Berry  <karl@gnu.org>
87645
87646         * lib/argp-fmtstream.c, argp-help.c: update from libc.
87647
87648 2003-09-25  Karl Berry  <karl@gnu.org>
87649
87650         * config/install-sh: update from automake.
87651
87652 2003-09-25  Bruno Haible  <bruno@clisp.org>
87653
87654         * modules/version-etc-2: New file, from modules/version-etc with
87655         modifications.
87656         * MODULES.html.sh (func_all_modules): Add version-etc-2.
87657
87658 2003-09-25  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
87661         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
87662
87663 2003-09-24  Simon Josefsson  <jas@extundo.com>
87664
87665         * modules/xgethostname: Add xgethostname.h.
87666
87667 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87668
87669         * lib/linebuffer.c (freebuffer): Don't free the argument, just
87670         the buffer associated with the argument.  Bug reported by
87671         Simon Josefsson.
87672
87673 2003-09-24  Paul Eggert  <eggert@twinsun.com>
87674
87675         * README: Document assumptions that 'int' is at least 32 bits
87676         wide, that integer arithmetic is 2's complement without overflow,
87677         that there are no holes in integer values, that adding sizes of
87678         two nonoverlapping objects can't overflow, and that all-bits-zero
87679         yields scalar zero.  Fix spelling and capitalization typos.
87680
87681 2003-09-19  Karl Berry  <karl@gnu.org>
87682
87683         * lib/argp.h: update from libc.
87684
87685 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87686
87687         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
87688         to avoid spurious warnings like "AC_RUN_IFELSE was called before
87689         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
87690
87691 2003-09-17  Paul Eggert  <eggert@twinsun.com>
87692
87693         * gnulib-tool: Use "test -h", not "test -L", for portability
87694         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
87695         (tags_regexp): Remove, since \| doesn't conform to POSIX.
87696         (sed_extract_prog): Issue s commands one-by-one, rather than
87697         using \| in one s command.
87698
87699 2003-09-16  Paul Eggert  <eggert@twinsun.com>
87700
87701         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
87702         input error, instead of returning NULL the next time we are called
87703         (and therefore losing track of errno).
87704
87705 2003-09-16  Bruno Haible  <bruno@clisp.org>
87706
87707         * gnulib-tool (func_create_testdir): Warn about duplicated
87708         dependencies.
87709
87710 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87711
87712         * modules/argmatch, modules/fatal, modules/obstack,
87713         modules/xalloc, modules/xgethostname: Sort dependencies by
87714         importance, not alphabetically.
87715
87716 2003-09-15  Paul Eggert  <eggert@twinsun.com>
87717
87718         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
87719         fails, so that the caller gets the proper errno.
87720
87721         * lib/readutmp.c (read_utmp): Likewise.
87722         Check for fstat error.  Close stream and free storage
87723         when failing.
87724
87725 2003-09-14  Karl Berry  <karl@gnu.org>
87726
87727         * config/srclist.txt (strdup.c): disable for c89 changes.
87728
87729 2003-09-14  Jim Meyering  <jim@meyering.net>
87730
87731         * lib/getloadavg.c: Correct cpp indentation.
87732         * lib/strdup.c: Likewise.
87733         * lib/vasnprintf.c: Likewise.
87734
87735 2003-09-14  Bruno Haible  <bruno@clisp.org>
87736
87737         * modules/fwriteerror: New file.
87738         * MODULES.html.sh (func_all_modules): Add fwriteerror.
87739
87740 2003-09-14  Bruno Haible  <bruno@clisp.org>
87741
87742         * lib/fwriteerror.h: New file.
87743         * lib/fwriteerror.c: New file.
87744
87745 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87746
87747         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
87748         modules/xgethostname, modules/xalloc: Depend on exit.
87749
87750 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87751
87752         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
87753
87754         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
87755         and AC_MINIX, too, so that their extensions are available.
87756
87757         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
87758         This macro has been superseded by gl_BACKUPFILE.
87759
87760         More patches to assume C89 or better.
87761
87762         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
87763
87764         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
87765         unconditionally.
87766         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
87767         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
87768         Include <string.h>, <stdlib.h> unconditionally.
87769         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
87770         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
87771         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
87772         headers or for string.h.
87773         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
87774         or strtoul.
87775
87776         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
87777         headers.
87778         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
87779         * m4/userspec.m4 (gl_USERSPEC): Likewise.
87780         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
87781         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
87782         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
87783         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
87784         memcpy, memset.
87785         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
87786         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
87787         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
87788         strtol.
87789         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
87790         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
87791         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
87792         strtoul.
87793
87794 2003-09-12  Paul Eggert  <eggert@twinsun.com>
87795
87796         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
87797         * lib/obstack.c [!defined _LIBC]: Likewise.
87798         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
87799         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
87800         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
87801
87802         More changes to assume C89 or better.
87803
87804         * lib/error.c (error_tail): Assume vprintf.
87805
87806         * lib/argmatch.c (getenv): Remove decl.
87807         * lib/progreloc.c (get_full_program_name): Define via prototype.
87808         * lib/setenv.c (clearenv): Likewise.
87809         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87810         needed.
87811         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87812         (malloc, memcpy): Remove decls.
87813         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87814         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87815         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87816         (memcpy): Remove macro.
87817         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87818         (__P): Remove.  All uses removed.
87819         (PTR): Remove.  All uses changed to void *.
87820         (CHAR_BIT, NULL): Remove.
87821         (spaces, zeros, memset_space, memset_zero)
87822         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87823         Remove.
87824         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87825         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87826         Define with prototype.
87827         Remove now-unnecessary prototype decl.
87828         (extra_args_spec): Assume ANSI C.  All uses changed.
87829         (extra_args_spec_iso): Remove.
87830         (my_strftime, emacs_strftimeu): Define via prototype.
87831         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87832         unconditionally.
87833         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87834         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87835         (strtoul, strtol): Remove decls.
87836         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87837         LONG_MAX): Remove.
87838         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87839         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87840         (LOCALE_PARAM_PROTO): New macro.
87841         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87842         (INTERNAL (strtol), strtol): Define with a prototype.
87843         (PARAMS): Remove.  All uses removed.
87844         * lib/tempname.c: Include <string.h> unconditionally.
87845         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87846         * lib/xgethostname.c (main): Define with a prototype.
87847         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87848         Include <stdlib.h> unconditionally.
87849         (calloc, malloc, realloc, free): Remove decls.
87850         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87851         Include <stdlib.h> unconditionally.  Sort include file names.
87852         (strtod): Remove.
87853         (xstrtod): Define with a prototype.
87854         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87855         (strtol, strtoul): Remove decls.
87856
87857 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87858
87859         More patches to assume C89 or better.
87860         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87861         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87862         string.h, memchr, STDC_HEADERS.
87863
87864 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87867         Include <stdlib.h>, <string.h> unconditionally.
87868         Remove now-unnecessary cast to char *.
87869         * lib/strnlen.c: Include <string.h> unconditionally.
87870         * lib/yesno.c (yesno): Define with a prototype.
87871
87872 2003-09-11  Bruno Haible  <bruno@clisp.org>
87873
87874         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87875
87876 2003-09-10  Jim Meyering  <jim@meyering.net>
87877
87878         * lib/error.c: Correct indentation of cpp directives.
87879
87880 2003-09-10  Bruno Haible  <bruno@clisp.org>
87881
87882         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87883         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87884         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87885         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87886         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87887         <stdlib.h> and <string.h> checks.
87888         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87889         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87890
87891 2003-09-10  Bruno Haible  <bruno@clisp.org>
87892
87893         * lib/strcspn.c: Include <string.h> unconditionally.
87894         * lib/strpbrk.c: Include <string.h> unconditionally.
87895         * lib/strstr.c: Include <string.h> unconditionally.
87896         * lib/unicodeio.c: Include <string.h> unconditionally.
87897         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87898         * lib/unsetenv.c: Likewise.
87899         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87900         * lib/yesno.c: Include <stdlib.h> unconditionally.
87901         (rpmatch): Add prototype.
87902
87903 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87904
87905         More patches to assume C89 or better.
87906         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87907         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87908         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87909         or for string.h.
87910         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87911         stdlib.h.
87912         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87913         C headers.
87914         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87915         string.h.
87916         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87917         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87918         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87919         or for string.h.
87920         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87921         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87922         C headers.
87923         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87924         memcpy.
87925         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87926         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87927         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87928         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87929         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87930         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87931         string.h, free.
87932         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87933         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87934         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87935         C headers, or for string.h.
87936         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87937         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87938         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87939         headers, memory.h, stdlib.h, string.h, strings.h.
87940         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87941         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87942         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87943         strchr.
87944         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87945         headers, memory.h, string.h.
87946         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87947         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87948         free.
87949         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87950         headers.
87951         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87952         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87953         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87954         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87955         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87956
87957 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87958
87959         More K&R removal.
87960
87961         * lib/acosl.c (main): Use a prototype.
87962         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87963         tanl.c: Likewise.
87964
87965         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87966
87967         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87968         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87969         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87970         with a prototype.
87971         * lib/getopt.c (const): Remove macro.
87972         Include <string.h> unconditionally.
87973         (my_index): Remove; all uses changed to strchr.
87974         (strlen): Remove decl.
87975         (exchange): Remove forward decl; no longer needed.
87976         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87977         Define with prototype.
87978         * lib/getopt1.c (const): Remove macro.
87979         (getopt_long, getopt_long_only, main): Define with prototype.
87980
87981         * lib/getugroups.c: Include <string.h> unconditionally.
87982
87983         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87984         (getusershell, setusershell, endusershell, readname, main):
87985         Define with prototypes.
87986
87987         * lib/group-member.c: Include group-member.h first.
87988         Include <stdlib.h> unconditionally.
87989
87990         * lib/hard-locale.c: Include hard-locale.h first.
87991         Include <stdlib.h>, <string.h> unconditionally.
87992
87993         * lib/hash.c (free, malloc): Remove decls.
87994         Include <stdlib.h> unconditionally.
87995
87996         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87997         (getenv): Do not declare.
87998
87999         * lib/idcache.c: Include <string.h> unconditionally.
88000
88001         * lib/long-options.c: Include long-options.h first, to test interface.
88002         Include <stdlib.h> unconditionally.
88003
88004         * lib/makepath.c: Include makepath.h first, to test interface.
88005         Include <stdlib.h> and <string.h> unconditionally.
88006
88007         * lib/linebuffer.c: Include <stdlib.h>.
88008         (free): Remove decl.
88009
88010         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
88011         stddef.h. rpl_malloc returns void *, not char *.
88012         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
88013         prototype.
88014
88015         * lib/md5.h: Include <limits.h> unconditionally.
88016         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
88017         (__P): Remove; all uses removed.
88018         * lib/md5.c: Include "md5.h" first.
88019         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
88020         md5_buffer, md5_process_bytes, md5_process_block):
88021         Define with prototypes.
88022         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
88023         * lib/sha.c: Include "sha.h" first.
88024         Include <stdlib.h>, <string.h> unconditionally.
88025
88026         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
88027         * lib/memcmp.c (__ptr_t): Likewise.
88028         * lib/memrchr.c (__ptr_t): Likewise.
88029         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
88030         Include <string.h> unconditionally.
88031         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
88032         * lib/memchr.c: Include <stdlib.h> unconditionally.
88033         * lib/memchr.c (LONG_MAX): Remove.
88034         * lib/memrchr.c (LONG_MAX): Likewise.
88035         * lib/memchr.c (__memchr): Define via a prototype.
88036         * lib/memrchr.c (__memrchr): Likewise.
88037         * lib/memcmp.c (__P): Remove, and remove all uses.
88038         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
88039         Remove forward decls; no longer needed.
88040         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
88041         Use types required by C89 in prototype.
88042
88043         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
88044         * lib/savedir.c: Likewise.
88045         * lib/mkdir.c (free): Remove decl.
88046         * lib/rmdir.c (rmdir): Define with a prototype.
88047         * lib/savedir.c: Include savedir.h first, to test interface.
88048
88049         * lib/mktime.c (STDC_HEADERS): Remove.
88050         Include <stdlib.h>, <string.h> unconditionally.
88051
88052         * lib/modechange.c: Include <stdlib.h> unconditionally.
88053         (malloc): Remove decl.
88054
88055         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
88056         (free): Remove decl.
88057
88058         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
88059         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
88060         (This type really should be intptr_t, but that's a C99ism.)
88061         (_obstack_memcpy): Remove: all uses changed to memcpy.
88062         Include <string.h> unconditionally.
88063         (struct obstack): Assume __STDC__ for types of members
88064         chunkfun, freefun, extra_arg.
88065         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
88066         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
88067         obstack_begin, obstack_specify_allocation,
88068         obstack_specify_allocation_with_arg, obstack_chunkfun,
88069         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
88070         Remove unprototyped decls and the macros that use them.
88071         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
88072         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
88073         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
88074         (defined __STDC__ && __STDC__)]:
88075         Remove nonprototyped code.
88076         Include <stdlib.h> unconditionally.
88077         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
88078         _obstack_allocated_p, _obstack_free, obstack_free,
88079         _obstack_memory_used, print_and_abort):
88080         Define using prototypes.
88081         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
88082         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
88083         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
88084         obstack_next_free, obstack_object_size, obstack_room) [0]:
88085         Remove unused, unprototyped code.
88086
88087         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
88088
88089         * lib/physmem.c (physmem_total, physmem_available, main): Define
88090         with prototypes.
88091
88092         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
88093         (main): Define with a prototype.
88094
88095         * lib/posixver.c (getenv): Remove decl.
88096
88097         * lib/putenv.c (malloc): Returns void *, not char *.
88098         Include <string.h> unconditionally.
88099         (strchr, memcpy, NULL): Do not define.
88100
88101         * lib/readtokens.c: Include readtokens.h first, to test interface.
88102         Include <stdlib.h>, <string.h> unconditionally.
88103         (init_tokenbuffer): Define with a prototype.
88104
88105         * lib/regex.c (PARAMS): Remove.  All uses removed.
88106         All uses of _RE_ARGS removed, too.
88107         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88108         unconditionally.
88109         (bzero): Assume memset exists.
88110         (memcmp, memcpy, NULL): Remove.
88111         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
88112         char, or assignments to local vars of type signed char.
88113         (init_syntax_once, PREFIX(extract_number_and_incr),
88114         PREFIX(print_partial_compiled_pattern),
88115         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
88116         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
88117         PREFIX(regex_grow_registers), PREFIX(regex_compile),
88118         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
88119         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
88120         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
88121         wcs_compile_range, byte_compile_range, truncate_wchar,
88122         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
88123         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
88124         count_mbs_length, wcs_re_match_2_internal,
88125         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
88126         PREFIX(alt_match_null_string_p),
88127         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
88128         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
88129         regfree, PREFIX(extract_number)): Define with prototype.  Remove
88130         now-unnecessary declaration, if any.
88131         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
88132         regcomp, regexec):
88133         Remove now-unnecessary casts among pointer types.
88134         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
88135
88136         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
88137         (free): Remove decl.
88138
88139         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
88140
88141         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
88142         (free): Remove decl.
88143
88144         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
88145         * lib/xgetcwd.c: Likewise.
88146
88147         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
88148         (free): Remove decl.
88149
88150         * lib/strchrnul.c (strchrnul): Define with a prototype.
88151         Fix bug: c_in was not converted to char before searching.
88152
88153         The following changes are not K&R related:
88154
88155         * lib/group-member.h: Include <sys/types.h>, so that this file is
88156         self-contained.
88157         * lib/makepath.h: Likewise.
88158
88159         * lib/getusershell.c (readname, default_index, line_size, readname):
88160         Use size_t, not int, for sizes.
88161         (readname): If the size overflows, report an error instead of
88162         looping forever.
88163
88164 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88165
88166         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
88167         libc.
88168
88169 2003-09-09  Paul Eggert  <eggert@twinsun.com>
88170
88171         * README: New section: portability guidelines.
88172
88173 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88174
88175         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
88176         C89 spec.
88177
88178 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
88179
88180         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
88181
88182 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88183
88184         Assume C89 or better; remove K&R cruft.
88185         A few of these changes were first proposed by Derek Robert Price
88186         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
88187
88188         * lib/addext.c: Include <string.h> unconditionally.
88189         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
88190         Don't declare getenv or malloc.
88191
88192         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
88193         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
88194         (NULL): Remove.
88195         (find_stack_direction, alloca): Use prototypes.
88196
88197         * lib/atexit.c (atexit): Define using a prototype.
88198
88199         * lib/basename.c, dirname.c, stripslash.c:
88200         Include <string.h> unconditionally.
88201
88202         * lib/bcopy.c: Include <stddef.h>.
88203         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
88204
88205         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
88206
88207         * lib/error.h (error, error_at_line, error_print_progname)
88208         [! (defined (__STDC__) && __STDC__)]: Remove decls.
88209         * lib/error.c: Include error.h first, to check interface.
88210         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88211         (VA_START): Remove; all uses changeed to va_start.
88212         (exit, strerror): Remove decls.
88213         (error_print_progname): Prototype uncondionally.
88214         Don't include <errno.h>; no longer needed.
88215         (private_strerror): Remove.
88216         (error_tail): Always define.
88217         (error, error_at_line): Assume C89 or better; always use prototypes.
88218         * lib/fatal.c: Include "fatal.h" first, to test interface.
88219         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
88220         (VA_START): Remove; all uses changed to va_start.
88221         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
88222         this case.
88223         (exit): Remove decl.
88224         (fatal): Prototype unconditionally.  Assume va_start works.
88225         Abort at end, to pacify gcc.
88226
88227         * lib/euidaccess.c (main): Define with a prototype.
88228
88229         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
88230
88231         * lib/exitfail.c: Include <stdlib.h> unconditionally.
88232
88233         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
88234         prototypes.
88235         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
88236         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
88237         (getenv): Remove decl.
88238         (fnmatch): Define using a prototype.
88239         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
88240         (FCT): Define using a prototype.
88241
88242         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
88243
88244         * lib/gethostname.c: Include <stddef.h>.
88245         (gethostname): Define with prototype.  Length is size_t, not int.
88246
88247 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88248
88249         Assume C89 or better; remove K&R cruft.
88250         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
88251         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
88252         string.h, getenv, malloc.
88253         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
88254         headers.
88255         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
88256         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
88257         do not check for strerror.
88258         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
88259         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
88260         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
88261         do not check for doprnt or vprintf.
88262         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
88263         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
88264
88265 2003-09-08  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
88268         getversion.c should have been removed then, but was accidentally
88269         preserved.
88270
88271         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
88272         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
88273
88274 2003-09-08  Karl Berry  <karl@gnu.org>
88275
88276         * config/config.sub, config.guess, srclistvars.sh: update from savannah
88277                 config, forget about prep.
88278
88279         * config/depcomp, missing: update from automake.
88280
88281 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88282
88283         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
88284         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88285
88286 2003-09-07  Paul Eggert  <eggert@twinsun.com>
88287
88288         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
88289         copy_tm_result.  Bug reported by Simon Josefsson in
88290         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
88291
88292 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88293
88294         * m4/time_r.m4: New file.
88295         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
88296         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
88297         is. Check for timegm declaration.
88298         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
88299         Do not check for gmtime_r.
88300         Replace mktime if __mktime_internal does not exist and if mktime
88301         hasn't been replaced already.
88302
88303 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88304
88305         * lib/time_r.c, lib/time_r.h: New files.
88306
88307         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
88308         __localtime_r.
88309         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
88310         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
88311
88312         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
88313         __gmtime_r.
88314         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
88315         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
88316         Include <time_r.h>.
88317
88318         * lib/timegm.c: Switch to glibc implementation, with the following
88319         changes:
88320         [defined HAVE_CONFIG_H]: Include <config.h>.
88321         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
88322         (__mktime_internal) [!defined _LIBC]: New decl.
88323         (__gmtime_r) [!defined _LIBC]: New macro and function.
88324         (timegm): Use a prototype, since gnulib assumes C89.
88325         Do not bother declaring tmp to be const, as it's not really usefu.
88326         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
88327         (timegm): Declare only if HAVE_DECL_TIMEGM.
88328
88329 2003-09-06  Paul Eggert  <eggert@twinsun.com>
88330
88331         * MODULES.html.sh (func_all_modules): Add time_r.
88332         * modules/time_r: New file.
88333         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
88334         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
88335
88336 2003-09-03  Paul Eggert  <eggert@twinsun.com>
88337
88338         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
88339         Bug reported by Lute Kamstra in
88340         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
88341
88342         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
88343         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
88344         course with correspondingly smaller numbers for tomorrow and
88345         yesterday.  From Tadayoshi Funaba.  Originally installed into
88346         sh-utils on 1999-08-07, but the patch got lost (I guess during the
88347         coreutils merge?).
88348
88349 2003-08-31  Simon Josefsson  <jas@extundo.com>
88350
88351         * modules/timegm: New file.
88352         * MODULES.html.sh (func_all_modules): Add timegm.
88353
88354 2003-08-31  Simon Josefsson  <jas@extundo.com>
88355
88356         * m4/timegm.m4: New file.
88357
88358 2003-08-31  Simon Josefsson  <jas@extundo.com>
88359
88360         * lib/timegm.h: New file.
88361         * lib/timegm.c: New file.  Based on
88362         wget-1.8.2/src/http.c:mktime_from_utc.
88363
88364 2003-08-31  Karl Berry  <karl@gnu.org>
88365
88366         * lib/argp.h: update from libc.
88367
88368 2003-08-28  Bruno Haible  <bruno@clisp.org>
88369
88370         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
88371         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
88372         followed by '#define fnmatch fnmatch_posix' gives an error.
88373
88374 2003-08-28  Bruno Haible  <bruno@clisp.org>
88375
88376         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
88377         warning on QNX, which defines O_BINARY to 000000.
88378
88379 2003-08-27  Jim Meyering  <jim@meyering.net>
88380
88381         * m4/mkstemp.m4: Require that the system mkstemp be able to create
88382         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
88383         would fail after 32.  Reported by Danny Levinson.  Details here:
88384         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
88385
88386 2003-08-24  Bruno Haible  <bruno@clisp.org>
88387
88388         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
88389         MSVC7 <stdio.h> is included later.
88390
88391 2003-08-22  Simon Josefsson  <jas@extundo.com>
88392
88393         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
88394
88395 2003-08-20  Karl Berry  <karl@gnu.org>
88396
88397         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
88398
88399 2003-08-20  Bruno Haible  <bruno@clisp.org>
88400
88401         * modules/progname: New file.
88402         * MODULES.html.sh (func_all_modules): Add progname.
88403
88404 2003-08-20  Bruno Haible  <bruno@clisp.org>
88405
88406         * lib/progname.h: New file, from GNU gettext.
88407         * lib/progname.c: New file, from GNU gettext.
88408         * lib/progreloc.c: New file, from GNU gettext.
88409
88410 2003-08-19  Jim Meyering  <jim@meyering.net>
88411
88412         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
88413         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
88414
88415 2003-08-19  Bruno Haible  <bruno@clisp.org>
88416
88417         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
88418         more.
88419
88420 2003-08-19  Bruno Haible  <bruno@clisp.org>
88421
88422         * lib/xstrdup.c: Assume <string.h> exists.
88423
88424 2003-08-18  Paul Eggert  <eggert@twinsun.com>
88425
88426         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
88427         in makefile rules.
88428
88429 2003-08-18  Jim Meyering  <jim@meyering.net>
88430
88431         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
88432         * m4/lib-ld.m4: Likewise.
88433
88434 2003-08-18  Jim Meyering  <jim@meyering.net>
88435
88436         * lib/setenv.h: Indent nested cpp directive.
88437         * lib/vasnprintf.c: Remove trailing blanks.
88438
88439 2003-08-17  Simon Josefsson  <jas@extundo.com>
88440
88441         * modules/xstrndup: New file.
88442         * MODULES.html.sh (func_all_modules): Add xstrndup.
88443
88444 2003-08-17  Simon Josefsson  <jas@extundo.com>
88445
88446         * modules/argp: Fix autoconf macro name. Add more dependencies.
88447
88448 2003-08-17  Simon Josefsson  <jas@extundo.com>
88449
88450         * m4/xstrndup.m4: New file.
88451
88452 2003-08-17  Simon Josefsson  <jas@extundo.com>
88453
88454         * m4/argp.m4: New file.
88455
88456 2003-08-17  Simon Josefsson  <jas@extundo.com>
88457             Bruno Haible  <bruno@clisp.org>
88458
88459         * lib/xstrndup.h: New file.
88460         * lib/xstrndup.c: New file.
88461
88462 2003-08-17  Bruno Haible  <bruno@clisp.org>
88463
88464         * modules/strndup (Files, Include): Add lib/strndup.h.
88465
88466 2003-08-17  Bruno Haible  <bruno@clisp.org>
88467
88468         * modules/euidaccess (Files): Add lib/euidaccess.h.
88469
88470 2003-08-17  Bruno Haible  <bruno@clisp.org>
88471
88472         * lib/strndup.h: New file.
88473
88474 2003-08-17  Bruno Haible  <bruno@clisp.org>
88475
88476         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
88477         like AC_GNU_SOURCE.
88478         * modules/extensions (configure.ac): Comment out the invocation of
88479         gl_USE_SYSTEM_EXTENSIONS.
88480
88481 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88482
88483         Merges from coreutils, etc.
88484         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
88485         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
88486         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
88487         fixing a typo.
88488         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
88489         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
88490
88491 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88492
88493         Document merge from coreutils.
88494         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
88495         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
88496         * modules/utime: Add m4/utimes-null.m4.
88497
88498 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88499
88500         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
88501         space, undoing this 2003-08-12 change:
88502         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88503
88504 2003-08-16  Paul Eggert  <eggert@twinsun.com>
88505
88506         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
88507         strtoul.c from libc, undoing this 2003-08-12 change:
88508         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
88509
88510 2003-08-16  Jim Meyering  <jim@meyering.net>
88511
88512         Merges from coreutils.
88513         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
88514         prefix.  Adjust cache variables similarly.  Create 500 rather than
88515         just 300 files, to exercise bug on Darwin6.5, too.
88516         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
88517         $missing_dir.
88518         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
88519         AM_SYS_POSIX_TERMIOS.
88520         Reported by mkc@mathdogs.com.
88521         Also change use of $am_cv_sys_posix_termios
88522         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
88523         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
88524         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
88525         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
88526         in /proc/mounts until it finds one with matching device number.  This
88527         is unnecessary when the FILE argument *is* a mount point.  No stat call
88528         is necessary in that case.  So, disable the statvfs-testing code on
88529         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
88530         as RedHat bug# 84846.
88531         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88532         to 1MB, so as not to render systems with no stack size limit (e.g.,
88533         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88534         Include <unistd.h>.  On some systems,
88535         it is required for the definition of _SC_PAGESIZE.
88536
88537 2003-08-16  Jim Meyering  <jim@meyering.net>
88538
88539         Merge from coreutils.
88540         * lib/xstrtoimax.c: #else #if -> #elif.
88541         * lib/xstrtoumax.c: Likewise.
88542
88543 2003-08-16  Jim Meyering  <jim@meyering.net>
88544
88545         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
88546         * m4/utimes.m4: Removed.
88547         * m4/utimes-null.m4: Renamed from utimes.m4.
88548
88549         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
88550         to 1MB, so as not to render systems with no stack size limit (e.g.,
88551         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
88552         Include <unistd.h>.  On some systems,
88553         it is required for the definition of _SC_PAGESIZE.
88554
88555 2003-08-16  Jim Meyering  <jim@meyering.net>
88556         and Paul Eggert  <eggert@cs.ucla.edu>
88557
88558         Merges from coreutils, etc.
88559
88560         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
88561         using the latest version from cvs.  This avoids problems with #line
88562         directives using a vendor (Sun) compiler.
88563         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
88564         Don't set GETGROUPS_LIB here; now it's
88565         done via getgroups.m4's wrapper function.
88566         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
88567         rather than just in sh-util/configure.in, so that the
88568         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
88569         same.
88570         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
88571         AC_FUNC_GETLOADAVG where to find getloadavg.c.
88572         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
88573         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
88574         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
88575         Remove code that is now done by the newly-required macros.
88576         Append $(EXEEXT) to DF_PROG.
88577         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
88578         Do not invoke or require the following here,
88579         since prereq.m4 or some gnulib .m4 now does this for us:
88580         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
88581         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
88582         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
88583         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
88584         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
88585         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
88586         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
88587         AC_FUNC_OBSTACK.
88588         Do not replace the following functions, as this is now the job
88589         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
88590         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
88591         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
88592         atexit getpass, strdup, getpagesize.
88593         Replace 'raise'.
88594         Do not check for the following functions, as this is now the job
88595         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
88596         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
88597         setregid.
88598         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
88599         Check for sys/sysctl.h.
88600         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
88601         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
88602         of checking for ssize_t ourselves.
88603
88604         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
88605         Require every macro that gnulib/modules/* suggests for us.
88606         (jm_PREREQ_ADDEXT): New macro.
88607         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
88608         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
88609
88610         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
88611         (gl_PHYSMEM): Use it.
88612         Also check for `table' function.
88613         Check for new headers and functions.
88614         Add check for sys/sysmp.h.
88615         With suggestions from Kaveh Ghazi.
88616         Ignore headers that are present but cannot be compiled.  This
88617         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
88618         C 5.4.
88619
88620 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88621
88622         Document merge from coreutils.
88623         * modules/userspec: Depend on posixver.
88624         * modules/strftime: Depend on tzset.
88625
88626 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88627
88628         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
88629         rather than tab, after '#' in shell-script copyright notices.
88630         Suggested by Bruno Haible.
88631
88632 2003-08-15  Paul Eggert  <eggert@twinsun.com>
88633
88634         * config/srclist-update: Use three spaces, rather than tab, after '#'
88635         in shell-script copyright notices.  Suggested by Bruno Haible.
88636         Remove unnecessary parenthesization in regular expression.
88637
88638 2003-08-15  Jim Meyering  <jim@meyering.net>
88639
88640         Merge from coreutils.
88641         * lib/xgethostname.c: Include <stdlib.h>.
88642         (xghostname): Don't exit for anything other than memory-related
88643         failure; just return NULL.
88644         * lib/userspec.c: Include "posixver.h".
88645         (parse_user_spec): Accept `.' as a separator only
88646         in pre-POSIX-200112 mode.
88647         * lib/strtoimax.c: Use #elif rather than #else #if.
88648         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
88649         Remove function, now that we can rely on a working tzset function.
88650         [!_LIBC]: Ensure that the required autoconf test has been run.
88651         [!defined _NL_CURRENT && HAVE_STRFTIME]:
88652         Use underlying_strftime for %r.
88653         * lib/sha.c: Merge in some clean-up and optimization changes from
88654         glibc.
88655         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
88656         Ensure that it is a multiple of 64.
88657         Rearrange loop exit tests so as to avoid performing an
88658         additional fread after encountering an error or EOF.
88659         * lib/realloc.c: Update copyright date.
88660
88661 2003-08-15  Jim Meyering  <jim@meyering.net>
88662         and Paul Eggert  <eggert@twinsun.com>
88663
88664         Merge from coreutils.
88665         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
88666         member but strut utmpx does not.  Needed for AIX 4.3.3.
88667         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
88668
88669 2003-08-15  Jim Meyering  <jim@meyering.net>
88670         and Paul Eggert  <eggert@cs.ucla.edu>
88671
88672         Merges from coreutils, etc.
88673         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
88674         Require gl_FUNC_TZSET_CLOBBER.
88675         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
88676         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
88677         members.
88678
88679 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88680
88681         Help the merge from coreutils.
88682         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
88683         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
88684         * m4/tzset.m4: Use it too.
88685
88686 2003-08-14  Paul Eggert  <eggert@twinsun.com>
88687
88688         * modules/tzset: New file.
88689
88690 2003-08-14  Jim Meyering  <jim@meyering.net>
88691
88692         Merges from coreutils.
88693         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
88694         variable names, rather than @FNMATCH_H@.
88695         * modules/alloca: Likewise for $(ALLOCA_H).
88696
88697         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
88698         the three copies of the literal target, `fnmatch.h'.
88699         * modules/alloca (alloca.h): Likewise.
88700
88701 2003-08-14  Jim Meyering  <jim@meyering.net>
88702
88703         Merge from coreutils.
88704         * m4/tzset.m4: New file.
88705         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
88706         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
88707         otherwise, AIX 5.1 systems would end up using the latter.
88708         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
88709         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
88710         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
88711         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
88712
88713 2003-08-14  Jim Meyering  <jim@meyering.net>
88714
88715         Merge from coreutils.
88716         * lib/obstack.h: Whitespace changes.
88717         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
88718         and xcalloc return values.
88719         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
88720         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
88721         hang on OSF/1 5.1 for DIR on both local and remote file systems.
88722         Reported by (and fix confirmed by) Nelson H. F. Beebe.
88723         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88724         error from mntctl.
88725         Use mntctl's return value to drive the entry-processing loop, since
88726         we can't rely on the value of the vmt_length member in the last
88727         entry.  On some systems doing so could result in exhausting
88728         virtual memory.  Based in part on a patch from Mike Jetzer.
88729
88730 2003-08-14  Jim Meyering  <jim@meyering.net>
88731         and Paul Eggert  <eggert@twinsun.com>
88732
88733         Merges from coreutils, plus other fixes.
88734         * lib/physmem.c: Merge in portability changes from gcc/libiberty
88735         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
88736         for credits and details.  Thanks to Kaveh Ghazi for helping
88737         to keep these files in sync.
88738         (ARRAY_SIZE): Define it.
88739         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
88740         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
88741         (memcasecmp): Don't assume size_t fits in unsigned int.
88742         Remove casts and duplicate code.
88743         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
88744         (memcpy): Remove definition.
88745         Merge in some clean-up and optimization changes from glibc.
88746         [BLOCKSIZE]: Move definition to top of file.
88747         Ensure that it is a multiple of 64.
88748         Rearrange loop exit tests so as to avoid performing an
88749         additional fread after encountering an error or EOF.
88750         * lib/md5.h (md5_uintptr): Define.
88751         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
88752         return to the initial working directory.  Preserve errno
88753         for caller.
88754         * lib/idcache.c: Include "xalloc.h".
88755         (xmalloc, xrealloc): Remove decls.
88756         (getuser): Remove casts no longer required in C89.
88757         * lib/human.c: Include stdio.h, for sprintf.
88758         * lib/group-member.c: Include "xalloc.h".
88759         (xmalloc, xrealloc): Remove decls.
88760         (get_group_info): Remove casts no longer required in C89.
88761         * lib/getusershell.c (readname): Remove casts no longer required in
88762         C89.
88763         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
88764         * lib/getline.c: Whitespace fix, from coreutils.
88765
88766 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88767
88768         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
88769         Check for isascii.
88770
88771         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88772         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88773         Undo previous (whitespace-only) change.
88774
88775 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88776
88777         * lib/exclude.c: Include <ctype.h>
88778         (IN_CTYPE_DOMAIN): New macro.
88779         (is_space): New fn.
88780         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
88781         and empty lines.
88782
88783         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88784         Undo previous (whitespace-only) change.
88785
88786 2003-08-13  Paul Eggert  <eggert@twinsun.com>
88787
88788         * config/srclist-update: Change update back to the old behavior,
88789         leaving whitespace alone.  Use one 'sed' command rather than a
88790         pipeline.
88791         (fixlicense): Now a variable, not a function.
88792         (remove_trailing_blanks): Remove.
88793         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
88794         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88795         Undo previous (whitespace-only) change.
88796
88797 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88798
88799         Merge from coreutils.
88800         * modules/euidaccess: Add lib_SOURCES, include for new
88801         file euidaccess.h
88802
88803 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88804
88805         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
88806         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
88807         Normalize leading white space and remove trailing white space.
88808
88809         Merge from coreutils
88810         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88811
88812         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88813         0.12.1.  These files are now being upgraded automatically by
88814         ../config/srclist-update.
88815
88816 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88817
88818         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88819         Normalize leading white space and remove trailing white space.
88820         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88821         notice, as per ../config/srclist-update.
88822
88823         Merge from coreutils.
88824         * lib/euidaccess.h: New file.
88825         * lib/euidaccess.c: Include it.
88826         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88827         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88828         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88829
88830 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88831
88832         * config/srclist-update: Add copyright notice.
88833         (remove_id_lines, remove_trailing_blanks): New constants.
88834         (fixfile): Use them to normalize spacing a bit in copied files.
88835         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88836         Normalize leading white space and remove trailing white space.
88837
88838         * config/texinfo.tex: Sync with texinfo.
88839
88840         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88841         strtoul.c from libc, to merge coreutils whitespace changes.
88842
88843         * config/srclist.txt: Get the following m4 files from gettext:
88844         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88845         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88846         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88847         wint_t.m4.
88848
88849 2003-08-12  Karl Berry  <karl@gnu.org>
88850
88851         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88852         been made.
88853
88854 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88855
88856         * modules/gnu-source, m4/gnu-source.m4:
88857         Remove; we're assuming Autoconf 2.54 or later now.
88858         Suggested by Bruno Haible.
88859         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88860
88861 2003-08-11  Bruno Haible  <bruno@clisp.org>
88862
88863         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88864
88865 2003-08-11  Bruno Haible  <bruno@clisp.org>
88866
88867         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88868         (vasnprintf): Use it instead of wcslen.
88869
88870 2003-08-11  Bruno Haible  <bruno@clisp.org>
88871
88872         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88873         value to ensure that _Bool promotes to int. Use #define for _Bool when
88874         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88875
88876 2003-08-10  Karl Berry  <karl@gnu.org>
88877
88878         * lib/regex.h: update from libc (whitespace fix).
88879
88880 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88881
88882         Merge some files from coreutils.  These changes were
88883         originally made by Jim Meyering.
88884         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88885         many older Unixes require this.
88886         * lib/alloca.c (alloca): Remove cast to argument of free;
88887         no longer needed in C89.
88888         * lib/alloca_.h, regex.h: Fix white space to match
88889         what GNU indent does.
88890
88891 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88892
88893         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88894         apparently Emacs's Unicode mode got confused before my 2003-08-05
88895         checkin.
88896
88897 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88898
88899         * m4/extensions.m4: New file.
88900         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88901         Require gl_USE_SYSTEM_EXTENSIONS.
88902         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88903         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88904
88905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88906
88907         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88908         * modules/extensions, modules/gnu-source: New files.
88909         * modules/timespec, modules/unlocked-io: Depend on extensions.
88910
88911 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88912
88913         * modules/restrict: New file.
88914         * MODULES.html.sh (func_all_modules): Add restrict.
88915         * modules/regex: Depend on restrict.
88916
88917 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88918
88919         * m4/restrict.m4: New file.
88920         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88921
88922 2003-08-07  Bruno Haible  <bruno@clisp.org>
88923
88924         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88925         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88926
88927 2003-08-07  Bruno Haible  <bruno@clisp.org>
88928
88929         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88930         makes the module 'getndelim2' compatible with the module 'getline'.
88931
88932 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88933
88934         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88935         byte with "\201" to avoid glitches when editing that source file
88936         with multi-gnome-terminal.
88937
88938 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88939
88940         * lib/bumpalloc.h: Remove.
88941
88942 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88943
88944         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88945         * modules/bumpalloc: Remove.
88946
88947 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88948
88949         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88950         GNU coding style.
88951
88952         Merge from coreutils.
88953         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88954         1. From glibc.
88955         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88956         from Karl Berry, implemented by Jim Meyering.
88957         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88958         from Dmitry V. Levin.
88959         Remove anachronistic cast of xrealloc.
88960         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88961         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88962         type. Otherwise, it wouldn't compile with at least /bin/cc on
88963         ymp-cray-unicos9.0.2.X.
88964         Combine two mostly-identical uses of alloca into one.
88965         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88966
88967 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88968
88969         [From Emacs.]
88970
88971         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88972         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88973         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88974         obsolete NLIST_NAME_UNION.
88975         [__GNU__]: Undef BSD and FSCALE.
88976         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88977
88978 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88979
88980         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88981         an enum type, so that it's guaranteed to promote to int.  See:
88982         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88983
88984 2003-08-03  Karl Berry  <karl@gnu.org>
88985
88986         * config/depcomp: update from automake.
88987
88988 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88989
88990         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88991         (strerror): Don't assume that a printable int fits in 14 bytes.
88992
88993 2003-07-31  Bruno Haible  <bruno@clisp.org>
88994
88995         * modules/getpass-gnu: New file.
88996         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88997
88998 2003-07-31  Bruno Haible  <bruno@clisp.org>
88999
89000         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
89001
89002 2003-07-24  Karl Berry  <karl@gnu.org>
89003
89004         * config/missing: update from automake.
89005
89006 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
89007             Bruno Haible  <bruno@clisp.org>
89008
89009         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
89010         * lib/getline.c (getline, getdelim): Likewise.
89011         Remove _GNU_SOURCE define; now it's defined in config.h through
89012         m4/getline.m4.
89013
89014 2003-07-23  Karl Berry  <karl@gnu.org>
89015
89016         * config/config.sub: update from prep.
89017
89018 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89019
89020         * modules/xalloc (Depends-on): Add exitfail.
89021         * modules/xmemcoll: Likewise.
89022
89023 2003-07-22  Paul Eggert  <eggert@twinsun.com>
89024
89025         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
89026         over-parenthesization in macros.
89027
89028         Sync with coreutils.
89029
89030         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
89031         required by C99.
89032
89033         Use `exit_failure' for xalloc and xmemcoll instead of their own
89034         private exit-failure variables.
89035         * lib/xalloc.h (xalloc_exit_failure): Remove.
89036         * lib/xmalloc.c: Likewise.  Include exitfail.h.
89037         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
89038         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
89039         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
89040         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
89041
89042 2003-07-20  Jim Meyering  <jim@meyering.net>
89043
89044         * modules/closeout (Depends-on): Add exitfail.
89045         Suggestion from Bruno Haible.
89046
89047 2003-07-19  Karl Berry  <karl@gnu.org>
89048
89049         * config/config.sub: update from prep.
89050
89051 2003-07-18  Paul Eggert  <eggert@twinsun.com>
89052
89053         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
89054         Remove.
89055         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
89056         to test that it can stand by itself.  Include "exitfail.h".
89057         Clients should set exit_failure instead.
89058         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
89059
89060 2003-07-18  Bruno Haible  <bruno@clisp.org>
89061
89062         * modules/getndelim2: New file.
89063         * modules/getline: Share files with module getndelim2.
89064         * modules/getnline: Depend on getndelim2 instead of sharing files with
89065         it. Add getnline.c to lib_SOURCES.
89066         * MODULES.html.sh (func_all_modules): Add getndelim2.
89067
89068 2003-07-18  Bruno Haible  <bruno@clisp.org>
89069
89070         * m4/getndelim2.m4: New file.
89071         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
89072         invoke gl_PREREQ_GETNDELIM2.
89073         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
89074         gl_PREREQ_GETNDELIM2.
89075         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
89076         gl_GETNDELIM2.
89077
89078 2003-07-18  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/getndelim2.h: New file.
89081         * lib/getndelim2.c: Make into a module of its own. Include config.h,
89082         getndelim2.h.
89083         (getndelim2): Make non-static. Change return type to ssize_t.
89084         * lib/getline.h: Change argument names.
89085         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
89086         * lib/getnline.c: Include getndelim2.h.
89087
89088 2003-07-18  Andreas Schwab  <schwab@suse.de>
89089
89090         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
89091
89092 2003-07-17  Karl Berry  <karl@gnu.org>
89093
89094         * config/config.sub: update from prep.
89095
89096 2003-07-17  Bruno Haible  <bruno@clisp.org>
89097
89098         * modules/getnline: New file.
89099         * modules/getline: Add lib/getndelim2.c to source file list.
89100         * MODULES.html.sh (func_all_modules): Add getnline.
89101
89102 2003-07-17  Bruno Haible  <bruno@clisp.org>
89103
89104         * m4/getnline.m4: New file.
89105
89106 2003-07-17  Bruno Haible  <bruno@clisp.org>
89107
89108         * m4/Makefile.am.in: Remove file.
89109         * m4/Makefile.am: Remove file.
89110         * m4/Makefile.in: Remove file.
89111
89112 2003-07-17  Bruno Haible  <bruno@clisp.org>
89113
89114         * lib/getnline.h: New file.
89115         * lib/getnline.c: New file.
89116         * lib/getndelim2.c: New file, extracted from getline.c.
89117         (getndelim2): Renamed from getdelim2, with added nmax argument.
89118         * lib/getline.c: Include getndelim2.c.
89119         (getdelim2): Moved out to getndelim2.c.
89120         (getline, getdelim): Update.
89121
89122 2003-07-17  Bruno Haible  <bruno@clisp.org>
89123
89124         * lib/Makefile.am: Remove file.
89125         * lib/Makefile.in: Remove file.
89126
89127 2003-07-17  Bruno Haible  <bruno@clisp.org>
89128
89129         * configure.in: Remove file.
89130         * Makefile.in: Remove file.
89131
89132 2003-07-17  Bruno Haible  <bruno@clisp.org>
89133
89134         * MODULES.html.sh: Put the </BODY> right before </HTML>.
89135
89136 2003-07-16  Karl Berry  <karl@gnu.org>
89137
89138         * config/srclist-update: was running fixlicense twice, which caused
89139                 texinfo.tex to be nullified for some reason.  Simplify,
89140                 $gplsrc is no longer needed as far as I can see?
89141
89142 2003-07-16  Jim Meyering  <jim@meyering.net>
89143
89144         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
89145
89146 2003-07-15  Paul Eggert  <eggert@twinsun.com>
89147
89148         * config/srclist.txt: Get the following files from gettext-runtime/intl
89149         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
89150         ref-del.sin.  From Bruno Haible.
89151         * config/srclist-update (fixfile): Change grep pattern again, since the
89152         previous fix didn't work (there was another trailing $).  Use
89153         '[$]' to escape the $s.
89154
89155 2003-07-15  Karl Berry  <karl@gnu.org>
89156
89157         * lib/vasnprintf.c: update from gettext.
89158
89159 2003-07-15  Karl Berry  <karl@gnu.org>
89160
89161         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
89162         gets expanded when surrounded by '$'.
89163
89164 2003-07-15  Jim Meyering  <jim@meyering.net>
89165
89166         * modules/save-cwd: Don't depend on error.  From Derek Price.
89167
89168 2003-07-15  Jim Meyering  <jim@meyering.net>
89169
89170         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
89171
89172 2003-07-14  Simon Josefsson  <jas@extundo.com>
89173
89174         * modules/mempcpy: New file.
89175         * MODULES.html.sh (func_all_modules): Add mempcpy.
89176
89177 2003-07-14  Simon Josefsson  <jas@extundo.com>
89178
89179         * m4/mempcpy.m4: New file.
89180
89181 2003-07-14  Simon Josefsson  <jas@extundo.com>
89182
89183         * lib/mempcpy.h: New file.
89184         * lib/mempcpy.c: New file.
89185
89186 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89187
89188         * modules/getdate, modules/posixtm: Depend on mktime.
89189
89190 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89191
89192         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
89193         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
89194         unicodeio.c, unicodeio.h, unlocked-io.h:
89195         Switch from LGPL to GPL.
89196
89197 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89198
89199         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
89200         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
89201         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
89202         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
89203         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
89204         updated automatically by ../config/srclist-update.  This changes
89205         their license from LPGL to GPL.
89206
89207 2003-07-14  Paul Eggert  <eggert@twinsun.com>
89208
89209         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
89210         assumed to refer to the root of the most recent stable gettext version.
89211         * config/srclistvars.sh: Add defaults for eggert.
89212         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
89213         Match "This program" as well as "The program".  This is needed
89214         for gettext.
89215
89216 2003-07-14  Jim Meyering  <jim@meyering.net>
89217
89218         Don't emit diagnostics.  Let callers do that.
89219         * lib/save-cwd.c: Don't include "error.h".
89220         (save_cwd): Don't call error.  Ensure that errno is valid
89221         when returning nonzero.
89222
89223         * lib/save-cwd.h (restore_cwd): Update prototype.
89224         * lib/save-cwd.c (restore_cwd): Remove two parameters.
89225         Simplify.  Don't call error upon failure.  Let callers do that.
89226         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
89227         when auditing is enabled.  But don't bother updating the #if.
89228
89229 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
89230
89231         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
89232         it breaks C++ compilation.
89233         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
89234
89235 2003-07-10  Simon Josefsson  <jas@extundo.com>
89236
89237         * modules/strchrnul (Makefile.am): Add strchrnul.h.
89238
89239 2003-07-10  Jim Meyering  <jim@meyering.net>
89240
89241         * m4/clock_time.m4: Remove trailing blank.
89242         * m4/intmax_t.m4: Likewise.
89243
89244 2003-07-10  Jim Meyering  <jim@meyering.net>
89245
89246         * lib/vasnprintf.c: Remove trailing blanks.
89247         Make cpp indentation consistent.
89248
89249 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89250
89251         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
89252         posixver.c, strftime.c, strnlen.c, strverscmp.c:
89253         Switch from LGPL to GPL.
89254
89255 2003-07-09  Paul Eggert  <eggert@twinsun.com>
89256
89257         * config/srclist.txt: Sort sublists.  Add
89258         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
89259         that differ from gnulib for one reason or another; we'd like this list
89260         to be smaller but for now let's document what we have.
89261
89262 2003-07-08  Paul Eggert  <eggert@twinsun.com>
89263
89264         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
89265         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
89266         and sweeter "eval x=$x".
89267         * config/srclist.txt: Get lib/argp* from glibc.
89268
89269 2003-07-07  Paul Eggert  <eggert@twinsun.com>
89270
89271         * lib/mktime.c: Fix some boundary cases and remove need for floating
89272         point.
89273
89274         Issue a compile-time diagnostic if time_t is floating point, or if
89275         two's complement arithmetic is not in effect, or if arithmetic
89276         right shift does not propagate the sign.  These assumptions were
89277         all in the original code but they weren't checked.
89278
89279         (TIME_T_MIDPOINT, verify): New macros.
89280         (__isleap): Remove; it has integer overflow problems.
89281         (leapyear): New function, without those problems.
89282         (ydhms_tm_diff): Remove; splitting into two parts.
89283         (ydhms_diff): New function, containing the arithmetic part of
89284         the old ydhms_tm_diff function.  Issue a compile-time
89285         diagnostic if we are not using C99 integer division.
89286         Avoid casts when possible.
89287         (guess_time_tm): New function, containing the checking part of
89288         the old ydhms_tm_diff function.  Return the new value, rather than
89289         the difference between it and the old.  Accept a new argument T
89290         so that *T specifies the old value.  Check for overflow in the result.
89291
89292         (__mktime_internal): Use a time_t offset, not a long int offset.
89293         This undoes the 2003-06-04 change, which is no longer needed now
89294         that we have better overflow checking.
89295         (localtime_offset): Likewise.
89296
89297         (__mktime_internal): Avoid harmful overflow on hosts where time_t
89298         and long are 64-bit but int is only 32-bit.
89299         (ydhms_diff): Use long int to store year1 and yday1.
89300         Issue a compile-time diagnostic if long int is not wide enough.
89301
89302         (__mktime_internal): Use long int to store adjusted year and yday.
89303         Use plain C rather than preprocessor commands, if that doesn't
89304         affect efficiency.
89305         Check for overflow (and try to repair) after each probe
89306         rather than checking only at the very end.  This avoids some bugs
89307         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
89308         does not equal GMT offset at maximum time).
89309         Use integer to check for overflow rather than floating point; this
89310         is more portable to non-IEEE hosts, and is a tad faster.
89311         When we detect that we are oscillating between two values,
89312         don't check whether tm_isdst has the requested value, since
89313         we already know the answer.  When tm_isdst has the wrong value,
89314         use a different heuristic to find the right one, based on the
89315         extreme values actually observed in practice in tz2003a,
89316         rather than the (overly optimistic) "previous 3 calendar quarters".
89317
89318         (not_equal_tm, print_tm, check_result): Use "const T" rather than
89319         "T const" to accommodate glibc style.
89320         (check_result): Use less-confusing report format.  "long" -> "long int.
89321         (main): Likewise.
89322         Don't loop if the iteration overflows time_t.
89323         Allow a negative step in the iteration.
89324
89325 2003-07-06  Karl Berry  <karl@gnu.org>
89326
89327         * config/depcomp: update from automake.
89328         * config/config.sub: update from prep.
89329
89330 2003-07-03  Karl Berry  <karl@gnu.org>
89331
89332         * config/config.guess: update from prep.
89333
89334 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89335
89336         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
89337         xreadlink.c now includes it unconditionally.
89338
89339 2003-07-01  Paul Eggert  <eggert@twinsun.com>
89340
89341         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
89342         having it depend on HAVE_SYS_TYPES_H.
89343
89344 2003-07-01  Bruno Haible  <bruno@clisp.org>
89345
89346         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
89347         <sys/types.h> should be sufficient.
89348         Reported by Paul Eggert.
89349
89350 2003-06-26  Karl Berry  <karl@gnu.org>
89351
89352         * config/depcomp: update from automake.
89353
89354 2003-06-26  Bruno Haible  <bruno@clisp.org>
89355
89356         * modules/human: Depend on module stdbool.
89357
89358 2003-06-25  Bruno Haible  <bruno@clisp.org>
89359
89360         * modules/readlink: New file.
89361         * modules/xreadlink: Depend on it.
89362         * MODULES.html.sh (func_all_modules): Add readlink.
89363
89364 2003-06-25  Bruno Haible  <bruno@clisp.org>
89365
89366         * m4/readlink.m4: New file.
89367
89368 2003-06-25  Bruno Haible  <bruno@clisp.org>
89369
89370         * lib/readlink.c: New file.
89371
89372 2003-06-22  Karl Berry  <karl@gnu.org>
89373
89374         * config/srclist.txt: update mkinstalldirs from automake.
89375         * config/mkinstalldirs: update.
89376
89377 2003-06-22  Bruno Haible  <bruno@clisp.org>
89378
89379         Portability to mingw32.
89380         * m4/ssize_t.m4: New file, from GNU gettext.
89381         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
89382         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
89383
89384 2003-06-22  Bruno Haible  <bruno@clisp.org>
89385
89386         * modules/safe-read: Add m4/ssize_t.m4.
89387         * modules/xreadlink: Add m4/ssize_t.m4.
89388
89389 2003-06-20  Bruno Haible  <bruno@clisp.org>
89390
89391         Assume C89, so PARAMS isn't needed.
89392         * lib/unicodeio.h (PARAMS): Remove.
89393         * lib/unicodeio.c: Don't use PARAMS.
89394
89395 2003-06-18  Karl Berry  <karl@gnu.org>
89396
89397         * config/config.{guess,sub}: update from prep.
89398
89399 2003-06-18  Jim Meyering  <jim@meyering.net>
89400
89401         Merge changes from coreutils.
89402         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
89403         Remove explicit declarations of xmalloc and realloc.
89404         Include xalloc.h.
89405         (read_utmp): Remove anachronistic cast of xmalloc.
89406
89407 2003-06-17  Paul Eggert  <eggert@twinsun.com>
89408
89409         Assume C89, so PARAMS isn't needed.
89410         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
89411         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
89412         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
89413         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
89414         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
89415         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
89416         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
89417         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
89418         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
89419         lib/xstrtod.h, lib/xstrtol.h: Likewise.
89420         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
89421         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
89422         no longer needed. Anyway, config.h should always be included before any
89423         other file.
89424
89425 2003-06-11  Simon Josefsson  <jas@extundo.com>
89426
89427         * modules/sysexits: New file.
89428         * MODULES.html.sh (func_all_modules): Add sysexits.
89429
89430 2003-06-11  Simon Josefsson  <jas@extundo.com>
89431
89432         * lib/sysexit_.h: New file.
89433
89434 2003-06-11  Derek Price  <derek@ximbiot.com>
89435
89436         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
89437         necessary.
89438
89439 2003-06-11  Bruno Haible  <bruno@clisp.org>
89440
89441         * m4/sysexits.m4: New file.
89442
89443 2003-06-10  Simon Josefsson  <jas@extundo.com>
89444
89445         * lib/argp.h: New file, from glibc.
89446         * lib/argp-ba.c: New file, from glibc.
89447         * lib/argp-eexst.c: New file, from glibc.
89448         * lib/argp-fmtstream.c: New file, from glibc.
89449         * lib/argp-fmtstream.h: New file, from glibc.
89450         * lib/argp-fs-xinl.c: New file, from glibc.
89451         * lib/argp-help.c: New file, from glibc.
89452         * lib/argp-namefrob.h: New file, from glibc.
89453         * lib/argp-parse.c: New file, from glibc.
89454         * lib/argp-pv.c: New file, from glibc.
89455         * lib/argp-pvh.c: New file, from glibc.
89456         * lib/argp-xinl.c: New file, from glibc.
89457
89458 2003-06-10  Simon Josefsson  <jas@extundo.com>
89459
89460         * modules/strchrnul: New file.
89461
89462 2003-06-10  Simon Josefsson  <jas@extundo.com>
89463
89464         * modules/argp: New file.
89465
89466 2003-06-10  Simon Josefsson  <jas@extundo.com>
89467
89468         * m4/strchrnul.m4: New file.
89469
89470 2003-06-10  Simon Josefsson  <jas@extundo.com>
89471
89472         * lib/strchrnul.h: New file.
89473         * lib/strchrnul.c: New file.
89474
89475 2003-06-10  Bruno Haible  <bruno@clisp.org>
89476
89477         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
89478
89479 2003-06-07  Karl Berry  <karl@gnu.org>
89480
89481         * config/config.{guess,sub}: update from prep.
89482
89483 2003-06-07  Jim Meyering  <jim@meyering.net>
89484
89485         * modules/strtod: Use $(...) notation, not @...@ for
89486         AC_REPLACE'd variables.
89487         * modules/localcharset: Likewise.
89488
89489 2003-06-07  Jim Meyering  <jim@meyering.net>
89490
89491         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
89492         in place of my name in the copyright comment.
89493         Remove definition and uses of __P.
89494
89495         From coreutils.
89496         * lib/stat.c: Don't declare xmalloc explicitly.
89497         Instead, include "xalloc.h".
89498         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
89499         xrealloc, and xcalloc return values.
89500         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
89501         Improve comment.
89502         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
89503
89504 2003-06-07  Bruno Haible  <bruno@clisp.org>
89505
89506         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
89507         avoid AC_CONFIG_LINKS.
89508         * modules/fnmatch (Makefile.am): Use explicit creation rule for
89509         fnmatch.h, to avoid AC_CONFIG_LINKS.
89510         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
89511
89512 2003-06-07  Bruno Haible  <bruno@clisp.org>
89513
89514         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
89515         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
89516         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89517         directory.
89518         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
89519         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
89520         directory.
89521
89522 2003-06-06  Jim Meyering  <jim@meyering.net>
89523
89524         Merge from coreutils.
89525         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
89526         Consolidate declarations and initializations of *_base* locals.
89527
89528         Merge from coreutils.
89529         This avoids a core dump on systems without GNU putenv,
89530         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
89531         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
89532         (unsetenv): New static function, from GNU libc.
89533         (rpl_putenv): Use it.
89534
89535         * lib/modechange.c: Remove trailing blanks.
89536
89537         Merge from coreutils.
89538         * lib/fsusage.c: Remove declaration of statfs.
89539         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
89540
89541         * lib/posixtm.c: Include <stdbool.h> unconditionally.
89542
89543 2003-06-06  Jim Meyering  <jim@meyering.net>
89544
89545         * lib/stdbool_.h: Renamed from stdbool.h.in.
89546
89547 2003-06-06  Jim Meyering  <jim@meyering.net>
89548             Bruno Haible  <bruno@clisp.org>
89549
89550         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
89551         Adjust Makefile.am snippet not to redirect directly to target.
89552         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
89553
89554 2003-06-05  Paul Eggert  <eggert@twinsun.com>
89555
89556         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
89557         mismatch, look in future quarters as well as past.  This fixes a
89558         bug when processing fall-backwards gaps immediately after a long
89559         period of daylight-saving time.
89560
89561         * lib/mktime.c: Assume freestanding C89 or better.
89562         (HAVE_LIMITS_H): Remove.  Assume it's 1.
89563         (__P): Remove; not used.
89564         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
89565         (mktime, not_equal_tm, print_tm, check_result,
89566         main): Use prototypes.  Use const * where appropriate.
89567         (main): Fix typo in testing code that uncovered by above changes.
89568         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
89569
89570 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89571
89572         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
89573         locale.h, localeconv.  This merges changes from coreutils.
89574
89575         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
89576         It can be removed after the next Autoconf is released.
89577         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
89578         needed.
89579
89580 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89581
89582         * lib/mktime.c: Fix Debian bug 177940
89583         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
89584         (localtime_offset): Now long int, not time_t, because we want it
89585         to be guaranteed to be signed.  All uses changed.
89586         (__mktime_internal): If overflow would occur when adding offset,
89587         don't add it.
89588
89589         Merge 'human' changes from coreutils.  Rewrite to support
89590         locale-specific notations like thousands separators.
89591         * lib/human.c: Simplify authorship notice.
89592         Include human.h immediately after config.h.
89593         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
89594         <limits.h>: Do not include, since human.h does.
89595         (SIZE_MAX, UINTMAX_MAX): New macros.
89596         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
89597         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
89598         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
89599         (power_letter): Renamed from suffixes.
89600         (generate_suffix_backwards): Remove.
89601         (adjust_value): Now takes int style (because of human.h changes)
89602         and long double value (for greater precision on some platforms).
89603         (group_number): New function.
89604         (human_readable): Use it.  Use integer options, not enum.
89605         Put the options before the sizes in the arg list.
89606         Support all the new options.
89607         The old human_readable function has been removed;
89608         use inttostr.h instead.
89609         (human_readable, default_block_size, humblock):
89610         Use uintmax_t, not int, for block sizes.
89611         (human_readable_inexact, block_size_types): Remove.
89612         (block_size_opts): New constant.
89613         (human_options): Renamed from human_block_size, with new signature
89614         that allows block sizes up to UINTMAX_MAX.  All callers changed.
89615         * lib/human.h: Add copyright and authorship notice.
89616         Include <limits.h> and <stdbool.h> unconditionally.
89617         (PARAMS): Remove.  All uses removed.
89618         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
89619         (enum human_inexact_style): Remove tag; now a nameless enum.
89620         (human_floor, human_ceiling, human_round_to_even): Now have
89621         values 2, 0, 1 rather than -1, 1, 0.
89622         (human_group_digits, human_suppress_point_zero, human_autoscale,
89623         human_base_1024, human_SI, human_B): New constants.
89624         (human_readable_inexact, human_block_size): Remove.
89625         (human_readable): Size args are now uintmax_t, not int.
89626         (human_options): New decl.
89627
89628         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
89629         unnecessary now that we assume C89 or better.  This change
89630         imported from coreutils.
89631
89632         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89633         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
89634         in the 2003-05-30 sync from glibc.
89635
89636         .h files should stand alone, but we shouldn't include <sys/types.h>
89637         if we can get away with just <stddef.h>.
89638
89639         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
89640         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
89641         rather than <sys/types.h>, as we merely need size_t.
89642         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
89643         to get size_t.
89644         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
89645         Include <stdio.h>, to get FILE.
89646         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
89647         memcasecmp.h has included <stddef.h> and all we need is size_t.
89648         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
89649         our interface, instead of including <sys/types.h>
89650
89651 2003-06-04  Paul Eggert  <eggert@twinsun.com>
89652
89653         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
89654         now, as glibc mktime is buggy on non-glibc systems.
89655
89656 2003-06-03  Karl Berry  <karl@gnu.org>
89657
89658         * config/config.sub: update from prep.
89659
89660 2003-06-02  Paul Eggert  <eggert@twinsun.com>
89661
89662         [from coreutils]
89663         Fix some minor time-related bugs with POSIX time arguments.
89664         Some valid time stamps were being rejected (notably -1, and
89665         time stamps before 1900 on 64-bit hosts).  And some invalid
89666         time stamps were being accepted, e.g. September 31.
89667
89668         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
89669         that we can return (time_t) -1 successfully.
89670         * lib/posixtm.c: Likewise.
89671         [HAVE_STDBOOL_H]: Include <stdbool.h>.
89672         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
89673         (t): Remove static var.
89674         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
89675         of static var.  All uses changed.
89676         (year): Do not reject years before 1900; they can occur with
89677         64-bit time_t.
89678         (posix_time_parse): Do not check for out-of-range components;
89679         that is now the caller's responsibility, since our checks were
89680         only approximations.
89681         (posixtime): Use mktime to check for out-of-range components,
89682         since it knows them exactly.
89683         If mktime returns (time_t) -1, check whether an error actually occurred
89684         by invoking localtime on -1.
89685         (main) [TEST_POSIXTIME]: Check for input data errors, and report
89686         posixtime failures better.
89687         Improve the test data (in comments only).
89688
89689 2003-06-02  Karl Berry  <karl@gnu.org>
89690
89691         * config/mkinstalldirs (version): new variable.
89692         (--version): new option.
89693         (usage): improve message.
89694
89695 2003-05-30  Karl Berry  <karl@gnu.org>
89696
89697         * lib/mktime.c: update from libc.
89698
89699 2003-05-30  Bruno Haible  <bruno@clisp.org>
89700
89701         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
89702         * config/config.rpath: Upgrade to gettext-0.12.1.
89703
89704 2003-05-30  Bruno Haible  <bruno@clisp.org>
89705
89706         * m4/gettext.m4: Upgrade to gettext-0.12.1.
89707         * m4/nls.m4: New file, from gettext-0.12.1.
89708         * m4/po.m4: New file, from gettext-0.12.1.
89709         * m4/progtest.m4: Upgrade to gettext-0.12.1.
89710
89711 2003-05-30  Bruno Haible  <bruno@clisp.org>
89712
89713         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
89714         * lib/localcharset.h: Likewise.
89715         * lib/localcharset.c: Likewise.
89716
89717 2003-05-29  Karl Berry  <karl@gnu.org>
89718
89719         * config/config.rpath: update from gettext.
89720
89721 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89722
89723         Assume the headers required for C89 freestanding compilers.
89724         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
89725         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
89726         * m4/human.m4 (gl_HUMAN): Likewise.
89727         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
89728         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
89729         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89730         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
89731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89732         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
89733
89734 2003-05-28  Paul Eggert  <eggert@twinsun.com>
89735
89736         Assume the headers required for C89 freestanding compilers.
89737         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
89738         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
89739         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
89740         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
89741         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
89742         define, since <limits.h> is guaranteed to do that.
89743         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
89744         * lib/exclude.c: Include <stdbool.h> unconditionally.
89745         * lib/tempname.c: Include <stddef.h> unconditionally.
89746         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
89747         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
89748         <stddef.h> does that.
89749         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
89750         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
89751         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
89752         needed.
89753         * lib/xstrtol.c: Likewise.
89754         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
89755         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
89756
89757         * lib/addext.c (addext): Use assignment rather than cast, to avoid
89758         warnings on some platforms.
89759
89760         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
89761         arbitrarily.
89762
89763 2003-05-26  Jim Meyering  <jim@meyering.net>
89764
89765         Merge in a change from coreutils:
89766         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
89767         that is guaranteed to be `no'.  Use `no_such_member' to indicate
89768         that condition, rather than `-1' which is slightly misleading.
89769         Change the name of the cache variable to have the gl_ prefix.
89770         Prompted by a patch from Richard Dawe for DJGPP.
89771
89772 2003-05-24  Karl Berry  <karl@gnu.org>
89773
89774         * config/config.guess: update from prep.
89775
89776 2003-05-22  Karl Berry  <karl@gnu.org>
89777
89778         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
89779
89780 2003-05-20  Karl Berry  <karl@gnu.org>
89781
89782         * config/config.guess: update from prep.
89783
89784 2003-05-18  Karl Berry  <karl@gnu.org>
89785
89786         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
89787         might actually be set by the user.
89788
89789         * config/depcomp, install-sh, mdate-sh: update from automake.
89790
89791 2003-05-17  Bruno Haible  <bruno@clisp.org>
89792
89793         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
89794         invalid expansion for AC_EGREP_CPP.
89795         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
89796         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
89797         Suggested by Akim Demaille <akim@epita.fr> in
89798         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
89799
89800 2003-05-12  Jim Meyering  <jim@meyering.net>
89801
89802         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
89803         the space-padded-by-default conversion specifiers, %e, %k, %l.
89804
89805 2003-05-12  Bruno Haible  <bruno@clisp.org>
89806
89807         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89808         the string is longer than 4 KB.
89809
89810 2003-05-11  Karl Berry  <karl@gnu.org>
89811
89812         * config/config.{guess,sub}: update from prep.
89813
89814 2003-05-09  Bruno Haible  <bruno@clisp.org>
89815
89816         * modules/error: Add m4/strerror_r.m4 to file list.
89817
89818 2003-05-03  Bruno Haible  <bruno@clisp.org>
89819
89820         Upgrade to Unicode-4.0.
89821         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89822         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89823         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89824         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89825         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89826         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89827         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89828         Change width of U+E0100..U+E01EF from 1 to 0.
89829
89830 2003-04-25  Jim Meyering  <jim@meyering.net>
89831
89832         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89833         of type size_t, not int.
89834
89835 2003-04-25  Bruno Haible  <bruno@clisp.org>
89836
89837         * lib/copy-file.c: Include <stddef.h>, for size_t.
89838
89839 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89840
89841         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89842         code which expansion is under static control.  Patch imported from
89843         Akim Demaille's patch to Bison; see
89844         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89845
89846 2003-04-14  Bruno Haible  <bruno@clisp.org>
89847
89848         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89849
89850 2003-04-11  Jim Meyering  <jim@meyering.net>
89851
89852         Merge changes from Coreutils.
89853
89854         2003-03-22  Jim Meyering  <jim@meyering.net>
89855
89856         * lib/strftime.c (widen): Cast alloca return value to proper type.
89857
89858         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89859
89860         From GNU libc.
89861         * lib/strftime.c (my_strftime): Handle very large width
89862         specifications for numeric values correctly.  Improve checks for
89863         overflow.
89864
89865         2003-01-19  Jim Meyering  <jim@meyering.net>
89866
89867         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89868         definitions.
89869         (nl_get_alt_digit) [! defined my_strftime]: Define.
89870         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89871         _nl_get_alt_digit and _nl_get_walt_digit.
89872
89873         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89874         libc. These changes have no effect outside of _LIBC.
89875
89876 2003-04-10  Bruno Haible  <bruno@clisp.org>
89877
89878         * modules/findprog: New file.
89879         * MODULES.html.sh (func_all_modules): Add it.
89880
89881 2003-04-10  Bruno Haible  <bruno@clisp.org>
89882
89883         * m4/findprog.m4: New file.
89884         * m4/eaccess.m4: New file.
89885
89886 2003-04-10  Bruno Haible  <bruno@clisp.org>
89887
89888         * lib/findprog.h: New file, from GNU gettext.
89889         * lib/findprog.c: New file, from GNU gettext.
89890
89891 2003-04-05  Jim Meyering  <jim@meyering.net>
89892
89893         Merge changes from Coreutils.
89894
89895         * lib/exclude.h (PARAMS): Remove definition and uses.
89896         * lib/exclude.c: Remove uses of `PARAMS'.
89897
89898         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89899         Add test-cases for DOS filenames. Declare program_name.
89900         (main): Set up program_name.  Patch by Rich Dawe.
89901
89902         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89903         error from mntctl.
89904         Use mntctl's return value to drive the entry-processing loop, since
89905         we can't rely on the value of the vmt_length member in the last
89906         entry.  On some systems doing so could result in exhausting
89907         virtual memory.  Based in part on a patch from Mike Jetzer.
89908
89909 2003-04-04  Bruno Haible  <bruno@clisp.org>
89910
89911         * modules/linebreak: New file.
89912         * MODULES.html.sh (func_all_modules): Add it.
89913
89914 2003-04-04  Bruno Haible  <bruno@clisp.org>
89915
89916         * m4/linebreak.m4: New file.
89917
89918 2003-04-04  Bruno Haible  <bruno@clisp.org>
89919
89920         * lib/linebreak.h: New file, from GNU gettext.
89921         * lib/linebreak.c: New file, from GNU gettext with slight
89922         modifications.
89923         * lib/lbrkprop.h: New file, from GNU gettext.
89924
89925 2003-04-03  Bruno Haible  <bruno@clisp.org>
89926
89927         * modules/utf8-ucs4: New file.
89928         * modules/utf16-ucs4: New file.
89929         * modules/ucs4-utf8: New file.
89930         * modules/ucs4-utf16: New file.
89931         * MODULES.html.sh (func_all_modules): Add them.
89932
89933 2003-04-03  Bruno Haible  <bruno@clisp.org>
89934
89935         * m4/utf-ucs4.m4: New file.
89936         * m4/ucs4-utf.m4: New file.
89937
89938 2003-04-03  Bruno Haible  <bruno@clisp.org>
89939
89940         * lib/utf8-ucs4.h: New file, from GNU gettext.
89941         * lib/utf16-ucs4.h: New file, from GNU gettext.
89942         * lib/ucs4-utf8.h: New file, from GNU gettext.
89943         * lib/ucs4-utf16.h: New file, from GNU gettext.
89944
89945 2003-04-02  Bruno Haible  <bruno@clisp.org>
89946
89947         * modules/binary-io: New file.
89948         * MODULES.html.sh (func_all_modules): Add it.
89949
89950 2003-04-02  Bruno Haible  <bruno@clisp.org>
89951
89952         * lib/binary-io.h: New file, from GNU gettext.
89953
89954 2003-04-01  Bruno Haible  <bruno@clisp.org>
89955
89956         * modules/pathname: New file.
89957         * MODULES.html.sh (func_all_modules): Add it.
89958
89959 2003-04-01  Bruno Haible  <bruno@clisp.org>
89960
89961         * lib/pathname.h: New file, from GNU gettext.
89962         * lib/concatpath.c: New file, from GNU gettext.
89963
89964 2003-03-30  Bruno Haible  <bruno@clisp.org>
89965
89966         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89967
89968 2003-03-30  Bruno Haible  <bruno@clisp.org>
89969
89970         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89971         function chown() doesn't exist.
89972
89973 2003-03-28  Bruno Haible  <bruno@clisp.org>
89974
89975         * modules/copy-file: New file.
89976         * MODULES.html.sh (func_all_modules): Add it.
89977
89978 2003-03-28  Bruno Haible  <bruno@clisp.org>
89979
89980         * m4/copy-file.m4: New file.
89981
89982 2003-03-28  Bruno Haible  <bruno@clisp.org>
89983
89984         * lib/copy-file.h: New file, from GNU gettext.
89985         * lib/copy-file.c: New file, from GNU gettext.
89986
89987 2003-03-18  Jim Meyering  <jim@meyering.net>
89988
89989         * lib/quote.c (quote_n): Fix typo in comment.
89990
89991 2003-03-18  Bruno Haible  <bruno@clisp.org>
89992
89993         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89994         checking.
89995         * m4/onceonly_2_57.m4: Likewise.
89996
89997 2003-03-17  Bruno Haible  <bruno@clisp.org>
89998
89999         * m4/onceonly.m4: Require autoconf 2.54 or newer.
90000         (m4_quote): Remove macro.
90001         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
90002
90003 2003-03-14  Jim Meyering  <jim@meyering.net>
90004
90005         Merge changes from Coreutils.
90006         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
90007         to be const, in order to avoid warnings.
90008         (obstack_room): Likewise.
90009         (obstack_empty_p): Likewise.
90010
90011 2003-03-14  Bruno Haible  <bruno@clisp.org>
90012
90013         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
90014         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
90015
90016 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90017
90018         Merge changes from Bison.
90019         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
90020         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
90021         when compiling Bison 1.875's `bitset bset = obstack_alloc
90022         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
90023         * lib/hash.c: Include <stdbool.h> unconditionally.
90024
90025 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90026
90027         * m4/onceonly.m4 (m4_quote): New macro.
90028         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
90029         Quote AC_FOREACH variable-expansions properly.
90030
90031 2003-03-13  Paul Eggert  <eggert@twinsun.com>
90032
90033         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
90034
90035 2003-03-09  Paul Eggert  <eggert@twinsun.com>
90036
90037         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
90038         Reported by Bruce Becker; see:
90039         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
90040
90041 2003-03-03  Paul Eggert  <eggert@twinsun.com>
90042             Bruno Haible  <bruno@clisp.org>
90043
90044         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
90045         Reported by John Hughes, see
90046         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
90047
90048 2003-02-20  Bruno Haible  <bruno@clisp.org>
90049
90050         * MODULES.html.sh (func_all_modules): Add poll.
90051
90052 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90053
90054         * modules/poll: New file.
90055
90056 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90057
90058         * lib/poll_.h: New file.
90059         * lib/poll.c: New file.
90060
90061 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
90062
90063         * m4/poll.m4: New file.
90064
90065 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90066
90067         * modules/mathl: New file.
90068
90069 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90070
90071         * lib/mathl.h: New file.
90072         * lib/acosl.c: New file.
90073         * lib/asinl.c: New file.
90074         * lib/atanl.c: New file.
90075         * lib/ceill.c: New file.
90076         * lib/cosl.c: New file.
90077         * lib/expl.c: New file.
90078         * lib/floorl.c: New file.
90079         * lib/frexpl.c: New file.
90080         * lib/ldexpl.c: New file.
90081         * lib/logl.c: New file.
90082         * lib/sincosl.c: New file.
90083         * lib/sinl.c: New file.
90084         * lib/sqrtl.c: New file.
90085         * lib/tanl.c: New file.
90086         * lib/trigl.c: New file.
90087         * lib/trigl.h: New file.
90088
90089 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
90090
90091         * m4/mathl.m4: New file.
90092
90093 2003-02-18  Bruno Haible  <bruno@clisp.org>
90094
90095         * MODULES.html.sh (func_all_modules): Add mathl.
90096
90097 2003-02-17  Bruno Haible  <bruno@clisp.org>
90098
90099         * modules/mkdtemp: New module.
90100         * MODULES.html.sh (func_all_modules): Add it.
90101
90102 2003-02-17  Bruno Haible  <bruno@clisp.org>
90103
90104         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
90105
90106 2003-02-17  Bruno Haible  <bruno@clisp.org>
90107
90108         * lib/mkdtemp.h: New file, from GNU gettext.
90109         * lib/mkdtemp.c: New file, from GNU gettext.
90110
90111 2003-02-02  Jim Meyering  <jim@meyering.net>
90112
90113         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
90114         e.g. glibc-2.2.93.
90115
90116 2003-01-31  Bruno Haible  <bruno@clisp.org>
90117
90118         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
90119         'rpl_rename'.
90120         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
90121         'rpl_strnlen'.
90122         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
90123         'rpl_strtod'.
90124         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
90125         'rpl_utime'.
90126
90127 2003-01-31  Bruno Haible  <bruno@clisp.org>
90128
90129         * lib/rename.c: #undef rename before defining rpl_rename.
90130         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
90131
90132 2003-01-30  Bruno Haible  <bruno@clisp.org>
90133
90134         * modules/vasnprintf, modules/vasprintf: New modules.
90135         * MODULES.html.sh (func_all_modules): Add them.
90136
90137 2003-01-30  Bruno Haible  <bruno@clisp.org>
90138
90139         * m4/signed.m4: New file, from GNU gettext.
90140         * m4/longdouble.m4: New file, from GNU gettext.
90141         * m4/wchar_t.m4: New file, from GNU gettext.
90142         * m4/wint_t.m4: New file, from GNU gettext.
90143         * m4/vasnprintf.m4: New file.
90144         * m4/vasprintf.m4: New file.
90145
90146 2003-01-30  Bruno Haible  <bruno@clisp.org>
90147
90148         * lib/printf-args.h: New file, from GNU gettext.
90149         * lib/printf-args.c: New file, from GNU gettext.
90150         * lib/printf-parse.h: New file, from GNU gettext.
90151         * lib/printf-parse.c: New file, from GNU gettext.
90152         * lib/vasnprintf.h: New file, from GNU gettext.
90153         * lib/vasnprintf.c: New file, from GNU gettext.
90154         * lib/asnprintf.c: New file, from GNU gettext.
90155         * lib/vasprintf.h: New file, from GNU gettext with modifications.
90156         * lib/vasprintf.c: New file, from GNU gettext.
90157         * lib/asprintf.c: New file, from GNU gettext.
90158
90159 2003-01-29  Bruno Haible  <bruno@clisp.org>
90160
90161         * modules/stpncpy: New module.
90162         * MODULES.html.sh (func_all_modules): Add it.
90163
90164 2003-01-29  Bruno Haible  <bruno@clisp.org>
90165
90166         * m4/stpncpy.m4: New file.
90167
90168 2003-01-29  Bruno Haible  <bruno@clisp.org>
90169
90170         * lib/stpncpy.h: New file, from GNU gettext with modifications.
90171         * lib/stpncpy.c: New file, from GNU gettext with modifications.
90172
90173 2003-01-28  Bruno Haible  <bruno@clisp.org>
90174
90175         * modules/c-ctype: New module.
90176         * MODULES.html.sh (func_all_modules): Add it.
90177
90178 2003-01-28  Bruno Haible  <bruno@clisp.org>
90179
90180         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
90181         Paul Eggert.
90182         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
90183         Paul Eggert.
90184
90185 2003-01-27  Bruno Haible  <bruno@clisp.org>
90186
90187         * modules/xsetenv: New module.
90188         * MODULES.html.sh (func_all_modules): Add it.
90189
90190 2003-01-27  Bruno Haible  <bruno@clisp.org>
90191
90192         * lib/xsetenv.h: New file, from GNU gettext.
90193         * lib/xsetenv.c: New file, from GNU gettext.
90194
90195 2003-01-23  Jim Meyering  <jim@meyering.net>
90196
90197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
90198         from working on systems without dirfd (at least Irix and OSF1/Tru64).
90199
90200 2003-01-23  Bruno Haible  <bruno@clisp.org>
90201
90202         * modules/minmax: New module.
90203         * MODULES.html.sh (func_all_modules): Add it.
90204
90205 2003-01-23  Bruno Haible  <bruno@clisp.org>
90206
90207         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
90208         Eggert.
90209
90210 2003-01-22  Bruno Haible  <bruno@clisp.org>
90211
90212         * modules/exit: New module.
90213         * MODULES.html.sh (func_all_modules): Add it.
90214
90215 2003-01-22  Bruno Haible  <bruno@clisp.org>
90216
90217         * lib/exit.h: New file, from GNU gettext.
90218
90219 2003-01-19  Bruno Haible  <bruno@clisp.org>
90220
90221         * gnulib-tool: Recognize option --extract-maintainer.
90222         (func_get_maintainer): New function.
90223         * modules/*: Add Maintainer entry.
90224
90225 2003-01-16  Jim Meyering  <jim@meyering.net>
90226
90227         * m4/regex.m4: The `regex' struct is both input and output.
90228         Initialize it before each use.  Patch by Tim Waugh.
90229
90230 2003-01-16  Bruno Haible  <bruno@clisp.org>
90231
90232         * MODULES.html.sh: Add a table of contents. Add the module name as
90233         leftmost column. Add hyperlinks.
90234
90235 2003-01-15  Bruno Haible  <bruno@clisp.org>
90236
90237         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
90238
90239 2003-01-15  Bruno Haible  <bruno@clisp.org>
90240
90241         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
90242         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
90243         suffix.
90244
90245 2003-01-15  Bruno Haible  <bruno@clisp.org>
90246
90247         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
90248
90249 2003-01-15  Bruno Haible  <bruno@clisp.org>
90250
90251         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
90252         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
90253
90254 2003-01-14  Jim Meyering  <jim@meyering.net>
90255
90256         * lib/same.c (same_name): Tweak a comment.
90257
90258 2003-01-14  Bruno Haible  <bruno@clisp.org>
90259
90260         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
90261         when a string comparison is sufficient.
90262
90263 2003-01-14  Bruno Haible  <bruno@clisp.org>
90264
90265         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
90266         'unsigned int'.
90267
90268 2003-01-14  Bruno Haible  <bruno@clisp.org>
90269
90270         * lib/hash-pjw.c: Add comment about low quality of this function.
90271
90272 2003-01-13  Bruno Haible  <bruno@clisp.org>
90273
90274         * modules/stpcpy: Distribute lib/stpcpy.h.
90275         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
90276
90277 2003-01-13  Bruno Haible  <bruno@clisp.org>
90278
90279         * modules/*: Add a description.
90280         * modules/strpbrk: Fix Makefile.am snippet.
90281         * modules/strtoimax: Fix dependencies.
90282         * modules/strtoumax: Likewise.
90283
90284 2003-01-13  Bruno Haible  <bruno@clisp.org>
90285
90286         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
90287         * modules/alloca (Makefile.am): All object files depend on alloca.h.
90288         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
90289
90290 2003-01-13  Bruno Haible  <bruno@clisp.org>
90291
90292         * gnulib-tool (func_create_testdir): Store config/* files in the main
90293         directory.
90294         * config.rpath: Move to ...
90295         * config/config.rpath: ... here.
90296         * modules/gettext: Contains config/config.rpath, not config.rpath.
90297         * modules/iconv: Likewise.
90298
90299 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90300
90301         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90302         to avoid collisions with libcurses and libreadline.
90303
90304         * m4/getstr.m4: Remove.
90305         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
90306
90307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90308
90309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90310         to avoid collisions with libcurses and libreadline.
90311
90312         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
90313         * lib/getstr.h, getstr.c: Remove.
90314         * lib/getline.c: Include "getline.h", to check interface.
90315         Move body of old getstr.c here: this defines MIN_CHUNK and
90316         declares getdelim2, which is renamed from getstr.
90317         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
90318
90319         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
90320         All uses changed.
90321         * lib/linebuffer.h: Likewise.
90322         (readline): Remove backward-compatibility macro.
90323
90324 2003-01-12  Paul Eggert  <eggert@twinsun.com>
90325
90326         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
90327         to avoid collisions with libcurses and libreadline.
90328         * getstr: Remove.
90329         * MODULES.html.sh: Remove getstr.
90330         * modules/getline: Depend on unlocked-io, not getstr.
90331
90332 2003-01-12  Jim Meyering  <jim@meyering.net>
90333
90334         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
90335
90336 2003-01-10  Bruno Haible  <bruno@clisp.org>
90337
90338         * modules/alloca: Change Makefile.am requirements. Simplify Include
90339         requirements. Add lib/alloca_.h to file list.
90340
90341 2003-01-10  Bruno Haible  <bruno@clisp.org>
90342
90343         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
90344
90345 2003-01-10  Bruno Haible  <bruno@clisp.org>
90346
90347         * lib/alloca_.h: New file.
90348         * lib/getdate.y: Unconditionally include alloca.h.
90349         * lib/makepath.c: Likewise.
90350         * lib/setenv.c: Likewise.
90351         * lib/userspec.c: Likewise.
90352
90353 2003-01-09  Karl Berry  <karl@gnu.org>
90354
90355         * MODULES.html.sh: include `dirname $0` in PATH, to find
90356         gnulib-tool.
90357
90358 2003-01-09  Bruno Haible  <bruno@clisp.org>
90359
90360         * modules/stdbool: Change configure.ac, Makefile.am requirements.
90361         Simplify Include requirements. Add lib/stdbool.h.in to file list.
90362
90363 2003-01-09  Bruno Haible  <bruno@clisp.org>
90364
90365         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
90366
90367 2003-01-09  Bruno Haible  <bruno@clisp.org>
90368
90369         * lib/stdbool.h.in: New file.
90370
90371 2003-01-09  Bruno Haible  <bruno@clisp.org>
90372
90373         * gnulib-tool (func_all_modules): Ignore files ending in ~.
90374         * MODULES.html.sh: Likewise.
90375
90376 2003-01-08  Jim Meyering  <jim@meyering.net>
90377
90378         * lib/full-write.c: Undefine and define-away `const' after inclusion
90379         of errno.h, not before.  Suggestion from Bruno Haible.
90380
90381 2003-01-08  Bruno Haible  <bruno@clisp.org>
90382
90383         * modules/full-read: Depend on full-write.
90384
90385 2003-01-08  Bruno Haible  <bruno@clisp.org>
90386
90387         * lib/safe-read.c: Include specification header first, to ensure its
90388         selfcontainedness.
90389         * lib/full-write.c: Likewise.
90390
90391 2003-01-07  Jim Meyering  <jim@meyering.net>
90392
90393         * lib/full-write.c: Rework so that it may serve to define full_read,
90394         too.
90395         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
90396
90397 2003-01-07  Bruno Haible  <bruno@clisp.org>
90398
90399         * lib/strtoimax.c: Include <stdint.h> as an alternative to
90400         <inttypes.h>.
90401         * lib/xstrtol.h: Likewise.
90402         * lib/xstrtoimax.c: Likewise.
90403         * lib/xstrtoumax.c: Likewise.
90404         * lib/human.h: Likewise.
90405
90406         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
90407         on systems that have <inttypes.h> but not <stdint.h>.
90408
90409 2003-01-07  Bruno Haible  <bruno@clisp.org>
90410
90411         * MODULES.html.sh: Add copyright notice.
90412         (missed_files): Omit CVS directory entries.
90413         (func_module): Make it work with sed-3.02.
90414         * MODULES.txt: Remove file.
90415
90416 2003-01-06  Jim Meyering  <jim@meyering.net>
90417
90418         * lib/version-etc.c: Update year in translatable copyright string.
90419
90420 2003-01-03  Karl Berry  <karl@gnu.org>
90421
90422         * config/config.{guess,sub}: update from prep.
90423
90424 2003-01-02  Karl Berry  <karl@gnu.org>
90425
90426         * doc/COPYING.DOC: belatedly updated to 1.2.
90427
90428 2003-01-01  Karl Berry  <karl@gnu.org>
90429
90430         * gnulib-tool (func_verify_module): report module name $module in
90431         error message, not $1.
90432         * gnulib-tool (create-testdir): don't complain if destdir couldn't
90433         be created, only if it doesn't exist.
90434         * gnulib-tool (last_checkin_date): don't expand the $Date here.
90435
90436 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90437
90438         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
90439
90440 2002-12-31  Paul Eggert  <eggert@twinsun.com>
90441
90442         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
90443         memcmp if strcoll doesn't work.
90444
90445 2002-12-31  Bruno Haible  <bruno@clisp.org>
90446
90447         * lib/utime.c (utime_null): No need to call ftruncate if the file was
90448         nonempty.
90449
90450 2002-12-31  Bruno Haible  <bruno@clisp.org>
90451
90452         * lib/memcoll.c (STRCOLL): New macro.
90453         (memcoll): Use it.
90454
90455 2002-12-31  Bruno Haible  <bruno@clisp.org>
90456
90457         * lib/localcharset.h: New file.
90458         * lib/localcharset.c: Include it.
90459         * lib/unicodeio.c: Likewise.
90460
90461 2002-12-31  Bruno Haible  <bruno@clisp.org>
90462
90463         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
90464         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
90465
90466 2002-12-31  Bruno Haible  <bruno@clisp.org>
90467
90468         * lib/getline.h: Include <stddef.h>, for size_t.
90469
90470         * lib/unicodeio.h: Include <stddef.h>, for size_t.
90471         * lib/unicodeio.c: Don't include <stddef.h>.
90472
90473 2002-12-31  Bruno Haible  <bruno@clisp.org>
90474
90475         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
90476         HAVE_TM_ZONE.
90477
90478 2002-12-24  Karl Berry  <karl@gnu.org>
90479
90480         * config/config.guess: update from prep.
90481
90482 2002-12-24  Bruno Haible  <bruno@clisp.org>
90483
90484         General infrasructure.
90485         * m4/README: Rewritten.
90486         * m4/onceonly.m4: New file.
90487         * m4/onceonly_2_57.m4: New file.
90488
90489         Module atexit.
90490         * m4/atexit.m4: New file.
90491
90492         Module strtod.
90493         * m4/strtod.m4: New file.
90494
90495         Module strtol.
90496         * m4/strtol.m4: New file.
90497
90498         Module strtoul.
90499         * m4/strtoul.m4: New file.
90500
90501         Module memchr.
90502         * m4/memchr.m4: New file.
90503
90504         Module memcmp.
90505         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
90506         (jm_FUNC_MEMCMP): Invoke it.
90507
90508         Module memcpy.
90509         * m4/memcpy.m4: New file.
90510
90511         Module memmove.
90512         * m4/memmove.m4: New file.
90513
90514         Module memset.
90515         * m4/memset.m4: New file.
90516
90517         Module strcspn.
90518         * m4/strcspn.m4: New file.
90519
90520         Module strpbrk.
90521         * m4/strpbrk.m4: New file.
90522
90523         Module strstr.
90524         * m4/strstr.m4: New file.
90525
90526         Module strerror.
90527         * m4/strerror.m4: New file.
90528
90529         Module mktime.
90530         * m4/mktime.m4: Renamed from jm-mktime.m4.
90531         (gl_PREREQ_MKTIME): New macro.
90532         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
90533
90534         Module malloc.
90535         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
90536         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
90537         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
90538
90539         Module realloc.
90540         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
90541         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
90542         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
90543
90544         Module strftime.
90545         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
90546         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
90547         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
90548         gl_TM_GMTOFF.
90549         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
90550
90551         Module xalloc.
90552         * m4/xalloc.m4: New file.
90553
90554         Module alloca.
90555         * m4/alloca.m4: New file.
90556
90557         Module putenv.
90558         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
90559         (jm_FUNC_PUTENV): Invoke it.
90560
90561         Module setenv.
90562         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
90563         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
90564         when invoked twice.
90565         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
90566         gt_FUNC_SETENV.
90567
90568         Module memrchr.
90569         * m4/memrchr.m4: New file.
90570
90571         Module stpcpy.
90572         * m4/stpcpy.m4: New file.
90573
90574         Module strcase.
90575         * m4/strcase.m4: New file.
90576
90577         Module strdup.
90578         * m4/strdup.m4: New file.
90579
90580         Module strnlen.
90581         * m4/strnlen.m4: New file.
90582
90583         Module strndup.
90584         * m4/strndup.m4: New file.
90585
90586         Module xstrtod.
90587         * m4/xstrtod.m4: New file.
90588
90589         Module xstrtol.
90590         * m4/xstrtol.m4: New file.
90591
90592         Module getdate.
90593         * m4/getdate.m4: New file.
90594
90595         Module unlocked-io.
90596         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
90597         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
90598         * m4/jm-glibc-io.m4n: Remove file.
90599
90600         Module long-options.
90601         * m4/long-options.m4: New file.
90602
90603         Module md5.
90604         * m4/md5.m4: New file.
90605
90606         Module sha.
90607         * m4/sha.m4: New file.
90608
90609         Module getstr.
90610         * m4/getstr.m4: New file.
90611
90612         Module getline.
90613         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
90614         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
90615         <sys/types.h>, for size_t. Use the function name gnu_getline, not
90616         simply getline. Infoke gl_PREREQ_GETLINE.
90617
90618         Module obstack.
90619         * m4/obstack.m4: New file.
90620
90621         Module hash.
90622         * m4/hash.m4: New file.
90623
90624         Module readtokens.
90625         * m4/readtokens.m4: New file.
90626
90627         Module strverscmp.
90628         * m4/strverscmp.m4: New file.
90629
90630         Module stdbool.
90631         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
90632         OSF/1.
90633
90634         Module strtoll.
90635         * m4/strtoll.m4: New file.
90636
90637         Module strtoull.
90638         * m4/strtoull.m4: New file.
90639
90640         Module strtoimax.
90641         * m4/strtoimax.m4: New file.
90642
90643         Module strtoumax.
90644         * m4/strtoumax.m4: New file.
90645
90646         Module xstrtoimax.
90647         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
90648         jm_AC_PREREQ_XSTRTOIMAX.
90649         Moved the strtol prerequisites to strtol.m4.
90650         Moved the strtoll prerequisites to strtoll.m4.
90651         Moved the strtoimax prerequisites to strtoimax.m4.
90652
90653         Module xstrtoumax.
90654         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
90655         jm_AC_PREREQ_XSTRTOUMAX.
90656         Moved the strtoul prerequisites to strtoul.m4.
90657         Moved the strtoull prerequisites to strtoull.m4.
90658         Moved the strtoumax prerequisites to strtoumax.m4.
90659
90660         Module chown.
90661         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
90662         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
90663
90664         Module dup2.
90665         * m4/dup2.m4: New file.
90666
90667         Module ftruncate.
90668         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
90669         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
90670
90671         Module getgroups.
90672         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
90673         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
90674
90675         Module gettimeofday.
90676         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
90677         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
90678         gl_PREREQ_GETTIMEOFDAY.
90679
90680         Module mkdir.
90681         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
90682         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
90683
90684         Module mkstemp.
90685         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
90686         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
90687         jm_AC_TYPE_UINTMAX_T.
90688         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
90689
90690         Module stat.
90691         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
90692         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
90693
90694         Module lstat.
90695         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
90696         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
90697
90698         Module timespec.
90699         * m4/timespec.m4 (gl_TIMESPEC): New macro.
90700         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
90701         * m4/st_mtim.m4: Indentation.
90702
90703         Module nanosleep.
90704         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
90705         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
90706         gl_PREREQ_NANOSLEEP.
90707
90708         Module regex.
90709         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
90710         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
90711         (gl_REGEX): New macro.
90712
90713         Module rename.
90714         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
90715         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
90716
90717         Module rmdir.
90718         * m4/rmdir.m4: New file.
90719
90720         Module utime.
90721         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
90722         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
90723         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
90724
90725         Module dirname.
90726         * m4/dirname.m4: New file.
90727
90728         Module getopt.
90729         * m4/getopt.m4: New file.
90730
90731         Module unistd-safer.
90732         * m4/unistd-safer.m4: New file.
90733
90734         Module fnmatch.
90735         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
90736         declaration.
90737         (gl_PREREQ_FNMATCH_EXTRA): New macro.
90738         (gl_FUNC_FNMATCH_POSIX): New macro.
90739         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
90740         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
90741         simply fnmatch.
90742
90743         Module exclude.
90744         * m4/exclude.m4: New file.
90745
90746         Module human.
90747         * m4/human.m4: New file.
90748
90749         Module acl.
90750         * m4/acl.m4: Nop.
90751
90752         Module backupfile.
90753         * m4/backupfile.m4: New file.
90754         * m4/d-ino.m4: Indentation.
90755
90756         Module fsusage.
90757         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
90758         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
90759         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
90760
90761         Module dirfd.
90762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
90763         requirements.
90764
90765         Module euidaccess.
90766         * m4/euidaccess.m4: New file.
90767
90768         Module file-type.
90769         * m4/file-type.m4: New file.
90770
90771         Module fileblocks.
90772         * m4/fileblocks.m4: New file.
90773
90774         Module filemode.
90775         * m4/filemode.m4: New file.
90776
90777         Module isdir.
90778         * m4/isdir.m4: New file.
90779
90780         Module lchown.
90781         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
90782         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
90783
90784         Module makepath.
90785         * m4/makepath.m4: New file.
90786
90787         Module modechange.
90788         * m4/modechange.m4: New file.
90789
90790         Module mountlist.
90791         * m4/mountlist.m4: New file.
90792         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
90793         Indentation.
90794
90795         Module path-concat.
90796         * m4/path-concat.m4: New file.
90797
90798         Module pathmax.
90799         * m4/pathmax.m4: New file.
90800
90801         Module same.
90802         * m4/same.m4: New file.
90803
90804         Module save-cwd.
90805         * m4/save-cwd.m4: New file.
90806
90807         Module savedir.
90808         * m4/savedir.m4: New file.
90809
90810         Module xgetcwd.
90811         * m4/xgetcwd.m4: New file.
90812         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90813
90814         Module xreadlink.
90815         * m4/xreadlink.m4: New file.
90816
90817         Module safe-read.
90818         * m4/safe-read.m4: New file.
90819
90820         Module safe-write.
90821         * m4/safe-write.m4: New file.
90822
90823         Module closeout.
90824         * m4/closeout.m4: New file.
90825
90826         Module stdio-safer.
90827         * m4/stdio-safer.m4: New file.
90828
90829         Module getpass.
90830         * m4/getpass.m4: New file.
90831
90832         Module getugroups.
90833         * m4/getugroups.m4: New file.
90834
90835         Module group-member.
90836         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90837         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90838
90839         Module idcache.
90840         * m4/idcache.m4: New file.
90841
90842         Module userspec.
90843         * m4/userspec.m4: New file.
90844
90845         Module gettime.
90846         * m4/clock_time.m4: New file.
90847         * m4/gettime.m4: New file.
90848
90849         Module settime.
90850         * m4/settime.m4: New file.
90851
90852         Module posixtm.
90853         * m4/posixtm.m4: New file.
90854
90855         Module gethostname.
90856         * m4/gethostname.m4: New file.
90857
90858         Module canon-host.
90859         * m4/canon-host.m4: New file.
90860
90861         Module gettext.
90862         * m4/codeset.m4: New file, from gettext-0.11.5.
90863         * m4/gettext.m4: New file, from gettext-0.11.5.
90864         * m4/glibc21.m4: New file, from gettext-0.11.5.
90865         * m4/iconv.m4: New file, from gettext-0.11.5.
90866         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90867         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90868         * m4/inttypes.m4: New file, from gettext-0.11.5.
90869         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90870         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90871         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90872         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90873         * m4/lib-link.m4: New file, from gettext-0.11.5.
90874         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90875         * m4/progtest.m4: New file, from gettext-0.11.5.
90876         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90877         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90878         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90879
90880         Module localcharset.
90881         * m4/localcharset.m4: New file.
90882
90883         Module hard-locale.
90884         * m4/hard-locale.m4: New file.
90885
90886         Module mbswidth.
90887         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90888         onceonly macros.
90889         * m4/mbrtowc.m4: Add comment.
90890
90891         Module memcasecmp.
90892         * m4/memcasecmp.m4: New file.
90893
90894         Module memcoll.
90895         * m4/memcoll.m4: New file.
90896
90897         Module unicodeio.
90898         * m4/unicodeio.m4: New file.
90899
90900         Module rpmatch.
90901         * m4/rpmatch.m4: New file.
90902
90903         Module yesno.
90904         * m4/yesno.m4: New file.
90905
90906         Module exitfail.
90907         * m4/exitfail.m4: New file.
90908
90909         Module c-stack.
90910         * m4/c-stack.m4 (gl_C_STACK): New macro.
90911         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90912
90913         Module error.
90914         * m4/error.m4 (gl_ERROR): New macro.
90915         (jm_PREREQ_ERROR): Use onceonly macros.
90916
90917         Module fatal.
90918         * m4/fatal.m4: New file.
90919
90920         Module getloadavg.
90921         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90922         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90923
90924         Module getpagesize.
90925         * m4/getpagesize.m4: New file.
90926
90927         Module getusershell.
90928         * m4/getusershell.m4: New file.
90929
90930         Module physmem.
90931         * m4/physmem.m4: New file.
90932
90933         Module posixver.
90934         * m4/posixver.m4: New file.
90935
90936         Module quotearg.
90937         * m4/quotearg.m4: New file.
90938
90939         Module quote.
90940         * m4/quote.m4: New file.
90941
90942         Module readutmp.
90943         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90944
90945         Module sig2str.
90946         * m4/sig2str.m4: New file.
90947
90948         Other.
90949         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90950         ulonglong.m4.
90951         * m4/intmax_t.m4: New file.
90952         * m4/d-type.m4: Indentation.
90953         * m4/jm-macros.m4: Update.
90954         * m4/prereq.m4 (jm_PREREQ): Update.
90955         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90956         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90957         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90958         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90959         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90960         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90961         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90962         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90963         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90964         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90965         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90966         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90967         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90968         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90969         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90970         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90971         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90972         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90973         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90974
90975 2002-12-24  Bruno Haible  <bruno@clisp.org>
90976
90977         * MODULES.txt: Update according to m4/ changes.
90978
90979         Module gettext.
90980         * config.rpath: New file, from gettext-0.11.5.
90981
90982         * modules/*: New module descriptions.
90983         * gnulib-tool: New file.
90984         * MODULES.html.sh: New file.
90985
90986 2002-12-21  Karl Berry  <karl@gnu.org>
90987
90988         * doc/fdl.texi: update to version 1.2.
90989
90990 2002-12-19  Karl Berry  <karl@gnu.org>
90991
90992         * config/config.guess: update from prep.
90993
90994 2002-12-18  Bruno Haible  <bruno@clisp.org>
90995
90996         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90997         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90998
90999 2002-12-17  Bruno Haible  <bruno@clisp.org>
91000
91001         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
91002         stdlib.h, string.h.
91003
91004 2002-12-17  Bruno Haible  <bruno@clisp.org>
91005
91006         * lib/canon-host.c (strdup): Remove unused declaration.
91007
91008         * lib/fsusage.c: Include full_read.h.
91009         (get_fs_usage): Use full_read instead of safe_read.
91010
91011         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
91012
91013 2002-12-12  Karl Berry  <karl@gnu.org>
91014
91015         * config/config.guess: update from prep.
91016
91017 2002-12-11  Bruno Haible  <bruno@clisp.org>
91018
91019         * m4/setenv.m4: New file, from gettext-0.11.5.
91020
91021 2002-12-11  Bruno Haible  <bruno@clisp.org>
91022
91023         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
91024         not unsetenv().
91025         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
91026         modifications:
91027
91028         2002-12-11  Bruno Haible  <bruno@clisp.org>
91029
91030                 * setenv.c (alloca): Fall back to malloc.
91031                 (freea): New macro.
91032                 (setenv): Use freea() to free memory allocated with alloca().
91033
91034         2002-11-13  Bruno Haible  <bruno@clisp.org>
91035
91036                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
91037                 function declarations.
91038                 * unsetenv.c (unsetenv): Likewise.
91039
91040         2002-03-04  Bruno Haible  <bruno@clisp.org>
91041
91042                 Portability to AIX 4.3.3.
91043                 * unsetenv.c: New file, extracted from setenv.c.
91044                 * setenv.c: Move the unsetenv() function to unsetenv.c.
91045
91046         2001-12-20  Bruno Haible  <bruno@clisp.org>
91047
91048                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
91049                 use malloc instead. For SunOS 4.
91050
91051         2001-12-11  Bruno Haible  <bruno@clisp.org>
91052
91053                 * setenv.c: Declare alloca.
91054                 (compar_fn_t): New typedef.
91055                 (KNOWN_VALUE, STORE_VALUE): Use it.
91056
91057         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
91058         setenv.h.
91059
91060 2002-12-10  Paul Eggert  <eggert@twinsun.com>
91061
91062         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
91063         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
91064         Choose values that are less likely to collide with system fnmatch
91065         options.
91066         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
91067         defined (e.g., a pure POSIX system).
91068         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
91069         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
91070
91071 2002-12-06  Paul Eggert  <eggert@twinsun.com>
91072
91073         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
91074         a pain in practice to deal with generated m4 files.  This change
91075         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
91076
91077         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
91078         and jm-glibc-io.m4, as they are no longer a special case.
91079         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
91080         kludge and the auto-generation stuff.  Check only whether the
91081         functions are declared, not whether they exist, since older hosts
91082         that don't declare the functions can't use the optimization anyway.
91083
91084 2002-12-06  Jim Meyering  <jim@meyering.net>
91085
91086         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
91087
91088         Merge in changes from libc's misc/error.c, in preparation
91089         for the merge of gnulib's changes back into libc.
91090
91091         * lib/error.c (_): Define only if not already defined.
91092         Move definition to follow all #include directives.
91093         Include unlocked-io.h only if !_LIBC.
91094         [_LIBC]: Include <libio/libioP.h>.
91095         [USE_IN_LIBIO]: Include <libio/iolibio.h>
91096         (fflush): Tweak definition to use INTUSE.
91097         (putc): Define.
91098
91099 2002-12-05  Paul Eggert  <eggert@twinsun.com>
91100
91101         * lib/alloca.c [defined emacs]: Include "lisp.h".
91102         (xalloc_die) [defined emacs]: New macro.
91103         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
91104         [! defined emacs]: Include <xalloc.h>.
91105         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
91106         (pointer): Typedef to POINTER_TYPE *.
91107         (malloc): Remove decl; we now always use xmalloc.
91108         (alloca): Use old-style definition, since Emacs needs this.
91109         Check for arithmetic overflow when computing combined size.
91110
91111 2002-12-04  Paul Eggert  <eggert@twinsun.com>
91112
91113         Do not generate unlocked-io.h automatically, since it's easier to
91114         maintain it by hand.
91115
91116         * lib/unlocked-io.h: New file, from GNU diffutils,
91117         but with proper copyright notice and attribution.
91118         * lib/gen-uio: Remove.
91119         * lib/Makefile.am: Add copyright notice.
91120         (libfetish_a_SOURCES): Add unlocked-io.h.
91121         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
91122         (DISTCLEANFILES, io_functions): Remove macros.
91123         (EXTRA_DIST): Remove gen_uio.
91124         (unlocked-io.h): Remove rule.
91125
91126 2002-12-04  Jim Meyering  <jim@meyering.net>
91127
91128         Reflect the fact that stat.c and lstat.c are no longer generated.
91129         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
91130         (DISTCLEANFILES): Likewise.
91131         (EXTRA_DIST): Likewise.
91132         (all_local): Don't depend on stat.c or lstat.c.
91133         (stat.c, lstat.c): Remove rules.
91134         (EXTRA_DIST): Remove xstat.in.
91135
91136         * lib/xstat.in: Remove file.  Contents moved into stat.c.
91137         * lib/stat.c: New file.  Contents mostly from xstat.in.
91138         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
91139         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
91140
91141         * lib/safe-read.c: Rework so that it may serve to define safe_write,
91142         too.
91143         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
91144
91145 2002-12-03  Jim Meyering  <jim@meyering.net>
91146
91147         * lib/safe-read.c, safe-write.c: Change variable names and comments,
91148         but not semantics, to minimize the differences between these two files.
91149         (safe_read): Change comment to mention SAFE_READ_ERROR.
91150
91151         * lib/safe-read.c (IS_EINTR): Define.
91152         (safe_read): Use IS_EINTR in place of in-function cpp directives.
91153
91154 2002-12-02  Jim Meyering  <jim@meyering.net>
91155
91156         * lib/safe-read.c (EINTR): Define.
91157         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
91158         (INT_MAX): Provide fallback.
91159         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
91160
91161         * lib/safe-read.h (SAFE_READ_ERROR): Define.
91162
91163 2002-12-02  Bruno Haible  <bruno@clisp.org>
91164
91165         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
91166         Define, taken from safe-read.c.
91167         (INT_MAX): Provide fallback.
91168         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
91169         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
91170
91171         * lib/safe-read.c (EINTR): Remove definition.
91172         (safe_read): Don't use EINTR if it is absent.
91173
91174 2002-12-01  Jim Meyering  <jim@meyering.net>
91175
91176         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
91177         zero.
91178         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
91179
91180 2002-11-27  Paul Eggert  <eggert@twinsun.com>
91181
91182         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
91183         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
91184         with `if (! (value < limit)) abort ();', for readability.
91185
91186 2002-11-26  Karl Berry  <karl@gnu.org>
91187
91188         * lib/strdup.c: copy from libc again, with jim's ok.
91189         * lib/.cppi-disable: re-add strdup.c
91190
91191 2002-11-25  Karl Berry  <karl@gnu.org>
91192
91193         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
91194         instead of "strtol.c".
91195
91196 2002-11-25  Karl Berry  <karl@gnu.org>
91197
91198         * config/install-sh: update from automake for variable quoting, $0 in
91199         error msgs, etc.
91200
91201         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
91202         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
91203         entry.
91204
91205 2002-11-25  Jim Meyering  <jim@meyering.net>
91206
91207         * lib/mktime.c: Sync from libc, now that it has the latest fix.
91208
91209 2002-11-24  Karl Berry  <karl@gnu.org>
91210
91211         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
91212         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
91213
91214 2002-11-24  Jim Meyering  <jim@meyering.net>
91215
91216         Update from coreutils:
91217
91218         * lib/mktime.c: Merge in changes from libc.
91219
91220         Avoid a link-time failure on some Linux systems.
91221         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
91222         (otherwise).
91223         (__mon_yday): Declare with the STATIC attribute.
91224         (__mktime_internal): Likewise.
91225         Based on a report from Greg Schafer.
91226
91227 2002-11-23  Jim Meyering  <jim@meyering.net>
91228
91229         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
91230         Use `unsigned', not `int', as type of index.
91231
91232         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
91233
91234         * lib/fsusage.c: Remove unneeded parentheses around operands of
91235         `defined'.
91236
91237 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91238
91239         * lib/quotearg.h: Allow multiple inclusion by surrounding with
91240         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
91241         so that we can be included first.
91242         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
91243         * lib/quotearg.c: Include quotearg.h immediately after config.h.
91244         No need to include stddef.h or sys/types.h any more.
91245         Surround local include files with "", not "<>".
91246         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
91247         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
91248         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
91249         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
91250         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
91251         (ISPRINT): Remove; no longer needed now that we assume C89.
91252
91253         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
91254         Preserve errno.
91255
91256         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
91257         quotearg_char): Use SIZE_MAX rather than
91258         (size_t) -1 when we are talking about "infinity".
91259
91260         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
91261
91262 2002-11-22  Paul Eggert  <eggert@twinsun.com>
91263
91264         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
91265         hint that one should use `if (! x) abort ();' rather than `assert
91266         (x);', and anyway it's one less thing to worry about configuring.
91267         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
91268         hash_rehash, hash_insert): Use abort rather than assert.
91269
91270 2002-11-22  Bruno Haible  <bruno@clisp.org>
91271
91272         * lib/safe-read.h: Assume C89. Add comments.
91273         (safe_read): Change return type to size_t.
91274         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
91275         byte counts > SSIZE_MAX correctly.
91276         * lib/safe-write.h: New file.
91277         * lib/safe-write.c: New file.
91278         * lib/full-read.h: New file.
91279         * lib/full-read.c: New file.
91280         * lib/full-write.h: Assume C89. Add comments.
91281         * lib/full-write.c: Include safe-write.h.
91282         (full_write): Rewritten to use safe_write.
91283         Suggested by Jim Meyering and Paul Eggert.
91284
91285 2002-11-21  Jim Meyering  <jim@meyering.net>
91286
91287         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
91288
91289         Merge in changes from the coreutils.
91290
91291         2002-09-25  Paul Eggert  <eggert@twinsun.com>
91292         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
91293         <stdint.h>.
91294         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
91295         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
91296         int.  Work more efficiently if X is the same width as uintmax_t.
91297         Do not compare X to -1, to avoid bogus compiler warning.
91298         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
91299         Don't assume that f_frsize and f_bsize are the same type.
91300
91301         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
91302         warning on FreeBSD.
91303
91304         * lib/makepath.c (make_path): Restore umask *before* creating the final
91305         component.
91306         (make_path): Minor reformatting.
91307
91308         * lib/xmalloc.c: Adjust to work with new autoconf macros,
91309         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
91310         HAVE_MALLOC/HAVE_REALLOC.
91311
91312         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
91313         dummy ones.  At least on GNU/Linux systems, `auto' means something
91314         else.
91315         From Michael Stone.
91316
91317 2002-11-21  Bruno Haible  <bruno@clisp.org>
91318
91319         Remove case insensitive option matching.
91320         * lib/argmatch.h (argcasematch): Remove declaration.
91321         (ARGCASEMATCH): Remove macro.
91322         (__xargmatch_internal): Remove case_sensitive argument.
91323         (XARGMATCH): Update.
91324         (XARGCASEMATCH): Remove macro.
91325         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
91326         case_sensitive argument.
91327         (argcasematch): Remove function.
91328         (__xargmatch_internal): Remove case_sensitive argument.
91329         (main): Use XARGMATCH instead of XARGCASEMATCH.
91330
91331         * lib/xmalloc.c: Change compile-time error message. Add comment about
91332         required autoconf version.
91333
91334 2002-11-20  Paul Eggert  <eggert@twinsun.com>
91335
91336         Merge argmatch cleanups from Bison.  Assume C89.
91337
91338         * lib/argmatch.c: Include config.h here, not in argmatch.h.
91339         Include stdlib.h, for EXIT_FAILURE.
91340         Always include <string.h>, since we assume C89.
91341         (EXIT_FAILURE): Remove pre-C89 bug workaround.
91342         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
91343         Include <stddef.h> instead, since it's all we need for size_t.
91344         (PARAMS): Remove.  All uses removed.
91345         (ARRAY_CARDINALITY): Do not bother to #undef.
91346         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
91347         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91348         Remove unnecessary parentheses.
91349         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
91350         Insert necessary parentheses.
91351         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
91352         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
91353
91354 2002-11-19  Bruno Haible  <bruno@clisp.org>
91355
91356         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
91357         * lib/mbswidth.h: Include <stddef.h>, for size_t.
91358
91359         * lib/mbswidth.h (PARAMS): Remove macro.
91360         (mbswidth, mbsnwidth): Use ANSI C function declarations.
91361         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
91362
91363         * lib/gcd.h (PARAMS): Remove macro.
91364         (gcd): Use ANSI C function declarations.
91365         * lib/gcd.c (gcd): Likewise.
91366
91367 2002-11-15  Bruno Haible  <bruno@clisp.org>
91368
91369         * lib/strcspn.c: Include <stddef.h>.
91370         (strcspn): Use ANSI C function declaration. Change return type to
91371         size_t. Use NULL.
91372         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
91373         (strpbrk): Use NULL.
91374         * lib/strpbrk.h (PARAMS): Remove macro.
91375         (strpbrk): Use ANSI C function declaration.
91376         * lib/strstr.c: Don't include <sys/types.h>.
91377         * lib/strstr.h (PARAMS): Remove macro.
91378         (strstr): Use ANSI C function declarations.
91379
91380 2002-11-14  Karl Berry  <karl@gnu.org>
91381
91382         * config/mkinstalldirs: `do' on separate line, instead of
91383         `for var; do'.
91384
91385 2002-11-06  Bruno Haible  <bruno@clisp.org>
91386
91387         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
91388         * lib/gcd.c (gcd): Likewise.
91389
91390 2002-11-05  Bruno Haible  <bruno@clisp.org>
91391
91392         * lib/gcd.h: New file, from gettext-0.11.5.
91393         * lib/gcd.c: New file, from gettext-0.11.5.
91394
91395 2002-11-05  Bruno Haible  <bruno@clisp.org>
91396
91397         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91398         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91399         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91400         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
91401
91402         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
91403         <libintl.h>.
91404         * lib/makepath.c: Include gettext.h instead of <locale.h> and
91405         <libintl.h>.
91406
91407         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
91408         * lib/human.c: Include gettext.h instead of <libintl.h>.
91409         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
91410         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
91411         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
91412         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
91413         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
91414         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
91415         (textdomain): Remove definition.
91416         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
91417
91418         * lib/long-options.c: Remove include of <libintl.h> and definition of
91419         _.
91420         * lib/same.c: Remove include of <libintl.h> and definition of _.
91421
91422 2002-11-04  Owen Taylor  <otaylor@redhat.com>
91423
91424         * lib/config.charset: A few additions for Solaris.
91425
91426 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91427
91428         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
91429         * lib/localcharset.c (locale_charset): Declare as extern "C".
91430
91431 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
91432
91433         * lib/config.charset: msdos in uk_UA uses CP1125.
91434
91435 2002-11-04  Bruno Haible  <bruno@clisp.org>
91436
91437         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
91438         * lib/strcase.h: New file, from GNU gettext-0.11.5.
91439         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
91440         * lib/strstr.h: New file, from GNU gettext-0.11.5.
91441         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
91442
91443 2002-11-04  Bruno Haible  <bruno@clisp.org>
91444
91445         * lib/localcharset.c (locale_charset): Don't return an empty string.
91446
91447 2002-11-04  Bruno Haible  <bruno@clisp.org>
91448
91449         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
91450         aliases.
91451
91452 2002-11-04  Bruno Haible  <bruno@clisp.org>
91453
91454         * lib/config.charset: Update for newest glibc. Add canonical names
91455         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
91456
91457 2002-11-04  Bruno Haible  <bruno@clisp.org>
91458
91459         * lib/config.charset: Add support for NetBSD.
91460
91461 2002-11-04  Bruno Haible  <bruno@clisp.org>
91462
91463         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
91464
91465 2002-11-01  Bruno Haible  <bruno@clisp.org>
91466
91467         * configure.in: Add AC_CONFIG_AUX_DIR call.
91468         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
91469         test/Makefile.
91470         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
91471
91472 2002-09-28  Karl Berry  <karl@gnu.org>
91473
91474         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
91475         installed automake until the next release, since changes have been
91476         made.
91477
91478 2002-09-25  Karl Berry  <karl@gnu.org>
91479
91480         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
91481         * lib/getopt*: copy from libc/posix.
91482         * lib/gettext.h: copy from gettext.
91483         * lib/.cppi-disable: add strdup.c, gettext.h.
91484
91485 2002-09-25  Karl Berry  <karl@gnu.org>
91486
91487         * config/srclist.txt: enable gettext.h check.
91488         * config/config.{guess,sub}: update from prep.
91489         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
91490                 from automake 1.6.3.
91491         See srclist*.
91492
91493 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
91494
91495         * regex.c (PATFETCH): Remove the translating fetch.
91496         (PATFETCH_RAW): Rename to PATFETCH.
91497         (set_image_of_range): New fun.
91498         (SET_RANGE_TABLE_WORK_AREA): Use it.
91499         (regex_compile): Don't translate the pattern chars so eagerly.
91500         Only do it when inserting an `exactn' bytecode or when handling
91501         a char-range.
91502         (mutually_exclusive_p): Avoid empty statement.
91503
91504 2002-07-06  Jim Meyering  <meyering@lucent.com>
91505
91506         * m4/README: Don't mention Makefile.am.in.
91507         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
91508
91509 2002-07-01  Jim Meyering  <meyering@lucent.com>
91510
91511         * lib/c-stack.c: Include sys/time.h.
91512         From Volker Borchert.
91513
91514 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91515
91516         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
91517
91518 2002-06-26  Paul Eggert  <eggert@twinsun.com>
91519
91520         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
91521         New macro.  Use it uniformly instead of
91522         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
91523         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
91524         reported by Vin Shelton.
91525
91526 2002-06-22  Paul Eggert  <eggert@twinsun.com>
91527
91528         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
91529         Do not assume SA_SIGINFO behavior.
91530         Bug reported by Jim Meyering on NetBSD 1.5.2.
91531
91532 2002-06-22  Jim Meyering  <meyering@lucent.com>
91533
91534         * m4/c-stack.m4: New file, from diffutils-2.8.2.
91535         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
91536
91537         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
91538         now that configure.ac uses AC_GNU_SOURCE.
91539         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
91540         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
91541
91542         Update to latest tools.  Suggestions from Paul Eggert.
91543         * m4/stdbool.m4: New file, from diffutils-2.8.2.
91544         * m4/gnu-source.m4: Update from diffutils-2.8.2.
91545         * m4/fnmatch.m4: Likewise.
91546         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
91547         to AC_HEADER_STDBOOL
91548
91549 2002-06-22  Jim Meyering  <meyering@lucent.com>
91550
91551         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
91552         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
91553
91554 2002-06-22  Jim Meyering  <meyering@lucent.com>
91555
91556         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
91557
91558         * lib/exitfail.c, exitfail.h: Likewise.
91559         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
91560
91561         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
91562         of fnmatch.h.
91563         (EXTRA_DIST): Add fnmatch_loop.c.
91564         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
91565
91566         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
91567         * lib/fnmatch.c: Update from diffutils-2.8.2.
91568         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
91569         * lib/fnmatch.h: Remove file.
91570
91571 2002-06-21  Jim Meyering  <meyering@lucent.com>
91572
91573         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
91574         * m4/mbrtowc.m4: Likewise.
91575
91576         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
91577         * m4/mbswidth.m4: Reflect name change:
91578         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
91579         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91580
91581         * m4/lib-link.m4: Update from gettext-0.11.2.
91582         * m4/gettext.m4: Likewise.
91583
91584         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
91585         From Alfred M. Szmidt.
91586
91587 2002-06-18  Paul Eggert  <eggert@twinsun.com>
91588
91589         * lib/file-type.h: Report an error if neither S_ISREG nor
91590         S_IFREG is defined, instead of using a test specific to glibc
91591         2.2.  This should be safe, since POSIX requires S_ISREG and
91592         Unix Version 7 had S_IFREG.  We don't need to check for
91593         <sys/types.h> since we don't use any symbols that it defines.
91594
91595 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
91596
91597         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
91598         $@-t, so that each temporary file name is unique and valid in the first
91599         8 characters, for operation under DOS.
91600
91601 2002-06-15  Paul Eggert  <eggert@twinsun.com>
91602
91603         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
91604
91605 2002-06-15  Jim Meyering  <meyering@lucent.com>
91606
91607         Work even with DJGPP 2.03, which lacks support for symlinks.
91608         From Richard Dawe.
91609         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
91610         is defined.
91611         * lib/lchown.c (S_ISLNK): Likewise.
91612
91613 2002-06-15  Jim Meyering  <meyering@lucent.com>
91614
91615         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
91616         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
91617         have been included before this file.
91618
91619 2002-06-14  Jim Meyering  <meyering@lucent.com>
91620
91621         * lib/file-type.h: Use the version from diffutils-2.8.2.
91622         * lib/file-type.c: Likewise.
91623
91624 2002-06-07  Jim Meyering  <meyering@lucent.com>
91625
91626         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
91627         They're needed at least for NetBSD 1.5.2.
91628         ($statxfs_includes): Include those same headers.
91629         ($statxfs_includes): Include sys/vfs.h if available.
91630         ($statxfs_includes): Likewise for sys/statvfs.h.
91631         Check for the following members in both structs statfs and statvfs:
91632         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
91633
91634 2002-06-01  Jim Meyering  <meyering@lucent.com>
91635
91636         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
91637         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
91638
91639 2002-05-28  Jim Meyering  <meyering@lucent.com>
91640
91641         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
91642         Reported by Volker Borchert.
91643
91644 2002-05-27  Jim Meyering  <meyering@lucent.com>
91645
91646         Fix a problem seen only on nonconforming systems whereby ls.c's
91647         use of localtime, and then of gettimeofday would cause trouble:
91648         the localtime call used to initialize rpl_gettimeofday's save
91649         mechanism would clobber ls's current local time information so
91650         that in any long listing the first file would always be listed
91651         with date 1970-01-01.  Analysis by Volker Borchert.
91652
91653         * lib/gettimeofday.c (localtime): Undefine.
91654         (rpl_localtime): New function.
91655
91656 2002-05-27  Jim Meyering  <meyering@lucent.com>
91657
91658         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
91659         localtime.
91660
91661         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
91662         use the replacement function; it wouldn't resolve at link time.
91663         Reported by Volker Borchert.
91664
91665 2002-05-22  Jim Meyering  <meyering@lucent.com>
91666
91667         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
91668         file-type.h.
91669         * lib/file-type.h: New file.
91670         * lib/file-type.c (file_type): New file/function.  Extracted from
91671         diffutils.
91672
91673 2002-04-30  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
91676
91677 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91678
91679         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
91680
91681 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91682
91683         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
91684         Do not check for alloca.h (no longer used) or stdbool.h (was never
91685         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
91686
91687 2002-04-29  Paul Eggert  <eggert@twinsun.com>
91688
91689         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
91690
91691 2002-04-29  Jim Meyering  <meyering@lucent.com>
91692
91693         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
91694         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
91695         Use AC_FUNC_STRNLEN here instead.
91696
91697         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
91698         With autoconf-2.53a, it's part of AC_PROG_CC.
91699
91700 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91701
91702         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
91703         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
91704
91705 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91706
91707         * lib/sig2str.h, lib/sig2str.c: New files.
91708         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
91709
91710 2002-04-28  Paul Eggert  <eggert@twinsun.com>
91711
91712         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
91713         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
91714         of 127, since 64 is the largest conceivable number for ancient
91715         nonstandard hosts.
91716         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
91717
91718 2002-04-28  Jim Meyering  <meyering@lucent.com>
91719
91720         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
91721
91722 2002-04-24  Jim Meyering  <meyering@lucent.com>
91723
91724         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
91725         (jm_PREREQ): Use it.
91726
91727         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
91728         mach/mach.h fcntl.h.
91729         Check for this function: setlocale.
91730
91731 2002-04-24  Jim Meyering  <meyering@lucent.com>
91732
91733         * lib/gettext.h: New file, from Gettext.
91734         * lib/Makefile.am (INCLUDES): Remove -I../intl.
91735         (libfetish_a_SOURCES): Add gettext.h.
91736
91737 2002-04-16  Jim Meyering  <meyering@lucent.com>
91738
91739         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
91740         ut_pid, ut_id, ut_exit.
91741
91742 2002-04-16  Jim Meyering  <meyering@lucent.com>
91743
91744         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
91745         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
91746         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
91747
91748 2002-04-12  Jim Meyering  <meyering@lucent.com>
91749
91750         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
91751         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
91752         existence of the getmntinfo function.  Needed for Darwin 5.3.
91753
91754         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
91755         This is necessary at least on Darwin 5.3.
91756
91757         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
91758         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
91759         strnlen.o in the library, and that makes some versions of ranlib
91760         object.
91761
91762 2002-04-12  Jim Meyering  <meyering@lucent.com>
91763
91764         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
91765
91766 2002-04-09  Jim Meyering  <meyering@lucent.com>
91767
91768         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
91769         to be more precise.  Rather than saying we're checking whether the
91770         function `works', say what we're testing.
91771         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
91772         Reported by Bruno Haible.
91773
91774 2002-03-10  Jim Meyering  <meyering@lucent.com>
91775
91776         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
91777         Suggestion from Santiago Vila.
91778
91779 2002-03-08  Jim Meyering  <meyering@lucent.com>
91780
91781         * lib/rename.c: Mention that this wrapper is needed also on
91782         mips-dec-ultrix4.4 systems.
91783
91784 2002-03-02  Jim Meyering  <meyering@lucent.com>
91785
91786         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
91787         not HAVE_CLOCK_SETTIME.
91788
91789 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91790
91791         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
91792         Check for clock_settime.
91793
91794 2002-02-27  Paul Eggert  <eggert@twinsun.com>
91795
91796         * lib/nanosleep.h: Rename to....
91797         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
91798
91799         * lib/gettime.c: New file.
91800         * lib/settime.c: New file.
91801         * lib/stime.c: Remove.
91802
91803         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
91804         timespec.h.  Remove nanosleep.h.
91805
91806 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91807
91808         * m4/acl.m4: New file.
91809         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91810         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91811
91812 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91813
91814         * lib/acl.c, lib/acl.h: New files.
91815         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91816
91817 2002-02-24  Jim Meyering  <meyering@lucent.com>
91818
91819         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91820         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91821         cause trouble.  Reported by Nelson Beebe.
91822
91823 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91824
91825         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91826         compilers that don't know that xalloc_die never returns.
91827
91828 2002-02-20  Jim Meyering  <meyering@lucent.com>
91829
91830         * lib/getdate.c: Regenerate using bison-1.33.
91831
91832 2002-02-17  Jim Meyering  <meyering@lucent.com>
91833
91834         * config/config.guess (main): Don't use `head -1'; it's no longer
91835         portable. Use `sed 1q' instead.
91836
91837 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91838
91839         * m4/codeset.m4: Upgrade to gettext-0.11.
91840         * m4/gettext.m4: Upgrade to gettext-0.11.
91841         * m4/glibc21.m4: Upgrade to gettext-0.11.
91842         * m4/iconv.m4: Upgrade to gettext-0.11.
91843         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91844         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91845         * m4/lib-ld.m4: New file, from gettext-0.11.
91846         * m4/lib-link.m4: New file, from gettext-0.11.
91847         * m4/lib-prefix.m4: New file, from gettext-0.11.
91848         * m4/progtest.m4: Upgrade to gettext-0.11.
91849
91850 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91851
91852         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91853         (jm_PREREQ): Use it.
91854
91855 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91856
91857         * lib/posixver.c, lib/posixver.h: New files.
91858         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91859
91860 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91861             Bruno Haible  <bruno@clisp.org>
91862
91863         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91864         (fwrite_success_callback): New declaration.
91865         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91866         print_unicode_char. Call failure callback instead of error.
91867         (fwrite_success_callback): New function.
91868         (exit_failure_callback): New function.
91869         (fallback_failure_callback): New function.
91870         (print_unicode_char): Call unicode_to_mb.
91871
91872 2002-01-26  Jim Meyering  <meyering@lucent.com>
91873
91874         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91875         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91876
91877 2002-01-26  Jim Meyering  <meyering@lucent.com>
91878
91879         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91880
91881 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91882
91883         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91884
91885 2002-01-22  Jim Meyering  <meyering@lucent.com>
91886
91887         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91888         Otherwise, some versions of automake would omit the rule that makes
91889         Makefile from Makefile.in.
91890
91891 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91892
91893         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91894         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91895         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91896         (memcoll): Set errno to zero if there is no error.
91897
91898         * lib/quotearg.c (quotearg_buffer_restyled):
91899         Fix bug with quoting buffers containing NUL when backslashing escapes.
91900         This bug was exposed by the other changes in this patch.
91901         (quotearg_n_options): New arg ARGSIZE.
91902         All callers changed.
91903         (quoting_options_from_style): New function.
91904         (quotearg_n_style): Use it.
91905         (quotearg_n_style_mem): New function.
91906
91907         * lib/quotearg.h (quotearg_n_style_mem): New function.
91908
91909 2002-01-19  Jim Meyering  <meyering@lucent.com>
91910
91911         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91912         Remove useless quotes: DF_PROG="df".
91913         * m4/strnlen.m4: New file.
91914
91915 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91916
91917         * lib/backupfile.c (ISDIGIT): Comment fix.
91918         * lib/getdate.y (ISDIGIT): Likewise.
91919         * lib/posixtm.c (ISDIGIT, year): Likewise.
91920         * lib/strverscmp.c (ISDIGIT): Likewise.
91921         * lib/userspec.c (ISDIGIT): Likewise.
91922
91923 2002-01-16  Jim Meyering  <meyering@lucent.com>
91924
91925         * lib/getdate.y: Add three semicolons, each just before a closing
91926         brace. Bison (as of version 1.31) no longer papers over that mistake.
91927
91928 2002-01-05  Jim Meyering  <meyering@lucent.com>
91929
91930         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91931
91932 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91933
91934         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91935         not silently exit merely because the output buffer happens to
91936         have nothing pending.
91937
91938 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91939
91940         See the big note in ../ChangeLog.
91941         * lib/human.c (suffixes): Prefer K to k for 1024.
91942         (generate_suffix_backwards): New function.
91943         (human_readable_inexact): Use it.
91944         * lib/xstrtol.c (__xstrtol): If there is no number but there
91945         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91946         Accept 'K' as well as 'k'.
91947
91948 2001-12-15  Jim Meyering  <meyering@lucent.com>
91949
91950         * lib/regex.h (__restrict_arr): Update from libc.
91951
91952         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91953         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91954         (STREQ): Define.
91955
91956 2001-12-14  Jim Meyering  <meyering@lucent.com>
91957
91958         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91959         Suggestion from Bruno Haible.
91960
91961 2001-12-10  Jim Meyering  <meyering@lucent.com>
91962
91963         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91964         xrealloc, Instead, include "xalloc.h".
91965         (initbuffer): Don't cast xmalloc return value to char*.
91966         (readline): Reword comment.
91967         Don't cast xrealloc return value to char*
91968         Return NULL, not 0.
91969
91970 2001-12-09  Jim Meyering  <meyering@lucent.com>
91971
91972         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91973         about `signed and unsigned type in conditional expression'.
91974         * lib/posixtm.c (posix_time_parse): Likewise.
91975
91976         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91977
91978         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91979         to avoid a pedantic warning.
91980
91981         * lib/getstr.c: Don't include assert.h.
91982         (getstr): Remove warning-evoking assertions.
91983         Return -1 if offset parameter is out of bounds.
91984         Change the type of a local from int to size_t.
91985
91986         * lib/strftime.c (my_strftime_localtime_r): Include this function
91987         definition in the `#if ! HAVE_TM_GMTOFF' block.
91988
91989         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91990         Include xalloc.h instead.
91991
91992 2001-12-02  Jim Meyering  <meyering@lucent.com>
91993
91994         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91995         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91996         included.
91997
91998         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91999         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
92000
92001 2001-11-30  Akim Demaille  <akim@epita.fr>
92002
92003         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
92004         before being defined.
92005
92006 2001-11-27  Paul Eggert  <eggert@twinsun.com>
92007
92008         * lib/quotearg.h (quotearg_n, quotearg_n_style):
92009         First arg is int, not unsigned.
92010         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
92011         (SIZE_MAX, UINT_MAX): New macros.
92012         (quotearg_n_options): Abort if N is negative.
92013         Avoid overflow check on hosts where size_t is 64 bits and int
92014         is 32 bits, as overflow is impossible there.
92015         Fix off-by-one typo that caused unnecessary reallocation.
92016
92017 2001-11-27  Jim Meyering  <meyering@lucent.com>
92018
92019         * lib/tempname.c: Merge with version from libc.
92020         * lib/regex.c: Likewise.
92021
92022         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
92023         systems for which STDC_HEADERS is 0, it was not included, resulting in
92024         a warning about an integer-to-pointer conversion problem with getenv.
92025         Reported by Volker Borchert.
92026
92027 2001-11-26  Jim Meyering  <meyering@lucent.com>
92028
92029         * lib/gtod.h: Remove file.
92030         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
92031         * lib/gettimeofday.c: Don't include gtod.h.
92032         (GTOD_init): Remove function.
92033         (rpl_gettimeofday): Do its job here instead, rather than aborting.
92034         Suggestion from Volker Borchert.
92035
92036 2001-11-23  Jim Meyering  <meyering@lucent.com>
92037
92038         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
92039         it.
92040         * lib/hash.c (struct hash_table): Define it here instead.
92041
92042 2001-11-22  Jim Meyering  <meyering@lucent.com>
92043
92044         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
92045
92046 2001-11-20  Jim Meyering  <meyering@lucent.com>
92047
92048         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
92049         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
92050
92051 2001-11-19  Jim Meyering  <meyering@lucent.com>
92052
92053         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
92054         directory.  Use "conftestXXXXXX" as the template.
92055         Suggestion from Paul Eggert.
92056
92057         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
92058         immediately, so the test doesn't mistakenly hit the max-open-files
92059         limit.
92060
92061 2001-11-18  Paul Eggert  <eggert@twinsun.com>
92062
92063         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
92064         (TEMPORARIES): New macro.
92065         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
92066         removes an artificial limitation (e.g. HP-UX 10.20, where
92067         TMP_MAX is 17576).
92068
92069 2001-11-18  Jim Meyering  <meyering@lucent.com>
92070
92071         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
92072
92073 2001-11-18  Jim Meyering  <meyering@lucent.com>
92074
92075         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
92076         on SunOS 4.
92077
92078         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
92079         files will be created before anything else.
92080
92081 2001-11-17  Paul Eggert  <eggert@twinsun.com>
92082
92083         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
92084         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
92085
92086 2001-11-17  Jim Meyering  <meyering@lucent.com>
92087
92088         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
92089         Prompted by a report from Bob Proulx.
92090
92091         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
92092         Instead, require UTILS_FUNC_MKSTEMP.
92093
92094 2001-11-17  Jim Meyering  <meyering@lucent.com>
92095
92096         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
92097         Now, that's done as part of AC_FUNC_STRTOD.
92098
92099 2001-11-17  Jim Meyering  <meyering@lucent.com>
92100
92101         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
92102         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
92103         rather than group writable.  Patch by Juan F. Codagnone.
92104
92105         * lib/readtokens.c: Remove explicit declarations of xmalloc and
92106         xrealloc, Instead, include "xalloc.h".
92107
92108         * lib/mountlist.c: Include unlocked-io.h after all system headers.
92109         Remove explicit declarations of xmalloc, xrealloc,
92110         and xstrdup.  Instead, include "xalloc.h".
92111
92112         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
92113         unlocked-io.h.
92114         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
92115         Likewise.
92116         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
92117
92118         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
92119         Reported by Padraig Brady.
92120
92121         * lib/mkstemp.c: #undef mkstemp.
92122         Include config.h.
92123         (rpl_mkstemp): Rename from mkstemp.
92124         Protoize.
92125
92126 2001-11-16  Jim Meyering  <meyering@lucent.com>
92127
92128         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
92129         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
92130         determine the amount of total physical memory, use pstat_getstatic.
92131         HPUX-11 doesn't define _SC_PHYS_PAGES.
92132         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
92133         If sysconf couldn't be used to determine the amount of available
92134         physical memory, use both pstat_getstatic and pstat_getdynamic.
92135         Based on a patch from Bob Proulx.
92136
92137 2001-11-10  Jim Meyering  <meyering@lucent.com>
92138
92139         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
92140         (jm_PREREQ): Use it.
92141
92142 2001-11-09  Jim Meyering  <meyering@lucent.com>
92143
92144         * m4/jm-macros.m4: Require autoconf-2.52f.
92145         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
92146         Use these AC_-prefixed names, not the AM_-prefixed ones.
92147
92148         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
92149
92150 2001-11-05  Jim Meyering  <meyering@lucent.com>
92151
92152         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
92153
92154 2001-11-04  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
92157         $DEFS.
92158
92159 2001-11-03  Jim Meyering  <meyering@lucent.com>
92160
92161         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
92162         of AC_DEFUN.
92163
92164         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
92165         know the name of the variable in the macro definition.
92166
92167 2001-11-03  Jim Meyering  <meyering@lucent.com>
92168
92169         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
92170         in argmatch_to_argument call.
92171
92172         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
92173         argument.
92174
92175         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
92176         e.g., a fault due to an attempt to free a NULL pointer.
92177
92178 2001-11-01  Jim Meyering  <meyering@lucent.com>
92179
92180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
92181         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
92182
92183 2001-11-01  Jim Meyering  <meyering@lucent.com>
92184
92185         * lib/dirfd.c, lib/dirfd.h: New files.
92186         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
92187
92188         * lib/hash.c (hash_print) [TESTING]: Clean up.
92189
92190 2001-10-22  Paul Eggert  <eggert@twinsun.com>
92191
92192         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
92193         to avoid a warning if -Wall.
92194
92195 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
92196
92197         * README: New file
92198         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
92199         (per RMS's instructions, this is now the canonical source)
92200         * lgpl/, gpl/: New directories.
92201
92202 2001-10-21  Paul Eggert  <eggert@twinsun.com>
92203
92204         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
92205
92206 2001-10-21  Jim Meyering  <meyering@lucent.com>
92207
92208         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
92209         this code would end up calling gettext even in packages built
92210         with --disable-nls.
92211         * lib/getopt.c (_): Likewise.
92212         * lib/regex.c (_): Likewise.
92213
92214 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92215
92216         * m4/error.m4 (jm_PREREQ_ERROR):
92217         Do not invoke AC_CHECK_FUNCS with strerror_r, as
92218         AC_FUNC_STRERROR_R does that.
92219         Check for strerror declaration.
92220
92221         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
92222         are supposed to have them these days.
92223         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
92224         Merge changes from latest Autoconf CVS.
92225         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
92226         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
92227         POSIX decided to standardize on the int flavor of strerror_r.
92228
92229 2001-10-20  Paul Eggert  <eggert@twinsun.com>
92230
92231         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
92232         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
92233         Use strerror_r that is only a macro, even if it is not a function.
92234         (strerror): Check for HAVE_DECL_STRERROR before declaring.
92235         (private_strerror): Use prototypes, not old-style function definition.
92236         (print_errno_message): New function.
92237         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
92238         char*-flavored one.
92239         (error_tail, error, error_at_line): Use it.
92240
92241 2001-10-11  Jim Meyering  <meyering@lucent.com>
92242
92243         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
92244         and quote_n (1, ... to avoid clobbering a buffer.
92245
92246 2001-10-05  Jim Meyering  <meyering@lucent.com>
92247
92248         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
92249         hash-pjw.h.
92250         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
92251         * lib/hash-pjw.h: New file.
92252
92253 2001-09-30  Jim Meyering  <meyering@lucent.com>
92254
92255         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
92256         `struct fsstat' has the `f_fstypename' member.
92257         Use that to define FS_TYPE, which is now used to make
92258         the getfsstat link test tighter.
92259
92260 2001-09-30  Jim Meyering  <meyering@lucent.com>
92261
92262         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
92263         Include <sys/ucred.h>, for Apple Darwin.
92264         Include sys/mount.h and sys/fs_types.h only if available.
92265         (FS_TYPE): Define.
92266         (read_filesystem_list): Use FS_TYPE.
92267
92268 2001-09-29  Paul Eggert  <eggert@twinsun.com>
92269
92270         * lib/exclude.c (excluded_filename): 0 -> false, since it's
92271         a boolean context.
92272
92273 2001-09-29  Jim Meyering  <meyering@lucent.com>
92274
92275         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92276         [one-argument getmntent function]): Include stdio.h before mntent.h.
92277         SunOS 4.1.x needs it for the declaration of `FILE'.
92278         Patch by Volker Borchert.
92279
92280         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
92281         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
92282         sys/fs_types.h, and make the link-test for getfsstat guard #include
92283         directives with appropriate #if HAVE_*_H tests so that we can
92284         detect getfsstat on Apple Darwin1.3.7 systems.
92285         Reported by Nelson Beebe.
92286         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
92287
92288 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92289
92290         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92291         #defines strtoimax.  Also treat the other strto* functions
92292         like strtoimax.
92293
92294         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92295         Check for strtoul and strtoumax,
92296         as those declarations are made even in the signed case.
92297         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
92298         Likewise, for strtol and strtoimax.
92299
92300 2001-09-28  Paul Eggert  <eggert@twinsun.com>
92301
92302         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
92303         #defines strtoimax.  Also treat the other strto* functions
92304         like strtoimax.
92305
92306         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
92307         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
92308         (strtoimax, strtoumax): Do not declare if already defined as a macro.
92309
92310 2001-09-26  Jim Meyering  <meyering@lucent.com>
92311
92312         Most macros in unlocked-io.h had the wrong number of arguments.
92313         * lib/gen-uio: New script.
92314         (USE_UNLOCKED_IO): Define to 1 if not already defined.
92315         * lib/unlocked-io.hin: Remove file.
92316         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
92317         rather than trying to embed it here.
92318         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
92319         Reported by Padraig Brady.
92320
92321 2001-09-25  Volker Borchert  <bt@teknon.de>
92322
92323         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
92324         `result'.
92325
92326 2001-09-24  Jim Meyering  <meyering@lucent.com>
92327
92328         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
92329
92330 2001-09-23  Jim Meyering  <meyering@lucent.com>
92331
92332         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
92333         instead of the mere test for existence of mntent.h.  The latter
92334         would get a false-positive on AIX 3.4 systems.
92335         In the outer getmntent if-block, don't die if neither of the getmntent
92336         tests succeeds.  Instead, just fall through and continue with the
92337         remaining tests.
92338
92339 2001-09-23  Jim Meyering  <meyering@lucent.com>
92340
92341         * lib/mountlist.c: Remove useless parentheses in #if directives.
92342         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
92343         the deprecated MOUNTED symbol is no longer defined in mntent.h.
92344
92345 2001-09-22  Jim Meyering  <meyering@lucent.com>
92346
92347         * m4/gettext.m4: New file.  From gettext.
92348         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
92349         * m4/progtest.m4: Likewise
92350         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
92351         * m4/glibc21.m4: Likewise.
92352
92353         * m4/libintl.m4: Remove.  No longer used.
92354
92355 2001-09-22  Jim Meyering  <meyering@lucent.com>
92356
92357         * lib/localcharset.c: Update from latest gettext.
92358         * lib/config.charset: Likewise.
92359
92360 2001-09-20  Jim Meyering  <meyering@lucent.com>
92361
92362         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
92363         strtoimax.
92364         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
92365         strtoumax.
92366
92367 2001-09-20  Jim Meyering  <meyering@lucent.com>
92368
92369         * lib/xstrtol.c (strtoimax): Guard declaration with
92370         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
92371         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
92372         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
92373         (strtoumax): Likewise, for completeness (it wasn't necessary).
92374
92375 2001-09-17  Paul Eggert  <eggert@twinsun.com>
92376
92377         * lib/strtoimax.c (HAVE_LONG_LONG):
92378         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
92379         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
92380         to work around bug in IBM C compiler.
92381
92382 2001-09-17  Jim Meyering  <meyering@lucent.com>
92383
92384         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
92385         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
92386         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
92387         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
92388         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
92389         whenever the right hand side need not be expanded by the shell.
92390
92391 2001-09-16  Paul Eggert  <eggert@twinsun.com>
92392
92393         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
92394         library.  It's not correct, as some older glibcs are buggy.
92395         fnmatch wasn't fixed until glibc 2.2.
92396
92397         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
92398         special shell magic here.
92399
92400 2001-09-16  Jim Meyering  <meyering@lucent.com>
92401
92402         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
92403         * m4/jm-macros.m4: Require it.
92404
92405 2001-09-16  Jim Meyering  <meyering@lucent.com>
92406
92407         * lib/mkdir.c: New file.
92408
92409 2001-09-15  Jim Meyering  <meyering@lucent.com>
92410
92411         * m4/jm-macros.m4: Check for help2man.
92412
92413 2001-09-11  Jim Meyering  <meyering@lucent.com>
92414
92415         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
92416         The body, by Paul Eggert, was moved here from configure.in.
92417         * m4/jm-macros.m4: Require UTILS_HOST_OS.
92418
92419 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92420
92421         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
92422         (jm_PREREQ): Use it.
92423
92424 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92425
92426         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
92427         Use ssize_t, not int, to store result of readlink.
92428         Check for ssize_t overflow as well as size_t overflow,
92429         as POSIX says the result of readlink is implementation-defined
92430         when ssize_t overflows.
92431         Remove unnecessary cast to char*.
92432         Use free+malloc instead of realloc, as the storage doesn't need
92433         to be preserved and it's clearer and can be more efficient that way.
92434         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
92435         * lib/xreadlink.h (xreadlink): Update prototype.
92436
92437 2001-09-04  Paul Eggert  <eggert@twinsun.com>
92438
92439         * lib/xgetcwd.c: Revert some of the previous change; intead,
92440         fix the HAVE_GETCWD_NULL code to behave more like the
92441         !HAVE_GETCWD_NULL code used to.
92442
92443         Include "xalloc.h".
92444         (xgetcwd): Do not return NULL when memory is exhausted; instead,
92445         invoke xalloc_die.
92446
92447 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92448
92449         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
92450         sys/param.h, as pathmax.h includes them.
92451
92452 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92453
92454         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
92455         (jm_PREREQ_XGETCWD): New macro.
92456
92457         * m4/getcwd.m4: New file.
92458
92459 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92460
92461         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
92462         like the HAVE_GETCWD_NULL code.
92463         Include pathmax.h if not HAVE_GETCWD.
92464         Do not include xalloc.h.
92465         (INITIAL_BUFFER_SIZE): New symbol.
92466         Do not use xmalloc / xrealloc, since the caller is responsible for
92467         handling errors.  Preserve errno around `free' during failure.
92468         Do not overrun buffer when using getwd.
92469
92470 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92471
92472         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
92473         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
92474         getcwd (NULL, 0).
92475
92476 2001-09-03  Paul Eggert  <eggert@twinsun.com>
92477
92478         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
92479         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
92480         spotted by Jim Meyering.
92481
92482 2001-09-03  Jim Meyering  <meyering@lucent.com>
92483
92484         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
92485         failure.
92486
92487 2001-09-02  Jim Meyering  <meyering@lucent.com>
92488
92489         * lib/error.c: Update from GNU libc.
92490
92491 2001-09-01  Jim Meyering  <meyering@lucent.com>
92492
92493         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
92494         Used by df.
92495
92496 2001-09-01  Jim Meyering  <meyering@lucent.com>
92497
92498         * lib/xreadlink.c: New file.
92499         * lib/xreadlink.h: New file.
92500         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
92501         xreadlink.h.
92502
92503         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
92504         doesn't conflict with sparc Solaris 7's definition in
92505         /usr/include/sys/int_types.h.
92506
92507         * lib/exclude.c: Use `""', not `<>' to #include non-system header
92508         files.
92509         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
92510         and strncasecmp as r-values.  Unixware didn't have declarations.
92511
92512 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92513
92514         * lib/xstrtol.h: Add copyright notice.
92515         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
92516         LONGINT_INVALID_SUFFIX_CHAR.
92517
92518 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92519
92520         * lib/xstrtol.c (strtoimax): New decl.
92521
92522 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92523
92524         * lib/xgetcwd.c: Don't include pathmax.h.
92525         Include stdlib.h and unistd.h if available.
92526         Include xalloc.h.
92527         (xmalloc, xstrdup, free): Remove decls.
92528         (xgetcwd): Don't assume sizes fit in unsigned.
92529         Check for overflow when computing sizes.
92530         Simplify reallocation code.
92531
92532 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92533
92534         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
92535         a directory's st_size can have an arbitrary value, so the old
92536         usage could waste an arbitrary amount of memory.  All uses
92537         changed.
92538         * lib/savedir.h: Update prototype.
92539
92540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
92541
92542         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
92543
92544         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
92545         old strtoimax.c.
92546
92547         Also, make the following further changes to make this file's
92548         configuration more similar to that of strtol.c:
92549         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
92550         (strtoumax, uintmax_t, strtoull, strtol): Remove.
92551         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
92552         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
92553         changed to signed values.
92554
92555         And make the following changes as well:
92556         Fix copyright notice, as 1999 was missing.
92557         (verify): New macro.
92558         (strtoimax): Check sizes at compile-time, not run-time.
92559         Prefer strtol to strtoll if both work.
92560         (main): Remove; it was not that useful and was a pain to maintain.
92561
92562         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
92563
92564 2001-08-31  Jim Meyering  <meyering@lucent.com>
92565
92566         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
92567         Use an initial, malloc'd, buffer of length 128 rather than
92568         a statically allocated one of length 1024.
92569
92570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92571
92572         Simplify code, partly by assuming autoconf 2.52 semantics.
92573
92574         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
92575
92576         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
92577         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
92578         All uses removed.
92579         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
92580         Move AC_REQUIRE to next-to-top level, to avoid confusion.
92581         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
92582         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
92583         jm_AC_HEADER_INTTYPES_H.
92584         * m4/jm-macros.m4 (jm_MACROS): Likewise.
92585
92586         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
92587
92588         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
92589         Quote first arg of AC_DEFUN.
92590         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
92591         since they are needed to parse the include file even if we need
92592         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
92593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
92594         but with opposite signedness.
92595
92596 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92597
92598         Merge 'exclude' changes from tar 1.13.22.
92599         This fixes one or two unlikely storage allocation overflow bugs,
92600         but doesn't change user-visible behavior otherwise.
92601
92602 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92603
92604         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
92605         (jm_PREREQ_EXCLUDE): New macro.
92606
92607 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92608
92609         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
92610         tm to be declared.
92611
92612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92613
92614         * lib/hash.c: Remove '2001' from copyright notice.
92615
92616 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92617
92618         * lib/full-write.h: New file.
92619         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
92620         * lib/full-write.c: Correct credits, as cccp.c no longer
92621         exists and anyway it was so heavily changed from the old cccp
92622         code as to be unrecognizable.  Include full-write.h.
92623         (full_write): Return size_t, with short writes meaning failure.
92624         All callers changed.  This fixes a bug with large buffers
92625         on 64-bit hosts.
92626         * lib/utime.c: Include full-write.h.
92627
92628 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92629
92630         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
92631         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
92632         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
92633         Include if available.
92634         (<xalloc.h>): Include
92635         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
92636         (verify): New macro.  Use it to verify that EXCLUDE macros do not
92637         collide with FNM macros.
92638         (struct patopts): New struct.
92639         (struct exclude): Use it, as exclude patterns now come with options.
92640         (new_exclude): Support above changes.
92641         (new_exclude, add_exclude_file):
92642         Initial size must now be a power of two to simplify overflow checking.
92643         (free_exclude, fnmatch_no_wildcards): New function.
92644         (excluded_filename): No longer requires options arg, as the options
92645         are determined by add_exclude.  Now returns bool, not int.
92646         (excluded_filename, add_exclude):
92647         Add support for the fancy new exclusion options.
92648         (add_exclude, add_exclude_file): Now takes int options arg.
92649         Check for arithmetic overflow when computing sizes.
92650         (add_exclude_file): xrealloc might modify errno, so don't
92651         realloc until after errno might be used.
92652
92653         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
92654         New macros.
92655         (free_exclude): New decl.
92656         (add_exclude, add_exclude_file): Now takes int options arg.
92657         (excluded_filename): No longer requires options arg, as the options
92658         are determined by add_exclude.  Now returns bool, not int.
92659
92660 2001-08-30  Paul Eggert  <eggert@twinsun.com>
92661
92662         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
92663
92664 2001-08-27  Jim Meyering  <meyering@lucent.com>
92665
92666         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
92667
92668         * lib/version-etc.c (N_): Remove definition.
92669         Revert most of last change.
92670         Instead, simply don't mark the `Copyright...' string for translation.
92671         Based on advice from Paul Eggert.
92672
92673         * lib/strtoxmax.c: Tweak comment.
92674
92675 2001-08-26  Jim Meyering  <meyering@lucent.com>
92676
92677         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
92678
92679         * m4/xstrtoimax.m4: New file.
92680         * m4/xstrtoumax.m4: Add comments explaining why we
92681         AC_REPLACE_FUNCS(strtol).
92682
92683 2001-08-26  Jim Meyering  <meyering@lucent.com>
92684
92685         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
92686         of copyright with `%s' so translators don't get an untranslated
92687         message in 2002.
92688         (COPYRIGHT_YEAR): Define.
92689         (version_etc): Use fprintf rather than fputs.
92690         Suggestion from Ulrich Drepper.
92691
92692         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
92693
92694         * lib/strtoll.c: New file, from GNU libc.
92695         * lib/xstrtoimax.c: New file.
92696
92697         * lib/xstrtol.h: Add xstrtoimax.
92698         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
92699         * lib/strtoimax.c: New file.  Likewise, but first define
92700         STRTOUXMAX_SIGNED.
92701
92702         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
92703         ...
92704         * lib/strtoxmax.c: ... then renamed to this.
92705
92706 2001-08-18  Paul Eggert  <eggert@twinsun.com>
92707
92708         * m4/inttypes.m4: Add AC_PREREQ(2.13).
92709         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
92710         (jm_AC_TYPE_INTMAX_T): New macro.
92711         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
92712
92713         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
92714
92715         * m4/longlong.m4: Renamed from ulonglong.m4.
92716         * m4/inttypes.m4: Renamed from inttypes_h.m4.
92717         * m4/uintmax_t.m4: Removed.
92718
92719 2001-08-13  Paul Eggert  <eggert@twinsun.com>
92720
92721         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
92722         Port to Solaris 8, where 'sed' requires a space after the 'r'
92723         command, and where sh dislikes "$/".  Clean up the spacing a bit.
92724         Redirect output to $tmp just once.
92725
92726 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
92727
92728         * lib/addext.c (<errno.h>): Include.
92729         (errno): Declare if not defined.
92730         (addext): Work correctly when pathconf returns -1 and leaves
92731         errno alone because there is no limit.  Also, work even if
92732         pathconf returns a value greater than SIZE_MAX.
92733
92734 2001-08-12  Jim Meyering  <meyering@lucent.com>
92735
92736         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
92737         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
92738         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
92739         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
92740         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
92741         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
92742         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
92743         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
92744         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
92745         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
92746         utime.m4, utimes.m4, xstrtoumax.m4:
92747         Quote the first argument in each use of AC_DEFUN.
92748
92749 2001-08-12  Jim Meyering  <meyering@lucent.com>
92750
92751         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
92752         Simply `return getcwd (NULL, 0);'.
92753         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
92754         Use 1300 as initial value for length, not PATH_MAX.
92755
92756         * lib/pathmax.h: Clean up cpp syntax.
92757
92758 2001-08-12  Jim Meyering  <meyering@lucent.com>
92759
92760         * lib/gettimeofday.c: New file.
92761         * lib/gtod.h: New file.
92762         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
92763
92764 2001-08-05  Jim Meyering  <meyering@lucent.com>
92765
92766         * m4/jm-macros.m4: Require autoconf-2.52.
92767
92768 2001-08-04  Jim Meyering  <meyering@lucent.com>
92769
92770         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
92771         stmt, to get in sync with glibc.
92772
92773 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92774
92775         The following changes are from gettext 0.10.39 as maintained by
92776         Bruno Haible.
92777
92778         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
92779         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
92780         with inverted sense.  All uses changed.
92781
92782         * lib/mbswidth.c: Don't include <limits.h>.
92783         Include <stdlib.h> and <string.h> unconditionally.
92784         (iswcntrl, mbsinit, ISCNTRL): New macros.
92785         (mbsnwidth): Use K&R style function declarations.
92786         Don't bother checking for MB_LEN_MAX == 1, since the compiler
92787         can optimize it when MB_CUR_MAX == 1.
92788         The width of control characters is zero, not 1.
92789
92790 2001-08-03  Paul Eggert  <eggert@twinsun.com>
92791
92792         The following changes are from gettext 0.10.39 as maintained by
92793         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
92794
92795         * m4/codeset.m4: Upgrade to serial AM1.
92796         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
92797         all uses changed.  Quote first arg of AC_DEFUN.
92798         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
92799
92800         * m4/iconv.m4: Upgrade to serial AM2.
92801         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
92802         Add --with-libconv-prefix.
92803         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
92804         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
92805         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
92806         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
92807         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92808
92809         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92810         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92811         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92812         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92813         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92814         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92815         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92816         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92817         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92818
92819         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92820         string.h any more.
92821
92822         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92823         not the default value.
92824
92825         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92826         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92827         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92828         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92829         Also check for iswcntrl, used for wcwidth fallback.
92830         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92831         to Autoconf 2.13.
92832
92833 2001-08-03  Jim Meyering  <meyering@lucent.com>
92834
92835         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92836         as it was in the original.  Reported by Paul Eggert.
92837
92838 2001-07-16  Jim Meyering  <meyering@lucent.com>
92839
92840         * m4/gettimeofday.m4: New file.
92841         Prompted by a report from Bernhard Baehr.
92842
92843 2001-07-15  Jim Meyering  <meyering@lucent.com>
92844
92845         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92846         stuff. Now it's in ../Makefile.cfg.
92847
92848 2001-07-15  Jim Meyering  <meyering@lucent.com>
92849
92850         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92851         (BUILT_SOURCES): Add unlocked-io.h.
92852         (io_functions): Define.
92853         (unlocked-io.h): New rule.
92854         (DISTCLEANFILES): Add unlocked-io.h.
92855         (all-local): Depend on unlocked-io.h, to ensure it is created.
92856
92857         * lib/unlocked-io.hin: New file
92858
92859         * lib/regex.c: Update from glibc.
92860
92861 2001-07-05  Jim Meyering  <meyering@lucent.com>
92862
92863         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92864         recommendation.
92865         (libfetish_a_SOURCES): Put all .h files here instead.
92866         Remove a thus-exposed (better checks in automake) duplicate and
92867         two unnecessary .h files.
92868
92869 2001-07-04  Jim Meyering  <meyering@lucent.com>
92870
92871         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92872         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92873         distcheck failure.
92874
92875 2001-07-02  Jim Meyering  <meyering@lucent.com>
92876
92877         The following changes were prompted by suggestions from Bruno Haible.
92878
92879         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92880         is now generated.
92881         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92882         definition of EXTRA_DIST.
92883         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92884         ensure that the generated file is created/updated whenever the list
92885         of $(unlocked_functions) is changed.
92886         (jm-glibc-io.m4): New rule.
92887         (unlocked-io.h): New rule -- currently unused.
92888
92889 2001-06-24  Jim Meyering  <meyering@lucent.com>
92890
92891         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92892         unmatched right bracket, rather than kludging it with an extra,
92893         falsely-matching quote in a comment.  Patch by Akim Demaille.
92894
92895 2001-06-11  Jim Meyering  <meyering@lucent.com>
92896
92897         * lib/regex.c: Update from GNU libc.
92898
92899 2001-05-27  Jim Meyering  <meyering@lucent.com>
92900
92901         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92902         Check for ut_type in struct utmp.
92903
92904 2001-05-27  Jim Meyering  <meyering@lucent.com>
92905
92906         * lib/readutmp.h (UT_TYPE): Define.
92907
92908 2001-05-24  Jim Meyering  <meyering@lucent.com>
92909
92910         * lib/argmatch.c: Include "quote.h".
92911         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92912         quote function.  Reported by Göran Uddeborg.
92913
92914 2001-05-22  Jim Meyering  <meyering@lucent.com>
92915
92916         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92917         now that we use the package-supplied version unconditionally.
92918         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92919
92920 2001-05-21  Jim Meyering  <meyering@lucent.com>
92921
92922         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92923         shell syntax errors.
92924
92925 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92926
92927         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92928
92929 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92930
92931         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92932         Don't bother to check library strftime, since
92933         we'll be using our own my_strftime function anyway.
92934         Define my_strftime instead of strftime.
92935
92936 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92937
92938         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92939         which is not yet declared.
92940
92941 2001-05-15  Jim Meyering  <meyering@lucent.com>
92942
92943         * m4/regex.m4: Use proper quoting so brackets appear in the test
92944         program.
92945         Reported by, and with help from, Bruno Haible.
92946
92947 2001-05-13  Jim Meyering  <meyering@lucent.com>
92948
92949         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92950         undefined.
92951
92952 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92953
92954         dirname code cleanup.  base_name now behaves more compatibly
92955         with POSIX basename when given file names that have trailing
92956         slashes, and similarly for dir_name.  Add new primitives
92957         base_len and dir_len.  Put the directory-name-related decls
92958         into dirname.h.
92959
92960         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92961         * lib/backupfile.c (base_name): Likewise.
92962         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92963         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92964         * lib/makepath.c (strip_trailing_slashes): Likewise.
92965         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92966         ISSLASH): Likewise.
92967         * lib/rename.c (strip_trailing_slashes): Likewise.
92968         * lib/same.c (base_name): Likewise.
92969         * lib/stripslash.c (ISSLASH): Likewise.
92970
92971         * lib/addext.c: Include <dirname.h> after size_t is defined.
92972         * lib/backupfile.c: Likewise.
92973
92974         * lib/addext.c (addext): Use base_len to trim redundant
92975         trailing slashes instead of doing it ourselves.
92976         But do not trim the last slash if it is not redundant.
92977
92978         * lib/backupfile.c (find_backup_file_name,
92979         max_backup_version): Use base_len instead of rolling it ourselves.
92980         Handle the case of "" and (on DOS) "C:" correctly.
92981
92982         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92983         needed. Include <string.h>, <dirname.h>.
92984         (base_name): Allow file names ending in slashes, other than names
92985         that are all slashes.  In this case, return the basename followed
92986         by the slashes.  This is more general, and can be used in places
92987         where the original base_name purposely had an assertion failure.
92988         (base_len): New function.
92989
92990         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92991         Do not include <assert.h>; no longer needed.
92992         Include xalloc.h.
92993         (memrchr): Remove decl.
92994         (dir_name_r): Remove.
92995         (dir_len): Renamed from dirlen.  All callers changed.
92996         Rewrite in terms of base_name, for simplicity and consistency.
92997         (dir_name): Never return NULL.  All callers changed.
92998         Do not include <stdlib.h> in test program; no longer needed.
92999         return 0; is fine for test program.
93000
93001         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
93002         New macros.
93003         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
93004
93005         * lib/path-concat.c (path_concat): Use base_len to compute
93006         base length, not strlen; this means we cannot rely on memcpy
93007         to null-terminate.
93008
93009         * lib/same.c (STREQ): Remove.
93010         (same_name): Handle the case where the basename ends in trailing '/'.
93011
93012         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
93013         a slash was stripped.  Do not strip the last slash after a
93014         file system prefix.
93015
93016 2001-05-11  Paul Eggert  <eggert@twinsun.com>
93017
93018         * lib/Makefile.am (libfetish_a_SOURCES):
93019         Add strftime.c, since we now compile it on all hosts.
93020
93021         * lib/strftime.c (my_strftime):
93022         Define to nstrftime if emacs, but only if my_strftime is not defined.
93023         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
93024         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
93025         Add one more extra argument: a nanoseconds value.
93026         All uses changed.
93027         (ns): New macro.
93028         (my_strftime function): Add %N format.
93029         (emacs_strftimeu): Renamed from emacs_strftime,
93030         with extra ut argument.
93031
93032 2001-05-09  Paul Eggert  <eggert@twinsun.com>
93033
93034         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
93035
93036 2001-04-21  Jim Meyering  <meyering@lucent.com>
93037
93038         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
93039         doesn't interfere.
93040
93041 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
93042
93043         * m4/ftruncate.m4: Check for chsize.
93044         Link with ftruncate.o unconditionally if ftruncate is missing.
93045         This was required when cross-compiling to i586-mingw32msvc.
93046
93047 2001-04-08  Jim Meyering  <meyering@lucent.com>
93048
93049         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
93050         recomputed; that's necessary when the offset spans a DST transition.
93051         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
93052
93053 2001-04-02  Jim Meyering  <meyering@lucent.com>
93054
93055         * lib/regex.h, regex.c: Update from GNU libc.
93056
93057 2001-03-24  Jim Meyering  <meyering@lucent.com>
93058
93059         * m4/jm-macros.m4: Require autoconf-2.49d.
93060
93061 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
93062
93063         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
93064
93065 2001-03-19  Paul Eggert  <eggert@twinsun.com>
93066
93067         * lib/version-etc.c (version_etc_copyright): Update to 2001.
93068
93069 2001-03-17  Jim Meyering  <meyering@lucent.com>
93070
93071         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
93072         now that the version in autoconf is equivalent.
93073         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
93074
93075         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
93076         Suggestion from Akim Demaille.
93077
93078         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
93079         (jm_PREREQ_TEMPNAME): New function.
93080
93081 2001-03-16  Paul Eggert  <eggert@twinsun.com>
93082
93083         * lib/tempname.c (uint64_t): Define to uintmax_t if
93084         not defined, and if UINT64_MAX is not defined.
93085         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
93086         Reported by John David Anglin.
93087
93088 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
93089
93090         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
93091         resolve alias if codeset is empty.
93092         * lib/config.charset (BeOS): Use wildcard syntax.
93093
93094 2001-03-13  Jim Meyering  <meyering@lucent.com>
93095
93096         * lib/path-concat.c (path_concat)
93097         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
93098         concatenating e.g., `C:' and `foo'.
93099         From Bruno Haible.
93100
93101 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93102
93103         * lib/localcharset.c (locale_charset): Don't use
93104         setlocale(LC_CTYPE,NULL). Don't return NULL.
93105         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
93106
93107 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
93108
93109         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
93110         support for DOS/DJGPP.
93111
93112 2001-03-01  Paul Eggert  <eggert@twinsun.com>
93113
93114         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
93115         lacks mkstemp.  Compile our own tempname.c if we compile our own
93116         mkstemp.c, as mkstemp relies on tempname.
93117
93118 2001-03-01  Jim Meyering  <meyering@lucent.com>
93119
93120         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
93121         AH_VERBATIM really does output its argument verbatim.
93122
93123 2001-02-28  Paul Eggert  <eggert@twinsun.com>
93124
93125         * lib/Makefile.am (libfetish_a_SOURCES):
93126         Add dup-safer.c, fopen-safer.c.
93127         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
93128
93129         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
93130         * lib/unistd-safer.h: New files.
93131
93132 2001-02-25  Paul Eggert  <eggert@twinsun.com>
93133
93134         The mkstemp replacement is taken from glibc 2.2.2, with some
93135         portability fixes for use outside glibc, as follows:
93136
93137         * lib/tempname.c (struct_stat64): New macro.
93138         (direxists, __gen_tempname): Use it.
93139         This avoids a portability problem with Solaris 8.
93140
93141         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
93142         (<stddef.h>, <stdint.h>, <string.h>):
93143         Include only if STDC_HEADERS || _LIBC.
93144         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
93145         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
93146         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
93147         (__set_errno): Define this macro if <errno.h> doesn't.
93148         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
93149         Define these macros if <stdio.h> doesn't.
93150         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
93151         Define these macros if <sys/stat.h>
93152         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
93153         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
93154         __xstat64): Define if not _LIBC.
93155         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
93156         (__gen_tempname): Invoke gettimeofday only if
93157         HAVE_GETTIMEOFDAY || _LIBC;
93158         otherwise, fall back on plain "time".
93159         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
93160
93161         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
93162
93163         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
93164
93165 2001-02-18  Paul Eggert  <eggert@twinsun.com>
93166
93167         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
93168
93169 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93170
93171         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
93172         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
93173         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
93174         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93175
93176 2001-02-17  Paul Eggert  <eggert@twinsun.com>
93177
93178         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
93179         Remove workaround macros for hosts that have mbrtowc but not
93180         mbstate_t, as we now insist on proper declarations for both
93181         before using mbrtowc.
93182
93183 2001-02-17  Jim Meyering  <meyering@lucent.com>
93184
93185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
93186         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
93187         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
93188         UnixWare 7.1.1.
93189
93190         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
93191         rather than AC_CACHE_VAL.
93192
93193 2001-02-17  Jim Meyering  <meyering@lucent.com>
93194
93195         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
93196         around included file name.
93197
93198         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
93199
93200         * lib/strftime.c: Update from GNU libc (the only changes were to
93201         comments).
93202
93203 2001-02-17  Jim Meyering  <meyering@lucent.com>
93204
93205         * lib/regex.c: Update from libc.
93206
93207 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
93208
93209         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
93210         clash.
93211
93212 2001-02-16  Paul Eggert  <eggert@twinsun.com>
93213
93214         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
93215         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
93216         Reported by Mark Hounschell via Paul Eggert.
93217
93218 2001-02-07  Jim Meyering  <meyering@lucent.com>
93219
93220         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
93221
93222 2001-02-05  Jim Meyering  <meyering@lucent.com>
93223
93224         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
93225         it includes the patch required for `large file' support with at least
93226         HP-UX's 10.20 /bin/cc.
93227
93228 2001-02-03  Jim Meyering  <meyering@lucent.com>
93229
93230         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
93231         AS_IF, now that it works once again (mysteriously).
93232         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93233
93234 2001-01-30  Jim Meyering  <meyering@lucent.com>
93235
93236         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
93237         * m4/chown.m4: Rename conftestchown to conftest.chown.
93238         * m4/rename.m4: s/conftestdir/conftest.d1/ and
93239         s/conftestdir2/conftest.d2/.
93240         * m4/utimes.m4: s/conftestdata/conftest.data/
93241         Inspired by Pavel Roskin's change in autoconf.
93242
93243 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
93244
93245         * lib/config.charset: Update for FreeBSD 4.2.
93246
93247 2001-01-27  Jim Meyering  <meyering@lucent.com>
93248
93249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
93250         a use of AS_IF.
93251         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
93252
93253 2001-01-26  Jim Meyering  <meyering@lucent.com>
93254
93255         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
93256         quotearg.c includes it.
93257
93258 2001-01-26  Jim Meyering  <meyering@lucent.com>
93259
93260         * lib/quotearg.c: Include stddef.h.
93261         * lib/quote.c: Include stddef.h.
93262         Reported by Axel Kittenberger.
93263
93264         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
93265         line in double quotes so that it evokes a better diagnostic.
93266         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
93267         Reported by Axel Kittenberger.
93268
93269 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
93270
93271         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
93272         as if it was a `charset'.
93273
93274 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93275
93276         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
93277         has const.
93278
93279 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
93280
93281         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
93282         to avoid a warning.  Add back 'const' to inptr.
93283
93284 2001-01-20  Jim Meyering  <meyering@lucent.com>
93285
93286         Be sure that headers are checked before used in code compiled
93287         for the type checks.
93288         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
93289         In place of that, invoke jm_CHECK_ALL_TYPES.
93290         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
93291         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
93292         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
93293         The check for ssize_t was mistakenly run before the test for unistd.h.
93294
93295         The configure-time check for stdbool.h was missing.
93296         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
93297         (jm_PREREQ_HASH): New function.
93298
93299 2001-01-17  Jim Meyering  <meyering@lucent.com>
93300
93301         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
93302         for autoconf-2.49c.
93303         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
93304
93305 2001-01-16  Jim Meyering  <meyering@lucent.com>
93306
93307         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
93308         From Bruno Haible.
93309
93310 2001-01-14  Jim Meyering  <meyering@lucent.com>
93311
93312         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
93313         foo and bar.  Create conftestdir/ in the script, not in the C code.
93314         Remove directories in the script, not in the C code.
93315         Remove conftestdir{,2} before trying to create the directory.
93316         Make the entire configure script fail if the mkdir fails.
93317
93318 2001-01-14  Jim Meyering  <meyering@lucent.com>
93319
93320         * lib/rename.c: New file.  From Volker Borchert.
93321         Include stdlib.h, string.h or strings.h, and xalloc.h.
93322         Use strip_trailing_slashes rather than open-coding it.
93323
93324 2001-01-03  Paul Eggert  <eggert@twinsun.com>
93325
93326         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
93327
93328 2001-01-03  Jim Meyering  <meyering@lucent.com>
93329
93330         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
93331         of local `inptr' to avoid warning with some system declarations of
93332         iconv.
93333
93334 2001-01-02  Volker Borchert  <bt@teknon.de>
93335
93336         * m4/rename.m4: New file.
93337         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
93338
93339 2001-01-01  Jim Meyering  <meyering@lucent.com>
93340
93341         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
93342         even on systems with utmpx.h.  It's necessary for the declaration of
93343         utmp's ut_user member.  Reported by Andreas Jaeger.
93344
93345         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
93346         available. They are required for the declarations of getgrgid and
93347         getpwuid resp.
93348         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
93349         Reported by Andreas Jaeger.
93350
93351 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
93352
93353         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
93354         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
93355         so `make install' also works in VPATH builds.
93356
93357 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
93358
93359         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
93360         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
93361         can be used in subdirectories.
93362
93363 2000-12-29  Paul Eggert  <eggert@twinsun.com>
93364
93365         * lib/modechange.c: Do not assume that mode_t uses the
93366         traditional octal encoding.  E.g. "chmod 1 FOO" should set
93367         the other-execute bit of FOO even if S_IXOTH != 1.
93368
93369         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
93370         WOTH, XOTH, ALLM): New macros.
93371         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
93372          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
93373         Use them.
93374         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
93375         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
93376         (mode_compile):
93377         No need to use uintmax_t; unsigned long is long enough.
93378         Don't bother to get suffix since we don't use it.
93379
93380 2000-12-26  Jim Meyering  <meyering@lucent.com>
93381
93382         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
93383         better with autoheader.
93384
93385 2000-12-24  Jim Meyering  <meyering@lucent.com>
93386
93387         * lib/hash.c (is_prime): Return explicit boolean values.
93388         (hash_get_first): Return NULL to appease Irix5.6's 89.
93389         Reported by Nelson Beebe.
93390
93391 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
93392
93393         * lib/localcharset.c (locale_charset): Add support for Win32.
93394
93395 2000-12-18  Paul Eggert  <eggert@twinsun.com>
93396
93397         * lib/physmem.h, lib/physmem.c: New files.
93398
93399         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
93400         (noinst_HEADERS): Add physmem.h.
93401
93402         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
93403         't' for compatibility with Solaris 8 sort.
93404
93405 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
93406
93407         * lib/config.charset: Add support for BeOS.
93408
93409 2000-12-17  Jim Meyering  <meyering@lucent.com>
93410
93411         * m4/dos.m4 (jm_AC_DOS): New file and macro.
93412         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
93413
93414 2000-12-16  Jim Meyering  <meyering@lucent.com>
93415
93416         This bug had a serious impact on chown: `chown N:M FILE' (for integer
93417         N and M) would have treated it like `chown N:N FILE'.
93418
93419         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
93420
93421 2000-12-16  Jim Meyering  <meyering@lucent.com>
93422
93423         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
93424         SHELLS_FILE to a file name that's useful on djgpp systems.
93425         Include stdlib.h.
93426         (ADDITIONAL_DEFAULT_SHELLS): Define.
93427         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
93428         Based mostly on a patch from Prashant TR.
93429
93430 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
93431
93432         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
93433         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
93434         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
93435
93436 2000-12-08  Andreas Schwab  <schwab@suse.de>
93437
93438         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
93439         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
93440
93441 2000-12-07  Jim Meyering  <meyering@lucent.com>
93442
93443         * lib/stripslash.c (ISSLASH): Define.
93444         (strip_trailing_slashes): Use ISSLASH rather than comparing against
93445         `/'.
93446         From Prashant TR.
93447
93448         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
93449         (dir_name_r): Declare this function as static.
93450         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
93451         manifest itself on a name containing a mix of slashes and
93452         backslashes.
93453         Make this function work with names starting with a DOS-style
93454         drive letter and colon prefix.
93455         (dir_name): Append `.' if necessary.
93456         Based mostly on patches from Prashant TR and Eli Zaretskii.
93457
93458         * lib/dirname.h (dir_name_r): Remove prototype.
93459
93460 2000-12-06  Paul Eggert  <eggert@twinsun.com>
93461
93462         * m4/off_t-format.m4: Remove this file.
93463         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
93464
93465 2000-12-06  Jim Meyering  <meyering@lucent.com>
93466
93467         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
93468         replacement strtoull, we may well need the replacement strtoul, too.
93469         Check for declarations of strtoul and strtoull.
93470         Check for strtol.  Mainly as a cue to cause automake to include
93471         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
93472         Check for limits.h -- strtol.c needs it.
93473
93474 2000-12-05  Jim Meyering  <meyering@lucent.com>
93475
93476         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
93477
93478 2000-12-04  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
93481         Also include memory.h, stdlib.h, unistd.h if appropriate.
93482         Reported by Andreas Jaeger (conflicting declaration of malloc).
93483
93484 2000-12-02  Jim Meyering  <meyering@lucent.com>
93485
93486         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
93487         * m4/jm-macros.m4 (jm_MACROS): require it.
93488
93489 2000-12-02  Jim Meyering  <meyering@lucent.com>
93490
93491         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
93492
93493 2000-12-01  Paul Eggert  <eggert@twinsun.com>
93494
93495         * lib/memrchr.c: Include <config.h> before any system include file.
93496
93497 2000-11-30  Jim Meyering  <meyering@lucent.com>
93498
93499         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
93500
93501 2000-11-30  Jim Meyering  <meyering@lucent.com>
93502
93503         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
93504
93505 2000-11-29  Paul Eggert  <eggert@twinsun.com>
93506
93507         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
93508
93509 2000-11-26  Jim Meyering  <meyering@lucent.com>
93510
93511         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
93512
93513 2000-11-22  Paul Eggert  <eggert@twinsun.com>
93514
93515         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
93516         size of (size_t) -1; it's not portable.
93517
93518 2000-11-17  Jim Meyering  <meyering@lucent.com>
93519
93520         * lib/strstr.c: Update from GNU libc.
93521
93522 2000-11-17  Akim Demaille  <akim@epita.fr>
93523
93524         * lib/obstack.h: Formatting changes.
93525         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
93526         prevent type checking.
93527         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
93528         cast the value to (void *): assigning a `foo *' to a `void *'
93529         variable is valid.
93530         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
93531
93532 2000-11-16  Jim Meyering  <meyering@lucent.com>
93533
93534         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
93535
93536 2000-11-11  Jim Meyering  <meyering@lucent.com>
93537
93538         * lib/error.c: Add a couple #includes, merging from GNU libc version.
93539
93540 2000-11-10  Jim Meyering  <meyering@lucent.com>
93541
93542         * lib/obstack.h: Update from GNU libc.
93543         * lib/obstack.c: Likewise.
93544
93545 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
93546
93547         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
93548
93549 2000-11-06  Paul Eggert  <eggert@twinsun.com>
93550
93551         * lib/getusershell.c (setusershell): Use rewind rather than
93552         fseek/fseeko, to avoid configuration hassles with fseeko.
93553         Don't bother opening SHELLS_FILE if shellstream is NULL;
93554         it's not necessary.
93555
93556 2000-11-05  Jim Meyering  <meyering@lucent.com>
93557
93558         * lib/makepath.h (make_dir): Declare.
93559         * lib/makepath.c (make_dir): Remove `static' attribute.
93560         Tweak a comment.
93561
93562 2000-11-04  Jim Meyering  <meyering@lucent.com>
93563
93564         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
93565
93566 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
93567
93568         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
93569         last one in a bucket, advance to the next bucket.
93570
93571 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
93572
93573         * lib/fnmatch.c: Do not comment out all the code if we are using
93574         the GNU C library, because in some cases we are replacing buggy
93575         code in the GNU C library itself.
93576
93577 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
93578
93579         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
93580         (regex_compile): Catch bogus \(\1\).
93581
93582 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93583
93584         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
93585         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
93586         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
93587
93588 2000-10-30  Paul Eggert  <eggert@twinsun.com>
93589
93590         * lib/error.h, getline.h, modechange.h:
93591         Remove "2000" from Copyright line, as the file hasn't been
93592         changed this year other than in the copyright notice.
93593
93594         * lib/xalloc.h: Add "2000" to Copyright line, as this file
93595         was changed this year.
93596
93597 2000-10-29  Jim Meyering  <meyering@lucent.com>
93598
93599         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
93600         renaming.
93601         * m4/ls-mntd-fs.m4: Likewise
93602
93603 2000-10-29  Jim Meyering  <meyering@lucent.com>
93604
93605         * lib/xstat.in: Fix grammar in comment.
93606
93607 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
93608
93609         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
93610         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
93611         doesn't define __restrict_arr.
93612
93613 2000-10-28  Jim Meyering  <meyering@lucent.com>
93614
93615         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
93616         (jm_PREREQ_MEMCHR): New function.
93617
93618 2000-10-28  Jim Meyering  <meyering@lucent.com>
93619
93620         * lib/memchr.c: Update from libc.
93621         Adjust for portability:
93622         [HAVE_STDLIB_H]: Include stdlib.h.
93623         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
93624         Undef __memchr, too.
93625         [!weak_alias]: Define __memchr to memchr.
93626
93627         * lib/regex.c: Update from libc.
93628         * lib/regex.h: Likewise.
93629         * lib/getopt1.c: Likewise.
93630         * lib/memcmp.c: Likewise.
93631
93632         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
93633         Avoid using fseek, when possible -- it's broken by design.
93634         Patch by Ulrich Drepper.
93635
93636 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
93637
93638         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
93639         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
93640         Giving in to popular pressure to shut up the compiler with casts.
93641
93642 2000-10-26  Jim Meyering  <meyering@lucent.com>
93643
93644         * lib/strftime.c: Update from libc.
93645
93646 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
93647
93648         * regex.c: More `unsigned char' -> `re_char' changes.
93649         Also change several `int' into `re_wchar_t'.
93650         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
93651         (PUSH_FAILURE_POINTER): Don't cast any more.
93652         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
93653         We want GCC to complain, since this piece of code makes
93654         re_match non-reentrant, which *should* be fixed.
93655         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
93656         (EXTEND_BUFFER): Use RETALLOC.
93657         (SET_LIST_BIT): Don't cast.
93658         (re_wchar_t): New type.
93659         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
93660         that those two functions will always properly return.
93661         (IMMEDIATE_QUIT_CHECK): Cast to void.
93662         (analyse_first): Use recursion rather than an explicit stack.
93663         (re_compile_fastmap): Can't fail anymore.
93664         (re_search_2): Don't check re_compile_fastmap for failure.
93665         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
93666         Now also sets the new value (passed in a new argument).
93667         (re_match_2_internal): Use it.
93668         Also, use a new var `reg' of type size_t when looping through regs
93669         rather than reuse the inappropriate `mcnt'.
93670
93671 2000-10-25  Jim Meyering  <meyering@lucent.com>
93672
93673         * lib/obstack.c: Update from libc.
93674
93675 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
93676
93677         * regex.c (regex_compile): Change the way of handling a range from
93678         a char less than 256 to a char not less than 256.
93679
93680 2000-10-24  Andrew Innes  <andrewi@gnu.org>
93681
93682         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
93683         NT-Emacs only.
93684         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
93685         so that re_search functions only quit when callers expect them to.
93686
93687 2000-10-23  Jim Meyering  <meyering@lucent.com>
93688
93689         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
93690         wrong.  That set_locale call must not have any side effects.
93691         From Paul Eggert.
93692
93693 2000-10-22  Jim Meyering  <meyering@lucent.com>
93694
93695         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
93696         [CYCLIC]: Remove now-unused definition.
93697
93698         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
93699         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
93700         Suggestion from Ulrich Drepper.
93701
93702 2000-10-21  Jim Meyering  <meyering@lucent.com>
93703
93704         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
93705         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
93706         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
93707
93708 2000-10-21  Jim Meyering  <meyering@lucent.com>
93709
93710         * lib/dirname.c (memrchr): Declare if necessary.
93711         (dir_name): Remove the restriction that there be no
93712         trailing slashes.  Now, this code skips past them, effectively
93713         ignoring them.
93714         [TEST_DIRNAME] (main): New unit tests.
93715
93716         * lib/memrchr.c: New file from GNU libc.
93717         Undef __memrchr, too.
93718         [!weak_alias]: Define __memrchr to memrchr.
93719         Guard weak_alias use with `#ifdef weak_alias'.
93720
93721 2000-10-21  Jim Meyering  <meyering@lucent.com>
93722
93723         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
93724         (dir_name): Use dir_name_r.
93725         * lib/dirname.h (dir_name_r): Declare it.
93726
93727 2000-10-17  Jim Meyering  <meyering@lucent.com>
93728
93729         * lib/quote.h (PARAMS): Define and use.
93730         Reported by Akim Demaille.
93731
93732         * lib/getopt.c: Update from libc.
93733
93734 2000-10-16  Jim Meyering  <meyering@lucent.com>
93735
93736         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
93737         setlocale.
93738         From Jan Fedak.
93739
93740 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
93741
93742         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
93743
93744 2000-09-25  Jim Meyering  <meyering@lucent.com>
93745
93746         * lib/md5.h (rol): Define (from GnuPG).
93747
93748         * lib/sha.c: Give credit (GnuPG) where due.
93749         (M): Use rol rather than open-coding it.
93750         Add a FIXME comment.
93751
93752 2000-09-21  Jim Meyering  <meyering@lucent.com>
93753
93754         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
93755         Reported by Michael Stone.
93756
93757 2000-09-20  Jim Meyering  <meyering@lucent.com>
93758
93759         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
93760         (noinst_HEADERS): Add sha.h.
93761         Based on code from Scott G. Miller and from GnuPG.
93762
93763 2000-09-18  Jim Meyering  <meyering@lucent.com>
93764
93765         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
93766         LIBS. Otherwise, everyone ends up linking with -lelf for some
93767         configurations.
93768         Reported by Mike Stone.
93769
93770 2000-09-15  Jim Meyering  <meyering@lucent.com>
93771
93772         * lib/regex.c: Update from libc.
93773
93774 2000-09-10  Jim Meyering  <meyering@lucent.com>
93775
93776         * lib/getopt.c (_getopt_internal): Update from glibc.
93777
93778 2000-09-09  Jim Meyering  <meyering@lucent.com>
93779
93780         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
93781         think it should be used as a general replacement for isascii.
93782         * lib/fnmatch.c: Likewise.
93783         * lib/mbswidth.c: Likewise
93784         * lib/regex.c: Likewise.
93785
93786         Don't use atoi.
93787         * lib/userspec.c: Include sys/param.h and limits.h.
93788         Include xstrtol.h.
93789         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93790         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
93791         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
93792         UID, GID.  Check range.
93793
93794 2000-09-06  Jim Meyering  <meyering@lucent.com>
93795
93796         * lib/getopt.c (_getopt_internal): Update from glibc.
93797
93798 2000-08-30  Jim Meyering  <meyering@lucent.com>
93799
93800         * lib/strftime.c: Merge in changes from GNU libc.
93801
93802 2000-08-26  Jim Meyering  <meyering@lucent.com>
93803
93804         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
93805         * m4/fpending.m4: New file.
93806
93807 2000-08-26  Jim Meyering  <meyering@lucent.com>
93808
93809         * lib/closeout.c: Include "__fpending.h".
93810         (close_stdout_status): Return right away if there's nothing to flush.
93811
93812         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93813         * lib/__fpending.c: New file.
93814         * lib/__fpending.h: New file.
93815
93816 2000-08-20  Jim Meyering  <meyering@lucent.com>
93817
93818         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93819         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93820         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93821
93822 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93823
93824         Improve fileutils installation on systems where running
93825         programs (like install) can't be unlinked.
93826         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93827         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93828
93829 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93830
93831         Standardize on "memory exhausted" instead of "Memory exhausted"
93832         or "virtual memory exhausted".
93833         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93834         "virtual memory exhausted".
93835         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93836         our own message.
93837         * lib/userspec.c (parse_user_spec): Likewise.
93838         * lib/bumpalloc.h: comment fix
93839         * lib/same.c, userspec.c: Include xalloc.h.
93840
93841         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93842         not char *const and pointing to a constant array.
93843         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93844         (xrealloc): Comment fix.
93845
93846         * lib/userspec.c (parse_user_spec):
93847         Don't translate a message until just before returning,
93848         to avoid unnecessary translation.
93849
93850 2000-08-07  Jim Meyering  <meyering@lucent.com>
93851
93852         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93853         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93854         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93855         getgroups.c, gethostname.c, getopt.h, group-member.c,
93856         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93857         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93858         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93859         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93860         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93861         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93862         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93863         yesno.c: Back out Copyright date changes for each file with no change
93864         this year.  This eases coordination with other programs using the same
93865         source code modules.  From Paul Eggert.
93866
93867 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93868
93869         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93870         not char, for compatibility with glibc 2.1.3 strftime.c.
93871
93872 2000-08-03  Greg McGary  <greg@mcgary.org>
93873
93874         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93875         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93876         (EXTEND_BUFFER): Use them.
93877
93878 2000-08-01  Jim Meyering  <meyering@lucent.com>
93879
93880         * lib/dirname.c (ISSLASH): Define.
93881         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93882         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93883         both `\' and `/' may be use as path separators.
93884         Based on a patch from Prashant TR.
93885
93886 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93887
93888         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93889         slot vector a constant, since it might get modified.
93890
93891 2000-07-31  Jim Meyering  <meyering@lucent.com>
93892
93893         * lib/xmalloc.c: Use `virtual memory exhausted', not
93894         `Memory exhausted'.
93895         * lib/obstack.c (print_and_abort): Likewise.
93896
93897 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93898
93899         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93900         buffer, so that the caller can always quote one small
93901         component of a "memory exhausted" message in slot 0.
93902         From a suggestion by Jim Meyering.
93903
93904 2000-07-30  Jim Meyering  <meyering@lucent.com>
93905
93906         * lib/makepath.c (make_path): Quote the other instance, too.
93907
93908         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93909         (STATIC_BUF_SIZE): Define.
93910         (quotearg_n_options): Use only statically allocated storage when
93911         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93912         than STATIC_BUF_SIZE.
93913
93914 2000-07-29  Jim Meyering  <meyering@lucent.com>
93915
93916         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93917         * lib/dirname.c (dir_name): Likewise.
93918
93919         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93920         `/'.
93921
93922         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93923         (dir_name): Assert that there are no trailing slashes.
93924
93925 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93926
93927         * lib/mbswidth.h (mbswidth): Add a flags argument.
93928         (mbswidth): New declaration.
93929         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93930         * lib/mbswidth.c (mbswidth): Add a flags argument.
93931         (mbsnwidth): New function.
93932
93933 2000-07-24  Jim Meyering  <meyering@lucent.com>
93934
93935         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93936
93937 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93938
93939         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93940
93941 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93942
93943         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93944         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93945         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93946         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93947         invoke multibyte primitives.
93948
93949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93950
93951         * lib/quotearg.c:
93952         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93953         so that mbstate_t is always defined.
93954
93955         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93956         be 1 in at least one GCC installation, and this configuration
93957         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93958         performance on hosts that have mbrtowc but have only unibyte
93959         locales, but I assume these hosts are rare.
93960
93961 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93962
93963         * lib/mbswidth.c (_XOPEN_SOURCE):
93964         Don't define; this causes problems on Solaris 7.
93965         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93966
93967 2000-07-23  Jim Meyering  <meyering@lucent.com>
93968
93969         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93970         too: getgrgid, getpwuid, getuid.
93971
93972 2000-07-23  Jim Meyering  <meyering@lucent.com>
93973
93974         * lib/basename.c (base_name): Add an assertion.
93975
93976 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93977
93978         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93979         shadow its mbsinit function.
93980
93981 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93982
93983         * lib/mbswidth.h: New file.
93984         * lib/mbswidth.c: New file.
93985         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93986         (noinst_HEADERS): Add mbswidth.h.
93987
93988 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93989
93990         * lib/config.charset: Add support for FreeBSD. Improve support for
93991         HP-UX and IRIX 6.
93992
93993 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93994
93995         * m4/mbswidth.m4: New file.
93996         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93997
93998 2000-07-15  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/makepath.c: Include quote.h.
94001         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
94002         corresponding argument in a `quote (...)' call.
94003         Give better diagnostics.
94004
94005         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
94006         (noinst_HEADERS): Add quote.h.
94007
94008         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
94009         from tar's src/misc.c.
94010         * lib/quote.h: New file.  Prototypes for same.
94011
94012 2000-07-14  Paul Eggert  <eggert@twinsun.com>
94013
94014         From a suggestion by Bruno Haible.
94015         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
94016         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
94017         to decide whether to define the BeOS workaround macro;
94018         this adjusts to the change to AC_MBSTATE_T.
94019
94020 2000-07-14  Jim Meyering  <meyering@lucent.com>
94021
94022         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
94023         jm_AC_TYPE_UINTMAX_T.
94024
94025 2000-07-13  Paul Eggert  <eggert@twinsun.com>
94026
94027         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
94028
94029         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
94030         quotearg_buffer_restyled): Add support for
94031         clocale_quoting_style.  Undo previous change to
94032         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
94033         and "{RIGHT QUOTATION MARK}" msgids.
94034
94035 2000-07-10  Paul Eggert  <eggert@twinsun.com>
94036
94037         From a suggestion by Bruno Haible.
94038         * m4/mbstate_t.m4 (AC_MBSTATE_T):
94039         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
94040         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
94041         and mbstate_t, to a single-part test that simply defines mbstate_t.
94042         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
94043         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
94044
94045 2000-07-10  Jim Meyering  <meyering@lucent.com>
94046
94047         * m4/strerror_r.m4: Mirror the correction made in autoconf.
94048
94049         * m4/gnu-source.m4: Output to confdefs.h directly.
94050         Suggestion from Akim Demaille.
94051
94052 2000-07-09  Paul Eggert  <eggert@twinsun.com>
94053
94054         The old behavior of quoting `like this' doesn't look good with
94055         newer, ISO-style fonts.  See:
94056         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
94057
94058         Instead, quote "like this" by default.  Let the translator
94059         tailor the locale-specific quoting behavior by providing
94060         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
94061
94062         * lib/quotearg.c (N_): New macro.
94063         (gettext_default): New function.
94064         (quotearg_buffer_restyled): Use
94065         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
94066         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
94067
94068 2000-07-09  Jim Meyering  <meyering@lucent.com>
94069
94070         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
94071         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
94072
94073         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
94074         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
94075
94076 2000-07-09  Jim Meyering  <meyering@lucent.com>
94077
94078         * lib/Most files: Update copyright dates to include 2000.
94079
94080 2000-07-08  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
94083         if not defined.
94084         (xgethostname): Remove now-unnecessary #ifdef.
94085         Move declaration of `err' into loop where it's used.
94086
94087 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94088         and Bruno Haible  <haible@clisp.cons.org>
94089
94090         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
94091         only if the test for an object-type mbstate_t fails.  This
94092         prevents us from mistakenly reporting that mbstate_t is a
94093         system object type after we "#define mbstate_t int" to work
94094         around its lack.
94095
94096 2000-07-05  Paul Eggert  <eggert@twinsun.com>
94097         and Bruno Haible  <haible@clisp.cons.org>
94098
94099         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
94100
94101 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94102
94103         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
94104         to strerror_r.
94105         Include <ctype.h> for use of isalpha.
94106
94107 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94108
94109         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
94110         by allocating a larger buffer. Test the gethostname return value for
94111         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
94112         returns an error and ENAMETOOLONG isn't defined.
94113
94114 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
94115
94116         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
94117         dimension.
94118
94119 2000-07-04  Jim Meyering  <meyering@lucent.com>
94120
94121         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
94122         of the deprecated AC_CHECKING.
94123
94124 2000-07-04  Jim Meyering  <meyering@lucent.com>
94125
94126         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
94127         Reported by Bruno Haible.
94128
94129 2000-07-04  Jim Meyering  <meyering@lucent.com>
94130
94131         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
94132         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
94133         lacks mbrtowc.
94134
94135 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94136
94137         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
94138         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
94139
94140 2000-07-03  Paul Eggert  <eggert@twinsun.com>
94141         and Bruno Haible  <haible@clisp.cons.org>
94142
94143         * lib/quotearg.c (mbrtowc):
94144         Assign to *pwc, and return 1 only if result is nonzero.
94145         (iswprint): Use ISPRINT when substituting our own mbrtowc.
94146
94147 2000-07-03  Jim Meyering  <meyering@lucent.com>
94148
94149         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
94150
94151 2000-07-03  Jim Meyering  <meyering@lucent.com>
94152
94153         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
94154         This is necessary to get a definition of e.g., UTMP_FILE on
94155         HP-UX 10.20.
94156         From Bob Proulx.
94157
94158 2000-07-02  Jim Meyering  <meyering@lucent.com>
94159
94160         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
94161
94162         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
94163         AC_LIBOBJ(function_name).
94164         * m4/chown.m4: Likewise.
94165         * m4/fnmatch.m4: Likewise.
94166         * m4/ftruncate.m4: Likewise.
94167         * m4/getgroups.m4: Likewise.
94168         * m4/getline.m4: Likewise.
94169         * m4/group-member.m4: Likewise.
94170         * m4/jm-macros.m4: Likewise.
94171         * m4/lstat.m4: Likewise.
94172         * m4/malloc.m4: Likewise.
94173         * m4/memcmp.m4: Likewise.
94174         * m4/nanosleep.m4: Likewise.
94175         * m4/putenv.m4: Likewise.
94176         * m4/realloc.m4: Likewise.
94177         * m4/regex.m4: Likewise.
94178         * m4/stat.m4: Likewise.
94179         * m4/strftime.m4: Likewise.
94180
94181 2000-07-02  Jim Meyering  <meyering@lucent.com>
94182
94183         * lib/quotearg.c (mbstate_t): Don't define here.
94184
94185 2000-07-02  Jim Meyering  <meyering@lucent.com>
94186
94187         * lib/nanosleep.c (SIGCONT): Define if not already defined.
94188
94189 2000-07-01  Jim Meyering  <meyering@lucent.com>
94190
94191         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
94192
94193 2000-07-01  Jim Meyering  <meyering@lucent.com>
94194
94195         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
94196         problem.
94197
94198 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94199
94200         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
94201         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
94202
94203 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
94204
94205         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
94206         per change in ../m4/ls-mntd-fs.m4.
94207         (read_filesystem_list): Ignore symbolic links.
94208
94209 2000-06-29  Jim Meyering  <meyering@lucent.com>
94210
94211         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
94212         for declaration of strcmp.
94213
94214         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
94215
94216         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
94217         Avoid warning by casting result to `char *' to remove `const'.
94218
94219 2000-06-28  Jim Meyering  <meyering@lucent.com>
94220
94221         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
94222         included by quotearg.c, for which we perform this test.  From
94223         Bruno Haible.
94224
94225 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94226
94227         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
94228         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
94229         <utmpx.h> exists, put readutmp.o into LIBOBJS.
94230
94231 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
94232
94233         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
94234
94235 2000-06-26  Paul Eggert  <eggert@twinsun.com>
94236
94237         savedir now sets errno on failure and invokes xmalloc to get memory.
94238         Fix a couple of other minor bugs while we're at it.
94239
94240         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
94241         (NAMLEN): Remove macro.
94242         (malloc, realloc): Remove decls.
94243         (stpcpy): Likewise.
94244         ("xalloc.h"): Include.
94245         (NAME_SIZE_DEFAULT): New macro.
94246         (savedir): Use xmalloc / xrealloc to allocate memory.
94247         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
94248         Skip "" directory entries.
94249         Use strlen to calculate directory entry length, since the old method
94250         is rarely used these days and isn't worth supporting.
94251         Don't use a pointer after freeing it.
94252         Check for integer overflow when calculating allocation size.
94253         Use memcpy to copy entries, instead of stpcpy.
94254         Set errno properly when returning NULL.
94255         Check for readdir error.
94256
94257 2000-06-26  Jim Meyering  <meyering@lucent.com>
94258
94259         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
94260
94261 2000-06-25  Jim Meyering  <meyering@lucent.com>
94262
94263         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
94264         Linux header bug when _XOPEN_SOURCE is defined to 500.
94265
94266 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94267
94268         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
94269         deficiency.
94270
94271 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
94272
94273         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
94274         Include xalloc.h.
94275         Don't include <stdlib.h>.  Don't declare malloc, realloc.
94276
94277 2000-06-24  Jim Meyering  <meyering@lucent.com>
94278
94279         * m4/strerror_r.m4: Revive this file -- to try out an experimental
94280         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
94281         for which strerror does return char*, but which lacks a conveniently
94282         accessible declaration of the function.  If the compile-test says
94283         strerror_r doesn't work, then resort to a `run'-test that works on
94284         BeOS and segfaults on DEC Unix.
94285
94286 2000-06-24  Jim Meyering  <meyering@lucent.com>
94287
94288         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
94289
94290 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94291
94292         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
94293         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
94294
94295 2000-06-23  Paul Eggert  <eggert@twinsun.com>
94296
94297         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
94298         (mbrtowc, mbstate_t): Define substitutes if
94299         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
94300         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
94301         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
94302
94303 2000-06-23  Jim Meyering  <meyering@lucent.com>
94304
94305         * m4/afs.m4: Add missing AC_MSG_RESULT.
94306         Reported by Bruno Haible.
94307
94308         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
94309         Suggestion from Bruno Haible.
94310
94311 2000-06-23  Jim Meyering  <meyering@lucent.com>
94312
94313         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
94314
94315 2000-06-21  Jim Meyering  <meyering@lucent.com>
94316
94317         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
94318
94319 2000-06-21  Jim Meyering  <meyering@lucent.com>
94320
94321         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
94322         (noinst_HEADERS): Add getstr.h.
94323
94324         * lib/getline.c (getstr): Move into a separate file.
94325         * lib/getstr.c (getstr): New file, extracted from getline.c, with
94326         the following changes: new parameter, delim2; both delim[12]
94327         parameters have type `int', not `char'.  The latter would lose
94328         with 8-bit delimiters.
94329         * lib/getstr.h: New file.
94330
94331 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94332
94333         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
94334         than 1024, return a memory chunk of least possible size, instead
94335         of size PATH_MAX + 2. In the loop, increment the size proportionally.
94336         Use free/xmalloc instead of xrealloc to avoid copying for very long
94337         paths.
94338
94339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94340
94341         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
94342         the empty string.
94343
94344 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
94345
94346         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
94347         address, not strdup.  Include <stdlib.h> and don't declare free().
94348
94349 2000-06-19  Jim Meyering  <meyering@lucent.com>
94350
94351         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
94352
94353 2000-06-18  Jim Meyering  <meyering@lucent.com>
94354
94355         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
94356
94357         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
94358         `checking whether...' message to be consistent with that of the
94359         lstat test.
94360
94361 2000-06-18  Jim Meyering  <meyering@lucent.com>
94362
94363         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
94364         Besides, these days every porting target provides a mkdir function.
94365
94366         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
94367         needed. (this snippet comes from src/system.h).
94368
94369 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
94370
94371         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
94372
94373 2000-06-15  Paul Eggert  <eggert@twinsun.com>
94374
94375         * lib/human.c (adjust_value): New function.
94376         (human_readable_inexact): Apply rounding style even when
94377         printing approximate values.
94378
94379 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94380
94381         * lib/human.c (human_readable_inexact): Allow an input block
94382         size that is not a multiple of the output block size, and vice versa.
94383         Reported by Piergiorgio Sartor.
94384
94385 2000-06-14  Paul Eggert  <eggert@twinsun.com>
94386
94387         * lib/getdate.y (get_date): Apply relative times after time
94388         zone indicator, not before.  Reported by Todd A. Jacobs.
94389
94390 2000-06-13  Jim Meyering  <meyering@lucent.com>
94391
94392         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
94393
94394         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
94395
94396 2000-06-12  Paul Eggert  <eggert@twinsun.com>
94397
94398         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
94399
94400 2000-06-12  Jim Meyering  <meyering@lucent.com>
94401
94402         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
94403         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
94404         optional argument.
94405         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
94406         the optional argument, `lib'.
94407
94408 2000-06-08  Jim Meyering  <meyering@lucent.com>
94409
94410         * m4/largefile.m4: Remove file (now that it's part of autoconf).
94411
94412 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94413
94414         Rewrite largefile configuration so that we don't need to run
94415         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
94416         AC_CANONICAL_HOST in configure.in -- jmm]
94417
94418         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
94419         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
94420         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
94421         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
94422         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
94423         All uses changed.
94424         Instead of inspecting the output of getconf, try to compile the
94425         test program without and with the macro definition.
94426         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
94427         for getconf.  Instead, check for the needed flags by compiling
94428         test programs.
94429
94430 2000-06-04  Paul Eggert  <eggert@twinsun.com>
94431
94432         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
94433
94434 2000-06-04  Jim Meyering  <meyering@lucent.com>
94435
94436         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
94437         SunOS 4.1.4 for which gid_t is an unsigned type.
94438
94439 2000-06-03  Jim Meyering  <meyering@lucent.com>
94440
94441         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
94442         now that autoconf requires that.
94443
94444         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
94445         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
94446         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
94447
94448 2000-06-03  Jim Meyering  <meyering@lucent.com>
94449
94450         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
94451
94452 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94453
94454         * m4/glibc21.m4: New file.
94455         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
94456
94457 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
94458
94459         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
94460         newer, don't install charset.alias.
94461         * lib/config.charset: Change the Linux/glibc rules so they become empty
94462         on glibc-2.1 or newer.
94463
94464 2000-06-02  Jim Meyering  <meyering@lucent.com>
94465
94466         * lib/mountlist.c: Back out last change.  Instead, do this...
94467         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
94468         me_dummy member using the same `ignore'-testing code.
94469         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
94470         fs_type strings.
94471         From Mark D. Roth.
94472
94473 2000-05-29  Jim Meyering  <meyering@lucent.com>
94474
94475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
94476         mounts with the `ignore' attribute.  Based on a patch from
94477         Mark D. Roth.
94478
94479 2000-05-28  Jim Meyering  <meyering@lucent.com>
94480
94481         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
94482         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94483         * m4/stat.m4: Likewise.
94484         * m4/lstat.m4: Likewise.
94485         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
94486
94487         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
94488         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
94489
94490 2000-05-26  Jim Meyering  <meyering@lucent.com>
94491
94492         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
94493
94494 2000-05-24  Jim Meyering  <meyering@lucent.com>
94495
94496         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
94497         autoconf requires that.
94498         * m4/lib-check.m4: Likewise.
94499         * m4/jm-macros.m4: Likewise.
94500         * m4/strftime.m4: Likewise.
94501
94502         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
94503         AC_CHECK_DECLS, now that autoconf requires that.
94504
94505 2000-05-22  Jim Meyering  <meyering@lucent.com>
94506
94507         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94508         * m4/lstat.m4: Likewise.
94509
94510 2000-05-22  Jim Meyering  <meyering@lucent.com>
94511
94512         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
94513
94514 2000-05-20  Jim Meyering  <meyering@lucent.com>
94515
94516         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
94517         (jm_PREREQ): Use it.
94518
94519 2000-05-18  Jim Meyering  <meyering@lucent.com>
94520
94521         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
94522         back, too, since it may have been modified by allocate_entry.
94523         (hash_delete): Rewrite to use neither the assignment operator
94524         nor the comma operator in an if-expression.
94525
94526 2000-05-15  Paul Eggert  <eggert@twinsun.com>
94527
94528         * lib/closeout.c:
94529         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
94530         Remove; no longer needed.
94531         "quotearg.h": Add include.
94532         (file_name): Do not bother to explicitly initialize to NULL; it's less
94533         efficient on some hosts.
94534         (close_stdout_status): Remove test as to whether stdout was already
94535         closed; it breaks for the case "echo x | sort >&-".
94536         Quote file name colons.
94537         Do not assume that _("write error") lacks format strings.
94538
94539 2000-05-15  Jim Meyering  <meyering@lucent.com>
94540
94541         * lib/version-etc.c (version_etc_copyright): Update the copyright
94542         string used in all --version output.
94543
94544 2000-05-14  Jim Meyering  <meyering@lucent.com>
94545
94546         * lib/closeout.c (close_stdout_set_file_name): New function.
94547         (close_stdout_status): Use new file-scoped global.
94548         Return right away if fstat says the stdout file descriptor is invalid.
94549         * lib/closeout.h (close_stdout_set_file_name): Declare.
94550
94551 2000-05-10  Jim Meyering  <meyering@lucent.com>
94552
94553         * lib/closeout.c [default_exit_status]: New file-scoped variable.
94554         (close_stdout_set_status): New function.
94555         * lib/closeout.h (close_stdout_set_status): Declare.
94556
94557 2000-05-09  Jim Meyering  <meyering@lucent.com>
94558
94559         * m4/gettext.m4: Rename this...
94560         * m4/libintl.m4: ...to this.
94561
94562 2000-05-08  Jim Meyering  <meyering@lucent.com>
94563
94564         * lib/long-options.c: Don't include closeout.h.
94565         (parse_long_options): Don't call close_stdout for --version.
94566
94567 2000-05-06  Paul Eggert  <eggert@twinsun.com>
94568
94569         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
94570         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
94571         2.1.3 bug.  This avoids a clash when files like regex.c define
94572         _GNU_SOURCE.
94573
94574 2000-05-06  Jim Meyering  <meyering@lucent.com>
94575
94576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
94577         (AC_REPLACE_FUNCS): Add strnlen.
94578
94579         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
94580         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
94581
94582         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
94583         AC_SEARCH_LIBS call for nanosleep.
94584         (LIB_NANOSLEEP): Set and AC_SUBST.
94585
94586 2000-05-06  Jim Meyering  <meyering@lucent.com>
94587
94588         * lib/strnlen.c: Undefine __strnlen and strnlen.
94589         [!weak_alias]: Define __strnlen to strnlen.
94590
94591         * lib/atexit.c: New file, from libiberty.
94592
94593 2000-05-06  Jim Meyering  <meyering@lucent.com>
94594
94595         * lib/closeout.c (close_stdout_status): Also check for errors on the
94596         stderr stream.
94597
94598 2000-05-05  Jim Meyering  <meyering@lucent.com>
94599
94600         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
94601         AC_SEARCH_LIBS call for clock_gettime.
94602         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
94603
94604         * m4/search-libs.m4: Update from autoconf.
94605
94606         su doesn't work on Solaris 2.6.
94607         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
94608         <shadow.h>.  Reported by Dragos Harabor.
94609
94610 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
94611
94612         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
94613         memcpy instead of xmalloc, xrealloc, path_concat.
94614         (locale_charset): Treat empty environment variables as absent.
94615         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
94616
94617 2000-05-04  Jim Meyering  <meyering@lucent.com>
94618
94619         * lib/getopt.c: Update from glibc.
94620         * lib/obstack.c: Likewise.
94621         * lib/obstack.h: Likewise.
94622         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
94623         file
94624
94625         * lib/regex.h: Likewise.
94626         * lib/strndup.c: Likewise.
94627         * lib/strnlen.c: New file, from glibc.
94628
94629 2000-05-03  Jim Meyering  <meyering@lucent.com>
94630
94631         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
94632
94633 2000-05-02  Paul Eggert  <eggert@twinsun.com>
94634
94635         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
94636         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
94637         compile-time test, rather than inspecting host and OS, to
94638         decide whether to define _LARGEFILE_SOURCE.
94639
94640 2000-05-01  Jim Meyering  <meyering@lucent.com>
94641
94642         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
94643
94644         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
94645         Based on a patch from Bruno Haible.
94646
94647 2000-05-01  Jim Meyering  <meyering@lucent.com>
94648
94649         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
94650
94651 2000-04-29  Jim Meyering  <meyering@lucent.com>
94652
94653         * lib/path-concat.c: Declare strdup only if it's not defined.
94654         * lib/canon-host.c: Likewise.
94655
94656 2000-04-28  Jim Meyering  <meyering@lucent.com>
94657
94658         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
94659         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
94660         is included first, then limits.h is included by locale.h by libintl.h.
94661         From John David Anglin.
94662
94663 2000-04-25  Jim Meyering  <meyering@lucent.com>
94664
94665         * lib/makepath.c (S_IRWXUGO): Define.
94666         (make_path): Always perform explicit chmod if MODE specifies any
94667         of the `special' permission bits.  Prompted by a bug report against
94668         install from Mate Wierdl and Joost van Baal.
94669
94670 2000-04-18  Jim Meyering  <meyering@lucent.com>
94671
94672         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
94673         (jm_PREREQ): Use it.
94674
94675 2000-04-18  Jim Meyering  <meyering@lucent.com>
94676
94677         * lib/README: New file.
94678
94679         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
94680         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
94681
94682 2000-04-17  Jim Meyering  <meyering@lucent.com>
94683
94684         Get it right :-)
94685         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
94686         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
94687         Suggestion from Akim Demaille.
94688
94689 2000-04-17  Jim Meyering  <meyering@lucent.com>
94690
94691         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
94692         the definition of it to rpl_strftime also defined-away the system's
94693         declaration.
94694
94695 2000-04-15  Jim Meyering  <meyering@lucent.com>
94696
94697         Use `C' to denote so-called `contiguous' files, the same way
94698         that tar does.
94699         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
94700         (ftypelet): Use S_ISCTG.
94701         From Michael Deutschmann.
94702
94703 2000-04-14  Jim Meyering  <meyering@lucent.com>
94704
94705         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
94706         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
94707         clobbered.
94708
94709 2000-04-14  Jim Meyering  <meyering@lucent.com>
94710
94711         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
94712
94713 2000-04-13  Jim Meyering  <meyering@lucent.com>
94714
94715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
94716         AH_VERBATIM to insert required #ifndef into config.h.in.
94717         Suggestion from Akim Demaille.
94718
94719 2000-04-12  Jim Meyering  <meyering@lucent.com>
94720
94721         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
94722         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
94723         Christian Krackowizer.
94724
94725         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
94726         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
94727         (AC_SYS_LARGEFILE): Require.
94728         (AM_C_PROTOTYPES): Require.
94729
94730 2000-04-08  Jim Meyering  <meyering@lucent.com>
94731
94732         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
94733         names don't conflict.  Reported by Eli Zaretskii.
94734
94735 2000-04-07  Jim Meyering  <meyering@lucent.com>
94736
94737         * lib/putenv.c: Move inclusion of errno.h so it follows that of
94738         sys/types.h, to work around system header problems on AIX 3.2.5.
94739         From Bruno Haible.
94740
94741 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
94742
94743         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
94744         bug.  Deal with the different error behavior of Irix iconv.
94745
94746 2000-04-05  Paul Eggert  <eggert@twinsun.com>
94747
94748         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
94749         IRIX if the installer said otherwise.
94750
94751 2000-04-05  Jim Meyering  <meyering@lucent.com>
94752
94753         Portability tweaks required for ultrix4.3.
94754         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
94755         (jm_CHECK_DECLS): Add getutent to the list of functions.
94756         (_jm_DECL_HEADERS): Add utmpx.h.
94757         From John David Anglin.
94758
94759         * m4/strftime.m4: Back out the 2000-04-02 change.
94760         Instead of that change, simply undefine putenv in the test program.
94761
94762 2000-04-05  Jim Meyering  <meyering@lucent.com>
94763
94764         Portability tweaks required for ultrix4.3.
94765         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
94766         getutent.
94767         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
94768         * lib/canon-host.c: Declare strdup.
94769         * lib/path-concat.c: Likewise.
94770         From John David Anglin.
94771
94772 2000-04-04  Jim Meyering  <meyering@lucent.com>
94773
94774         Be more DOS 8.3-friendly.
94775         * lib/ref-add.sin: Renamed from ref-add.sed.in.
94776         * lib/ref-del.sin: Renamed from ref-del.sed.in.
94777         * lib/Makefile.am: Reflect renaming.
94778         Reported by Eli Zaretskii.
94779
94780         Use a temporary file name that won't clash with `charset.alias'
94781         in the DOS 8.3 name space.
94782         * lib/Makefile.am (charset_tmp): Define.
94783         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
94784         (uninstall-local): Likewise.
94785         Reported by Eli Zaretskii.
94786
94787 2000-04-03  Jim Meyering  <meyering@lucent.com>
94788
94789         * m4/gettext.m4: Fix typo in comment.
94790
94791         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
94792         textutils/configure.in).  Suggestion from Paul Eggert.
94793         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
94794
94795 2000-04-02  Paul Eggert  <eggert@twinsun.com>
94796
94797         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
94798         variable in the shell rather than using putenv, which isn't
94799         portable.  This avoids the configure-time inter-test dependency
94800         on the potentially-renamed putenv function.
94801
94802 2000-03-30  Paul Eggert  <eggert@twinsun.com>
94803
94804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
94805         before checking struct stat.st_blksize, so that
94806         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
94807
94808 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94809
94810         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94811         since strftime.c uses HAVE_STRFTIME to decide whether to use
94812         the underlying strftime.
94813
94814 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94815
94816         * lib/time/strftime.c (my_strftime): Make sure we call the system
94817         strftime, not ourselves, when invoking the underlying strftime.
94818
94819 2000-03-24  Jim Meyering  <meyering@lucent.com>
94820
94821         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94822         (charset_alias): Define.
94823         (install-exec-local): Factor out common code.
94824         (uninstall-local): Split lines longer than 80.
94825         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94826         (SUFFIXES): Define.
94827         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94828         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94829
94830 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94831
94832         * lib/config.charset: Output a line containing "Packages using this
94833         file".
94834         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94835         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94836         ref-del.sed): New rules.
94837
94838 2000-03-17  Jim Meyering  <meyering@lucent.com>
94839
94840         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94841         Otherwise, include <strings.h>
94842
94843 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94844
94845         * lib/unicodeio.c (utf8_wctomb): New function.
94846         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94847         format instead of in UCS-4 with platform dependent endianness.
94848
94849 2000-03-10  Jim Meyering  <meyering@lucent.com>
94850
94851         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94852         From Marco Franzen.
94853
94854 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94855
94856         * lib/savedir.c (savedir): Work even if directory size is
94857         negative; this can happen with some screwy NFS configurations.
94858
94859 2000-03-06  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94862         if it's NULL (because we ran out of memory).  From Bruno Haible.
94863
94864 2000-03-05  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/localcharset.c ("path-concat.h"): Include.
94867         (get_charset_aliases): Use path_concat instead of ANSI string
94868         concatenation.
94869
94870         * lib/unicodeio.h (PARAMS): Define.
94871         Use it to guard prototype.
94872
94873 2000-03-04  Jim Meyering  <meyering@lucent.com>
94874
94875         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94876         for lib/localcharset.c.
94877
94878 2000-03-04  Jim Meyering  <meyering@lucent.com>
94879
94880         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94881         installing into it.
94882         (uninstall-local): Uncomment this rule so `make distcheck' works
94883         once again.
94884
94885         * lib/unicodeio.c (<errno.h>): Include it.
94886         (errno): Declare if not defined.
94887
94888         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94889
94890         * lib/config.charset: New version, incorporating remarks from a linux
94891         i18n mailing list.  From Bruno Haible.
94892
94893 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94894
94895         * m4/codeset.m4: New file.
94896         * m4/iconv.m4: New file.
94897         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94898
94899 2000-03-03  Jim Meyering  <meyering@lucent.com>
94900
94901         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94902
94903 2000-03-02  Jim Meyering  <meyering@lucent.com>
94904
94905         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94906         the messages come out on separate lines.
94907
94908         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94909         rather than jm_CHECK_DECLARATIONS.
94910         * m4/decl.m4: Remove now-unused file.
94911
94912         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94913         geteuid.
94914
94915 2000-03-02  Jim Meyering  <meyering@lucent.com>
94916
94917         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94918
94919 2000-03-01  Jim Meyering  <meyering@lucent.com>
94920
94921         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94922         * lib/unicodeio.c: Likewise.
94923
94924 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94925
94926         * lib/config.charset: New file.
94927         * lib/localcharset.c: New file.
94928         * lib/unicodeio.h, lib/unicodeio.c: New files.
94929         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94930         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94931         (noinst_HEADERS): Add unicodeio.h.
94932         (all-local, install-exec-local, charset.alias): New targets.
94933
94934 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94935
94936         * lib/quotearg.c (ALERT_CHAR): New macro.
94937         (quotearg_buffer_restyled): Use it.
94938
94939 2000-02-27  Jim Meyering  <meyering@lucent.com>
94940
94941         * m4/check-decl.m4: Add getenv to the list.
94942
94943 2000-02-27  Jim Meyering  <meyering@lucent.com>
94944
94945         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94946         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94947
94948         * lib/backupfile.c: Guard inclusion of stdlib.h with
94949         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94950         Declare malloc if needed.
94951
94952         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94953         `#ifndef HAVE_DECL..'
94954         now that autoconf always defines the HAVE_DECL_ symbols.
94955         * lib/human.c: Likewise.
94956         * lib/same.c: Likewise.
94957         * lib/strtoumax.c: Likewise.
94958
94959         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94960         declaration check was not run.
94961         * lib/hash.c: Likewise.
94962         * lib/human.c: Likewise.
94963         * lib/same.c: Likewise.
94964         * lib/strtoumax.c: Likewise.
94965
94966         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94967         `.', then first look up the entire `.'-containing string as a login
94968         name.
94969
94970 2000-02-23  Jim Meyering  <meyering@lucent.com>
94971
94972         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94973         in place of my hack.
94974
94975 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94976
94977         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94978         (textint): New typedef.
94979         (parser_control): Member year changed from int to textint.
94980         All uses changed.
94981         (YYSTYPE): Removed; replaced by %union with int and textint members.
94982         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94983         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94984         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94985         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94986         (date, number, to_year): Use width of number in digits, not its value,
94987         to determine whether it's a 2-digit year, or a 2-digit time.
94988         (yylex): Store number of digits of numeric tokens.
94989         Reported by John Kendall.
94990
94991         (parser_control): Changed from struct parser_control to typedef (for
94992         consistency).  All uses changed.
94993
94994         (tID): Removed; not used.
94995         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94996
94997 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94998
94999         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
95000         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
95001
95002 2000-02-12  Jim Meyering  <meyering@lucent.com>
95003
95004         * lib/userspec.c (ISDIGIT): Define it.
95005         (isdigit): Remove definition.
95006         (is_number): Use ISDIGIT, not isdigit.
95007         <libintl.h>: Include.
95008         (_ and N_): Define.
95009         (parse_user_spec): Mark translatable strings.
95010
95011 2000-02-10  Jim Meyering  <meyering@lucent.com>
95012
95013         With these changes, nanosleep.[ch] are finally enough like the other
95014         lib/* replacement files to compile on a few more losing systems.
95015
95016         * lib/nanosleep.h: Don't include config.h.
95017         Remove prototype from declaration of nanosleep.
95018         (PARAMS): Remove now-unneeded definition.
95019         * lib/nanosleep.c: #undef nanosleep.
95020         (rpl_nanosleep): Rename from nanosleep.
95021
95022 2000-02-10  Jim Meyering  <meyering@lucent.com>
95023
95024         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
95025         gnu_nanosleep to rpl_nanosleep.
95026
95027 2000-02-09  Jim Meyering  <meyering@lucent.com>
95028
95029         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
95030         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
95031
95032 2000-02-08  Akim Demaille  <akim@epita.fr>
95033
95034         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
95035         `[' and `]' and remove uses of `changequote'.
95036         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
95037         (AC_SYS_LARGEFILE): Likewise.
95038         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
95039         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
95040         of changequote.
95041         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
95042         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
95043         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
95044         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
95045
95046 2000-02-05  Jim Meyering  <meyering@lucent.com>
95047
95048         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
95049         Remove explicit use of AC_HEADER_TIME.  It is required by
95050         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
95051         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
95052         in autoconf whereby the expansion of the latter ended up preceding
95053         the expansion of its prerequisite, AC_HEADER_TIME.
95054         Reported by Volker Borchert.
95055
95056 2000-02-03  Jim Meyering  <meyering@lucent.com>
95057
95058         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
95059
95060 2000-02-03  Jim Meyering  <meyering@lucent.com>
95061
95062         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
95063         rather than with `#if HAVE_UTMPNAME'.
95064
95065 2000-02-02  Jim Meyering  <meyering@lucent.com>
95066
95067         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
95068         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
95069         Reported by Eli Zaretskii.
95070
95071 2000-02-01  Jim Meyering  <meyering@lucent.com>
95072
95073         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
95074
95075 2000-01-31  Jim Meyering  <meyering@lucent.com>
95076
95077         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
95078         functions.  Add the time.h and sys/time.h headers along with the
95079         AC_REQUIRE'ment of AC_HEADER_TIME.
95080
95081 2000-01-31  Jim Meyering  <meyering@lucent.com>
95082
95083         * lib/nanosleep.h (nanosleep): Guard declaration with
95084         `#if ! HAVE_DECL_NANOSLEEP'.
95085         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
95086         the declaration in that vendor's sys/timers.h.
95087         Reported by Christian Krackowizer.
95088
95089         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
95090         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
95091         (ISPRINT): Likewise.
95092         Reported by Tom Tromey.
95093
95094 2000-01-30  Jim Meyering  <meyering@lucent.com>
95095
95096         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
95097
95098         * m4/prereq.m4 (utmp_includes): Define.
95099         Check for ut_user and ut_name members in both struct utmpx
95100         and struct utmp.
95101
95102 2000-01-30  Jim Meyering  <meyering@lucent.com>
95103
95104         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
95105         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
95106         header files where only utmpx.ut_user is declared.
95107
95108         * lib/readutmp.h (UT_USER): Define.
95109
95110 2000-01-29  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/lib-check.m4: New file containing library-related checks from
95113         fileutils and sh-utils (textutils had none).
95114
95115 2000-01-28  Jim Meyering  <meyering@lucent.com>
95116
95117         * m4/perl.m4: Change format of warning message to look more like that
95118         from the missing script.  Suggestion from François Pinard.
95119
95120 2000-01-25  Jim Meyering  <meyering@lucent.com>
95121
95122         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
95123         well as time.h in the compile check.
95124         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
95125         Fix typo in cross-compiling case: s/yes/no/.
95126
95127 2000-01-23  Jim Meyering  <meyering@lucent.com>
95128
95129         * m4/jm-macros.m4: Move df-related tests here from
95130         fileutils/configure.in
95131
95132         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
95133         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
95134
95135         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
95136         s/space/ac_fsusage_space/.
95137         (jm_FILE_SYSTEM_USAGE): Take two parameters.
95138
95139         * m4/ftruncate.m4: New file (derived from part of
95140         fileutils/configure.in).
95141         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
95142         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
95143
95144         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
95145         AC_SUBST these here, rather than just in sh-util/configure.in, so
95146         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
95147         all the same.
95148         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
95149         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
95150         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
95151         (AC_SUBST(POW_LIBM)): Likewise.
95152         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
95153
95154 2000-01-23  Jim Meyering  <meyering@lucent.com>
95155
95156         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
95157         obstack.c.
95158
95159 2000-01-22  Jim Meyering  <meyering@lucent.com>
95160
95161         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
95162
95163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
95164
95165         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
95166         configure.in
95167         (AC_CHECK_HEADERS): Likewise for sh-utils.
95168         (AC_CHECK_HEADERS): Likewise for textutils.
95169         Merge the three lists of headers.
95170
95171         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
95172         from fileutils' configure.in.
95173
95174         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
95175         code. Moved tests into their own function (_jm_DECL_HEADERS) in
95176         check-decl.m4.
95177
95178         * m4/check-decl.m4: Use #if rather than #ifdef.
95179         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
95180         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
95181         (_jm_DECL_HEADERS): Define new function.
95182         (jm_CHECK_DECLARATIONS): Require it.
95183
95184 2000-01-22  Jim Meyering  <meyering@lucent.com>
95185
95186         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
95187         [! HAVE_DECL_STRTOULL]: Declare strtoull.
95188         Required for some AIX systems.  Reported by Christian Krackowizer.
95189         [TESTING] (main): New function.
95190
95191         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
95192         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
95193         letters.
95194
95195         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
95196         iswprint.
95197
95198         * lib/strverscmp.c (ISDIGIT): Define.
95199         (strverscmp): Use ISDIGIT, not isdigit.
95200
95201 2000-01-19  Jim Meyering  <meyering@lucent.com>
95202
95203         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
95204         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
95205         defines `struct timespec' in <sys/time.h>
95206
95207         * m4/c-bs-a.m4: Remove uses of changequote altogether.
95208         Thanks to Akim for explaining.
95209
95210 2000-01-17  Paul Eggert  <eggert@twinsun.com>
95211
95212         * lib/nanosleep.c (nanosleep):
95213         Don't use SA_INTERRUPT to decide whether to call sigaction, as
95214         POSIX.1 doesn't require SA_INTERRUPT and some systems
95215         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
95216         it's been part of POSIX.1 since day 1 (in 1988).
95217
95218 2000-01-17  Jim Meyering  <meyering@lucent.com>
95219
95220         * lib/interlock: Remove unused file.  Reported by François Pinard.
95221
95222 2000-01-16  Paul Eggert  <eggert@twinsun.com>
95223
95224         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
95225         alert, backslash, formfeed, and vertical tab unnecessarily in
95226         shell quoting style.
95227
95228 2000-01-16  Jim Meyering  <meyering@lucent.com>
95229
95230         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
95231         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
95232         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
95233         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
95234
95235 2000-01-16  Jim Meyering  <meyering@lucent.com>
95236
95237         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
95238         because the latter didn't work.
95239
95240 2000-01-15  Jim Meyering  <meyering@lucent.com>
95241
95242         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
95243         (AC_REPLACE_FUNCS): Add memcpy and memset.
95244         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
95245         Add strpbrk.
95246         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
95247
95248 2000-01-12  Jim Meyering  <meyering@lucent.com>
95249
95250         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
95251         (jm_PREREQ): Use it.
95252         (jm_PREREQ_READUTMP): New macro.
95253         (jm_PREREQ): Use it.
95254
95255 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95256
95257         Quote multibyte characters correctly.
95258         * m4/c-bs-a.m4: New file.
95259         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
95260         (jm_PREREQ): Use it.
95261
95262 2000-01-11  Paul Eggert  <eggert@twinsun.com>
95263
95264         * m4/uintmax_t.m4: Port to autoconf 2.13.
95265
95266 2000-01-08  Jim Meyering  <meyering@ascend.com>
95267
95268         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
95269         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
95270
95271 2000-01-04  Jim Meyering  <meyering@ascend.com>
95272
95273         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
95274         jm_STRUCT_DIRENT_D_TYPE.
95275         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
95276         jm_STRUCT_DIRENT_D_INO.
95277         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
95278         jm_STRUCT_UTIMBUF.
95279         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
95280         renamings.
95281         * m4/utime.m4: Likewise.
95282
95283         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
95284         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
95285
95286 2000-01-03  Paul Eggert  <eggert@twinsun.com>
95287
95288         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
95289         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
95290
95291 2000-01-02  Jim Meyering  <meyering@ascend.com>
95292
95293         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
95294         remember if this is necessary.
95295
95296 1999-12-26  Jim Meyering  <meyering@ascend.com>
95297
95298         * m4/jm-macros.m4: Use it here.
95299         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
95300
95301 1999-12-23  Jim Meyering  <meyering@ascend.com>
95302
95303         * m4/jm-macros.m4: Check for clock_gettime (moved from
95304         fileutils/configure.in)
95305         Check for gettimeofday.
95306
95307 1999-12-20  Jim Meyering  <meyering@ascend.com>
95308
95309         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
95310         autoconf-2.14a-1999-12-20.
95311
95312 1999-12-19  Jim Meyering  <meyering@ascend.com>
95313
95314         * m4/lstat-slash.m4: New file.
95315         * m4/jm-macros.m4: Use the new macro:
95316         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95317
95318 1999-12-07  Jim Meyering  <meyering@ascend.com>
95319
95320         * m4/perl.m4: Require that File::Compare be available, too.
95321         Too many systems seem to lack it.
95322
95323         * m4/strftime.m4: Add checks for most of the cpp macros tested in
95324         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
95325
95326 1999-11-18  Paul Eggert  <eggert@twinsun.com>
95327
95328         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
95329         problem with the QNX 4.25 shell, which doesn't propagate exit
95330         status of failed commands inside shell assignments.
95331
95332 1999-11-17  Jim Meyering  <meyering@ascend.com>
95333
95334         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
95335
95336 1999-11-07  Jim Meyering  <meyering@ascend.com>
95337
95338         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
95339
95340 1999-11-06  Jim Meyering  <meyering@ascend.com>
95341
95342         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
95343         * m4/jm-macros.m4 (jm_MACROS): Use it here.
95344
95345 1999-11-05  Jim Meyering  <meyering@ascend.com>
95346
95347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
95348         configure.in of textutils, fileutils, and sh-utils into this one
95349         (shared between those packages) file.
95350         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
95351         AC_STRUCT_ST_BLKSIZE.
95352
95353 1999-11-03  Jim Meyering  <meyering@ascend.com>
95354
95355         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
95356         of AC_CHECK_TYPE checks includes unistd.h.
95357         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
95358         Suggestion from Akim Demaille.
95359
95360 1999-10-30  Jim Meyering  <meyering@ascend.com>
95361
95362         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
95363         m4-quoted string.
95364         * m4/ls-mntd-fs.m4: Likewise.
95365         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
95366         * m4/jm-winsz1.m4: Likewise.
95367
95368         * m4/const.m4: Remove file, since the fix made it into the experimental
95369         version of autoconf.
95370         * m4/mktime.m4: Likewise.
95371
95372         * m4/check-type.m4: Remove file, now that the latest version of
95373         AC_CHECK_TYPE takes a third arg to specify additional #includes.
95374
95375         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
95376         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
95377         AC_CHECK_TYPE.
95378
95379 1999-10-04  Jim Meyering  <meyering@ascend.com>
95380
95381         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
95382
95383 1999-09-22  Paul Eggert  <eggert@twinsun.com>
95384
95385         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
95386         2.95.1 bug with HP-UX 10.20.
95387
95388 1999-09-17  Jim Meyering  <meyering@ascend.com>
95389
95390         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
95391         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
95392         due to missing strdup (against sh-utils-2.0).
95393
95394 1999-08-29  Jim Meyering  <meyering@ascend.com>
95395
95396         * m4/jm-macros.m4: Require jm_BISON.
95397         * m4/bison.m4: New file.
95398
95399 1999-08-17  Paul Eggert  <eggert@twinsun.com>
95400
95401         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
95402         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
95403
95404 1999-08-05  Jim Meyering  <meyering@ascend.com>
95405
95406         * m4/getline.m4: Rename test file from conftestdata to conftest.data
95407         to avoid conflicts with `conftest' on 8+3 filesystems.
95408         Suggestion from Eli Zaretskii.
95409
95410 1999-08-04  Jim Meyering  <meyering@ascend.com>
95411
95412         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
95413         fileutils and sh-utils (textutils's getline test was inadequate).
95414         (AM_FUNC_GETLINE): Run this test.
95415         (AC_CHECK_FUNCS): Check for getdelim.
95416         Reported by Bob Proulx.
95417
95418 1999-08-02  Jim Meyering  <meyering@ascend.com>
95419
95420         * m4/jm-macros.m4: Add a comment.
95421
95422 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95423
95424         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
95425         <inttypes.h> defines strtoumax as a macro (and not as a
95426         function).
95427
95428 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95429
95430         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
95431         that we can shift, multiply and divide unsigned long long
95432         values; Ultrix cc can't do it.
95433
95434 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95435
95436         * m4/mktime.m4: New file, which is a preview of what should appear
95437         in the next public autoconf release.
95438
95439 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95440
95441         * m4/lfs.m4: Remove this file.
95442         * m4/largefile.m4: New file.  It contains the old contents of
95443         lfs.m4, except that all names with prefix AC_LFS have been
95444         changed to use the prefix AC_SYS_LARGEFILE instead, to be
95445         compatible with future autoconf versions.  Also, some minor m4
95446         quoting problems have been fixed.
95447
95448 1999-08-01  Paul Eggert  <eggert@twinsun.com>
95449
95450         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
95451         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
95452         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
95453         and simplify the shell code.
95454
95455 1999-08-01  Jim Meyering  <meyering@ascend.com>
95456
95457         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
95458         m4.
95459
95460 1999-07-20  Jim Meyering  <meyering@ascend.com>
95461
95462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
95463
95464 1999-07-15  Jim Meyering  <meyering@ascend.com>
95465
95466         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
95467
95468 1999-05-22  Jim Meyering  <meyering@ascend.com>
95469
95470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
95471
95472 1999-05-20  Jim Meyering  <meyering@ascend.com>
95473
95474         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
95475         Add a colon after each `then' in case $4 is empty.
95476
95477 1999-05-16  Jim Meyering  <meyering@ascend.com>
95478
95479         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
95480
95481 1999-05-10  Jim Meyering  <meyering@ascend.com>
95482
95483         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
95484
95485         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
95486         AC_FUNC_MKTIME.
95487
95488 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
95489
95490         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
95491
95492 1999-05-04  Paul Eggert  <eggert@twinsun.com>
95493
95494         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
95495         not CPPFLAGS, so that linking works correctly in IRIX.
95496
95497 1999-04-30  Paul Eggert  <eggert@twinsun.com>
95498
95499         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
95500
95501 1999-04-20  Paul Eggert  <eggert@twinsun.com>
95502
95503         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
95504         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
95505         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
95506         jm_AC_TYPE_UNSIGNED_LONG_LONG.
95507         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
95508
95509         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
95510
95511 1999-04-20  Jim Meyering  <meyering@ascend.com>
95512
95513         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
95514         AC_REPLACE xstroull if necessary.  From Paul Eggert.
95515         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
95516
95517 1999-04-18  Jim Meyering  <meyering@ascend.com>
95518
95519         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
95520         * m4/jm-macros.m4: Use it.
95521
95522 1999-04-06  Jim Meyering  <meyering@ascend.com>
95523
95524         * m4/strftime.m4: Remove test for %f.
95525
95526 1999-03-29  Jim Meyering  <meyering@ascend.com>
95527
95528         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
95529         superset of the AC_TYPE_* checks in the textutils, fileutils,
95530         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
95531         AC_TYPE_PID_T.
95532
95533 1999-03-28  Jim Meyering  <meyering@ascend.com>
95534
95535         * m4/jm-macros.m4: Define GNU_PACKAGE here.
95536         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
95537         replaced e.g., in the *.sh files of the sh-utils.
95538
95539 1999-03-20  Jim Meyering  <meyering@ascend.com>
95540
95541         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
95542         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
95543         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
95544
95545 1999-03-19  Jim Meyering  <meyering@ascend.com>
95546
95547         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
95548
95549 1999-03-12  Jim Meyering  <meyering@ascend.com>
95550
95551         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
95552
95553 1999-03-07  Jim Meyering  <meyering@ascend.com>
95554
95555         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
95556         declared.
95557
95558 1999-02-17  Jim Meyering  <meyering@ascend.com>
95559
95560         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
95561         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
95562
95563 1999-02-07  Jim Meyering  <meyering@ascend.com>
95564
95565         * m4/group-member.m4: New file -- extracted from sh-utils'
95566         configure.in.
95567
95568         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
95569         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
95570
95571 1999-02-06  Jim Meyering  <meyering@ascend.com>
95572
95573         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
95574         * m4/fnmatch.m4: Likewise.
95575         * m4/getgroups.m4: Likewise.
95576         * m4/lstat.m4: Likewise.
95577         * m4/malloc.m4: Likewise.
95578         * m4/putenv.m4: Likewise.
95579         * m4/realloc.m4: Likewise.
95580         * m4/regex.m4: Likewise.
95581         * m4/stat.m4: Likewise.
95582         * m4/strftime.m4: Likewise.
95583         Suggestion from Alain Magloire.
95584
95585         * m4/chown.m4: Use `.$ac_objext', not `.o'.
95586         * m4/fnmatch.m4: Likewise.
95587         * m4/getgroups.m4: Likewise.
95588         * m4/getline.m4: Likewise.
95589         * m4/lstat.m4: Likewise.
95590         * m4/malloc.m4: Likewise.
95591         * m4/memcmp.m4: Likewise.
95592         * m4/putenv.m4: Likewise.
95593         * m4/realloc.m4: Likewise.
95594         * m4/regex.m4: Likewise.
95595         * m4/stat.m4: Likewise.
95596         * m4/strftime.m4: Likewise.
95597         Suggestion from Alain Magloire.
95598
95599         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
95600         an argument.
95601
95602         * m4/regex.m4: Add a run-time Test for proper operation of
95603         re_compile_pattern.
95604
95605 1999-01-31  Jim Meyering  <meyering@ascend.com>
95606
95607         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
95608
95609 1999-01-30  Jim Meyering  <meyering@ascend.com>
95610
95611         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
95612
95613         * m4/jm-mktime.m4: Make this a wrapper around the official
95614         AM_FUNC_MKTIME rather than my private copy, now that the official one
95615         is up to date.
95616         * m4/mktime.m4: Remove file.
95617
95618         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
95619         * m4/uptime.m4: Likewise.
95620         * m4/uintmax_t.m4: Likewise.
95621
95622 1999-01-28  Jim Meyering  <meyering@ascend.com>
95623
95624         * m4/jm-macros.m4: Use jm_AFS.
95625         * m4/afs.m4: New file (from fileutils' configure.in).
95626
95627         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
95628         * m4/chown.m4: Likewise.
95629         * m4/d-ino.m4: Likewise.
95630         * m4/d-type.m4: Likewise.
95631         * m4/fnmatch.m4: Likewise.
95632         * m4/getgroups.m4: Likewise.
95633         * m4/gettext.m4: Likewise.
95634         * m4/jm-mktime.m4: Likewise.
95635         * m4/jm-winsz2.m4: Likewise.
95636         * m4/lcmessage.m4: Likewise.
95637         * m4/ls-mntd-fs.m4: Likewise.
95638         * m4/malloc.m4: Likewise.
95639         * m4/memcmp.m4: Likewise.
95640         * m4/putenv.m4: Likewise.
95641         * m4/realloc.m4: Likewise.
95642         * m4/st_mtim.m4: Likewise.
95643         * m4/strftime.m4: Likewise.
95644
95645 1999-01-16  Jim Meyering  <meyering@ascend.com>
95646
95647         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
95648         (ARGMATCH_DIE_DECL): Define.
95649
95650 1999-01-12  Jim Meyering  <meyering@ascend.com>
95651
95652         * m4/Makefile.am.in: Rewrite to avoid using fmt.
95653         Reported by Lars Hecking.
95654
95655 1999-01-10  Jim Meyering  <meyering@ascend.com>
95656
95657         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
95658         gross kludge.
95659         * m4/inttypes_h.m4: Likewise.
95660         * m4/lstat.m4: Likewise.
95661         * m4/malloc.m4: Likewise.
95662         * m4/readdir.m4: Likewise.
95663         * m4/realloc.m4: Likewise.
95664         * m4/st_dm_mode.m4: Likewise.
95665         * m4/stat.m4: Likewise.
95666         * m4/utimbuf.m4: Likewise.
95667         * m4/utimes.m4: Likewise.
95668
95669         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
95670         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
95671         comments in config.h.in are meaningful.
95672
95673         * m4/jm-macros.m4: Require autoconf-2.13 here.
95674
95675         * m4/regex.m4: By default, don't use the included regex.c on systems
95676         with glibc 2.  Suggestion from Uli Drepper.
95677
95678 1999-01-02  Jim Meyering  <meyering@ascend.com>
95679
95680         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
95681
95682 1998-12-18  Jim Meyering  <meyering@ascend.com>
95683
95684         * m4/Makefile.am.in (Makefile.am): Simplify rule.
95685         Based on a suggestion from Lars Hecking.
95686
95687 1998-11-16  Paul Eggert  <eggert@twinsun.com>
95688
95689         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
95690
95691 1998-11-16  Jim Meyering  <meyering@ascend.com>
95692
95693         * m4/lfs.m4: Double-quote the `uname...` expression.
95694
95695 1998-11-14  Jim Meyering  <meyering@ascend.com>
95696
95697         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
95698         * m4/stat.m4: Likewise.
95699
95700 1998-11-03  Jim Meyering  <meyering@ascend.com>
95701
95702         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
95703         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
95704
95705 1998-10-18  Jim Meyering  <meyering@ascend.com>
95706
95707         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
95708
95709 1998-10-17  Jim Meyering  <meyering@ascend.com>
95710
95711         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
95712         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
95713         calls for those previously hard-coded headers.  Instead, take a new
95714         parameter.
95715         (jm_CHECK_DECLARATIONS): Reflect interface change.
95716         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
95717         (jm_CHECK_DECL_LOCALTIME_R): New macro.
95718
95719         * m4/mktime.m4: Test for spring-forward gap before long-running test.
95720
95721 1998-10-14  Jim Meyering  <meyering@ascend.com>
95722
95723         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
95724         instead of "TZ=America/Vancouver".  From Paul Eggert.
95725
95726 1998-10-11  Jim Meyering  <meyering@ascend.com>
95727
95728         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
95729         This adds a test for a recently added compatibility fix for mktime.c.
95730         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
95731
95732 1998-09-27  Jim Meyering  <meyering@ascend.com>
95733
95734         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
95735
95736         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
95737         ../configure.in, including a change from Gordon Matzigkeit to allow
95738         cross-compiling for the Hurd.
95739
95740         * m4/glibc.m4: New file/macro to test for the GNU C Library
95741         versions 1 and 2.  From Gordon Matzigkeit.
95742         Indent.
95743
95744 1998-09-21  Jim Meyering  <meyering@ascend.com>
95745
95746         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
95747
95748 1998-08-18  Paul Eggert  <eggert@twinsun.com>
95749
95750         Port nanosecond-resolution times to UnixWare 2.1.2 and
95751         pedantic Solaris 2.6.
95752
95753         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
95754         AC_STRUCT_ST_MTIM.
95755         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
95756         Generate name of ns member, instead of just 1 or undef.
95757         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
95758
95759 1998-08-15  Jim Meyering  <meyering@ascend.com>
95760
95761         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
95762         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
95763         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
95764         instead of jm_TYPE_SSIZE_T.
95765
95766 1998-08-12  Jim Meyering  <meyering@ascend.com>
95767
95768         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
95769
95770 1998-08-02  Jim Meyering  <meyering@ascend.com>
95771
95772         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
95773         in acconfig.h manually.
95774
95775 1998-07-31  Paul Eggert  <eggert@twinsun.com>
95776
95777         * m4/st_mtim.m4: New file.
95778
95779 1998-07-28  Jim Meyering  <meyering@ascend.com>
95780
95781         * m4/utimes.m4: Undef stat.
95782
95783 1998-07-25  Jim Meyering  <meyering@ascend.com>
95784
95785         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
95786         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
95787
95788 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
95789
95790         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
95791         uid and gid actually remain unchanged.
95792
95793 1998-07-07  Jim Meyering  <meyering@ascend.com>
95794
95795         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
95796
95797 1998-07-04  Jim Meyering  <meyering@ascend.com>
95798
95799         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
95800         to prove that this macro can be used in packages without regex.c.
95801
95802 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
95803
95804         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
95805         is to be used.
95806
95807 1998-07-03  Jim Meyering  <meyering@ascend.com>
95808
95809         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95810
95811         * m4/gettext.m4: New file -- from gettext-0.10.35.
95812         * m4/lcmessage.m4: Likewise.
95813         * m4/progtest.m4: Likewise.
95814
95815         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95816         * m4/jm-macros.m4: Require the new macro.
95817
95818 1998-06-29  Jim Meyering  <meyering@ascend.com>
95819
95820         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95821         for the definition of NGROUPS (used in a system header included
95822         by sys/mount.h).
95823
95824 1998-06-28  Jim Meyering  <meyering@ascend.com>
95825
95826         * m4/ls-mntd-fs.m4: New file.
95827         * m4/fstypename.m4: New file.
95828
95829         * m4/jm-macros.m4: Require the new macro.
95830         * m4/jm-glibc-io.m4: New file.
95831
95832 1998-05-19  Jim Meyering  <meyering@ascend.com>
95833
95834         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95835         * m4/lchown.m4: New file.
95836
95837         * m4/Makefile.am.in: New file.
95838         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95839
95840 1998-05-14  Jim Meyering  <meyering@ascend.com>
95841
95842         * m4/Makefile.am (EXTRA_DIST): Add them.
95843         * m4/jm-macros.m4: New file.
95844         * m4/utimbuf.m4: New file.
95845
95846 1998-05-12  Jim Meyering  <meyering@ascend.com>
95847
95848         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95849
95850 1998-05-11  Jim Meyering  <meyering@ascend.com>
95851
95852         * m4/isc-posix.m4: New file.
95853
95854 1998-05-10  Jim Meyering  <meyering@ascend.com>
95855
95856         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95857
95858 1998-05-09  Jim Meyering  <meyering@ascend.com>
95859
95860         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95861         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95862         with automake.
95863
95864         * m4/ssize_t.m4: New file.
95865         * m4/mktime.m4: Remove file -- the new automake has this now.
95866
95867 1998-04-26  Jim Meyering  <meyering@ascend.com>
95868
95869         * m4/assert.m4: New file.
95870         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95871
95872 1998-04-05  Jim Meyering  <meyering@ascend.com>
95873
95874         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95875         (jm_PREREQ): Use it here.
95876
95877 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95878
95879         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95880         in acconfig.h.
95881
95882 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95883
95884         * m4/prereq.m4: New file.
95885         * m4/error.m4: New file.
95886         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95887
95888 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95889
95890         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95891         cache-check for the same variable -- that defeated the purpose of
95892         the test; the test program was never run.  This was a problem only
95893         on systems with losing getline functions -- HP-UX 10.20 is one.
95894         Reported by Bjorn Helgaas.
95895
95896 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95897
95898         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95899
95900 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95901
95902         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95903
95904         * m4/const.m4: New file.  Use an initializer in this declaration
95905         typedef int charset[2]; const charset x;
95906         Reported by Bob Glickstein.
95907
95908 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95909
95910         * m4/chown.m4: Fix reversed types on -1 args to chown.
95911         From Kaveh Ghazi.
95912
95913 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95914
95915         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95916         Add lseek and memchr.
95917
95918         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95919         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95920         have a 20-character limit on names.
95921
95922 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95923
95924         * m4/inttypes_h.m4: New file.
95925         * m4/uintmax_t.m4: New file.
95926         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95927
95928
95929         -----
95930
95931         Local Variables:
95932         coding: utf-8
95933         End:
95934
95935         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95936
95937         Copying and distribution of this file, with or without
95938         modification, are permitted provided the copyright notice
95939         and this notice are preserved.